Wireguard Client no function

What type of hardware are you using: Virtual machine
What YunoHost version are you running: 12.0.7
What app is this about: Wireguard Client

Describe your issue

Hello,

I migrated my Yunohost server to a new machine yesterday. In the process, I also “saved” a bug that bothered me a few years ago. Since I have a dynamic IP address, I used an SMTP relay in the past. And that no longer works. At that time, the problem bothered me a lot. So I wanted to switch to a dedicated IP using VPN.

Unfortunately, I can’t manage to install the WireGuard client via the gui. The app is installed, but then stagnates during setup.

The second option would be to set up OVPN. The app can be installed, but when importing the *.ovpn file, an error message appears stating that the file is incorrect. This is the config of the VPN provider (TorGuard).

I decided to use this provider because it aggressively advertises Yunohost
(https://blog.torguard.net/yunohost-wireguard-a-noobs-guide-to-diy-web-hosting/).

It is noticeable that Wireguard appears under the apps, but no Wireguard service appears under the services.

I would like to try the Wireguard approach.
Maybe someone can help, thanks?

Share relevant logs or error messages

args:
app: wireguard_client
args_file: null
key: main
value: null
ended_at: 2024-11-24 13:12:06.012444
error: null
interface: api
operation: app_config_set
parent: null
related_to:

    • app
    • wireguard_client
      started_at: 2024-11-24 13:12:05.075128
      success: true
      yunohost_version: 12.0.7

============

2024-11-24 14:12:05,077: DEBUG - Calling ‘apply’ action from config script
2024-11-24 14:12:05,079: DEBUG - Executing command ‘[‘sh’, ‘-c’, ‘/bin/bash -x “./config” apply 7>&1’]’
2024-11-24 14:12:05,080: DEBUG - + source _common.sh
2024-11-24 14:12:05,081: DEBUG - + source /usr/share/yunohost/helpers
2024-11-24 14:12:05,081: DEBUG - ++++ dirname – /usr/share/yunohost/helpers
2024-11-24 14:12:05,082: DEBUG - +++ cd – /usr/share/yunohost
2024-11-24 14:12:05,082: DEBUG - +++ pwd
2024-11-24 14:12:05,082: DEBUG - ++ SCRIPT_DIR=/usr/share/yunohost
2024-11-24 14:12:05,082: DEBUG - ++ YNH_HELPERS_VERSION=2
2024-11-24 14:12:05,083: DEBUG - ++ readonly ‘XTRACE_ENABLE=set -o xtrace’
2024-11-24 14:12:05,083: DEBUG - ++ XTRACE_ENABLE=‘set -o xtrace’
2024-11-24 14:12:05,097: DEBUG - + ynh_abort_if_errors
2024-11-24 14:12:05,097: DEBUG - + trap ynh_exit_properly EXIT
2024-11-24 14:12:05,098: DEBUG - ++ ynh_app_setting_get --app=wireguard_client --key=install_dir
2024-11-24 14:12:05,143: DEBUG - + install_dir=/opt/yunohost/wireguard_client
2024-11-24 14:12:05,143: DEBUG - + ynh_app_config_run apply
2024-11-24 14:12:05,143: DEBUG - + old=()
2024-11-24 14:12:05,143: DEBUG - + declare -Ag old
2024-11-24 14:12:05,143: DEBUG - + changed=()
2024-11-24 14:12:05,143: DEBUG - + declare -Ag changed
2024-11-24 14:12:05,143: DEBUG - + file_hash=()
2024-11-24 14:12:05,143: DEBUG - + declare -Ag file_hash
2024-11-24 14:12:05,143: DEBUG - + binds=()
2024-11-24 14:12:05,143: DEBUG - + declare -Ag binds
2024-11-24 14:12:05,143: DEBUG - + types=()
2024-11-24 14:12:05,143: DEBUG - + declare -Ag types
2024-11-24 14:12:05,144: DEBUG - + formats=()
2024-11-24 14:12:05,144: DEBUG - + declare -Ag formats
2024-11-24 14:12:05,144: DEBUG - + case $1 in
2024-11-24 14:12:05,144: DEBUG - + max_progression=4
2024-11-24 14:12:05,167: DEBUG - + ynh_app_config_get
2024-11-24 14:12:05,167: DEBUG - + _ynh_app_config_get
2024-11-24 14:12:05,167: DEBUG - + for line in $YNH_APP_CONFIG_PANEL_OPTIONS_TYPES_AND_BINDS
2024-11-24 14:12:05,167: DEBUG - + IFS=‘|’
2024-11-24 14:12:05,167: DEBUG - + read short_setting type bind
2024-11-24 14:12:05,167: DEBUG - + binds[${short_setting}]=settings
2024-11-24 14:12:05,167: DEBUG - + types[${short_setting}]=alert
2024-11-24 14:12:05,167: DEBUG - + file_hash[${short_setting}]=
2024-11-24 14:12:05,167: DEBUG - + formats[${short_setting}]=
2024-11-24 14:12:05,167: DEBUG - + ynh_app_config_get_one status alert settings
2024-11-24 14:12:05,167: DEBUG - + ynh_app_config_get_one status alert settings
2024-11-24 14:12:05,167: DEBUG - + local short_setting=status
2024-11-24 14:12:05,167: DEBUG - + local type=alert
2024-11-24 14:12:05,167: DEBUG - + local bind=settings
2024-11-24 14:12:05,167: DEBUG - + local getter=get__status
2024-11-24 14:12:05,167: INFO - [+++++…] > Reading config panel description and current configuration…
2024-11-24 14:12:05,169: DEBUG - + grep -q ‘^function$’
2024-11-24 14:12:05,169: DEBUG - + type -t get__status
2024-11-24 14:12:05,169: DEBUG - ++ get__status
2024-11-24 14:12:05,169: DEBUG - +++ find /opt/yunohost/wireguard_client -name ‘*.conf’
2024-11-24 14:12:05,169: DEBUG - +++ head -1
2024-11-24 14:12:05,170: DEBUG - ++ ‘[’ -n ‘’ ‘]’
2024-11-24 14:12:05,171: DEBUG - + old[$short_setting]=
2024-11-24 14:12:05,171: DEBUG - + formats[${short_setting}]=yaml
2024-11-24 14:12:05,171: DEBUG - + for line in $YNH_APP_CONFIG_PANEL_OPTIONS_TYPES_AND_BINDS
2024-11-24 14:12:05,171: DEBUG - + IFS=‘|’
2024-11-24 14:12:05,171: DEBUG - + read short_setting type bind
2024-11-24 14:12:05,171: DEBUG - + binds[${short_setting}]=settings
2024-11-24 14:12:05,171: DEBUG - + types[${short_setting}]=tags
2024-11-24 14:12:05,171: DEBUG - + file_hash[${short_setting}]=
2024-11-24 14:12:05,171: DEBUG - + formats[${short_setting}]=
2024-11-24 14:12:05,171: DEBUG - + ynh_app_config_get_one interfaces tags settings
2024-11-24 14:12:05,171: DEBUG - + ynh_app_config_get_one interfaces tags settings
2024-11-24 14:12:05,171: DEBUG - + local short_setting=interfaces
2024-11-24 14:12:05,171: DEBUG - + local type=tags
2024-11-24 14:12:05,171: DEBUG - + local bind=settings
2024-11-24 14:12:05,171: DEBUG - + local getter=get__interfaces
2024-11-24 14:12:05,171: DEBUG - + grep -q ‘^function$’
2024-11-24 14:12:05,172: DEBUG - + type -t get__interfaces
2024-11-24 14:12:05,172: DEBUG - + [[ settings == ( ]]
2024-11-24 14:12:05,172: DEBUG - + [[ settings == \n\u\l\l ]]
2024-11-24 14:12:05,172: DEBUG - + [[ tags == \f\i\l\e ]]
2024-11-24 14:12:05,172: DEBUG - + [[ tags == \t\e\x\t ]]
2024-11-24 14:12:05,172: DEBUG - + local bind_after=
2024-11-24 14:12:05,172: DEBUG - + [[ settings == \s\e\t\t\i\n\g\s ]]
2024-11-24 14:12:05,172: DEBUG - + bind=:/etc/yunohost/apps/wireguard_client/settings.yml
2024-11-24 14:12:05,173: DEBUG - ++ cut -d: -f1
2024-11-24 14:12:05,173: DEBUG - ++ echo :/etc/yunohost/apps/wireguard_client/settings.yml
2024-11-24 14:12:05,173: DEBUG - + local bind_key
=
2024-11-24 14:12:05,173: DEBUG - + bind_key
=interfaces
2024-11-24 14:12:05,173: DEBUG - + [[ interfaces == > ]]
2024-11-24 14:12:05,174: DEBUG - ++ echo :/etc/yunohost/apps/wireguard_client/settings.yml
2024-11-24 14:12:05,174: DEBUG - ++ cut -d: -f2
2024-11-24 14:12:05,175: DEBUG - + local bind_file=/etc/yunohost/apps/wireguard_client/settings.yml
2024-11-24 14:12:05,175: DEBUG - ++ ynh_read_var_in_file --file=/etc/yunohost/apps/wireguard_client/settings.yml --key=interfaces --after=
2024-11-24 14:12:05,207: DEBUG - ++ after=
2024-11-24 14:12:05,207: DEBUG - ++ [[ -f /etc/yunohost/apps/wireguard_client/settings.yml ]]
2024-11-24 14:12:05,214: DEBUG - + old[$short_setting]=
2024-11-24 14:12:05,214: DEBUG - + ynh_app_config_validate
2024-11-24 14:12:05,214: DEBUG - + _ynh_app_config_validate
2024-11-24 14:12:05,250: INFO - [#####+++++…] > Checking what changed in the new configuration…
2024-11-24 14:12:05,251: DEBUG - + local nothing_changed=true
2024-11-24 14:12:05,251: DEBUG - + local changes_validated=true
2024-11-24 14:12:05,251: DEBUG - + for short_setting in “${!old[@]}”
2024-11-24 14:12:05,251: DEBUG - + changed[$short_setting]=false
2024-11-24 14:12:05,251: DEBUG - + ‘[’ -z x ‘]’
2024-11-24 14:12:05,251: DEBUG - + ‘[’ ‘!’ -z ‘’ ‘]’
2024-11-24 14:12:05,251: DEBUG - + [[ TorGuard != ‘’ ]]
2024-11-24 14:12:05,251: DEBUG - + changed[$short_setting]=true
2024-11-24 14:12:05,251: DEBUG - + nothing_changed=false
2024-11-24 14:12:05,251: DEBUG - + for short_setting in “${!old[@]}”
2024-11-24 14:12:05,251: DEBUG - + changed[$short_setting]=false
2024-11-24 14:12:05,251: DEBUG - + ‘[’ -z ‘]’
2024-11-24 14:12:05,251: DEBUG - + declare -g status=
2024-11-24 14:12:05,251: DEBUG - + continue
2024-11-24 14:12:05,251: DEBUG - + [[ false == \t\r\u\e ]]
2024-11-24 14:12:05,286: DEBUG - + for short_setting in “${!old[@]}”
2024-11-24 14:12:05,287: DEBUG - + [[ true == \f\a\l\s\e ]]
2024-11-24 14:12:05,287: DEBUG - + local result=
2024-11-24 14:12:05,287: INFO - [##########+++++…] > Validating the new configuration…
2024-11-24 14:12:05,288: DEBUG - + grep -q ‘^function$’
2024-11-24 14:12:05,288: DEBUG - + type -t validate__interfaces
2024-11-24 14:12:05,288: DEBUG - + [[ settings == ( ]]
2024-11-24 14:12:05,288: DEBUG - + ‘[’ -n ‘’ ‘]’
2024-11-24 14:12:05,288: DEBUG - + for short_setting in “${!old[@]}”
2024-11-24 14:12:05,288: DEBUG - + [[ false == \f\a\l\s\e ]]
2024-11-24 14:12:05,288: DEBUG - + continue
2024-11-24 14:12:05,288: DEBUG - + [[ true == \f\a\l\s\e ]]
2024-11-24 14:12:05,313: DEBUG - + ynh_app_config_apply
2024-11-24 14:12:05,313: DEBUG - + _ynh_app_config_apply
2024-11-24 14:12:05,313: DEBUG - + for short_setting in “${!old[@]}”
2024-11-24 14:12:05,313: DEBUG - + ynh_app_config_apply_one interfaces
2024-11-24 14:12:05,313: DEBUG - + _ynh_app_config_apply_one interfaces
2024-11-24 14:12:05,313: DEBUG - + local short_setting=interfaces
2024-11-24 14:12:05,313: DEBUG - + local setter=set__interfaces
2024-11-24 14:12:05,313: DEBUG - + local bind=settings
2024-11-24 14:12:05,313: DEBUG - + local type=tags
2024-11-24 14:12:05,313: DEBUG - + ‘[’ true == true ‘]’
2024-11-24 14:12:05,314: INFO - [###############+++++] > Applying the new configuration…
2024-11-24 14:12:05,315: DEBUG - + grep -q ‘^function$’
2024-11-24 14:12:05,315: DEBUG - + type -t set__interfaces
2024-11-24 14:12:05,315: DEBUG - + [[ settings == ( ]]
2024-11-24 14:12:05,315: DEBUG - + [[ settings == \n\u\l\l ]]
2024-11-24 14:12:05,315: DEBUG - + [[ tags == \f\i\l\e ]]
2024-11-24 14:12:05,315: DEBUG - + [[ settings == \s\e\t\t\i\n\g\s ]]
2024-11-24 14:12:05,315: DEBUG - + ynh_app_setting_set --app=wireguard_client --key=interfaces --value=TorGuard
2024-11-24 14:12:05,375: DEBUG - + ynh_print_info ‘–message=Configuration key ‘'‘interfaces’'’ edited in app settings’
2024-11-24 14:12:05,380: INFO - Configuration key ‘interfaces’ edited in app settings
2024-11-24 14:12:05,381: DEBUG - + for short_setting in “${!old[@]}”
2024-11-24 14:12:05,381: DEBUG - + ynh_app_config_apply_one status
2024-11-24 14:12:05,382: DEBUG - + _ynh_app_config_apply_one status
2024-11-24 14:12:05,382: DEBUG - + local short_setting=status
2024-11-24 14:12:05,382: DEBUG - + local setter=set__status
2024-11-24 14:12:05,382: DEBUG - + local bind=settings
2024-11-24 14:12:05,382: DEBUG - + local type=alert
2024-11-24 14:12:05,382: DEBUG - + ‘[’ false == true ‘]’
2024-11-24 14:12:05,382: DEBUG - + readarray -td, interfaces_array
2024-11-24 14:12:05,382: DEBUG - ++ echo TorGuard
2024-11-24 14:12:05,382: DEBUG - + readarray -td, old_interfaces_array
2024-11-24 14:12:05,382: DEBUG - ++ echo
2024-11-24 14:12:05,382: DEBUG - + added_interfaces_array=(echo ${interfaces_array[@]} ${old_interfaces_array[@]} | tr ' ' '\n' | sort | uniq -u )
2024-11-24 14:12:05,382: DEBUG - ++ echo TorGuard
2024-11-24 14:12:05,383: DEBUG - ++ uniq -u
2024-11-24 14:12:05,383: DEBUG - ++ tr ’ ’ ‘\n’
2024-11-24 14:12:05,383: DEBUG - ++ sort
2024-11-24 14:12:05,384: DEBUG - + removed_interfaces_array=(echo ${old_interfaces_array[@]} ${added_interfaces[@]} | tr ' ' '\n' | sort | uniq -D | uniq )
2024-11-24 14:12:05,385: DEBUG - ++ echo
2024-11-24 14:12:05,385: DEBUG - ++ uniq -D
2024-11-24 14:12:05,385: DEBUG - ++ sort
2024-11-24 14:12:05,385: DEBUG - ++ uniq
2024-11-24 14:12:05,386: DEBUG - ++ tr ’ ’ ‘\n’
2024-11-24 14:12:05,387: DEBUG - + ynh_print_info '–message=Previous interfaces:
2024-11-24 14:12:05,387: DEBUG - ’
2024-11-24 14:12:05,387: DEBUG - ’
2024-11-24 14:12:05,392: INFO - Previous interfaces:
2024-11-24 14:12:05,393: DEBUG - + ynh_print_info ‘–message=Added interfaces: TorGuard’
2024-11-24 14:12:05,397: INFO - Added interfaces: TorGuard
2024-11-24 14:12:05,399: DEBUG - + ynh_print_info '–message=Removed interfaces: ’
2024-11-24 14:12:05,403: DEBUG - + ‘[’ true == true ‘]’
2024-11-24 14:12:05,403: INFO - Removed interfaces:
2024-11-24 14:12:05,404: DEBUG - ++ mktemp -d
2024-11-24 14:12:05,404: DEBUG - + TEMP_CONFIGPANEL=/tmp/tmp.Ub7iNnBUaB
2024-11-24 14:12:05,404: DEBUG - + for i in ${added_interfaces_array[@]}
2024-11-24 14:12:05,404: DEBUG - + i_atboot=TorGuard_atboot
2024-11-24 14:12:05,404: DEBUG - + i_conf=TorGuard_conf
2024-11-24 14:12:05,404: DEBUG - + ynh_app_setting_set --app=wireguard_client --key=TorGuard_atboot --value=1
2024-11-24 14:12:05,467: DEBUG - + ynh_app_setting_set --app=wireguard_client --key=TorGuard_conf --value=
2024-11-24 14:12:05,530: DEBUG - + cat …/conf/config_panel.template.toml
2024-11-24 14:12:05,531: DEBUG - + for i in ${interfaces_array[@]}
2024-11-24 14:12:05,531: DEBUG - + ynh_add_config --template=config_panel.part.toml --destination=/tmp/tmp.Ub7iNnBUaB/config_panel.TorGuard.toml
2024-11-24 14:12:05,554: DEBUG - + jinja=0
2024-11-24 14:12:05,554: DEBUG - + ‘[’ -f /etc/yunohost/apps/wireguard_client/conf/config_panel.part.toml ‘]’
2024-11-24 14:12:05,555: DEBUG - + template_path=/etc/yunohost/apps/wireguard_client/conf/config_panel.part.toml
2024-11-24 14:12:05,555: DEBUG - + ynh_backup_if_checksum_is_different --file=/tmp/tmp.Ub7iNnBUaB/config_panel.TorGuard.toml
2024-11-24 14:12:05,560: DEBUG - ++ ynh_app_setting_get --app=wireguard_client --key=checksum__tmp_tmp.Ub7iNnBUaB_config_panel.TorGuard.toml
2024-11-24 14:12:05,605: DEBUG - + local checksum_value=
2024-11-24 14:12:05,605: DEBUG - + backup_file_checksum=
2024-11-24 14:12:05,606: DEBUG - + ‘[’ -n ‘’ ‘]’
2024-11-24 14:12:05,606: DEBUG - + touch /tmp/tmp.Ub7iNnBUaB/config_panel.TorGuard.toml
2024-11-24 14:12:05,606: DEBUG - + chmod 640 /tmp/tmp.Ub7iNnBUaB/config_panel.TorGuard.toml
2024-11-24 14:12:05,607: DEBUG - + ynh_apply_default_permissions /tmp/tmp.Ub7iNnBUaB/config_panel.TorGuard.toml
2024-11-24 14:12:05,607: DEBUG - + local target=/tmp/tmp.Ub7iNnBUaB/config_panel.TorGuard.toml
2024-11-24 14:12:05,607: DEBUG - + chmod o-rwx /tmp/tmp.Ub7iNnBUaB/config_panel.TorGuard.toml
2024-11-24 14:12:05,608: DEBUG - + chmod g-w /tmp/tmp.Ub7iNnBUaB/config_panel.TorGuard.toml
2024-11-24 14:12:05,608: DEBUG - + chown -R root:root /tmp/tmp.Ub7iNnBUaB/config_panel.TorGuard.toml
2024-11-24 14:12:05,609: DEBUG - + ynh_system_user_exists wireguard_client
2024-11-24 14:12:05,615: DEBUG - + getent passwd wireguard_client
2024-11-24 14:12:05,616: DEBUG - + chown wireguard_client:wireguard_client /tmp/tmp.Ub7iNnBUaB/config_panel.TorGuard.toml
2024-11-24 14:12:05,616: DEBUG - + grep -qE ‘^(/etc/cron|/etc/php|/etc/nginx/conf.d|/etc/fail2ban|/etc/systemd/system)’
2024-11-24 14:12:05,617: DEBUG - + [[ 0 == 1 ]]
2024-11-24 14:12:05,617: DEBUG - + cp -f /etc/yunohost/apps/wireguard_client/conf/config_panel.part.toml /tmp/tmp.Ub7iNnBUaB/config_panel.TorGuard.toml
2024-11-24 14:12:05,618: DEBUG - + ynh_replace_vars --file=/tmp/tmp.Ub7iNnBUaB/config_panel.TorGuard.toml
2024-11-24 14:12:05,624: DEBUG - + test -n ‘’
2024-11-24 14:12:05,624: DEBUG - + test -n wireguard_client
2024-11-24 14:12:05,624: DEBUG - + ynh_replace_string --match_string=NAME --replace_string=wireguard_client --target_file=/tmp/tmp.Ub7iNnBUaB/config_panel.TorGuard.toml
2024-11-24 14:12:05,659: DEBUG - + ynh_replace_string --match_string=NAMETOCHANGE --replace_string=wireguard_client --target_file=/tmp/tmp.Ub7iNnBUaB/config_panel.TorGuard.toml
2024-11-24 14:12:05,694: DEBUG - + ynh_replace_string --match_string=USER --replace_string=wireguard_client --target_file=/tmp/tmp.Ub7iNnBUaB/config_panel.TorGuard.toml
2024-11-24 14:12:05,729: DEBUG - + test -n ‘’
2024-11-24 14:12:05,729: DEBUG - + dpkg --compare-versions 2.0 lt 2
2024-11-24 14:12:05,730: DEBUG - + test -n ‘’
2024-11-24 14:12:05,731: DEBUG - ++ grep -oP '__[A-Z0-9]+?[A-Z0-9
]?[A-Z0-9]?’ /tmp/tmp.Ub7iNnBUaB/config_panel.TorGuard.toml
2024-11-24 14:12:05,731: DEBUG - ++ sed 's@
([^.])__@\L\1@g’
2024-11-24 14:12:05,731: DEBUG - ++ sort --unique
2024-11-24 14:12:05,733: DEBUG - + uniques_vars=(‘i’ ‘install_dir’)
2024-11-24 14:12:05,735: DEBUG - + ynh_store_file_checksum --file=/tmp/tmp.Ub7iNnBUaB/config_panel.TorGuard.toml
2024-11-24 14:12:05,735: DEBUG - + update_only=0
2024-11-24 14:12:05,745: DEBUG - ++ md5sum /tmp/tmp.Ub7iNnBUaB/config_panel.TorGuard.toml
2024-11-24 14:12:05,745: DEBUG - ++ cut '–delimiter= ’ --fields=1
2024-11-24 14:12:05,746: DEBUG - + ynh_app_setting_set --app=wireguard_client --key=checksum__tmp_tmp.Ub7iNnBUaB_config_panel.TorGuard.toml --value=ceecc56bb290fbda0ea1976b72d8db93
2024-11-24 14:12:05,808: DEBUG - + ‘[’ -n ‘’ ‘]’
2024-11-24 14:12:05,808: DEBUG - + ynh_delete_file_checksum --file=/tmp/tmp.Ub7iNnBUaB/config_panel.TorGuard.toml
2024-11-24 14:12:05,814: DEBUG - + ynh_app_setting_delete --app=wireguard_client --key=checksum__tmp_tmp.Ub7iNnBUaB_config_panel.TorGuard.toml
2024-11-24 14:12:05,859: DEBUG - + for file in “$TEMP_CONFIGPANEL”/

2024-11-24 14:12:05,859: DEBUG - + cat /tmp/tmp.Ub7iNnBUaB/config_panel.TorGuard.toml
2024-11-24 14:12:05,860: DEBUG - + ynh_secure_remove --file=/tmp/tmp.Ub7iNnBUaB
2024-11-24 14:12:05,908: INFO - [####################] > Configuration of wireguard_client completed
2024-11-24 14:12:05,909: DEBUG - + ynh_exit_properly
2024-11-24 14:12:05,909: DEBUG - + [[ ‘’ =~ ^install$|^upgrade$|^restore$ ]]
2024-11-24 14:12:06,010: SUCCESS - Config updated as expected

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.