Tentative de configuration de VPN Client avec FDN

Bonjour,

Ma config :

Olimex A20, lime2. image Debian buster
Yunohost 4.3.6 (stable) derrière Freebox mini 4K
Accès en SSH et par la webadmin

J’aimerais utiliser le service de VPN de FDN. Je suis derrière une Freebox et mon intérêt principal est de disposer de reverse DNS pour le service mail déployé sur Yunohost. J’ai donc installé et tenté de paramétrer VPN Client… mais ça ne fonctionne pas.

Le log complet :

args:
  app: vpnclient
  args_file: null
  key: main
  value: null
ended_at: 2022-01-20 10:42:37.502038
error: "\xC9chec de l'application des valeurs du panneau de configuration."
interface: api
operation: app_config_set
parent: null
related_to:
- - app
  - vpnclient
started_at: 2022-01-20 10:42:18.444066
success: false
yunohost_version: 4.3.6

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

2022-01-20 10:42:18,481: DEBUG - Calling 'apply' action from config script
2022-01-20 10:42:18,495: DEBUG - Executing command '['sh', '-c', '/bin/bash -x "./config" apply 7>&1']'
2022-01-20 10:42:18,527: DEBUG - + source _common.sh
2022-01-20 10:42:18,529: DEBUG - ++ pkg_dependencies='sipcalc dnsutils openvpn curl fake-hwclock'
2022-01-20 10:42:18,530: DEBUG - ++ service_name=ynh-vpnclient
2022-01-20 10:42:18,530: DEBUG - ++ service_checker_name=ynh-vpnclient-checker
2022-01-20 10:42:18,531: DEBUG - + source /usr/share/yunohost/helpers
2022-01-20 10:42:18,534: DEBUG - +++ set +o
2022-01-20 10:42:18,536: DEBUG - +++ grep xtrace
2022-01-20 10:42:18,544: DEBUG - ++ readonly 'XTRACE_ENABLE=set -o xtrace'
2022-01-20 10:42:18,545: DEBUG - ++ XTRACE_ENABLE='set -o xtrace'
2022-01-20 10:42:18,623: DEBUG - + ynh_abort_if_errors
2022-01-20 10:42:18,624: DEBUG - + trap ynh_exit_properly EXIT
2022-01-20 10:42:18,624: DEBUG - + BACKTICK='`'
2022-01-20 10:42:18,624: DEBUG - + TRIPLEBACKTICKS='```'
2022-01-20 10:42:18,627: DEBUG - + ynh_app_config_run apply
2022-01-20 10:42:18,628: DEBUG - + old=()
2022-01-20 10:42:18,628: DEBUG - + declare -Ag old
2022-01-20 10:42:18,628: DEBUG - + changed=()
2022-01-20 10:42:18,629: DEBUG - + declare -Ag changed
2022-01-20 10:42:18,629: DEBUG - + file_hash=()
2022-01-20 10:42:18,629: DEBUG - + declare -Ag file_hash
2022-01-20 10:42:18,630: DEBUG - + binds=()
2022-01-20 10:42:18,630: DEBUG - + declare -Ag binds
2022-01-20 10:42:18,630: DEBUG - + types=()
2022-01-20 10:42:18,631: DEBUG - + declare -Ag types
2022-01-20 10:42:18,631: DEBUG - + formats=()
2022-01-20 10:42:18,631: DEBUG - + declare -Ag formats
2022-01-20 10:42:18,632: DEBUG - + case $1 in
2022-01-20 10:42:18,632: DEBUG - + max_progression=4
2022-01-20 10:42:18,768: INFO - [+++++...............] > Reading config panel description and current configuration...
2022-01-20 10:42:18,771: DEBUG - + ynh_app_config_get
2022-01-20 10:42:18,772: DEBUG - + _ynh_app_config_get
2022-01-20 10:42:18,772: DEBUG - ++ python3
2022-01-20 10:42:18,856: DEBUG - + lines='status;alert;settings
2022-01-20 10:42:18,856: DEBUG - service_enabled;boolean;settings
2022-01-20 10:42:18,857: DEBUG - doc;alert;settings
2022-01-20 10:42:18,857: DEBUG - config_file;file;/etc/openvpn/client.conf
2022-01-20 10:42:18,858: DEBUG - crt_server_ca;file;/etc/openvpn/keys/ca-server.crt
2022-01-20 10:42:18,859: DEBUG - crt_client;file;/etc/openvpn/keys/user.crt
2022-01-20 10:42:18,859: DEBUG - crt_client_key;file;/etc/openvpn/keys/user.key
2022-01-20 10:42:18,859: DEBUG - login_user;string;settings
2022-01-20 10:42:18,860: DEBUG - login_passphrase;password;settings
2022-01-20 10:42:18,860: DEBUG - crt_client_ta;file;/etc/openvpn/keys/user_ta.key
2022-01-20 10:42:18,860: DEBUG - dns_method;select;settings
2022-01-20 10:42:18,861: DEBUG - nameservers;tags;settings
2022-01-20 10:42:18,861: DEBUG - ip6_net;string;settings
2022-01-20 10:42:18,862: DEBUG - ip6_addr;string;settings'
2022-01-20 10:42:18,862: DEBUG - + for line in $lines
2022-01-20 10:42:18,862: DEBUG - + IFS=';'
2022-01-20 10:42:18,863: DEBUG - + read short_setting type bind
2022-01-20 10:42:18,863: DEBUG - + binds[${short_setting}]=settings
2022-01-20 10:42:18,863: DEBUG - + types[${short_setting}]=alert
2022-01-20 10:42:18,863: DEBUG - + file_hash[${short_setting}]=
2022-01-20 10:42:18,864: DEBUG - + formats[${short_setting}]=
2022-01-20 10:42:18,864: DEBUG - + ynh_app_config_get_one status alert settings
2022-01-20 10:42:18,865: DEBUG - + _ynh_app_config_get_one status alert settings
2022-01-20 10:42:18,865: DEBUG - + local short_setting=status
2022-01-20 10:42:18,865: DEBUG - + local type=alert
2022-01-20 10:42:18,866: DEBUG - + local bind=settings
2022-01-20 10:42:18,866: DEBUG - + local getter=get__status
2022-01-20 10:42:18,866: DEBUG - + type -t get__status
2022-01-20 10:42:18,867: DEBUG - + grep -q '^function$'
2022-01-20 10:42:18,867: DEBUG - ++ get__status
2022-01-20 10:42:18,868: DEBUG - +++ ynh_app_setting_get vpnclient service_enabled
2022-01-20 10:42:18,868: DEBUG - +++ local _globalapp=vpnclient
2022-01-20 10:42:18,959: DEBUG - +++ app=vpnclient
2022-01-20 10:42:18,959: DEBUG - +++ [[ service_enabled =~ (unprotected|protected|skipped)_ ]]
2022-01-20 10:42:18,960: DEBUG - +++ ynh_app_setting get vpnclient service_enabled
2022-01-20 10:42:19,088: DEBUG - ++ local service_enabled=1
2022-01-20 10:42:19,089: DEBUG - +++ ping -w3 -c1 ip.yunohost.org
2022-01-20 10:42:19,124: DEBUG - +++ curl --max-time 5 https://ip.yunohost.org --silent
2022-01-20 10:42:19,333: DEBUG - ++ ipv4=xx.xx.xx.xx
2022-01-20 10:42:19,336: DEBUG - +++ ping -w3 -c1 ip6.yunohost.org
2022-01-20 10:42:19,374: DEBUG - +++ curl --max-time 5 https://ip6.yunohost.org --silent
2022-01-20 10:42:19,534: DEBUG - ++ ipv6=xx:xx:xx:xx:xx:xx
2022-01-20 10:42:19,540: DEBUG - ++ ip route get 1.2.3.4
2022-01-20 10:42:19,541: DEBUG - ++ grep -q tun0
2022-01-20 10:42:19,543: DEBUG - ++ cat
2022-01-20 10:42:19,548: DEBUG - +++ journalctl -u ynh-vpnclient -o cat
2022-01-20 10:42:19,549: DEBUG - +++ sed 's/^/    /g'
2022-01-20 10:42:19,550: DEBUG - +++ tail -n 15
2022-01-20 10:42:19,579: DEBUG - + old[$short_setting]='style: danger
2022-01-20 10:42:19,580: DEBUG - ask:
2022-01-20 10:42:19,581: DEBUG -   en: |-
2022-01-20 10:42:19,583: DEBUG -     The VPN is down ! Here are errors logged in the last few minutes
2022-01-20 10:42:19,583: DEBUG -     ```
2022-01-20 10:42:19,584: DEBUG -     [ OK ] Settings retrieved
2022-01-20 10:42:19,584: DEBUG -     [WARN] Service is disabled, not starting it
2022-01-20 10:42:19,585: DEBUG -     Started YunoHost VPN Client..
2022-01-20 10:42:19,585: DEBUG -     Stopping YunoHost VPN Client....
2022-01-20 10:42:19,587: DEBUG -     [INFO] Retrieving Yunohost settings...
2022-01-20 10:42:19,589: DEBUG -     [ OK ] Settings retrieved
2022-01-20 10:42:19,591: DEBUG -     [INFO] [vpnclient] Stopping...
2022-01-20 10:42:19,591: DEBUG -     [INFO] Removing custom DNS resolvers from vpnclient
2022-01-20 10:42:19,600: DEBUG -     ynh-vpnclient.service: Succeeded.
2022-01-20 10:42:19,601: DEBUG -     Stopped YunoHost VPN Client..
2022-01-20 10:42:19,602: DEBUG -     Starting YunoHost VPN Client....
2022-01-20 10:42:19,610: DEBUG -     [INFO] Retrieving Yunohost settings...
2022-01-20 10:42:19,610: DEBUG -     [ OK ] Settings retrieved
2022-01-20 10:42:19,611: DEBUG -     [WARN] Service is disabled, not starting it
2022-01-20 10:42:19,611: DEBUG -     Started YunoHost VPN Client..
2022-01-20 10:42:19,612: DEBUG -     ```'
2022-01-20 10:42:19,613: DEBUG - + formats[${short_setting}]=yaml
2022-01-20 10:42:19,613: DEBUG - + for line in $lines
2022-01-20 10:42:19,614: DEBUG - + IFS=';'
2022-01-20 10:42:19,614: DEBUG - + read short_setting type bind
2022-01-20 10:42:19,615: DEBUG - + binds[${short_setting}]=settings
2022-01-20 10:42:19,616: DEBUG - + types[${short_setting}]=boolean
2022-01-20 10:42:19,617: DEBUG - + file_hash[${short_setting}]=
2022-01-20 10:42:19,619: DEBUG - + formats[${short_setting}]=
2022-01-20 10:42:19,620: DEBUG - + ynh_app_config_get_one service_enabled boolean settings
2022-01-20 10:42:19,621: DEBUG - + _ynh_app_config_get_one service_enabled boolean settings
2022-01-20 10:42:19,622: DEBUG - + local short_setting=service_enabled
2022-01-20 10:42:19,623: DEBUG - + local type=boolean
2022-01-20 10:42:19,624: DEBUG - + local bind=settings
2022-01-20 10:42:19,625: DEBUG - + local getter=get__service_enabled
2022-01-20 10:42:19,625: DEBUG - + type -t get__service_enabled
2022-01-20 10:42:19,626: DEBUG - + grep -q '^function$'
2022-01-20 10:42:19,626: DEBUG - + [[ settings == *\(* ]]
2022-01-20 10:42:19,626: DEBUG - + [[ settings == \n\u\l\l ]]
2022-01-20 10:42:19,627: DEBUG - + [[ boolean == \f\i\l\e ]]
2022-01-20 10:42:19,627: DEBUG - + [[ boolean == \t\e\x\t ]]
2022-01-20 10:42:19,628: DEBUG - + local bind_after=
2022-01-20 10:42:19,628: DEBUG - + [[ settings == \s\e\t\t\i\n\g\s ]]
2022-01-20 10:42:19,628: DEBUG - + bind=:/etc/yunohost/apps/vpnclient/settings.yml
2022-01-20 10:42:19,629: DEBUG - ++ echo :/etc/yunohost/apps/vpnclient/settings.yml
2022-01-20 10:42:19,629: DEBUG - ++ cut -d: -f1
2022-01-20 10:42:19,629: DEBUG - + local bind_key_=
2022-01-20 10:42:19,630: DEBUG - + bind_key_=service_enabled
2022-01-20 10:42:19,630: DEBUG - + [[ service_enabled == *\>* ]]
2022-01-20 10:42:19,630: DEBUG - ++ echo :/etc/yunohost/apps/vpnclient/settings.yml
2022-01-20 10:42:19,631: DEBUG - ++ cut -d: -f2
2022-01-20 10:42:19,631: DEBUG - ++ sed s@__FINALPATH__@@
2022-01-20 10:42:19,631: DEBUG - ++ sed s/__APP__/vpnclient/
2022-01-20 10:42:19,632: DEBUG - + local bind_file=/etc/yunohost/apps/vpnclient/settings.yml
2022-01-20 10:42:19,632: DEBUG - ++ ynh_read_var_in_file --file=/etc/yunohost/apps/vpnclient/settings.yml --key=service_enabled --after=
2022-01-20 10:42:19,842: DEBUG - ++ after=
2022-01-20 10:42:19,843: DEBUG - ++ [[ -f /etc/yunohost/apps/vpnclient/settings.yml ]]
2022-01-20 10:42:19,885: DEBUG - + old[$short_setting]=1
2022-01-20 10:42:19,886: DEBUG - + for line in $lines
2022-01-20 10:42:19,886: DEBUG - + IFS=';'
2022-01-20 10:42:19,887: DEBUG - + read short_setting type bind
2022-01-20 10:42:19,887: DEBUG - + binds[${short_setting}]=settings
2022-01-20 10:42:19,889: DEBUG - + types[${short_setting}]=alert
2022-01-20 10:42:19,890: DEBUG - + file_hash[${short_setting}]=
2022-01-20 10:42:19,890: DEBUG - + formats[${short_setting}]=
2022-01-20 10:42:19,891: DEBUG - + ynh_app_config_get_one doc alert settings
2022-01-20 10:42:19,892: DEBUG - + _ynh_app_config_get_one doc alert settings
2022-01-20 10:42:19,892: DEBUG - + local short_setting=doc
2022-01-20 10:42:19,893: DEBUG - + local type=alert
2022-01-20 10:42:19,893: DEBUG - + local bind=settings
2022-01-20 10:42:19,894: DEBUG - + local getter=get__doc
2022-01-20 10:42:19,894: DEBUG - + type -t get__doc
2022-01-20 10:42:19,895: DEBUG - + grep -q '^function$'
2022-01-20 10:42:19,895: DEBUG - + [[ settings == *\(* ]]
2022-01-20 10:42:19,898: DEBUG - + [[ settings == \n\u\l\l ]]
2022-01-20 10:42:19,899: DEBUG - + [[ alert == \f\i\l\e ]]
2022-01-20 10:42:19,900: DEBUG - + [[ alert == \t\e\x\t ]]
2022-01-20 10:42:19,900: DEBUG - + local bind_after=
2022-01-20 10:42:19,901: DEBUG - + [[ settings == \s\e\t\t\i\n\g\s ]]
2022-01-20 10:42:19,901: DEBUG - + bind=:/etc/yunohost/apps/vpnclient/settings.yml
2022-01-20 10:42:19,902: DEBUG - ++ echo :/etc/yunohost/apps/vpnclient/settings.yml
2022-01-20 10:42:19,902: DEBUG - ++ cut -d: -f1
2022-01-20 10:42:19,906: DEBUG - + local bind_key_=
2022-01-20 10:42:19,906: DEBUG - + bind_key_=doc
2022-01-20 10:42:19,907: DEBUG - + [[ doc == *\>* ]]
2022-01-20 10:42:19,918: DEBUG - ++ echo :/etc/yunohost/apps/vpnclient/settings.yml
2022-01-20 10:42:19,919: DEBUG - ++ cut -d: -f2
2022-01-20 10:42:19,920: DEBUG - ++ sed s/__APP__/vpnclient/
2022-01-20 10:42:19,920: DEBUG - ++ sed s@__FINALPATH__@@
2022-01-20 10:42:19,926: DEBUG - + local bind_file=/etc/yunohost/apps/vpnclient/settings.yml
2022-01-20 10:42:19,928: DEBUG - ++ ynh_read_var_in_file --file=/etc/yunohost/apps/vpnclient/settings.yml --key=doc --after=
2022-01-20 10:42:20,159: DEBUG - ++ after=
2022-01-20 10:42:20,159: DEBUG - ++ [[ -f /etc/yunohost/apps/vpnclient/settings.yml ]]
2022-01-20 10:42:20,182: DEBUG - ++ echo YNH_NULL
2022-01-20 10:42:20,182: DEBUG - ++ return 0
2022-01-20 10:42:20,183: DEBUG - + old[$short_setting]=YNH_NULL
2022-01-20 10:42:20,183: DEBUG - + for line in $lines
2022-01-20 10:42:20,184: DEBUG - + IFS=';'
2022-01-20 10:42:20,184: DEBUG - + read short_setting type bind
2022-01-20 10:42:20,185: DEBUG - + binds[${short_setting}]=/etc/openvpn/client.conf
2022-01-20 10:42:20,185: DEBUG - + types[${short_setting}]=file
2022-01-20 10:42:20,186: DEBUG - + file_hash[${short_setting}]=
2022-01-20 10:42:20,186: DEBUG - + formats[${short_setting}]=
2022-01-20 10:42:20,187: DEBUG - + ynh_app_config_get_one config_file file /etc/openvpn/client.conf
2022-01-20 10:42:20,187: DEBUG - + _ynh_app_config_get_one config_file file /etc/openvpn/client.conf
2022-01-20 10:42:20,187: DEBUG - + local short_setting=config_file
2022-01-20 10:42:20,188: DEBUG - + local type=file
2022-01-20 10:42:20,188: DEBUG - + local bind=/etc/openvpn/client.conf
2022-01-20 10:42:20,188: DEBUG - + local getter=get__config_file
2022-01-20 10:42:20,189: DEBUG - + type -t get__config_file
2022-01-20 10:42:20,189: DEBUG - + grep -q '^function$'
2022-01-20 10:42:20,191: DEBUG - + [[ /etc/openvpn/client.conf == *\(* ]]
2022-01-20 10:42:20,192: DEBUG - + [[ /etc/openvpn/client.conf == \n\u\l\l ]]
2022-01-20 10:42:20,192: DEBUG - + [[ file == \f\i\l\e ]]
2022-01-20 10:42:20,193: DEBUG - + [[ /etc/openvpn/client.conf == \s\e\t\t\i\n\g\s ]]
2022-01-20 10:42:20,196: DEBUG - +++ echo /etc/openvpn/client.conf
2022-01-20 10:42:20,197: DEBUG - +++ sed s/__APP__/vpnclient/
2022-01-20 10:42:20,198: DEBUG - +++ sed s@__FINALPATH__@@
2022-01-20 10:42:20,205: DEBUG - ++ ls /etc/openvpn/client.conf
2022-01-20 10:42:20,210: DEBUG - + old[$short_setting]=/etc/openvpn/client.conf
2022-01-20 10:42:20,211: DEBUG - + file_hash[$short_setting]=true
2022-01-20 10:42:20,211: DEBUG - + for line in $lines
2022-01-20 10:42:20,212: DEBUG - + IFS=';'
2022-01-20 10:42:20,212: DEBUG - + read short_setting type bind
2022-01-20 10:42:20,213: DEBUG - + binds[${short_setting}]=/etc/openvpn/keys/ca-server.crt
2022-01-20 10:42:20,213: DEBUG - + types[${short_setting}]=file
2022-01-20 10:42:20,214: DEBUG - + file_hash[${short_setting}]=
2022-01-20 10:42:20,214: DEBUG - + formats[${short_setting}]=
2022-01-20 10:42:20,214: DEBUG - + ynh_app_config_get_one crt_server_ca file /etc/openvpn/keys/ca-server.crt
2022-01-20 10:42:20,215: DEBUG - + _ynh_app_config_get_one crt_server_ca file /etc/openvpn/keys/ca-server.crt
2022-01-20 10:42:20,215: DEBUG - + local short_setting=crt_server_ca
2022-01-20 10:42:20,215: DEBUG - + local type=file
2022-01-20 10:42:20,216: DEBUG - + local bind=/etc/openvpn/keys/ca-server.crt
2022-01-20 10:42:20,216: DEBUG - + local getter=get__crt_server_ca
2022-01-20 10:42:20,216: DEBUG - + type -t get__crt_server_ca
2022-01-20 10:42:20,217: DEBUG - + grep -q '^function$'
2022-01-20 10:42:20,218: DEBUG - + [[ /etc/openvpn/keys/ca-server.crt == *\(* ]]
2022-01-20 10:42:20,219: DEBUG - + [[ /etc/openvpn/keys/ca-server.crt == \n\u\l\l ]]
2022-01-20 10:42:20,219: DEBUG - + [[ file == \f\i\l\e ]]
2022-01-20 10:42:20,220: DEBUG - + [[ /etc/openvpn/keys/ca-server.crt == \s\e\t\t\i\n\g\s ]]
2022-01-20 10:42:20,223: DEBUG - +++ echo /etc/openvpn/keys/ca-server.crt
2022-01-20 10:42:20,225: DEBUG - +++ sed s@__FINALPATH__@@
2022-01-20 10:42:20,225: DEBUG - +++ sed s/__APP__/vpnclient/
2022-01-20 10:42:20,231: DEBUG - ++ ls /etc/openvpn/keys/ca-server.crt
2022-01-20 10:42:20,239: DEBUG - + old[$short_setting]=/etc/openvpn/keys/ca-server.crt
2022-01-20 10:42:20,240: DEBUG - + file_hash[$short_setting]=true
2022-01-20 10:42:20,240: DEBUG - + for line in $lines
2022-01-20 10:42:20,241: DEBUG - + IFS=';'
2022-01-20 10:42:20,241: DEBUG - + read short_setting type bind
2022-01-20 10:42:20,241: DEBUG - + binds[${short_setting}]=/etc/openvpn/keys/user.crt
2022-01-20 10:42:20,242: DEBUG - + types[${short_setting}]=file
2022-01-20 10:42:20,242: DEBUG - + file_hash[${short_setting}]=
2022-01-20 10:42:20,243: DEBUG - + formats[${short_setting}]=
2022-01-20 10:42:20,243: DEBUG - + ynh_app_config_get_one crt_client file /etc/openvpn/keys/user.crt
2022-01-20 10:42:20,243: DEBUG - + _ynh_app_config_get_one crt_client file /etc/openvpn/keys/user.crt
2022-01-20 10:42:20,244: DEBUG - + local short_setting=crt_client
2022-01-20 10:42:20,244: DEBUG - + local type=file
2022-01-20 10:42:20,244: DEBUG - + local bind=/etc/openvpn/keys/user.crt
2022-01-20 10:42:20,245: DEBUG - + local getter=get__crt_client
2022-01-20 10:42:20,245: DEBUG - + type -t get__crt_client
2022-01-20 10:42:20,245: DEBUG - + grep -q '^function$'
2022-01-20 10:42:20,246: DEBUG - + [[ /etc/openvpn/keys/user.crt == *\(* ]]
2022-01-20 10:42:20,246: DEBUG - + [[ /etc/openvpn/keys/user.crt == \n\u\l\l ]]
2022-01-20 10:42:20,247: DEBUG - + [[ file == \f\i\l\e ]]
2022-01-20 10:42:20,247: DEBUG - + [[ /etc/openvpn/keys/user.crt == \s\e\t\t\i\n\g\s ]]
2022-01-20 10:42:20,250: DEBUG - +++ echo /etc/openvpn/keys/user.crt
2022-01-20 10:42:20,251: DEBUG - +++ sed s@__FINALPATH__@@
2022-01-20 10:42:20,251: DEBUG - +++ sed s/__APP__/vpnclient/
2022-01-20 10:42:20,257: DEBUG - ++ ls /etc/openvpn/keys/user.crt
2022-01-20 10:42:20,263: DEBUG - ++ echo YNH_NULL
2022-01-20 10:42:20,264: DEBUG - + old[$short_setting]=YNH_NULL
2022-01-20 10:42:20,264: DEBUG - + file_hash[$short_setting]=true
2022-01-20 10:42:20,265: DEBUG - + for line in $lines
2022-01-20 10:42:20,265: DEBUG - + IFS=';'
2022-01-20 10:42:20,265: DEBUG - + read short_setting type bind
2022-01-20 10:42:20,266: DEBUG - + binds[${short_setting}]=/etc/openvpn/keys/user.key
2022-01-20 10:42:20,267: DEBUG - + types[${short_setting}]=file
2022-01-20 10:42:20,267: DEBUG - + file_hash[${short_setting}]=
2022-01-20 10:42:20,268: DEBUG - + formats[${short_setting}]=
2022-01-20 10:42:20,268: DEBUG - + ynh_app_config_get_one crt_client_key file /etc/openvpn/keys/user.key
2022-01-20 10:42:20,268: DEBUG - + _ynh_app_config_get_one crt_client_key file /etc/openvpn/keys/user.key
2022-01-20 10:42:20,269: DEBUG - + local short_setting=crt_client_key
2022-01-20 10:42:20,269: DEBUG - + local type=file
2022-01-20 10:42:20,269: DEBUG - + local bind=/etc/openvpn/keys/user.key
2022-01-20 10:42:20,270: DEBUG - + local getter=get__crt_client_key
2022-01-20 10:42:20,270: DEBUG - + type -t get__crt_client_key
2022-01-20 10:42:20,270: DEBUG - + grep -q '^function$'
2022-01-20 10:42:20,272: DEBUG - + [[ /etc/openvpn/keys/user.key == *\(* ]]
2022-01-20 10:42:20,273: DEBUG - + [[ /etc/openvpn/keys/user.key == \n\u\l\l ]]
2022-01-20 10:42:20,273: DEBUG - + [[ file == \f\i\l\e ]]
2022-01-20 10:42:20,273: DEBUG - + [[ /etc/openvpn/keys/user.key == \s\e\t\t\i\n\g\s ]]
2022-01-20 10:42:20,277: DEBUG - +++ echo /etc/openvpn/keys/user.key
2022-01-20 10:42:20,278: DEBUG - +++ sed s@__FINALPATH__@@
2022-01-20 10:42:20,278: DEBUG - +++ sed s/__APP__/vpnclient/
2022-01-20 10:42:20,286: DEBUG - ++ ls /etc/openvpn/keys/user.key
2022-01-20 10:42:20,292: DEBUG - ++ echo YNH_NULL
2022-01-20 10:42:20,296: DEBUG - + old[$short_setting]=YNH_NULL
2022-01-20 10:42:20,296: DEBUG - + file_hash[$short_setting]=true
2022-01-20 10:42:20,297: DEBUG - + for line in $lines
2022-01-20 10:42:20,298: DEBUG - + IFS=';'
2022-01-20 10:42:20,298: DEBUG - + read short_setting type bind
2022-01-20 10:42:20,299: DEBUG - + binds[${short_setting}]=settings
2022-01-20 10:42:20,299: DEBUG - + types[${short_setting}]=string
2022-01-20 10:42:20,300: DEBUG - + file_hash[${short_setting}]=
2022-01-20 10:42:20,300: DEBUG - + formats[${short_setting}]=
2022-01-20 10:42:20,301: DEBUG - + ynh_app_config_get_one login_user string settings
2022-01-20 10:42:20,301: DEBUG - + _ynh_app_config_get_one login_user string settings
2022-01-20 10:42:20,302: DEBUG - + local short_setting=login_user
2022-01-20 10:42:20,302: DEBUG - + local type=string
2022-01-20 10:42:20,302: DEBUG - + local bind=settings
2022-01-20 10:42:20,303: DEBUG - + local getter=get__login_user
2022-01-20 10:42:20,303: DEBUG - + type -t get__login_user
2022-01-20 10:42:20,304: DEBUG - + grep -q '^function$'
2022-01-20 10:42:20,304: DEBUG - ++ get__login_user
2022-01-20 10:42:20,305: DEBUG - ++ '[' -s /etc/openvpn/keys/credentials ']'
2022-01-20 10:42:20,305: DEBUG - ++ echo ''
2022-01-20 10:42:20,308: DEBUG - + old[$short_setting]=
2022-01-20 10:42:20,309: DEBUG - + formats[${short_setting}]=yaml
2022-01-20 10:42:20,309: DEBUG - + for line in $lines
2022-01-20 10:42:20,310: DEBUG - + IFS=';'
2022-01-20 10:42:20,310: DEBUG - + read short_setting type bind
2022-01-20 10:42:20,311: DEBUG - + binds[${short_setting}]=settings
2022-01-20 10:42:20,311: DEBUG - + types[${short_setting}]=password
2022-01-20 10:42:20,312: DEBUG - + file_hash[${short_setting}]=
2022-01-20 10:42:20,312: DEBUG - + formats[${short_setting}]=
2022-01-20 10:42:20,313: DEBUG - + ynh_app_config_get_one login_passphrase password settings
2022-01-20 10:42:20,313: DEBUG - + _ynh_app_config_get_one login_passphrase password settings
2022-01-20 10:42:20,314: DEBUG - + local short_setting=login_passphrase
2022-01-20 10:42:20,315: DEBUG - + local type=password
2022-01-20 10:42:20,315: DEBUG - + local bind=settings
2022-01-20 10:42:20,316: DEBUG - + local getter=get__login_passphrase
2022-01-20 10:42:20,316: DEBUG - + grep -q '^function$'
2022-01-20 10:42:20,317: DEBUG - + type -t get__login_passphrase
2022-01-20 10:42:20,318: DEBUG - ++ get__login_passphrase
2022-01-20 10:42:20,319: DEBUG - ++ '[' -s /etc/openvpn/keys/credentials ']'
2022-01-20 10:42:20,319: DEBUG - ++ echo ''
2022-01-20 10:42:20,320: DEBUG - + old[$short_setting]=
2022-01-20 10:42:20,320: DEBUG - + formats[${short_setting}]=yaml
2022-01-20 10:42:20,321: DEBUG - + for line in $lines
2022-01-20 10:42:20,322: DEBUG - + IFS=';'
2022-01-20 10:42:20,322: DEBUG - + read short_setting type bind
2022-01-20 10:42:20,323: DEBUG - + binds[${short_setting}]=/etc/openvpn/keys/user_ta.key
2022-01-20 10:42:20,323: DEBUG - + types[${short_setting}]=file
2022-01-20 10:42:20,324: DEBUG - + file_hash[${short_setting}]=
2022-01-20 10:42:20,324: DEBUG - + formats[${short_setting}]=
2022-01-20 10:42:20,325: DEBUG - + ynh_app_config_get_one crt_client_ta file /etc/openvpn/keys/user_ta.key
2022-01-20 10:42:20,325: DEBUG - + _ynh_app_config_get_one crt_client_ta file /etc/openvpn/keys/user_ta.key
2022-01-20 10:42:20,326: DEBUG - + local short_setting=crt_client_ta
2022-01-20 10:42:20,326: DEBUG - + local type=file
2022-01-20 10:42:20,327: DEBUG - + local bind=/etc/openvpn/keys/user_ta.key
2022-01-20 10:42:20,327: DEBUG - + local getter=get__crt_client_ta
2022-01-20 10:42:20,328: DEBUG - + type -t get__crt_client_ta
2022-01-20 10:42:20,328: DEBUG - + grep -q '^function$'
2022-01-20 10:42:20,331: DEBUG - + [[ /etc/openvpn/keys/user_ta.key == *\(* ]]
2022-01-20 10:42:20,332: DEBUG - + [[ /etc/openvpn/keys/user_ta.key == \n\u\l\l ]]
2022-01-20 10:42:20,332: DEBUG - + [[ file == \f\i\l\e ]]
2022-01-20 10:42:20,333: DEBUG - + [[ /etc/openvpn/keys/user_ta.key == \s\e\t\t\i\n\g\s ]]
2022-01-20 10:42:20,336: DEBUG - +++ echo /etc/openvpn/keys/user_ta.key
2022-01-20 10:42:20,337: DEBUG - +++ sed s@__FINALPATH__@@
2022-01-20 10:42:20,338: DEBUG - +++ sed s/__APP__/vpnclient/
2022-01-20 10:42:20,346: DEBUG - ++ ls /etc/openvpn/keys/user_ta.key
2022-01-20 10:42:20,351: DEBUG - ++ echo YNH_NULL
2022-01-20 10:42:20,352: DEBUG - + old[$short_setting]=YNH_NULL
2022-01-20 10:42:20,353: DEBUG - + file_hash[$short_setting]=true
2022-01-20 10:42:20,354: DEBUG - + for line in $lines
2022-01-20 10:42:20,354: DEBUG - + IFS=';'
2022-01-20 10:42:20,355: DEBUG - + read short_setting type bind
2022-01-20 10:42:20,356: DEBUG - + binds[${short_setting}]=settings
2022-01-20 10:42:20,356: DEBUG - + types[${short_setting}]=select
2022-01-20 10:42:20,357: DEBUG - + file_hash[${short_setting}]=
2022-01-20 10:42:20,357: DEBUG - + formats[${short_setting}]=
2022-01-20 10:42:20,358: DEBUG - + ynh_app_config_get_one dns_method select settings
2022-01-20 10:42:20,358: DEBUG - + _ynh_app_config_get_one dns_method select settings
2022-01-20 10:42:20,359: DEBUG - + local short_setting=dns_method
2022-01-20 10:42:20,359: DEBUG - + local type=select
2022-01-20 10:42:20,360: DEBUG - + local bind=settings
2022-01-20 10:42:20,361: DEBUG - + local getter=get__dns_method
2022-01-20 10:42:20,362: DEBUG - + type -t get__dns_method
2022-01-20 10:42:20,363: DEBUG - + grep -q '^function$'
2022-01-20 10:42:20,363: DEBUG - + [[ settings == *\(* ]]
2022-01-20 10:42:20,364: DEBUG - + [[ settings == \n\u\l\l ]]
2022-01-20 10:42:20,364: DEBUG - + [[ select == \f\i\l\e ]]
2022-01-20 10:42:20,365: DEBUG - + [[ select == \t\e\x\t ]]
2022-01-20 10:42:20,365: DEBUG - + local bind_after=
2022-01-20 10:42:20,366: DEBUG - + [[ settings == \s\e\t\t\i\n\g\s ]]
2022-01-20 10:42:20,366: DEBUG - + bind=:/etc/yunohost/apps/vpnclient/settings.yml
2022-01-20 10:42:20,368: DEBUG - ++ echo :/etc/yunohost/apps/vpnclient/settings.yml
2022-01-20 10:42:20,369: DEBUG - ++ cut -d: -f1
2022-01-20 10:42:20,374: DEBUG - + local bind_key_=
2022-01-20 10:42:20,375: DEBUG - + bind_key_=dns_method
2022-01-20 10:42:20,375: DEBUG - + [[ dns_method == *\>* ]]
2022-01-20 10:42:20,378: DEBUG - ++ echo :/etc/yunohost/apps/vpnclient/settings.yml
2022-01-20 10:42:20,379: DEBUG - ++ cut -d: -f2
2022-01-20 10:42:20,381: DEBUG - ++ sed s@__FINALPATH__@@
2022-01-20 10:42:20,383: DEBUG - ++ sed s/__APP__/vpnclient/
2022-01-20 10:42:20,391: DEBUG - + local bind_file=/etc/yunohost/apps/vpnclient/settings.yml
2022-01-20 10:42:20,392: DEBUG - ++ ynh_read_var_in_file --file=/etc/yunohost/apps/vpnclient/settings.yml --key=dns_method --after=
2022-01-20 10:42:20,642: DEBUG - ++ after=
2022-01-20 10:42:20,642: DEBUG - ++ [[ -f /etc/yunohost/apps/vpnclient/settings.yml ]]
2022-01-20 10:42:20,671: DEBUG - + old[$short_setting]=yunohost
2022-01-20 10:42:20,672: DEBUG - + for line in $lines
2022-01-20 10:42:20,673: DEBUG - + IFS=';'
2022-01-20 10:42:20,674: DEBUG - + read short_setting type bind
2022-01-20 10:42:20,675: DEBUG - + binds[${short_setting}]=settings
2022-01-20 10:42:20,675: DEBUG - + types[${short_setting}]=tags
2022-01-20 10:42:20,676: DEBUG - + file_hash[${short_setting}]=
2022-01-20 10:42:20,676: DEBUG - + formats[${short_setting}]=
2022-01-20 10:42:20,677: DEBUG - + ynh_app_config_get_one nameservers tags settings
2022-01-20 10:42:20,677: DEBUG - + _ynh_app_config_get_one nameservers tags settings
2022-01-20 10:42:20,678: DEBUG - + local short_setting=nameservers
2022-01-20 10:42:20,679: DEBUG - + local type=tags
2022-01-20 10:42:20,679: DEBUG - + local bind=settings
2022-01-20 10:42:20,679: DEBUG - + local getter=get__nameservers
2022-01-20 10:42:20,680: DEBUG - + type -t get__nameservers
2022-01-20 10:42:20,680: DEBUG - + grep -q '^function$'
2022-01-20 10:42:20,681: DEBUG - + [[ settings == *\(* ]]
2022-01-20 10:42:20,682: DEBUG - + [[ settings == \n\u\l\l ]]
2022-01-20 10:42:20,683: DEBUG - + [[ tags == \f\i\l\e ]]
2022-01-20 10:42:20,683: DEBUG - + [[ tags == \t\e\x\t ]]
2022-01-20 10:42:20,683: DEBUG - + local bind_after=
2022-01-20 10:42:20,684: DEBUG - + [[ settings == \s\e\t\t\i\n\g\s ]]
2022-01-20 10:42:20,684: DEBUG - + bind=:/etc/yunohost/apps/vpnclient/settings.yml
2022-01-20 10:42:20,685: DEBUG - ++ echo :/etc/yunohost/apps/vpnclient/settings.yml
2022-01-20 10:42:20,686: DEBUG - ++ cut -d: -f1
2022-01-20 10:42:20,691: DEBUG - + local bind_key_=
2022-01-20 10:42:20,692: DEBUG - + bind_key_=nameservers
2022-01-20 10:42:20,692: DEBUG - + [[ nameservers == *\>* ]]
2022-01-20 10:42:20,695: DEBUG - ++ echo :/etc/yunohost/apps/vpnclient/settings.yml
2022-01-20 10:42:20,696: DEBUG - ++ cut -d: -f2
2022-01-20 10:42:20,697: DEBUG - ++ sed s@__FINALPATH__@@
2022-01-20 10:42:20,698: DEBUG - ++ sed s/__APP__/vpnclient/
2022-01-20 10:42:20,705: DEBUG - + local bind_file=/etc/yunohost/apps/vpnclient/settings.yml
2022-01-20 10:42:20,707: DEBUG - ++ ynh_read_var_in_file --file=/etc/yunohost/apps/vpnclient/settings.yml --key=nameservers --after=
2022-01-20 10:42:20,946: DEBUG - ++ after=
2022-01-20 10:42:20,947: DEBUG - ++ [[ -f /etc/yunohost/apps/vpnclient/settings.yml ]]
2022-01-20 10:42:20,984: DEBUG - + old[$short_setting]=
2022-01-20 10:42:20,985: DEBUG - + for line in $lines
2022-01-20 10:42:20,986: DEBUG - + IFS=';'
2022-01-20 10:42:20,986: DEBUG - + read short_setting type bind
2022-01-20 10:42:20,987: DEBUG - + binds[${short_setting}]=settings
2022-01-20 10:42:20,987: DEBUG - + types[${short_setting}]=string
2022-01-20 10:42:20,988: DEBUG - + file_hash[${short_setting}]=
2022-01-20 10:42:20,988: DEBUG - + formats[${short_setting}]=
2022-01-20 10:42:20,988: DEBUG - + ynh_app_config_get_one ip6_net string settings
2022-01-20 10:42:20,989: DEBUG - + _ynh_app_config_get_one ip6_net string settings
2022-01-20 10:42:20,989: DEBUG - + local short_setting=ip6_net
2022-01-20 10:42:20,989: DEBUG - + local type=string
2022-01-20 10:42:20,990: DEBUG - + local bind=settings
2022-01-20 10:42:20,990: DEBUG - + local getter=get__ip6_net
2022-01-20 10:42:20,990: DEBUG - + type -t get__ip6_net
2022-01-20 10:42:20,991: DEBUG - + grep -q '^function$'
2022-01-20 10:42:20,993: DEBUG - + [[ settings == *\(* ]]
2022-01-20 10:42:20,993: DEBUG - + [[ settings == \n\u\l\l ]]
2022-01-20 10:42:20,994: DEBUG - + [[ string == \f\i\l\e ]]
2022-01-20 10:42:20,994: DEBUG - + [[ string == \t\e\x\t ]]
2022-01-20 10:42:20,995: DEBUG - + local bind_after=
2022-01-20 10:42:20,995: DEBUG - + [[ settings == \s\e\t\t\i\n\g\s ]]
2022-01-20 10:42:20,995: DEBUG - + bind=:/etc/yunohost/apps/vpnclient/settings.yml
2022-01-20 10:42:20,996: DEBUG - ++ echo :/etc/yunohost/apps/vpnclient/settings.yml
2022-01-20 10:42:20,997: DEBUG - ++ cut -d: -f1
2022-01-20 10:42:21,002: DEBUG - + local bind_key_=
2022-01-20 10:42:21,002: DEBUG - + bind_key_=ip6_net
2022-01-20 10:42:21,002: DEBUG - + [[ ip6_net == *\>* ]]
2022-01-20 10:42:21,005: DEBUG - ++ echo :/etc/yunohost/apps/vpnclient/settings.yml
2022-01-20 10:42:21,006: DEBUG - ++ cut -d: -f2
2022-01-20 10:42:21,007: DEBUG - ++ sed s@__FINALPATH__@@
2022-01-20 10:42:21,007: DEBUG - ++ sed s/__APP__/vpnclient/
2022-01-20 10:42:21,013: DEBUG - + local bind_file=/etc/yunohost/apps/vpnclient/settings.yml
2022-01-20 10:42:21,015: DEBUG - ++ ynh_read_var_in_file --file=/etc/yunohost/apps/vpnclient/settings.yml --key=ip6_net --after=
2022-01-20 10:42:21,214: DEBUG - ++ after=
2022-01-20 10:42:21,215: DEBUG - ++ [[ -f /etc/yunohost/apps/vpnclient/settings.yml ]]
2022-01-20 10:42:21,250: DEBUG - + old[$short_setting]=
2022-01-20 10:42:21,251: DEBUG - + for line in $lines
2022-01-20 10:42:21,252: DEBUG - + IFS=';'
2022-01-20 10:42:21,252: DEBUG - + read short_setting type bind
2022-01-20 10:42:21,253: DEBUG - + binds[${short_setting}]=settings
2022-01-20 10:42:21,253: DEBUG - + types[${short_setting}]=string
2022-01-20 10:42:21,254: DEBUG - + file_hash[${short_setting}]=
2022-01-20 10:42:21,254: DEBUG - + formats[${short_setting}]=
2022-01-20 10:42:21,254: DEBUG - + ynh_app_config_get_one ip6_addr string settings
2022-01-20 10:42:21,255: DEBUG - + _ynh_app_config_get_one ip6_addr string settings
2022-01-20 10:42:21,255: DEBUG - + local short_setting=ip6_addr
2022-01-20 10:42:21,255: DEBUG - + local type=string
2022-01-20 10:42:21,256: DEBUG - + local bind=settings
2022-01-20 10:42:21,256: DEBUG - + local getter=get__ip6_addr
2022-01-20 10:42:21,256: DEBUG - + type -t get__ip6_addr
2022-01-20 10:42:21,257: DEBUG - + grep -q '^function$'
2022-01-20 10:42:21,259: DEBUG - + [[ settings == *\(* ]]
2022-01-20 10:42:21,259: DEBUG - + [[ settings == \n\u\l\l ]]
2022-01-20 10:42:21,260: DEBUG - + [[ string == \f\i\l\e ]]
2022-01-20 10:42:21,260: DEBUG - + [[ string == \t\e\x\t ]]
2022-01-20 10:42:21,260: DEBUG - + local bind_after=
2022-01-20 10:42:21,261: DEBUG - + [[ settings == \s\e\t\t\i\n\g\s ]]
2022-01-20 10:42:21,261: DEBUG - + bind=:/etc/yunohost/apps/vpnclient/settings.yml
2022-01-20 10:42:21,262: DEBUG - ++ echo :/etc/yunohost/apps/vpnclient/settings.yml
2022-01-20 10:42:21,262: DEBUG - ++ cut -d: -f1
2022-01-20 10:42:21,267: DEBUG - + local bind_key_=
2022-01-20 10:42:21,268: DEBUG - + bind_key_=ip6_addr
2022-01-20 10:42:21,268: DEBUG - + [[ ip6_addr == *\>* ]]
2022-01-20 10:42:21,270: DEBUG - ++ echo :/etc/yunohost/apps/vpnclient/settings.yml
2022-01-20 10:42:21,272: DEBUG - ++ cut -d: -f2
2022-01-20 10:42:21,272: DEBUG - ++ sed s@__FINALPATH__@@
2022-01-20 10:42:21,273: DEBUG - ++ sed s/__APP__/vpnclient/
2022-01-20 10:42:21,279: DEBUG - + local bind_file=/etc/yunohost/apps/vpnclient/settings.yml
2022-01-20 10:42:21,281: DEBUG - ++ ynh_read_var_in_file --file=/etc/yunohost/apps/vpnclient/settings.yml --key=ip6_addr --after=
2022-01-20 10:42:21,481: DEBUG - ++ after=
2022-01-20 10:42:21,481: DEBUG - ++ [[ -f /etc/yunohost/apps/vpnclient/settings.yml ]]
2022-01-20 10:42:21,517: DEBUG - + old[$short_setting]=
2022-01-20 10:42:21,517: DEBUG - + ynh_app_config_validate
2022-01-20 10:42:21,518: DEBUG - + '[' -z x ']'
2022-01-20 10:42:21,518: DEBUG - + '[' -f /tmp/ynh_filequestion_h8jrzbd1/tmpaw6mlgdm ']'
2022-01-20 10:42:21,520: DEBUG - ++ cat /tmp/ynh_filequestion_h8jrzbd1/tmpaw6mlgdm
2022-01-20 10:42:21,522: DEBUG - ++ tr -d ' '
2022-01-20 10:42:21,522: DEBUG - ++ grep -v '^$'
2022-01-20 10:42:21,523: DEBUG - ++ head -c1
2022-01-20 10:42:21,529: DEBUG - + [[ # == \{ ]]
2022-01-20 10:42:21,530: DEBUG - + '[' -f /tmp/ynh_filequestion_h8jrzbd1/tmpaw6mlgdm ']'
2022-01-20 10:42:21,531: DEBUG - ++ dirname /tmp/ynh_filequestion_h8jrzbd1/tmpaw6mlgdm
2022-01-20 10:42:21,535: DEBUG - + tmp_dir=/tmp/ynh_filequestion_h8jrzbd1
2022-01-20 10:42:21,535: DEBUG - + ynh_print_info '--message=Extracting TLS keys from .ovpn file'
2022-01-20 10:42:21,567: DEBUG - + grep -q '^\s*<ca>' /tmp/ynh_filequestion_h8jrzbd1/tmpaw6mlgdm
2022-01-20 10:42:21,567: INFO - Extracting TLS keys from .ovpn file
2022-01-20 10:42:21,574: DEBUG - + grep -Poz '(?<=<ca>)(.*\n)*.*(?=</ca>)' /tmp/ynh_filequestion_h8jrzbd1/tmpaw6mlgdm
2022-01-20 10:42:21,576: DEBUG - + sed '/^$/d'
2022-01-20 10:42:21,585: DEBUG - + crt_server_ca=/tmp/ynh_filequestion_h8jrzbd1/crt_server_ca
2022-01-20 10:42:21,586: DEBUG - + sed -i '/^\s*<ca>/,/\s*<\/ca>/d' /tmp/ynh_filequestion_h8jrzbd1/tmpaw6mlgdm
2022-01-20 10:42:21,595: DEBUG - + sed -i '/^\s*ca\s/d' /tmp/ynh_filequestion_h8jrzbd1/tmpaw6mlgdm
2022-01-20 10:42:21,604: DEBUG - + grep -q '^\s*<cert>' /tmp/ynh_filequestion_h8jrzbd1/tmpaw6mlgdm
2022-01-20 10:42:21,611: DEBUG - + grep -q '^\s*cert\s' /tmp/ynh_filequestion_h8jrzbd1/tmpaw6mlgdm
2022-01-20 10:42:21,618: DEBUG - + crt_client=
2022-01-20 10:42:21,619: DEBUG - + grep -q '^\s*<key>' /tmp/ynh_filequestion_h8jrzbd1/tmpaw6mlgdm
2022-01-20 10:42:21,625: DEBUG - + grep -q '^\s*key\s' /tmp/ynh_filequestion_h8jrzbd1/tmpaw6mlgdm
2022-01-20 10:42:21,633: DEBUG - + crt_client_key=
2022-01-20 10:42:21,634: DEBUG - + grep -q '^\s*<tls-auth>' /tmp/ynh_filequestion_h8jrzbd1/tmpaw6mlgdm
2022-01-20 10:42:21,640: DEBUG - + grep -q '^\s*tls-auth\s' /tmp/ynh_filequestion_h8jrzbd1/tmpaw6mlgdm
2022-01-20 10:42:21,647: DEBUG - + crt_client_ta=
2022-01-20 10:42:21,648: DEBUG - + sed -i 's@^\s*ca\s.*$@ca /etc/openvpn/keys/ca-server.crt@g' /tmp/ynh_filequestion_h8jrzbd1/tmpaw6mlgdm
2022-01-20 10:42:21,656: DEBUG - + sed -i 's@^\s*cert\s.*$@cert /etc/openvpn/keys/user.crt@g' /tmp/ynh_filequestion_h8jrzbd1/tmpaw6mlgdm
2022-01-20 10:42:21,672: DEBUG - + sed -i 's@^\s*key\s.*$@key /etc/openvpn/keys/user.key@g' /tmp/ynh_filequestion_h8jrzbd1/tmpaw6mlgdm
2022-01-20 10:42:21,709: DEBUG - + sed -i 's@^\s*tls-auth\s.*$@tls-auth /etc/openvpn/keys/user-ta.key@g' /tmp/ynh_filequestion_h8jrzbd1/tmpaw6mlgdm
2022-01-20 10:42:21,718: DEBUG - + '[' -f /tmp/ynh_filequestion_h8jrzbd1/tmpaw6mlgdm ']'
2022-01-20 10:42:21,719: DEBUG - + sed -i '/^\s*user\s/d' /tmp/ynh_filequestion_h8jrzbd1/tmpaw6mlgdm
2022-01-20 10:42:21,727: DEBUG - + sed -i '/^\s*group\s/d' /tmp/ynh_filequestion_h8jrzbd1/tmpaw6mlgdm
2022-01-20 10:42:21,735: DEBUG - + _ynh_app_config_validate
2022-01-20 10:42:22,089: INFO - [#####+++++..........] > Checking what changed in the new configuration...
2022-01-20 10:42:22,093: DEBUG - + local nothing_changed=true
2022-01-20 10:42:22,094: DEBUG - + local changes_validated=true
2022-01-20 10:42:22,094: DEBUG - + for short_setting in "${!old[@]}"
2022-01-20 10:42:22,095: DEBUG - + changed[$short_setting]=false
2022-01-20 10:42:22,096: DEBUG - + '[' -z ']'
2022-01-20 10:42:22,097: DEBUG - + declare -g ip6_net=
2022-01-20 10:42:22,097: DEBUG - + continue
2022-01-20 10:42:22,098: DEBUG - + for short_setting in "${!old[@]}"
2022-01-20 10:42:22,098: DEBUG - + changed[$short_setting]=false
2022-01-20 10:42:22,099: DEBUG - + '[' -z ']'
2022-01-20 10:42:22,100: DEBUG - + declare -g login_passphrase=
2022-01-20 10:42:22,100: DEBUG - + continue
2022-01-20 10:42:22,101: DEBUG - + for short_setting in "${!old[@]}"
2022-01-20 10:42:22,102: DEBUG - + changed[$short_setting]=false
2022-01-20 10:42:22,102: DEBUG - + '[' -z x ']'
2022-01-20 10:42:22,103: DEBUG - + '[' '!' -z true ']'
2022-01-20 10:42:22,103: DEBUG - + file_hash[old__$short_setting]=
2022-01-20 10:42:22,104: DEBUG - + file_hash[new__$short_setting]=
2022-01-20 10:42:22,104: DEBUG - + '[' -f YNH_NULL ']'
2022-01-20 10:42:22,105: DEBUG - + '[' -f '' ']'
2022-01-20 10:42:22,105: DEBUG - + for short_setting in "${!old[@]}"
2022-01-20 10:42:22,106: DEBUG - + changed[$short_setting]=false
2022-01-20 10:42:22,107: DEBUG - + '[' -z x ']'
2022-01-20 10:42:22,107: DEBUG - + '[' '!' -z true ']'
2022-01-20 10:42:22,108: DEBUG - + file_hash[old__$short_setting]=
2022-01-20 10:42:22,108: DEBUG - + file_hash[new__$short_setting]=
2022-01-20 10:42:22,109: DEBUG - + '[' -f /etc/openvpn/client.conf ']'
2022-01-20 10:42:22,109: DEBUG - ++ sha256sum /etc/openvpn/client.conf
2022-01-20 10:42:22,110: DEBUG - ++ cut '-d ' -f1
2022-01-20 10:42:22,111: DEBUG - + file_hash[old__$short_setting]=6becc63fdc44707671e66c71e6d5447b102eb5f337abb75ba913f4d2af819141
2022-01-20 10:42:22,112: DEBUG - + '[' -z /tmp/ynh_filequestion_h8jrzbd1/tmpaw6mlgdm ']'
2022-01-20 10:42:22,112: DEBUG - + '[' -f /tmp/ynh_filequestion_h8jrzbd1/tmpaw6mlgdm ']'
2022-01-20 10:42:22,113: DEBUG - ++ sha256sum /tmp/ynh_filequestion_h8jrzbd1/tmpaw6mlgdm
2022-01-20 10:42:22,114: DEBUG - ++ cut '-d ' -f1
2022-01-20 10:42:22,120: DEBUG - + file_hash[new__$short_setting]=d2df24c2f159dc79627356900c55df8fb2be13935d978eb19ef4ecfd1336cac7
2022-01-20 10:42:22,122: DEBUG - + [[ 6becc63fdc44707671e66c71e6d5447b102eb5f337abb75ba913f4d2af819141 != \d\2\d\f\2\4\c\2\f\1\5\9\d\c\7\9\6\2\7\3\5\6\9\0\0\c\5\5\d\f\8\f\b\2\b\e\1\3\9\3\5\d\9\7\8\e\b\1\9\e\f\4\e\c\f\d\1\3\3\6\c\a\c\7 ]]
2022-01-20 10:42:22,123: DEBUG - + changed[$short_setting]=true
2022-01-20 10:42:22,123: DEBUG - + nothing_changed=false
2022-01-20 10:42:22,124: DEBUG - + for short_setting in "${!old[@]}"
2022-01-20 10:42:22,124: DEBUG - + changed[$short_setting]=false
2022-01-20 10:42:22,125: DEBUG - + '[' -z ']'
2022-01-20 10:42:22,126: DEBUG - + declare -g doc=YNH_NULL
2022-01-20 10:42:22,126: DEBUG - + continue
2022-01-20 10:42:22,127: DEBUG - + for short_setting in "${!old[@]}"
2022-01-20 10:42:22,128: DEBUG - + changed[$short_setting]=false
2022-01-20 10:42:22,128: DEBUG - + '[' -z ']'
2022-01-20 10:42:22,129: DEBUG - + declare -g nameservers=
2022-01-20 10:42:22,129: DEBUG - + continue
2022-01-20 10:42:22,130: DEBUG - + for short_setting in "${!old[@]}"
2022-01-20 10:42:22,130: DEBUG - + changed[$short_setting]=false
2022-01-20 10:42:22,131: DEBUG - + '[' -z x ']'
2022-01-20 10:42:22,132: DEBUG - + '[' '!' -z '' ']'
2022-01-20 10:42:22,133: DEBUG - + [[ 1 != \1 ]]
2022-01-20 10:42:22,133: DEBUG - + for short_setting in "${!old[@]}"
2022-01-20 10:42:22,134: DEBUG - + changed[$short_setting]=false
2022-01-20 10:42:22,134: DEBUG - + '[' -z x ']'
2022-01-20 10:42:22,135: DEBUG - + '[' '!' -z true ']'
2022-01-20 10:42:22,135: DEBUG - + file_hash[old__$short_setting]=
2022-01-20 10:42:22,136: DEBUG - + file_hash[new__$short_setting]=
2022-01-20 10:42:22,136: DEBUG - + '[' -f YNH_NULL ']'
2022-01-20 10:42:22,137: DEBUG - + '[' -f '' ']'
2022-01-20 10:42:22,137: DEBUG - + for short_setting in "${!old[@]}"
2022-01-20 10:42:22,138: DEBUG - + changed[$short_setting]=false
2022-01-20 10:42:22,139: DEBUG - + '[' -z ']'
2022-01-20 10:42:22,139: DEBUG - + declare -g login_user=
2022-01-20 10:42:22,140: DEBUG - + continue
2022-01-20 10:42:22,140: DEBUG - + for short_setting in "${!old[@]}"
2022-01-20 10:42:22,141: DEBUG - + changed[$short_setting]=false
2022-01-20 10:42:22,142: DEBUG - + '[' -z x ']'
2022-01-20 10:42:22,142: DEBUG - + '[' '!' -z true ']'
2022-01-20 10:42:22,143: DEBUG - + file_hash[old__$short_setting]=
2022-01-20 10:42:22,144: DEBUG - + file_hash[new__$short_setting]=
2022-01-20 10:42:22,144: DEBUG - + '[' -f /etc/openvpn/keys/ca-server.crt ']'
2022-01-20 10:42:22,145: DEBUG - ++ sha256sum /etc/openvpn/keys/ca-server.crt
2022-01-20 10:42:22,145: DEBUG - ++ cut '-d ' -f1
2022-01-20 10:42:22,146: DEBUG - + file_hash[old__$short_setting]=53eaf095c115dfb095a01af51c5a3ac94490f447010bfb43dedf3630d07f2c14
2022-01-20 10:42:22,147: DEBUG - + '[' -z /tmp/ynh_filequestion_h8jrzbd1/crt_server_ca ']'
2022-01-20 10:42:22,147: DEBUG - + '[' -f /tmp/ynh_filequestion_h8jrzbd1/crt_server_ca ']'
2022-01-20 10:42:22,148: DEBUG - ++ sha256sum /tmp/ynh_filequestion_h8jrzbd1/crt_server_ca
2022-01-20 10:42:22,148: DEBUG - ++ cut '-d ' -f1
2022-01-20 10:42:22,151: DEBUG - + file_hash[new__$short_setting]=53eaf095c115dfb095a01af51c5a3ac94490f447010bfb43dedf3630d07f2c14
2022-01-20 10:42:22,152: DEBUG - + [[ 53eaf095c115dfb095a01af51c5a3ac94490f447010bfb43dedf3630d07f2c14 != \5\3\e\a\f\0\9\5\c\1\1\5\d\f\b\0\9\5\a\0\1\a\f\5\1\c\5\a\3\a\c\9\4\4\9\0\f\4\4\7\0\1\0\b\f\b\4\3\d\e\d\f\3\6\3\0\d\0\7\f\2\c\1\4 ]]
2022-01-20 10:42:22,154: DEBUG - + for short_setting in "${!old[@]}"
2022-01-20 10:42:22,154: DEBUG - + changed[$short_setting]=false
2022-01-20 10:42:22,155: DEBUG - + '[' -z ']'
2022-01-20 10:42:22,155: DEBUG - + declare -g dns_method=yunohost
2022-01-20 10:42:22,156: DEBUG - + continue
2022-01-20 10:42:22,156: DEBUG - + for short_setting in "${!old[@]}"
2022-01-20 10:42:22,157: DEBUG - + changed[$short_setting]=false
2022-01-20 10:42:22,157: DEBUG - + '[' -z x ']'
2022-01-20 10:42:22,158: DEBUG - + '[' '!' -z true ']'
2022-01-20 10:42:22,158: DEBUG - + file_hash[old__$short_setting]=
2022-01-20 10:42:22,159: DEBUG - + file_hash[new__$short_setting]=
2022-01-20 10:42:22,159: DEBUG - + '[' -f YNH_NULL ']'
2022-01-20 10:42:22,160: DEBUG - + '[' -f '' ']'
2022-01-20 10:42:22,160: DEBUG - + for short_setting in "${!old[@]}"
2022-01-20 10:42:22,161: DEBUG - + changed[$short_setting]=false
2022-01-20 10:42:22,161: DEBUG - + '[' -z ']'
2022-01-20 10:42:22,161: DEBUG - + declare -g 'status=style: danger
2022-01-20 10:42:22,162: DEBUG - ask:
2022-01-20 10:42:22,162: DEBUG -   en: |-
2022-01-20 10:42:22,163: DEBUG -     The VPN is down ! Here are errors logged in the last few minutes
2022-01-20 10:42:22,163: DEBUG -     ```
2022-01-20 10:42:22,164: DEBUG -     [ OK ] Settings retrieved
2022-01-20 10:42:22,165: DEBUG -     [WARN] Service is disabled, not starting it
2022-01-20 10:42:22,165: DEBUG -     Started YunoHost VPN Client..
2022-01-20 10:42:22,166: DEBUG -     Stopping YunoHost VPN Client....
2022-01-20 10:42:22,166: DEBUG -     [INFO] Retrieving Yunohost settings...
2022-01-20 10:42:22,167: DEBUG -     [ OK ] Settings retrieved
2022-01-20 10:42:22,168: DEBUG -     [INFO] [vpnclient] Stopping...
2022-01-20 10:42:22,168: DEBUG -     [INFO] Removing custom DNS resolvers from vpnclient
2022-01-20 10:42:22,169: DEBUG -     ynh-vpnclient.service: Succeeded.
2022-01-20 10:42:22,169: DEBUG -     Stopped YunoHost VPN Client..
2022-01-20 10:42:22,170: DEBUG -     Starting YunoHost VPN Client....
2022-01-20 10:42:22,170: DEBUG -     [INFO] Retrieving Yunohost settings...
2022-01-20 10:42:22,171: DEBUG -     [ OK ] Settings retrieved
2022-01-20 10:42:22,171: DEBUG -     [WARN] Service is disabled, not starting it
2022-01-20 10:42:22,172: DEBUG -     Started YunoHost VPN Client..
2022-01-20 10:42:22,173: DEBUG -     ```'
2022-01-20 10:42:22,173: DEBUG - + continue
2022-01-20 10:42:22,173: DEBUG - + for short_setting in "${!old[@]}"
2022-01-20 10:42:22,174: DEBUG - + changed[$short_setting]=false
2022-01-20 10:42:22,174: DEBUG - + '[' -z ']'
2022-01-20 10:42:22,174: DEBUG - + declare -g ip6_addr=
2022-01-20 10:42:22,175: DEBUG - + continue
2022-01-20 10:42:22,175: DEBUG - + [[ false == \t\r\u\e ]]
2022-01-20 10:42:22,391: DEBUG - + for short_setting in "${!old[@]}"
2022-01-20 10:42:22,392: DEBUG - + [[ false == \f\a\l\s\e ]]
2022-01-20 10:42:22,392: DEBUG - + continue
2022-01-20 10:42:22,393: DEBUG - + for short_setting in "${!old[@]}"
2022-01-20 10:42:22,393: DEBUG - + [[ false == \f\a\l\s\e ]]
2022-01-20 10:42:22,394: DEBUG - + continue
2022-01-20 10:42:22,394: DEBUG - + for short_setting in "${!old[@]}"
2022-01-20 10:42:22,394: DEBUG - + [[ false == \f\a\l\s\e ]]
2022-01-20 10:42:22,394: DEBUG - + continue
2022-01-20 10:42:22,395: DEBUG - + for short_setting in "${!old[@]}"
2022-01-20 10:42:22,395: DEBUG - + [[ true == \f\a\l\s\e ]]
2022-01-20 10:42:22,395: DEBUG - + local result=
2022-01-20 10:42:22,396: INFO - [##########+++++.....] > Validating the new configuration...
2022-01-20 10:42:22,397: DEBUG - + type -t validate__config_file
2022-01-20 10:42:22,397: DEBUG - + grep -q '^function$'
2022-01-20 10:42:22,398: DEBUG - + [[ settings == *\(* ]]
2022-01-20 10:42:22,399: DEBUG - + '[' -n '' ']'
2022-01-20 10:42:22,400: DEBUG - + for short_setting in "${!old[@]}"
2022-01-20 10:42:22,400: DEBUG - + [[ false == \f\a\l\s\e ]]
2022-01-20 10:42:22,401: DEBUG - + continue
2022-01-20 10:42:22,401: DEBUG - + for short_setting in "${!old[@]}"
2022-01-20 10:42:22,401: DEBUG - + [[ false == \f\a\l\s\e ]]
2022-01-20 10:42:22,402: DEBUG - + continue
2022-01-20 10:42:22,402: DEBUG - + for short_setting in "${!old[@]}"
2022-01-20 10:42:22,402: DEBUG - + [[ false == \f\a\l\s\e ]]
2022-01-20 10:42:22,403: DEBUG - + continue
2022-01-20 10:42:22,403: DEBUG - + for short_setting in "${!old[@]}"
2022-01-20 10:42:22,403: DEBUG - + [[ false == \f\a\l\s\e ]]
2022-01-20 10:42:22,404: DEBUG - + continue
2022-01-20 10:42:22,404: DEBUG - + for short_setting in "${!old[@]}"
2022-01-20 10:42:22,404: DEBUG - + [[ false == \f\a\l\s\e ]]
2022-01-20 10:42:22,405: DEBUG - + continue
2022-01-20 10:42:22,405: DEBUG - + for short_setting in "${!old[@]}"
2022-01-20 10:42:22,406: DEBUG - + [[ false == \f\a\l\s\e ]]
2022-01-20 10:42:22,407: DEBUG - + continue
2022-01-20 10:42:22,407: DEBUG - + for short_setting in "${!old[@]}"
2022-01-20 10:42:22,407: DEBUG - + [[ false == \f\a\l\s\e ]]
2022-01-20 10:42:22,408: DEBUG - + continue
2022-01-20 10:42:22,408: DEBUG - + for short_setting in "${!old[@]}"
2022-01-20 10:42:22,408: DEBUG - + [[ false == \f\a\l\s\e ]]
2022-01-20 10:42:22,409: DEBUG - + continue
2022-01-20 10:42:22,409: DEBUG - + for short_setting in "${!old[@]}"
2022-01-20 10:42:22,410: DEBUG - + [[ false == \f\a\l\s\e ]]
2022-01-20 10:42:22,410: DEBUG - + continue
2022-01-20 10:42:22,410: DEBUG - + for short_setting in "${!old[@]}"
2022-01-20 10:42:22,411: DEBUG - + [[ false == \f\a\l\s\e ]]
2022-01-20 10:42:22,411: DEBUG - + continue
2022-01-20 10:42:22,411: DEBUG - + [[ true == \f\a\l\s\e ]]
2022-01-20 10:42:22,562: DEBUG - + ynh_app_config_apply
2022-01-20 10:42:22,563: DEBUG - + ynh_print_info '--message=Stopping vpnclient in order to edit files'
2022-01-20 10:42:22,565: INFO - [###############+++++] > Applying the new configuration...
2022-01-20 10:42:22,598: DEBUG - + touch /tmp/.ynh-vpnclient-stopped
2022-01-20 10:42:22,598: INFO - Stopping vpnclient in order to edit files
2022-01-20 10:42:22,601: DEBUG - + /usr/local/bin/ynh-vpnclient stop
2022-01-20 10:42:22,626: DEBUG - [INFO] Retrieving Yunohost settings...
2022-01-20 10:42:22,754: DEBUG - [ OK ] Settings retrieved
2022-01-20 10:42:22,762: DEBUG - [INFO] [vpnclient] Stopping...
2022-01-20 10:42:22,786: DEBUG - [INFO] Removing custom DNS resolvers from vpnclient
2022-01-20 10:42:22,810: DEBUG - + chown vpnclient:vpnclient /etc/openvpn/keys
2022-01-20 10:42:22,819: DEBUG - + chmod go=--- /etc/openvpn/keys
2022-01-20 10:42:22,823: DEBUG - + _ynh_app_config_apply
2022-01-20 10:42:22,824: DEBUG - + for short_setting in "${!old[@]}"
2022-01-20 10:42:22,824: DEBUG - + ynh_app_config_apply_one ip6_net
2022-01-20 10:42:22,825: DEBUG - + _ynh_app_config_apply_one ip6_net
2022-01-20 10:42:22,825: DEBUG - + local short_setting=ip6_net
2022-01-20 10:42:22,825: DEBUG - + local setter=set__ip6_net
2022-01-20 10:42:22,826: DEBUG - + local bind=settings
2022-01-20 10:42:22,827: DEBUG - + local type=string
2022-01-20 10:42:22,827: DEBUG - + '[' false == true ']'
2022-01-20 10:42:22,828: DEBUG - + for short_setting in "${!old[@]}"
2022-01-20 10:42:22,828: DEBUG - + ynh_app_config_apply_one login_passphrase
2022-01-20 10:42:22,828: DEBUG - + _ynh_app_config_apply_one login_passphrase
2022-01-20 10:42:22,829: DEBUG - + local short_setting=login_passphrase
2022-01-20 10:42:22,829: DEBUG - + local setter=set__login_passphrase
2022-01-20 10:42:22,829: DEBUG - + local bind=settings
2022-01-20 10:42:22,830: DEBUG - + local type=password
2022-01-20 10:42:22,830: DEBUG - + '[' false == true ']'
2022-01-20 10:42:22,831: DEBUG - + for short_setting in "${!old[@]}"
2022-01-20 10:42:22,831: DEBUG - + ynh_app_config_apply_one crt_client
2022-01-20 10:42:22,831: DEBUG - + _ynh_app_config_apply_one crt_client
2022-01-20 10:42:22,832: DEBUG - + local short_setting=crt_client
2022-01-20 10:42:22,832: DEBUG - + local setter=set__crt_client
2022-01-20 10:42:22,832: DEBUG - + local bind=/etc/openvpn/keys/user.crt
2022-01-20 10:42:22,833: DEBUG - + local type=file
2022-01-20 10:42:22,833: DEBUG - + '[' false == true ']'
2022-01-20 10:42:22,833: DEBUG - + for short_setting in "${!old[@]}"
2022-01-20 10:42:22,834: DEBUG - + ynh_app_config_apply_one config_file
2022-01-20 10:42:22,834: DEBUG - + _ynh_app_config_apply_one config_file
2022-01-20 10:42:22,834: DEBUG - + local short_setting=config_file
2022-01-20 10:42:22,835: DEBUG - + local setter=set__config_file
2022-01-20 10:42:22,835: DEBUG - + local bind=/etc/openvpn/client.conf
2022-01-20 10:42:22,836: DEBUG - + local type=file
2022-01-20 10:42:22,836: DEBUG - + '[' true == true ']'
2022-01-20 10:42:22,837: DEBUG - + type -t set__config_file
2022-01-20 10:42:22,837: DEBUG - + grep -q '^function$'
2022-01-20 10:42:22,838: DEBUG - + [[ /etc/openvpn/client.conf == *\(* ]]
2022-01-20 10:42:22,838: DEBUG - + [[ /etc/openvpn/client.conf == \n\u\l\l ]]
2022-01-20 10:42:22,839: DEBUG - + [[ file == \f\i\l\e ]]
2022-01-20 10:42:22,839: DEBUG - + [[ /etc/openvpn/client.conf == \s\e\t\t\i\n\g\s ]]
2022-01-20 10:42:22,840: DEBUG - ++ echo /etc/openvpn/client.conf
2022-01-20 10:42:22,840: DEBUG - ++ sed s@__FINALPATH__@@
2022-01-20 10:42:22,841: DEBUG - ++ sed s/__APP__/vpnclient/
2022-01-20 10:42:22,847: DEBUG - + local bind_file=/etc/openvpn/client.conf
2022-01-20 10:42:22,847: DEBUG - + [[ /tmp/ynh_filequestion_h8jrzbd1/tmpaw6mlgdm == '' ]]
2022-01-20 10:42:22,848: DEBUG - + ynh_backup_if_checksum_is_different --file=/etc/openvpn/client.conf
2022-01-20 10:42:22,885: DEBUG - + local checksum_setting_name=checksum__etc_openvpn_client.conf
2022-01-20 10:42:22,886: DEBUG - ++ ynh_app_setting_get --app=vpnclient --key=checksum__etc_openvpn_client.conf
2022-01-20 10:42:22,887: DEBUG - ++ local _globalapp=vpnclient
2022-01-20 10:42:23,047: DEBUG - ++ app=vpnclient
2022-01-20 10:42:23,048: DEBUG - ++ [[ checksum__etc_openvpn_client.conf =~ (unprotected|protected|skipped)_ ]]
2022-01-20 10:42:23,048: DEBUG - ++ ynh_app_setting get vpnclient checksum__etc_openvpn_client.conf
2022-01-20 10:42:23,225: DEBUG - + local checksum_value=
2022-01-20 10:42:23,226: DEBUG - + backup_file_checksum=
2022-01-20 10:42:23,226: DEBUG - + '[' -n '' ']'
2022-01-20 10:42:23,227: DEBUG - + [[ /tmp/ynh_filequestion_h8jrzbd1/tmpaw6mlgdm != \/\e\t\c\/\o\p\e\n\v\p\n\/\c\l\i\e\n\t\.\c\o\n\f ]]
2022-01-20 10:42:23,227: DEBUG - + cp /tmp/ynh_filequestion_h8jrzbd1/tmpaw6mlgdm /etc/openvpn/client.conf
2022-01-20 10:42:23,231: DEBUG - + ynh_store_file_checksum --file=/etc/openvpn/client.conf --update_only
2022-01-20 10:42:23,233: DEBUG - + update_only=0
2022-01-20 10:42:23,332: DEBUG - + local checksum_setting_name=checksum__etc_openvpn_client.conf
2022-01-20 10:42:23,334: DEBUG - ++ ynh_app_setting_get --app=vpnclient --key=checksum__etc_openvpn_client.conf
2022-01-20 10:42:23,334: DEBUG - ++ local _globalapp=vpnclient
2022-01-20 10:42:23,440: DEBUG - ++ app=vpnclient
2022-01-20 10:42:23,441: DEBUG - ++ [[ checksum__etc_openvpn_client.conf =~ (unprotected|protected|skipped)_ ]]
2022-01-20 10:42:23,441: DEBUG - ++ ynh_app_setting get vpnclient checksum__etc_openvpn_client.conf
2022-01-20 10:42:23,569: DEBUG - + local checksum_value=
2022-01-20 10:42:23,570: DEBUG - + '[' -z '' ']'
2022-01-20 10:42:23,571: DEBUG - + unset backup_file_checksum
2022-01-20 10:42:23,571: DEBUG - + return 0
2022-01-20 10:42:23,572: DEBUG - + ynh_print_info '--message=File '\''/etc/openvpn/client.conf'\'' overwritten with /tmp/ynh_filequestion_h8jrzbd1/tmpaw6mlgdm'
2022-01-20 10:42:23,605: INFO - File '/etc/openvpn/client.conf' overwritten with /tmp/ynh_filequestion_h8jrzbd1/tmpaw6mlgdm
2022-01-20 10:42:23,606: DEBUG - + for short_setting in "${!old[@]}"
2022-01-20 10:42:23,607: DEBUG - + ynh_app_config_apply_one doc
2022-01-20 10:42:23,608: DEBUG - + _ynh_app_config_apply_one doc
2022-01-20 10:42:23,608: DEBUG - + local short_setting=doc
2022-01-20 10:42:23,608: DEBUG - + local setter=set__doc
2022-01-20 10:42:23,609: DEBUG - + local bind=settings
2022-01-20 10:42:23,609: DEBUG - + local type=alert
2022-01-20 10:42:23,610: DEBUG - + '[' false == true ']'
2022-01-20 10:42:23,610: DEBUG - + for short_setting in "${!old[@]}"
2022-01-20 10:42:23,610: DEBUG - + ynh_app_config_apply_one nameservers
2022-01-20 10:42:23,610: DEBUG - + _ynh_app_config_apply_one nameservers
2022-01-20 10:42:23,611: DEBUG - + local short_setting=nameservers
2022-01-20 10:42:23,611: DEBUG - + local setter=set__nameservers
2022-01-20 10:42:23,611: DEBUG - + local bind=settings
2022-01-20 10:42:23,612: DEBUG - + local type=tags
2022-01-20 10:42:23,612: DEBUG - + '[' false == true ']'
2022-01-20 10:42:23,613: DEBUG - + for short_setting in "${!old[@]}"
2022-01-20 10:42:23,613: DEBUG - + ynh_app_config_apply_one service_enabled
2022-01-20 10:42:23,613: DEBUG - + _ynh_app_config_apply_one service_enabled
2022-01-20 10:42:23,614: DEBUG - + local short_setting=service_enabled
2022-01-20 10:42:23,614: DEBUG - + local setter=set__service_enabled
2022-01-20 10:42:23,614: DEBUG - + local bind=settings
2022-01-20 10:42:23,615: DEBUG - + local type=boolean
2022-01-20 10:42:23,615: DEBUG - + '[' false == true ']'
2022-01-20 10:42:23,615: DEBUG - + for short_setting in "${!old[@]}"
2022-01-20 10:42:23,616: DEBUG - + ynh_app_config_apply_one crt_client_ta
2022-01-20 10:42:23,616: DEBUG - + _ynh_app_config_apply_one crt_client_ta
2022-01-20 10:42:23,616: DEBUG - + local short_setting=crt_client_ta
2022-01-20 10:42:23,617: DEBUG - + local setter=set__crt_client_ta
2022-01-20 10:42:23,617: DEBUG - + local bind=/etc/openvpn/keys/user_ta.key
2022-01-20 10:42:23,618: DEBUG - + local type=file
2022-01-20 10:42:23,618: DEBUG - + '[' false == true ']'
2022-01-20 10:42:23,619: DEBUG - + for short_setting in "${!old[@]}"
2022-01-20 10:42:23,619: DEBUG - + ynh_app_config_apply_one login_user
2022-01-20 10:42:23,619: DEBUG - + _ynh_app_config_apply_one login_user
2022-01-20 10:42:23,620: DEBUG - + local short_setting=login_user
2022-01-20 10:42:23,620: DEBUG - + local setter=set__login_user
2022-01-20 10:42:23,620: DEBUG - + local bind=settings
2022-01-20 10:42:23,620: DEBUG - + local type=string
2022-01-20 10:42:23,621: DEBUG - + '[' false == true ']'
2022-01-20 10:42:23,621: DEBUG - + for short_setting in "${!old[@]}"
2022-01-20 10:42:23,622: DEBUG - + ynh_app_config_apply_one crt_server_ca
2022-01-20 10:42:23,622: DEBUG - + _ynh_app_config_apply_one crt_server_ca
2022-01-20 10:42:23,623: DEBUG - + local short_setting=crt_server_ca
2022-01-20 10:42:23,623: DEBUG - + local setter=set__crt_server_ca
2022-01-20 10:42:23,623: DEBUG - + local bind=/etc/openvpn/keys/ca-server.crt
2022-01-20 10:42:23,624: DEBUG - + local type=file
2022-01-20 10:42:23,624: DEBUG - + '[' false == true ']'
2022-01-20 10:42:23,624: DEBUG - + for short_setting in "${!old[@]}"
2022-01-20 10:42:23,624: DEBUG - + ynh_app_config_apply_one dns_method
2022-01-20 10:42:23,625: DEBUG - + _ynh_app_config_apply_one dns_method
2022-01-20 10:42:23,625: DEBUG - + local short_setting=dns_method
2022-01-20 10:42:23,626: DEBUG - + local setter=set__dns_method
2022-01-20 10:42:23,626: DEBUG - + local bind=settings
2022-01-20 10:42:23,627: DEBUG - + local type=select
2022-01-20 10:42:23,627: DEBUG - + '[' false == true ']'
2022-01-20 10:42:23,627: DEBUG - + for short_setting in "${!old[@]}"
2022-01-20 10:42:23,628: DEBUG - + ynh_app_config_apply_one crt_client_key
2022-01-20 10:42:23,628: DEBUG - + _ynh_app_config_apply_one crt_client_key
2022-01-20 10:42:23,628: DEBUG - + local short_setting=crt_client_key
2022-01-20 10:42:23,629: DEBUG - + local setter=set__crt_client_key
2022-01-20 10:42:23,629: DEBUG - + local bind=/etc/openvpn/keys/user.key
2022-01-20 10:42:23,629: DEBUG - + local type=file
2022-01-20 10:42:23,630: DEBUG - + '[' false == true ']'
2022-01-20 10:42:23,630: DEBUG - + for short_setting in "${!old[@]}"
2022-01-20 10:42:23,630: DEBUG - + ynh_app_config_apply_one status
2022-01-20 10:42:23,631: DEBUG - + _ynh_app_config_apply_one status
2022-01-20 10:42:23,631: DEBUG - + local short_setting=status
2022-01-20 10:42:23,632: DEBUG - + local setter=set__status
2022-01-20 10:42:23,632: DEBUG - + local bind=settings
2022-01-20 10:42:23,632: DEBUG - + local type=alert
2022-01-20 10:42:23,633: DEBUG - + '[' false == true ']'
2022-01-20 10:42:23,633: DEBUG - + for short_setting in "${!old[@]}"
2022-01-20 10:42:23,633: DEBUG - + ynh_app_config_apply_one ip6_addr
2022-01-20 10:42:23,634: DEBUG - + _ynh_app_config_apply_one ip6_addr
2022-01-20 10:42:23,634: DEBUG - + local short_setting=ip6_addr
2022-01-20 10:42:23,634: DEBUG - + local setter=set__ip6_addr
2022-01-20 10:42:23,635: DEBUG - + local bind=settings
2022-01-20 10:42:23,635: DEBUG - + local type=string
2022-01-20 10:42:23,635: DEBUG - + '[' false == true ']'
2022-01-20 10:42:23,636: DEBUG - + set_permissions /etc/openvpn/client.conf
2022-01-20 10:42:23,636: DEBUG - + local file=/etc/openvpn/client.conf
2022-01-20 10:42:23,637: DEBUG - + '[' -f /etc/openvpn/client.conf ']'
2022-01-20 10:42:23,637: DEBUG - + chown vpnclient:vpnclient /etc/openvpn/client.conf
2022-01-20 10:42:23,637: DEBUG - + chmod go=--- /etc/openvpn/client.conf
2022-01-20 10:42:23,638: DEBUG - + set_permissions /etc/openvpn/keys/ca-server.crt
2022-01-20 10:42:23,638: DEBUG - + local file=/etc/openvpn/keys/ca-server.crt
2022-01-20 10:42:23,638: DEBUG - + '[' -f /etc/openvpn/keys/ca-server.crt ']'
2022-01-20 10:42:23,639: DEBUG - + chown vpnclient:vpnclient /etc/openvpn/keys/ca-server.crt
2022-01-20 10:42:23,639: DEBUG - + chmod go=--- /etc/openvpn/keys/ca-server.crt
2022-01-20 10:42:23,639: DEBUG - + set_permissions /etc/openvpn/keys/user.crt
2022-01-20 10:42:23,640: DEBUG - + local file=/etc/openvpn/keys/user.crt
2022-01-20 10:42:23,640: DEBUG - + '[' -f /etc/openvpn/keys/user.crt ']'
2022-01-20 10:42:23,640: DEBUG - + set_permissions /etc/openvpn/keys/user.key
2022-01-20 10:42:23,641: DEBUG - + local file=/etc/openvpn/keys/user.key
2022-01-20 10:42:23,641: DEBUG - + '[' -f /etc/openvpn/keys/user.key ']'
2022-01-20 10:42:23,641: DEBUG - + set_permissions /etc/openvpn/keys/user_ta.key
2022-01-20 10:42:23,642: DEBUG - + local file=/etc/openvpn/keys/user_ta.key
2022-01-20 10:42:23,642: DEBUG - + '[' -f /etc/openvpn/keys/user_ta.key ']'
2022-01-20 10:42:23,642: DEBUG - + ynh_print_info '--message=Starting vpnclient service if needed'
2022-01-20 10:42:23,663: DEBUG - + /usr/local/bin/ynh-vpnclient start
2022-01-20 10:42:23,663: INFO - Starting vpnclient service if needed
2022-01-20 10:42:23,694: DEBUG - [INFO] Retrieving Yunohost settings...
2022-01-20 10:42:23,824: DEBUG - [ OK ] Settings retrieved
2022-01-20 10:42:23,846: DEBUG - [INFO] [vpnclient] Starting...
2022-01-20 10:42:23,869: DEBUG - [INFO] Cleaning vpnclient custom rules from the firewall
2022-01-20 10:42:23,877: DEBUG - [INFO] Restarting yunohost firewall...
2022-01-20 10:42:27,679: DEBUG - [ OK ] Firewall restarted!
2022-01-20 10:42:27,684: DEBUG - [INFO] Now synchronizing time using ntp...
2022-01-20 10:42:35,901: DEBUG - [INFO] Now actually starting OpenVPN client...
2022-01-20 10:42:35,974: WARNING - Job for openvpn@client.service failed because the control process exited with error code.
2022-01-20 10:42:35,976: WARNING - See "systemctl status openvpn@client.service" and "journalctl -xe" for details.
2022-01-20 10:42:35,981: WARNING - tail: impossible d'ouvrir '/var/log/openvpn-client.log' en lecture: Aucun fichier ou dossier de ce type
2022-01-20 10:42:35,987: WARNING - [CRIT] Failed to start OpenVPN :/
2022-01-20 10:42:35,989: DEBUG - + ynh_exit_properly

Une autre remarque qui relève de FDN, je le note ici pour mémoire : je n’ai pas trouvé de fichier de config .cube chez FDN, seulement le .ovpn proposé ici.

Désolé pour les éventuels doublons, j’ai recherché les sujets similaires sans trouver vraiment de réponse à mon problème…

Merci pour votre aide !

Est-ce que tu peux partager la sortie de journalctl -n 100 -u openvpn@client --no-hostname --no-pager

-- Logs begin at Thu 2022-01-20 10:16:36 GMT, end at Thu 2022-01-20 15:02:59 GMT. --
Jan 20 10:23:51 systemd[1]: Stopped OpenVPN connection to client.
Jan 20 10:23:51 systemd[1]: Starting OpenVPN connection to client...
Jan 20 10:23:51 ovpn-client[7625]: Note: option tun-ipv6 is ignored because modern operating systems do not need special IPv6 tun handling anymore.
Jan 20 10:23:51 ovpn-client[7625]: Options error: You must define CA file (--ca) or CA path (--capath)
Jan 20 10:23:51 ovpn-client[7625]: Use --help for more information.
Jan 20 10:23:51 systemd[1]: openvpn@client.service: Main process exited, code=exited, status=1/FAILURE
Jan 20 10:23:51 systemd[1]: openvpn@client.service: Failed with result 'exit-code'.
Jan 20 10:23:51 systemd[1]: Failed to start OpenVPN connection to client.
Jan 20 10:23:53 systemd[1]: openvpn@client.service: Service RestartSec=1s expired, scheduling restart.
Jan 20 10:23:53 systemd[1]: openvpn@client.service: Scheduled restart job, restart counter is at 2.
Jan 20 10:23:53 systemd[1]: Stopped OpenVPN connection to client.
Jan 20 10:23:53 systemd[1]: Starting OpenVPN connection to client...
Jan 20 10:23:53 ovpn-client[7631]: Note: option tun-ipv6 is ignored because modern operating systems do not need special IPv6 tun handling anymore.
Jan 20 10:23:53 ovpn-client[7631]: Options error: You must define CA file (--ca) or CA path (--capath)
Jan 20 10:23:53 ovpn-client[7631]: Use --help for more information.
Jan 20 10:23:53 systemd[1]: openvpn@client.service: Main process exited, code=exited, status=1/FAILURE
Jan 20 10:23:53 systemd[1]: openvpn@client.service: Failed with result 'exit-code'.
Jan 20 10:23:53 systemd[1]: Failed to start OpenVPN connection to client.
Jan 20 10:23:54 systemd[1]: openvpn@client.service: Service RestartSec=1s expired, scheduling restart.
Jan 20 10:23:54 systemd[1]: openvpn@client.service: Scheduled restart job, restart counter is at 3.
Jan 20 10:23:54 systemd[1]: Stopped OpenVPN connection to client.
Jan 20 10:23:54 systemd[1]: Starting OpenVPN connection to client...
Jan 20 10:23:54 ovpn-client[7635]: Note: option tun-ipv6 is ignored because modern operating systems do not need special IPv6 tun handling anymore.
Jan 20 10:23:54 ovpn-client[7635]: Options error: You must define CA file (--ca) or CA path (--capath)
Jan 20 10:23:54 ovpn-client[7635]: Use --help for more information.
Jan 20 10:23:54 systemd[1]: openvpn@client.service: Main process exited, code=exited, status=1/FAILURE
Jan 20 10:23:54 systemd[1]: openvpn@client.service: Failed with result 'exit-code'.
Jan 20 10:23:54 systemd[1]: Failed to start OpenVPN connection to client.
Jan 20 10:23:55 systemd[1]: openvpn@client.service: Service RestartSec=1s expired, scheduling restart.
Jan 20 10:23:55 systemd[1]: openvpn@client.service: Scheduled restart job, restart counter is at 4.
Jan 20 10:23:55 systemd[1]: Stopped OpenVPN connection to client.
Jan 20 10:23:55 systemd[1]: Starting OpenVPN connection to client...
Jan 20 10:23:55 ovpn-client[7638]: Note: option tun-ipv6 is ignored because modern operating systems do not need special IPv6 tun handling anymore.
Jan 20 10:23:55 ovpn-client[7638]: Options error: You must define CA file (--ca) or CA path (--capath)
Jan 20 10:23:55 ovpn-client[7638]: Use --help for more information.
Jan 20 10:23:55 systemd[1]: openvpn@client.service: Main process exited, code=exited, status=1/FAILURE
Jan 20 10:23:55 systemd[1]: openvpn@client.service: Failed with result 'exit-code'.
Jan 20 10:23:55 systemd[1]: Failed to start OpenVPN connection to client.
Jan 20 10:23:56 systemd[1]: openvpn@client.service: Service RestartSec=1s expired, scheduling restart.
Jan 20 10:23:56 systemd[1]: openvpn@client.service: Scheduled restart job, restart counter is at 5.
Jan 20 10:23:56 systemd[1]: Stopped OpenVPN connection to client.
Jan 20 10:23:56 systemd[1]: openvpn@client.service: Start request repeated too quickly.
Jan 20 10:23:56 systemd[1]: openvpn@client.service: Failed with result 'exit-code'.
Jan 20 10:23:56 systemd[1]: Failed to start OpenVPN connection to client.
Jan 20 10:30:22 systemd[1]: /etc/systemd/system/openvpn@.service:1: .include directives are deprecated, and support for them will be removed in a future version of systemd. Please use drop-in files instead.
Jan 20 10:34:08 systemd[1]: /etc/systemd/system/openvpn@.service:1: .include directives are deprecated, and support for them will be removed in a future version of systemd. Please use drop-in files instead.
Jan 20 10:42:35 systemd[1]: Starting OpenVPN connection to client...
Jan 20 10:42:35 ovpn-client[19644]: Note: option tun-ipv6 is ignored because modern operating systems do not need special IPv6 tun handling anymore.
Jan 20 10:42:35 ovpn-client[19644]: Options error: You must define CA file (--ca) or CA path (--capath)
Jan 20 10:42:35 ovpn-client[19644]: Use --help for more information.
Jan 20 10:42:35 systemd[1]: openvpn@client.service: Main process exited, code=exited, status=1/FAILURE
Jan 20 10:42:35 systemd[1]: openvpn@client.service: Failed with result 'exit-code'.
Jan 20 10:42:35 systemd[1]: Failed to start OpenVPN connection to client.
Jan 20 10:42:37 systemd[1]: openvpn@client.service: Service RestartSec=1s expired, scheduling restart.
Jan 20 10:42:37 systemd[1]: openvpn@client.service: Scheduled restart job, restart counter is at 1.
Jan 20 10:42:37 systemd[1]: Stopped OpenVPN connection to client.
Jan 20 10:42:37 systemd[1]: Starting OpenVPN connection to client...
Jan 20 10:42:37 ovpn-client[19653]: Note: option tun-ipv6 is ignored because modern operating systems do not need special IPv6 tun handling anymore.
Jan 20 10:42:37 ovpn-client[19653]: Options error: You must define CA file (--ca) or CA path (--capath)
Jan 20 10:42:37 ovpn-client[19653]: Use --help for more information.
Jan 20 10:42:37 systemd[1]: openvpn@client.service: Main process exited, code=exited, status=1/FAILURE
Jan 20 10:42:37 systemd[1]: openvpn@client.service: Failed with result 'exit-code'.
Jan 20 10:42:37 systemd[1]: Failed to start OpenVPN connection to client.
Jan 20 10:42:38 systemd[1]: openvpn@client.service: Service RestartSec=1s expired, scheduling restart.
Jan 20 10:42:38 systemd[1]: openvpn@client.service: Scheduled restart job, restart counter is at 2.
Jan 20 10:42:38 systemd[1]: Stopped OpenVPN connection to client.
Jan 20 10:42:38 systemd[1]: Starting OpenVPN connection to client...
Jan 20 10:42:38 ovpn-client[19659]: Note: option tun-ipv6 is ignored because modern operating systems do not need special IPv6 tun handling anymore.
Jan 20 10:42:38 ovpn-client[19659]: Options error: You must define CA file (--ca) or CA path (--capath)
Jan 20 10:42:38 ovpn-client[19659]: Use --help for more information.
Jan 20 10:42:38 systemd[1]: openvpn@client.service: Main process exited, code=exited, status=1/FAILURE
Jan 20 10:42:38 systemd[1]: openvpn@client.service: Failed with result 'exit-code'.
Jan 20 10:42:38 systemd[1]: Failed to start OpenVPN connection to client.
Jan 20 10:42:39 systemd[1]: openvpn@client.service: Service RestartSec=1s expired, scheduling restart.
Jan 20 10:42:39 systemd[1]: openvpn@client.service: Scheduled restart job, restart counter is at 3.
Jan 20 10:42:39 systemd[1]: Stopped OpenVPN connection to client.
Jan 20 10:42:39 systemd[1]: Starting OpenVPN connection to client...
Jan 20 10:42:39 ovpn-client[19662]: Note: option tun-ipv6 is ignored because modern operating systems do not need special IPv6 tun handling anymore.
Jan 20 10:42:39 ovpn-client[19662]: Options error: You must define CA file (--ca) or CA path (--capath)
Jan 20 10:42:39 ovpn-client[19662]: Use --help for more information.
Jan 20 10:42:39 systemd[1]: openvpn@client.service: Main process exited, code=exited, status=1/FAILURE
Jan 20 10:42:39 systemd[1]: openvpn@client.service: Failed with result 'exit-code'.
Jan 20 10:42:39 systemd[1]: Failed to start OpenVPN connection to client.
Jan 20 10:42:40 systemd[1]: openvpn@client.service: Service RestartSec=1s expired, scheduling restart.
Jan 20 10:42:40 systemd[1]: openvpn@client.service: Scheduled restart job, restart counter is at 4.
Jan 20 10:42:40 systemd[1]: Stopped OpenVPN connection to client.
Jan 20 10:42:40 systemd[1]: Starting OpenVPN connection to client...
Jan 20 10:42:40 ovpn-client[19665]: Note: option tun-ipv6 is ignored because modern operating systems do not need special IPv6 tun handling anymore.
Jan 20 10:42:40 ovpn-client[19665]: Options error: You must define CA file (--ca) or CA path (--capath)
Jan 20 10:42:40 ovpn-client[19665]: Use --help for more information.
Jan 20 10:42:40 systemd[1]: openvpn@client.service: Main process exited, code=exited, status=1/FAILURE
Jan 20 10:42:40 systemd[1]: openvpn@client.service: Failed with result 'exit-code'.
Jan 20 10:42:40 systemd[1]: Failed to start OpenVPN connection to client.
Jan 20 10:42:42 systemd[1]: openvpn@client.service: Service RestartSec=1s expired, scheduling restart.
Jan 20 10:42:42 systemd[1]: openvpn@client.service: Scheduled restart job, restart counter is at 5.
Jan 20 10:42:42 systemd[1]: Stopped OpenVPN connection to client.
Jan 20 10:42:42 systemd[1]: openvpn@client.service: Start request repeated too quickly.
Jan 20 10:42:42 systemd[1]: openvpn@client.service: Failed with result 'exit-code'.
Jan 20 10:42:42 systemd[1]: Failed to start OpenVPN connection to client.
Jan 20 11:04:23 systemd[1]: /etc/systemd/system/openvpn@.service:1: .include directives are deprecated, and support for them will be removed in a future version of systemd. Please use drop-in files instead.

That’s the issue, but i’m not knowledgeable enough about openvpn. Maybe that has something to do with the content of your .ovpn

Ping @ljf ^

1 Like

Merci pour la piste @Aleks! Je vais creuser ça.

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