VPN is not starting/failing

What type of hardware are you using: Old laptop or computer
What YunoHost version are you running: 12.0.17
How are you able to access your server: The webadmin
SSH
Are you in a special context or did you perform specific tweaking on your YunoHost instance ?: No

Describe your issue

Hello,
Since friday my server is unreachable because of the vpn that is not working properly.
I’ve tried to relaunch vpn, to reboot, to reload the .cube file, it doesn’t solved this issue.
I’ve followed this topic but didn’t solved : Serveur derrière VPN - Connexion impossible depuis une semaine!

Few commands tried so far :
ip a =>

1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host noprefixroute 
       valid_lft forever preferred_lft forever
2: enp8s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
    link/ether 34:64:a9:76:28:b0 brd ff:ff:ff:ff:ff:ff
    inet 192.168.1.99/24 brd 192.168.1.255 scope global dynamic enp8s0
       valid_lft 72167sec preferred_lft 72167sec
    inet6 fe80::3664:99:99:28b0/64 scope link 
       valid_lft forever preferred_lft forever
3: wlo1: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000
    link/ether ec:0e:c4:48:1d:15 brd ff:ff:ff:ff:ff:ff
    altname wlp1s0f0
4: wlx1cbfcefc152b: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
    link/ether 02:bf:ce:fc:15:00 brd ff:ff:ff:ff:ff:ff permaddr 1c:bf:ce:fc:15:2b
    inet 10.99.999.1/24 scope global wlx1cbfcefc152b
       valid_lft forever preferred_lft forever
    inet6 2001:xx:xx::11/64 scope global 
       valid_lft forever preferred_lft forever
    inet6 fe80::bf:xx:xxx:1500/64 scope link 
       valid_lft forever preferred_lft forever

dig +short A vpn.fdn.fr @127.0.0.1 => ;; communications error to 127.0.0.1#53: timed out
cat /etc/resolv.conf =>

#     DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
# 127.0.0.53 is the systemd-resolved stub resolver.
# run "resolvectl status" to see details about the actual nameservers.
nameserver 127.0.0.1

cat /etc/resolv.dnsmasq.conf => nameserver 2001:xx:xxx::40 nameserver 89.999.999.92

I’ve also tried yunohost tools regen-conf dnsmasq -f without success.

Thanks a lot for your help !!
Amaury

Share relevant logs or error messages

ynh-vpnclient logs :
juil. 07 15:27:37 systemd[1]: Starting ynh-vpnclient.service - YunoHost VPN Client…
juil. 07 15:27:37 ynh-vpnclient[238374]: [INFO] Retrieving Yunohost settings…
juil. 07 15:27:38 ynh-vpnclient[238377]: [ OK ] Settings retrieved
juil. 07 15:27:38 ynh-vpnclient[238379]: [INFO] [vpnclient] Starting…
juil. 07 15:27:38 ynh-vpnclient[238383]: [INFO] Now synchronizing time using ntp…
juil. 07 15:27:38 ntpd[238388]: INIT: ntpd ntpsec-1.2.2: Starting
juil. 07 15:27:38 ntpd[238388]: INIT: Command line: ntpd -qg
juil. 07 15:27:38 ntpd[238388]: INIT: precision = 0.115 usec (-23)
juil. 07 15:27:38 ntpd[238388]: INIT: successfully locked into RAM
juil. 07 15:27:38 ntpd[238388]: CONFIG: readconfig: parsing file: /etc/ntpsec/ntp.conf
juil. 07 15:27:38 ntpd[238388]: CONFIG: restrict nopeer ignored
juil. 07 15:27:38 ntpd[238388]: CLOCK: leapsecond file (‘/usr/share/zoneinfo/leap-seconds.list’): good hash signature
juil. 07 15:27:38 ntpd[238388]: CLOCK: leapsecond file (‘/usr/share/zoneinfo/leap-seconds.list’): loaded, expire=2025-12-28T00:00Z last=2017-01-01T00:00Z ofs=37
juil. 07 15:27:38 ntpd[238388]: INIT: Using SO_TIMESTAMPNS(ns)
juil. 07 15:27:38 ntpd[238388]: IO: Listen and drop on 0 v6wildcard [::]:123
juil. 07 15:27:38 ntpd[238388]: IO: Listen and drop on 1 v4wildcard 0.0.0.0:123
juil. 07 15:27:38 ntpd[238388]: IO: Listen normally on 2 lo 127.0.0.1:123
juil. 07 15:27:38 ntpd[238388]: IO: Listen normally on 3 enp8s0 192.168.1.56:123
juil. 07 15:27:38 ntpd[238388]: IO: Listen normally on 4 wlx1cbfcefc152b 10.0.242.1:123
juil. 07 15:27:38 ntpd[238388]: IO: Listen normally on 5 lo [::1]:123
juil. 07 15:27:38 ntpd[238388]: IO: Listen normally on 6 enp8s0 [fe80::3664:a9ff:fe76:28b0%2]:123
juil. 07 15:27:38 ntpd[238388]: IO: Listen normally on 7 wlx1cbfcefc152b [2001:910:13fc::11]:123
juil. 07 15:27:38 ntpd[238388]: IO: Listen normally on 8 wlx1cbfcefc152b [fe80::bf:ceff:fefc:1500%4]:123
juil. 07 15:27:38 ntpd[238388]: IO: Listening on routing socket on fd #25 for interface updates
juil. 07 15:27:38 ntpd[238388]: INIT: MRU 10922 entries, 13 hash bits, 65536 bytes
juil. 07 15:27:38 ntpd[238388]: INIT: Built with OpenSSL 3.0.9 30 May 2023, 30000090
juil. 07 15:27:38 ntpd[238388]: INIT: Running with OpenSSL 3.0.16 11 Feb 2025, 30000100
juil. 07 15:27:38 ntpd[238388]: NTSc: Using system default root certificates.
juil. 07 15:27:38 ntpd[238388]: statistics directory /var/log/ntpsec/ does not exist or is unwriteable, error No such file or directory
juil. 07 15:27:39 ntpd[238388]: DNS: dns_probe: 0.debian.pool.ntp.org, cast_flags:8, flags:101
juil. 07 15:27:58 ntpd[238388]: ERR: ntpd exiting on signal 15 (Terminated)
juil. 07 15:27:58 ynh-vpnclient[238406]: [INFO] ntp synchronization failed, falling back to curl method
juil. 07 15:28:03 ynh-vpnclient[238420]: [INFO] Checking if configuration is valid…
juil. 07 15:28:03 ynh-vpnclient[238424]: [INFO] Now actually starting OpenVPN client…
juil. 07 15:28:03 ynh-vpnclient[238429]: [ OK ] OpenVPN client started!
juil. 07 15:28:03 ynh-vpnclient[238431]: [INFO] Waiting for tun0 interface to show up
juil. 07 15:31:03 ynh-vpnclient[238491]: [FAIL] The VPN client didn’t open tun0 interface
juil. 07 15:31:03 ynh-vpnclient[238493]: 2025-07-07 15:29:24 NOTE: --mute triggered…
juil. 07 15:31:03 ynh-vpnclient[238493]: 2025-07-07 15:29:24 1 variation(s) on previous 5 message(s) suppressed by --mute
juil. 07 15:31:03 ynh-vpnclient[238493]: 2025-07-07 15:29:24 Could not determine IPv4/IPv6 protocol
juil. 07 15:31:03 ynh-vpnclient[238493]: 2025-07-07 15:29:24 SIGUSR1[soft,Could not determine IPv4/IPv6 protocol] received, process restarting
juil. 07 15:31:03 ynh-vpnclient[238493]: 2025-07-07 15:29:24 Restart pause, 1 second(s)
juil. 07 15:31:03 ynh-vpnclient[238493]: 2025-07-07 15:29:25 NOTE: the current --script-security setting may allow this configuration to call user-defined scripts
juil. 07 15:31:03 ynh-vpnclient[238493]: 2025-07-07 15:29:45 RESOLVE: Cannot resolve host address: vpn.fdn.fr:1194 (Temporary failure in name resolution)
juil. 07 15:31:03 ynh-vpnclient[238493]: 2025-07-07 15:30:05 NOTE: --mute triggered…
juil. 07 15:31:03 ynh-vpnclient[238493]: 2025-07-07 15:30:05 1 variation(s) on previous 5 message(s) suppressed by --mute
juil. 07 15:31:03 ynh-vpnclient[238493]: 2025-07-07 15:30:05 Could not determine IPv4/IPv6 protocol
juil. 07 15:31:03 ynh-vpnclient[238493]: 2025-07-07 15:30:05 SIGUSR1[soft,Could not determine IPv4/IPv6 protocol] received, process restarting
juil. 07 15:31:03 ynh-vpnclient[238493]: 2025-07-07 15:30:05 Restart pause, 1 second(s)
juil. 07 15:31:03 ynh-vpnclient[238493]: 2025-07-07 15:30:06 NOTE: the current --script-security setting may allow this configuration to call user-defined scripts
juil. 07 15:31:03 ynh-vpnclient[238493]: 2025-07-07 15:30:26 RESOLVE: Cannot resolve host address: vpn.fdn.fr:1194 (Temporary failure in name resolution)
juil. 07 15:31:03 ynh-vpnclient[238493]: 2025-07-07 15:30:46 NOTE: --mute triggered…
juil. 07 15:31:03 ynh-vpnclient[238493]: 2025-07-07 15:30:46 1 variation(s) on previous 5 message(s) suppressed by --mute
juil. 07 15:31:03 ynh-vpnclient[238493]: 2025-07-07 15:30:46 Could not determine IPv4/IPv6 protocol
juil. 07 15:31:03 ynh-vpnclient[238493]: 2025-07-07 15:30:46 SIGUSR1[soft,Could not determine IPv4/IPv6 protocol] received, process restarting
juil. 07 15:31:03 ynh-vpnclient[238493]: 2025-07-07 15:30:46 Restart pause, 1 second(s)
juil. 07 15:31:03 ynh-vpnclient[238493]: 2025-07-07 15:30:47 NOTE: the current --script-security setting may allow this configuration to call user-defined scripts
juil. 07 15:31:03 ynh-vpnclient[238495]: [CRIT] Failed to start OpenVPN client
juil. 07 15:31:03 ynh-vpnclient[238498]: [INFO] Stopping OpenVPN client…
juil. 07 15:31:27 systemd[1]: ynh-vpnclient.service: Main process exited, code=exited, status=1/FAILURE
juil. 07 15:31:27 systemd[1]: ynh-vpnclient.service: Failed with result ‘exit-code’.
juil. 07 15:31:27 systemd[1]: Failed to start ynh-vpnclient.service - YunoHost VPN Client..

UPDATE : I’ve removed the VPN app and tried to restore a backup but it failed, see logs.

<span class="alert-info">2025-07-08 08:13:37,451: INFO - Restauration de vpnclient…</span>
2025-07-08 08:13:37,495: DEBUG - Nothing to update in LDAP
2025-07-08 08:13:37,496: DEBUG - Permission 'vpnclient.main' mise à jour
2025-07-08 08:13:37,498: DEBUG - Journal complet de cette opération : '&lt;a href="#/tools/logs/20250708-061337-permission_url-vpnclient" style="text-decoration :underline"&gt; Mise à jour de l'URL associée à l'autorisation 'vpnclient' &lt;/a&gt;'
2025-07-08 08:13:37,506: DEBUG - Nothing to update in LDAP
2025-07-08 08:13:37,508: DEBUG - Permission 'vpnclient.main' créée
2025-07-08 08:13:37,508: DEBUG - Journal complet de cette opération : '&lt;a href="#/tools/logs/20250708-061337-permission_create-vpnclient" style="text-decoration :underline"&gt; Créer permission 'vpnclient' &lt;/a&gt;'
2025-07-08 08:13:37,517: DEBUG - The permission database has been resynchronized
2025-07-08 08:13:37,547: DEBUG - La configuration de SSOwat a été regénérée
2025-07-08 08:13:37,559: DEBUG - Chargement de la migration 0030_rebuild_python_venv_in_bookworm…
2025-07-08 08:13:37,561: DEBUG - Chargement de la migration 0027_migrate_to_bookworm…
2025-07-08 08:13:37,562: DEBUG - Chargement de la migration 0031_terms_of_services…
2025-07-08 08:13:37,562: DEBUG - Chargement de la migration 0028_delete_legacy_xmpp_permission…
2025-07-08 08:13:37,563: DEBUG - Chargement de la migration 0029_postgresql_13_to_15…
2025-07-08 08:13:37,578: DEBUG - Exécution du script de restauration de l'application 'vpnclient'…
<span class="alert-info">2025-07-08 08:13:37,589: INFO - Provisioning system_user...</span>
<span class="alert-info">2025-07-08 08:13:37,722: INFO - Provisioning permissions...</span>
2025-07-08 08:13:37,736: DEBUG - Nothing to update in LDAP
2025-07-08 08:13:37,737: DEBUG - Permission 'vpnclient.main' mise à jour
2025-07-08 08:13:37,738: DEBUG - Journal complet de cette opération : '&lt;a href="#/tools/logs/20250708-061337-user_permission_update-vpnclient" style="text-decoration :underline"&gt; Mise à jour des accès pour la permission 'vpnclient' &lt;/a&gt;'
2025-07-08 08:13:37,750: DEBUG - Nothing to update in LDAP
2025-07-08 08:13:37,750: DEBUG - Permission 'vpnclient.main' mise à jour
2025-07-08 08:13:37,752: DEBUG - Journal complet de cette opération : '&lt;a href="#/tools/logs/20250708-061337-permission_url-vpnclient" style="text-decoration :underline"&gt; Mise à jour de l'URL associée à l'autorisation 'vpnclient' &lt;/a&gt;'
2025-07-08 08:13:37,760: DEBUG - The permission database has been resynchronized
2025-07-08 08:13:37,790: DEBUG - La configuration de SSOwat a été regénérée
<span class="alert-info">2025-07-08 08:13:37,799: INFO - Provisioning apt...</span>
2025-07-08 08:13:37,810: DEBUG - Executing command '['sh', '-c', '/bin/bash -x "./provision_or_update_apt"  7&gt;&amp;1']'
2025-07-08 08:13:37,816: DEBUG - + source /usr/share/yunohost/helpers
2025-07-08 08:13:37,817: DEBUG - ++++ dirname -- /usr/share/yunohost/helpers
2025-07-08 08:13:37,818: DEBUG - +++ cd -- /usr/share/yunohost
2025-07-08 08:13:37,818: DEBUG - +++ pwd
2025-07-08 08:13:37,819: DEBUG - ++ SCRIPT_DIR=/usr/share/yunohost
2025-07-08 08:13:37,819: DEBUG - ++ YNH_HELPERS_VERSION=2.1
2025-07-08 08:13:37,821: DEBUG - ++ readonly 'XTRACE_ENABLE=set -o xtrace'
2025-07-08 08:13:37,821: DEBUG - ++ XTRACE_ENABLE='set -o xtrace'
2025-07-08 08:13:37,843: DEBUG - + ynh_abort_if_errors
2025-07-08 08:13:37,844: DEBUG - + trap ynh_exit_properly EXIT
2025-07-08 08:13:37,844: DEBUG - + ynh_apt_install_dependencies sipcalc dnsutils openvpn curl fake-hwclock
2025-07-08 08:13:37,845: DEBUG - ++ sed 's/\([^\&lt;=\&gt;]\)\ \([^(]\)/\1, \2/g'
2025-07-08 08:13:37,845: DEBUG - ++ sed 's/|/ | /'
2025-07-08 08:13:37,847: DEBUG - + local 'dependencies=sipcalc, dnsutils, openvpn, curl, fake-hwclock'
2025-07-08 08:13:37,848: DEBUG - ++ ynh_read_manifest version
2025-07-08 08:13:37,848: DEBUG - ++ cat /var/cache/yunohost/app_tmp_work_dirs/app_4sjlxoew/manifest.toml
2025-07-08 08:13:37,849: DEBUG - ++ toml_to_json
2025-07-08 08:13:37,849: DEBUG - ++ python3 -c 'import toml, json, sys; print(json.dumps(toml.load(sys.stdin)))'
2025-07-08 08:13:37,849: DEBUG - ++ jq .version --raw-output
2025-07-08 08:13:37,915: DEBUG - + local version=2.3~ynh4
2025-07-08 08:13:37,915: DEBUG - + local app_ynh_deps=vpnclient-ynh-deps
2025-07-08 08:13:37,915: DEBUG - + grep '[&lt;=&gt;]'
2025-07-08 08:13:37,918: DEBUG - ++ grep -oP '(?&lt;=php)[0-9.]+(?=-|\&gt;|)'
2025-07-08 08:13:37,919: DEBUG - ++ sort -u
2025-07-08 08:13:37,920: DEBUG - + local specific_php_version=
2025-07-08 08:13:37,921: DEBUG - + grep --quiet php
2025-07-08 08:13:37,924: DEBUG - ++ _ynh_apt_package_is_installed postgresql-15
2025-07-08 08:13:37,925: DEBUG - ++ local package=postgresql-15
2025-07-08 08:13:37,925: DEBUG - ++ dpkg-query --show '--showformat=${db:Status-Status}' postgresql-15
2025-07-08 08:13:37,925: DEBUG - ++ grep --quiet '^installed$'
2025-07-08 08:13:37,947: DEBUG - ++ echo yes
2025-07-08 08:13:37,947: DEBUG - + local psql_installed=yes
2025-07-08 08:13:37,947: DEBUG - + [[ true == \t\r\u\e ]]
2025-07-08 08:13:37,947: DEBUG - + YNH_APT_INSTALL_DEPENDENCIES_REPLACE=false
2025-07-08 08:13:37,948: DEBUG - ++ mktemp --directory
2025-07-08 08:13:37,949: DEBUG - + local TMPDIR=/tmp/tmp.rGMaBgShiP
2025-07-08 08:13:37,949: DEBUG - + mkdir -p /tmp/tmp.rGMaBgShiP/vpnclient-ynh-deps/DEBIAN
2025-07-08 08:13:37,951: DEBUG - + chmod -R 755 /tmp/tmp.rGMaBgShiP/vpnclient-ynh-deps
2025-07-08 08:13:37,953: DEBUG - + cat
2025-07-08 08:13:37,954: DEBUG - + _ynh_apt update
2025-07-08 08:13:37,955: DEBUG - + _ynh_wait_dpkg_free
2025-07-08 08:13:38,161: DEBUG - + return 0
2025-07-08 08:13:38,162: DEBUG - + apt-get --assume-yes --quiet -o=Acquire::Retries=3 -o=Dpkg::Use-Pty=0 update
2025-07-08 08:14:08,337: DEBUG - Ign:1 http://ftp.debian.org/debian bookworm InRelease
2025-07-08 08:14:08,338: DEBUG - Ign:2 http://forge.yunohost.org/debian bookworm InRelease
2025-07-08 08:14:08,338: DEBUG - Ign:3 https://packages.sury.org/php bookworm InRelease
2025-07-08 08:14:08,338: DEBUG - Ign:4 http://security.debian.org/debian-security bookworm-security InRelease
2025-07-08 08:14:08,339: DEBUG - Ign:5 https://dl.yarnpkg.com/debian stable InRelease
2025-07-08 08:14:38,365: DEBUG - Ign:6 http://ftp.debian.org/debian bookworm-updates InRelease
2025-07-08 08:14:39,360: DEBUG - Ign:2 http://forge.yunohost.org/debian bookworm InRelease
2025-07-08 08:14:39,361: DEBUG - Ign:4 http://security.debian.org/debian-security bookworm-security InRelease
2025-07-08 08:14:39,364: DEBUG - Ign:3 https://packages.sury.org/php bookworm InRelease
2025-07-08 08:14:39,365: DEBUG - Ign:5 https://dl.yarnpkg.com/debian stable InRelease
2025-07-08 08:15:08,399: DEBUG - Ign:1 http://ftp.debian.org/debian bookworm InRelease
2025-07-08 08:15:11,393: DEBUG - Ign:2 http://forge.yunohost.org/debian bookworm InRelease
2025-07-08 08:15:11,393: DEBUG - Ign:4 http://security.debian.org/debian-security bookworm-security InRelease
2025-07-08 08:15:11,394: DEBUG - Ign:3 https://packages.sury.org/php bookworm InRelease
2025-07-08 08:15:11,395: DEBUG - Ign:5 https://dl.yarnpkg.com/debian stable InRelease
2025-07-08 08:15:38,431: DEBUG - Ign:6 http://ftp.debian.org/debian bookworm-updates InRelease
2025-07-08 08:15:45,427: DEBUG - Err:2 http://forge.yunohost.org/debian bookworm InRelease
2025-07-08 08:15:45,428: DEBUG -   Temporary failure resolving 'forge.yunohost.org'
2025-07-08 08:15:45,428: DEBUG - Err:4 http://security.debian.org/debian-security bookworm-security InRelease
2025-07-08 08:15:45,428: DEBUG -   Temporary failure resolving 'security.debian.org'
2025-07-08 08:15:45,429: DEBUG - Err:5 https://dl.yarnpkg.com/debian stable InRelease
2025-07-08 08:15:45,429: DEBUG -   Temporary failure resolving 'dl.yarnpkg.com'
2025-07-08 08:15:45,429: DEBUG - Err:3 https://packages.sury.org/php bookworm InRelease
2025-07-08 08:15:45,430: DEBUG -   Temporary failure resolving 'packages.sury.org'
2025-07-08 08:16:08,463: DEBUG - Ign:1 http://ftp.debian.org/debian bookworm InRelease
2025-07-08 08:16:38,496: DEBUG - Ign:6 http://ftp.debian.org/debian bookworm-updates InRelease
2025-07-08 08:17:08,530: DEBUG - Err:1 http://ftp.debian.org/debian bookworm InRelease
2025-07-08 08:17:08,531: DEBUG -   Temporary failure resolving 'ftp.debian.org'
2025-07-08 08:17:38,558: DEBUG - Err:6 http://ftp.debian.org/debian bookworm-updates InRelease
2025-07-08 08:17:38,560: DEBUG -   Temporary failure resolving 'ftp.debian.org'
2025-07-08 08:17:39,888: DEBUG - Reading package lists...
<span class="alert-warning">2025-07-08 08:17:39,905: WARNING - W: Failed to fetch http://ftp.debian.org/debian/dists/bookworm/InRelease  Temporary failure resolving 'ftp.debian.org'</span>
<span class="alert-warning">2025-07-08 08:17:39,908: WARNING - W: Failed to fetch http://forge.yunohost.org/debian/dists/bookworm/InRelease  Temporary failure resolving 'forge.yunohost.org'</span>
<span class="alert-warning">2025-07-08 08:17:39,911: WARNING - W: Failed to fetch http://security.debian.org/debian-security/dists/bookworm-security/InRelease  Temporary failure resolving 'security.debian.org'</span>
<span class="alert-warning">2025-07-08 08:17:39,913: WARNING - W: Failed to fetch http://ftp.debian.org/debian/dists/bookworm-updates/InRelease  Temporary failure resolving 'ftp.debian.org'</span>
<span class="alert-warning">2025-07-08 08:17:39,916: WARNING - W: Failed to fetch https://packages.sury.org/php/dists/bookworm/InRelease  Temporary failure resolving 'packages.sury.org'</span>
<span class="alert-warning">2025-07-08 08:17:39,919: WARNING - W: Failed to fetch https://dl.yarnpkg.com/debian/dists/stable/InRelease  Temporary failure resolving 'dl.yarnpkg.com'</span>
<span class="alert-warning">2025-07-08 08:17:39,922: WARNING - W: Some index files failed to download. They have been ignored, or old ones used instead.</span>
2025-07-08 08:17:39,924: DEBUG - + _ynh_wait_dpkg_free
2025-07-08 08:17:40,097: DEBUG - + return 0
2025-07-08 08:17:40,097: DEBUG - + dpkg-deb --build /tmp/tmp.rGMaBgShiP/vpnclient-ynh-deps /tmp/tmp.rGMaBgShiP/vpnclient-ynh-deps.deb
2025-07-08 08:17:40,127: DEBUG - + dpkg --force-depends --install /tmp/tmp.rGMaBgShiP/vpnclient-ynh-deps.deb
2025-07-08 08:17:40,127: DEBUG - + tee /tmp/tmp.rGMaBgShiP/dpkg_log
2025-07-08 08:17:40,196: DEBUG - Selecting previously unselected package vpnclient-ynh-deps.
2025-07-08 08:17:40,546: DEBUG - (Reading database ... 83640 files and directories currently installed.)
2025-07-08 08:17:40,550: DEBUG - Preparing to unpack .../vpnclient-ynh-deps.deb ...
2025-07-08 08:17:40,555: DEBUG - Unpacking vpnclient-ynh-deps (2.3~ynh4) ...
2025-07-08 08:17:40,587: DEBUG - dpkg: vpnclient-ynh-deps: dependency problems, but configuring anyway as you requested:
2025-07-08 08:17:40,587: DEBUG -  vpnclient-ynh-deps depends on openvpn; however:
2025-07-08 08:17:40,587: DEBUG -   Package openvpn is not installed.
2025-07-08 08:17:40,587: DEBUG - 
2025-07-08 08:17:40,588: DEBUG - Setting up vpnclient-ynh-deps (2.3~ynh4) ...
2025-07-08 08:17:40,619: DEBUG - + _ynh_apt_install --fix-broken
2025-07-08 08:17:40,620: DEBUG - + _ynh_apt --no-remove --option Dpkg::Options::=--force-confdef --option Dpkg::Options::=--force-confold install --fix-broken
2025-07-08 08:17:40,620: DEBUG - + _ynh_wait_dpkg_free
2025-07-08 08:17:40,812: DEBUG - + return 0
2025-07-08 08:17:40,813: DEBUG - + apt-get --assume-yes --quiet -o=Acquire::Retries=3 -o=Dpkg::Use-Pty=0 --no-remove --option Dpkg::Options::=--force-confdef --option Dpkg::Options::=--force-confold install --fix-broken
2025-07-08 08:17:41,157: DEBUG - Reading package lists...
2025-07-08 08:17:41,430: DEBUG - Building dependency tree...
2025-07-08 08:17:41,432: DEBUG - Reading state information...
2025-07-08 08:17:41,542: DEBUG - Correcting dependencies... Done
2025-07-08 08:17:41,820: DEBUG - The following additional packages will be installed:
2025-07-08 08:17:41,822: DEBUG -   easy-rsa libpkcs11-helper1 opensc opensc-pkcs11 openvpn
2025-07-08 08:17:41,824: DEBUG - Suggested packages:
2025-07-08 08:17:41,825: DEBUG -   openvpn-dco-dkms openvpn-systemd-resolved
2025-07-08 08:17:41,861: DEBUG - The following NEW packages will be installed:
2025-07-08 08:17:41,863: DEBUG -   easy-rsa libpkcs11-helper1 opensc opensc-pkcs11 openvpn
2025-07-08 08:18:11,924: DEBUG - 0 upgraded, 5 newly installed, 0 to remove and 0 not upgraded.
2025-07-08 08:18:11,925: DEBUG - Need to get 1395 kB/2047 kB of archives.
2025-07-08 08:18:11,925: DEBUG - After this operation, 6821 kB of additional disk space will be used.
2025-07-08 08:18:11,926: DEBUG - Ign:1 http://ftp.debian.org/debian bookworm/main amd64 easy-rsa all 3.1.0-1
2025-07-08 08:18:41,950: DEBUG - Ign:2 http://ftp.debian.org/debian bookworm/main amd64 libpkcs11-helper1 amd64 1.29.0-1
2025-07-08 08:19:11,980: DEBUG - Ign:3 http://ftp.debian.org/debian bookworm/main amd64 opensc-pkcs11 amd64 0.23.0-0.3+deb12u2
2025-07-08 08:19:42,011: DEBUG - Ign:4 http://ftp.debian.org/debian bookworm/main amd64 opensc amd64 0.23.0-0.3+deb12u2
2025-07-08 08:20:12,038: DEBUG - Ign:1 http://ftp.debian.org/debian bookworm/main amd64 easy-rsa all 3.1.0-1
2025-07-08 08:20:42,071: DEBUG - Ign:2 http://ftp.debian.org/debian bookworm/main amd64 libpkcs11-helper1 amd64 1.29.0-1
2025-07-08 08:21:12,100: DEBUG - Ign:3 http://ftp.debian.org/debian bookworm/main amd64 opensc-pkcs11 amd64 0.23.0-0.3+deb12u2
2025-07-08 08:21:42,130: DEBUG - Ign:4 http://ftp.debian.org/debian bookworm/main amd64 opensc amd64 0.23.0-0.3+deb12u2
2025-07-08 08:22:12,161: DEBUG - Ign:1 http://ftp.debian.org/debian bookworm/main amd64 easy-rsa all 3.1.0-1
2025-07-08 08:22:42,185: DEBUG - Ign:2 http://ftp.debian.org/debian bookworm/main amd64 libpkcs11-helper1 amd64 1.29.0-1
2025-07-08 08:23:12,213: DEBUG - Ign:3 http://ftp.debian.org/debian bookworm/main amd64 opensc-pkcs11 amd64 0.23.0-0.3+deb12u2
2025-07-08 08:23:42,246: DEBUG - Ign:4 http://ftp.debian.org/debian bookworm/main amd64 opensc amd64 0.23.0-0.3+deb12u2
2025-07-08 08:24:12,279: DEBUG - Err:1 http://ftp.debian.org/debian bookworm/main amd64 easy-rsa all 3.1.0-1
2025-07-08 08:24:12,280: DEBUG -   Temporary failure resolving 'ftp.debian.org'
2025-07-08 08:24:42,302: DEBUG - Err:2 http://ftp.debian.org/debian bookworm/main amd64 libpkcs11-helper1 amd64 1.29.0-1
2025-07-08 08:24:42,303: DEBUG -   Temporary failure resolving 'ftp.debian.org'
2025-07-08 08:25:12,335: DEBUG - Err:3 http://ftp.debian.org/debian bookworm/main amd64 opensc-pkcs11 amd64 0.23.0-0.3+deb12u2
2025-07-08 08:25:12,336: DEBUG -   Temporary failure resolving 'ftp.debian.org'
2025-07-08 08:25:42,365: DEBUG - Err:4 http://ftp.debian.org/debian bookworm/main amd64 opensc amd64 0.23.0-0.3+deb12u2
2025-07-08 08:25:42,366: DEBUG -   Temporary failure resolving 'ftp.debian.org'
<span class="alert-warning">2025-07-08 08:25:42,371: WARNING - E: Failed to fetch http://ftp.debian.org/debian/pool/main/e/easy-rsa/easy-rsa_3.1.0-1_all.deb  Temporary failure resolving 'ftp.debian.org'</span>
<span class="alert-warning">2025-07-08 08:25:42,376: WARNING - E: Failed to fetch http://ftp.debian.org/debian/pool/main/p/pkcs11-helper/libpkcs11-helper1_1.29.0-1_amd64.deb  Temporary failure resolving 'ftp.debian.org'</span>
<span class="alert-warning">2025-07-08 08:25:42,380: WARNING - E: Failed to fetch http://ftp.debian.org/debian/pool/main/o/opensc/opensc-pkcs11_0.23.0-0.3%2bdeb12u2_amd64.deb  Temporary failure resolving 'ftp.debian.org'</span>
<span class="alert-warning">2025-07-08 08:25:42,383: WARNING - E: Failed to fetch http://ftp.debian.org/debian/pool/main/o/opensc/opensc_0.23.0-0.3%2bdeb12u2_amd64.deb  Temporary failure resolving 'ftp.debian.org'</span>
<span class="alert-warning">2025-07-08 08:25:42,386: WARNING - E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?</span>
2025-07-08 08:25:42,389: DEBUG - + cat /tmp/tmp.rGMaBgShiP/dpkg_log
2025-07-08 08:25:42,389: DEBUG - Selecting previously unselected package vpnclient-ynh-deps.
2025-07-08 08:25:42,389: DEBUG - (Reading database ... 83640 files and directories currently installed.)
2025-07-08 08:25:42,389: DEBUG - Preparing to unpack .../vpnclient-ynh-deps.deb ...
2025-07-08 08:25:42,390: DEBUG - Unpacking vpnclient-ynh-deps (2.3~ynh4) ...
2025-07-08 08:25:42,390: DEBUG - dpkg: vpnclient-ynh-deps: dependency problems, but configuring anyway as you requested:
2025-07-08 08:25:42,390: DEBUG -  vpnclient-ynh-deps depends on openvpn; however:
2025-07-08 08:25:42,390: DEBUG -   Package openvpn is not installed.
2025-07-08 08:25:42,390: DEBUG - 
2025-07-08 08:25:42,390: DEBUG - Setting up vpnclient-ynh-deps (2.3~ynh4) ...
2025-07-08 08:25:42,390: DEBUG - ++ grep -oP '(?&lt;=-ynh-deps depends on ).*(?=; however)' /tmp/tmp.rGMaBgShiP/dpkg_log
2025-07-08 08:25:42,391: DEBUG - ++ tr '\n' ' '
2025-07-08 08:25:42,391: DEBUG - + local 'problematic_dependencies=openvpn '
2025-07-08 08:25:42,391: DEBUG - + [[ -n openvpn  ]]
2025-07-08 08:25:42,391: DEBUG - + _ynh_apt_install openvpn --dry-run
2025-07-08 08:25:42,391: DEBUG - + _ynh_apt --no-remove --option Dpkg::Options::=--force-confdef --option Dpkg::Options::=--force-confold install openvpn --dry-run
2025-07-08 08:25:42,391: DEBUG - + sed --quiet '/Reading state info/,$p'
2025-07-08 08:25:42,391: DEBUG - + _ynh_wait_dpkg_free
2025-07-08 08:25:42,392: DEBUG - + grep -v 'fix-broken\|Reading state info'
2025-07-08 08:25:42,572: DEBUG - + return 0
2025-07-08 08:25:42,573: DEBUG - + apt-get --assume-yes --quiet -o=Acquire::Retries=3 -o=Dpkg::Use-Pty=0 --no-remove --option Dpkg::Options::=--force-confdef --option Dpkg::Options::=--force-confold install openvpn --dry-run
<span class="alert-warning">2025-07-08 08:25:43,123: WARNING - The following packages have unmet dependencies:</span>
<span class="alert-warning">2025-07-08 08:25:43,126: WARNING -  openvpn : Depends: libpkcs11-helper1 (&gt;= 1.28) but it is not going to be installed</span>
<span class="alert-warning">2025-07-08 08:25:43,129: WARNING -            Recommends: easy-rsa but it is not going to be installed</span>
2025-07-08 08:25:43,132: DEBUG - + ynh_die 'Unable to install apt dependencies'
<span class="alert-warning">2025-07-08 08:25:43,207: WARNING - Unable to install apt dependencies</span>
<span class="alert-danger">2025-07-08 08:25:43,714: ERROR - provision_or_update failed for apt : An error occured inside the script snippet : Unable to install apt dependencies</span>

UPDATE 2 : looks like openvpn has been removed with vpnclient app, and now it is needed for backup restore. But I cannot reinstall it because my server isn’t connected to internet due to the vpn failure O.o

UPDATE 3 : I’ve managed to download packages and scp them on the server. Now openvpn is running.
When starting ynh-vpnclient or restore a backup I have the same errors.

juil. 09 21:17:23 ntpd[3557]: ERR: ntpd exiting on signal 15 (Terminated)
juil. 09 21:17:23 ynh-vpnclient[3568]: [INFO] ntp synchronization failed, falling back to curl method
juil. 09 21:17:28 ynh-vpnclient[3593]: [INFO] Waiting for tun0 interface to show up
juil. 09 21:20:28 ynh-vpnclient[3637]: [FAIL] The VPN client didn't open tun0 interface
juil. 09 21:20:28 ynh-vpnclient[3639]: 2025-07-09 21:19:51 RESOLVE: Cannot resolve host address: vpn.fdn.fr:1194 (Temporary failure in name resolution)

UPDATE 4 : I can ping 1.1.1.1 but ping google.com or ping vpn.fdn.fr fails into failing to resolve domain name

Any help is very welcomed !!!