Problème d'installation de yunohost sur ma brique

Bonjour à tous
Je suis en train d’installer yunohost sur ma brique, sur une nouvelle carte SD.
Je suis scrupuleusement le tuto sur cette page : Installer YunoHost | Yunohost Documentation

  • téléchargement de l’image : ok
  • flasher la carte SD avec Etcher : ok
  • aller sur la brique via un navigateur web (et rentrer les informations demandées) : ok

Là où ça se complique, c’est quand je lance le processus.
J’obtiens très vite une erreur, que je colle ici :

============================
Running: DEBIAN_FRONTEND=noninteractive APT_LISTCHANGES_FRONTEND=none LC_ALL=C apt-get -o=Acquire::Retries=3 -o=Dpkg::Use-Pty=0 --quiet --assume-yes update
Get:1 http://security.debian.org buster/updates InRelease [65.4 kB]
Get:2 http://deb.debian.org/debian buster InRelease [122 kB]
Get:3 http://deb.debian.org/debian buster-updates InRelease [51.9 kB]
Get:4 http://forge.yunohost.org/debian buster InRelease [18.2 kB]
Get:5 http://armbian.hosthatch.com/apt buster InRelease [26.9 kB]
Get:6 http://forge.yunohost.org/debian buster/stable armhf Packages [6175 B]
Get:7 http://armbian.hosthatch.com/apt buster/buster-desktop armhf Packages [28.4 kB]
Get:8 http://armbian.hosthatch.com/apt buster/main armhf Packages [136 kB]
Get:9 http://armbian.hosthatch.com/apt buster/buster-utils armhf Packages [17.5 kB]
Reading package lists...
E: Repository 'http://security.debian.org buster/updates InRelease' changed its 'Suite' value from 'stable' to 'oldstable'
E: Repository 'http://deb.debian.org/debian buster InRelease' changed its 'Suite' value from 'stable' to 'oldstable'
E: Repository 'http://deb.debian.org/debian buster-updates InRelease' changed its 'Suite' value from 'stable-updates' to 'oldstable-updates'
Command 'DEBIAN_FRONTEND=noninteractive APT_LISTCHANGES_FRONTEND=none LC_ALL=C apt-get -o=Acquire::Retries=3 -o=Dpkg::Use-Pty=0 --quiet --assume-yes update &>> ./data/upgrade.logs' returned non-zero exit status 100.

Merci pour toute l’aide que vous pourriez m’apporter !

Depuis le terminal :

sudo apt update

Bonjour
Merci pour ta réponse.
Hélas, je n’arrive pas à me connecter à un terminal. Quand je me connecte en ssh, il me demande de me logger, sauf que je n’ai aucun compte, ni entré aucun mot de passe.

Au cours de la post-install tu as défini un mot de passe.
Pour te connecter en ssh, le login est ‘admin’ et le mot de passe est celui que tu as utilisé.

C’est justement tout au début de la post install que j’ai l’erreur indiquée.
J’ai essayé avec ce mot de passe déjà, mais ça me met une erreur (access denied).

EDIT : Le mot de passe par défaut était “yunohost” !
Je teste la proposition tout de suite.

L’installation a progressé, jusqu’à la partie “configuration du VPN”.

Là, je me retrouve avec une erreur bloquante :

============================
Running: yunohost app addaccess vpnclient -u 'smidge'
'yunohost app addaccess' is deprecated and will be removed in the future
'yunohost app addaccess' is deprecated and will be removed in the future
allowed_users: 
  vpnclient: smidge
Running: yunohost app setting vpnclient service_enabled -v 1
Running: ynh-vpnclient-loadcubefile.sh -u 'smidge' -p '[REDACTED]' -c /tmp/config.cube

========================================
>>>> Auto-configuration
========================================

# Authentication

========================================
>>>> DNS & IPv6
========================================

# DNS

# IPv6
[+++++...............] > Reading config panel description and current configuration...
Transforming .cube into OVPN file
sed: -e expression #1, char 20: unknown command: `3'
The operation 'Apply config to the 'vpnclient' app' could not be completed. Please share the full log of this operation using the command 'yunohost log share 20220131-064227-app_config_set-vpnclient' to get help
Failed to apply config panel values.
Command 'ynh-vpnclient-loadcubefile.sh -u 'smidge' -p '[REDACTED]' -c /tmp/config.cube &>> ./data/configure_vpnclient.logs' returned non-zero exit status 1.

Une suggestion pour passer cette étape ?

EDIT : cela vient-il de mon .cube ? C’est celui que j’ai utilisé jusque là. En faut-il un nouveau si je réinstalle tout ? Et le cas échéant, où puis-je m’en procurer un à jour ?

C’est un bug dans l’appli vpnclient, qui ne se produit qu’avec certains fichiers .cube, comme ceux fournis par Franciliens.net, dans lesquels on trouve “route-ipv6…” dans le paramètre “openvpn_rm”.

En attendant que ce bug soit corrigé, tu peux contourner le problème en modifiant ton fichier .cube comme ceci : sur l’avant dernière ligne, celle qui commence par “openvpn_rm”, supprime la partie ‘, "route-ipv6 2000::/3"

Voici la différence avant/après :

-  "openvpn_rm": ["tun-ipv6","pull","nobind","comp-lzo adaptive", "ns-cert-type server", "route-ipv6 2000::/3","redirect-gateway def1 bypass-dhcp","tls-client"]
+  "openvpn_rm": ["tun-ipv6","pull","nobind","comp-lzo adaptive", "ns-cert-type server", "redirect-gateway def1 bypass-dhcp","tls-client"]

Une fois que c’est fait, relance la configuration du vpn, ça devrait marcher.

1 Like

The patch on vpnclient to make some Franciliens VPN work again is now published.

Merci beaucoup !
Mais hélas pour moi, en relançant l’installation au complet, il me dit de nouveau que le nom de domaine n’est pas libre ( smidge.noho.st ), et je vais devoir le faire supprimer de nouveau pour pouvoir refaire un essai…

EDIT : y a-t-il un moyen plus rapide pour ce faire que de passer par ce topic Nohost domain recovery - Suppression de domaine en nohost.me, noho.st et ynh.fr - #1824 by Smidge ?
Sinon, tant pis, j’en repasserais par là…

L’installation est arrivée à son terme !
Toutefois, il semble qu’il y ait un problème avec le VPN : j’ai eu plusieurs messages allant dans ce sens pendant l’installation, et je ne peux pas accéder à ma brique autrement qu’en local.

Voilà le log que j’ai eu pour le diagnostic final :

Running: yunohost diagnosis show --issues
reports: 
  0: 
    description: Internet connectivity
    id: ip
    items: 
      details: Having a working IPv6 is not mandatory for your server to work, but it is better for the health of the Internet as a whole. IPv6 should usually be automatically configured by the system or your provider if it's available. Otherwise, you might need to configure a few things manually as explained in the documentation here: https://yunohost.org/#/ipv6. If you cannot enable IPv6 or if it seems too technical for you, you can also safely ignore this warning.
      status: WARNING
      summary: The server does not have working IPv6.
  1: 
    description: DNS records
    id: dnsrecords
    items: 
      0: 
        details: 
          - This domain's DNS configuration should automatically be managed by YunoHost. If that's not the case, you can try to force an update using 'yunohost dyndns update --force'.
          - The following DNS record does not seem to follow the recommended configuration:
Type: AAAA
Name: @
Current value: 2a01:cb04:86:3200:95:aff:fe82:156a
Expected value: None
        status: ERROR
        summary: Some DNS records are missing or incorrect for domain smidge.noho.st (category basic)
      1: 
        details: 
          - This domain's DNS configuration should automatically be managed by YunoHost. If that's not the case, you can try to force an update using 'yunohost dyndns update --force'.
          - The following DNS record does not seem to follow the recommended configuration:
Type: TXT
Name: mail._domainkey
Current value: "v=DKIM1; h=sha256; k=rsa; p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDQFspPMeyc4kV+UCqcJfbzHV37pS/lGQ1KM/VnlydQ3GWkBEeFS0/AwIqRRwbUhEVwdSjnEnTbu80t6SqaMsm/mIH7QpixMwW+pa8quecG8kHPgk4pOJjvdwZOdDKGILd6Hkt00WTf191gkTdXop9jVnnOttybK2c6/jRiKywUQQIDAQAB"
Expected value: "v=DKIM1; h=sha256; k=rsa; p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQC/OJGdOgzst3kvY3Q/rzzZGummyJH6J7aDYw5FB5ZmCb4pCiLapwknAux5liNVrdwvvx/lGzcBj1f+AA39LQ/ukPhCahXUwpxUQyG3NGlIZMRCqkhMjwbnau8BQNkMwpJ611LkLICR6guEUxvvRfdVuRvECjt0R4BpyJSydjn3HwIDAQAB"
        status: ERROR
        summary: Some DNS records are missing or incorrect for domain smidge.noho.st (category mail)
      2: 
        details: 
          - This domain's DNS configuration should automatically be managed by YunoHost. If that's not the case, you can try to force an update using 'yunohost dyndns update --force'.
          - The following DNS record does not seem to follow the recommended configuration:
Type: AAAA
Name: *
Current value: 2a01:cb04:86:3200:95:aff:fe82:156a
Expected value: None
        status: WARNING
        summary: Some DNS records are missing or incorrect for domain smidge.noho.st (category extra)
  2: 
    description: Ports exposure
    id: ports
    items: 
      0: 
        details: 
          - Exposing this port is needed for admin features (service ssh)
          - To fix this issue, you most probably need to configure port forwarding on your internet router as described in https://yunohost.org/isp_box_config
        status: ERROR
        summary: Port 22 is not reachable from outside.
      1: 
        details: 
          - Exposing this port is needed for email features (service postfix)
          - To fix this issue, you most probably need to configure port forwarding on your internet router as described in https://yunohost.org/isp_box_config
        status: ERROR
        summary: Port 25 is not reachable from outside.
      2: 
        details: 
          - Exposing this port is needed for web features (service nginx)
          - To fix this issue, you most probably need to configure port forwarding on your internet router as described in https://yunohost.org/isp_box_config
        status: ERROR
        summary: Port 80 is not reachable from outside.
      3: 
        details: 
          - Exposing this port is needed for web features (service nginx)
          - To fix this issue, you most probably need to configure port forwarding on your internet router as described in https://yunohost.org/isp_box_config
        status: ERROR
        summary: Port 443 is not reachable from outside.
      4: 
        details: 
          - Exposing this port is needed for email features (service postfix)
          - To fix this issue, you most probably need to configure port forwarding on your internet router as described in https://yunohost.org/isp_box_config
        status: ERROR
        summary: Port 587 is not reachable from outside.
      5: 
        details: 
          - Exposing this port is needed for email features (service dovecot)
          - To fix this issue, you most probably need to configure port forwarding on your internet router as described in https://yunohost.org/isp_box_config
        status: ERROR
        summary: Port 993 is not reachable from outside.
      6: 
        details: 
          - Exposing this port is needed for xmpp features (service metronome)
          - To fix this issue, you most probably need to configure port forwarding on your internet router as described in https://yunohost.org/isp_box_config
        status: ERROR
        summary: Port 5222 is not reachable from outside.
      7: 
        details: 
          - Exposing this port is needed for xmpp features (service metronome)
          - To fix this issue, you most probably need to configure port forwarding on your internet router as described in https://yunohost.org/isp_box_config
        status: ERROR
        summary: Port 5269 is not reachable from outside.
  3: 
    description: Web
    id: web
    items: 
      details: Timed-out while trying to contact your server from outside. It appears to be unreachable.
1. The most common cause for this issue is that port 80 (and 443) are not correctly forwarded to your server.
2. You should also make sure that the service nginx is running
3. On more complex setups: make sure that no firewall or reverse-proxy is interfering.
      status: ERROR
      summary: Domain smidge.noho.st appears unreachable through HTTP from outside the local network.
  4: 
    description: Email
    id: mail
    items: 
      0: 
        details: 
          - You should first try to unblock outgoing port 25 in your internet router interface or your hosting provider interface. (Some hosting provider may require you to send them a support ticket for this).
          - Some providers won't let you unblock outgoing port 25 because they don't care about Net Neutrality.
 - Some of them provide the alternative of using a mail server relay though it implies that the relay will be able to spy on your email traffic.
- A privacy-friendly alternative is to use a VPN *with a dedicated public IP* to bypass this kind of limits. See https://yunohost.org/#/vpn_advantage
- You can also consider switching to a more net neutrality-friendly provider
        status: ERROR
        summary: The SMTP mail server cannot send emails to other servers because outgoing port 25 is blocked in IPv4.
      1: 
        details: Could not open a connection on port 25 to your server in IPv4. It appears to be unreachable.
1. The most common cause for this issue is that port 25 is not correctly forwarded to your server.
2. You should also make sure that service postfix is running.
3. On more complex setups: make sure that no firewall or reverse-proxy is interfering.
        status: ERROR
        summary: The SMTP mail server is unreachable from the outside on IPv4. It won't be able to receive emails.
      2: 
        details: 
          - Current reverse DNS: lfbn-idf2-1-369-190.w82-123.abo.wanadoo.fr
Expected value: smidge.noho.st
          - You should first try to configure the reverse DNS with smidge.noho.st in your internet router interface or your hosting provider interface. (Some hosting provider may require you to send them a support ticket for this).
          - Some providers won't let you configure your reverse DNS (or their feature might be broken...). If you are experiencing issues because of this, consider the following solutions:
 - Some ISP provide the alternative of using a mail server relay though it implies that the relay will be able to spy on your email traffic.
- A privacy-friendly alternative is to use a VPN *with a dedicated public IP* to bypass this kind of limits. See https://yunohost.org/#/vpn_advantage
- Or it's possible to switch to a different provider
        status: ERROR
        summary: The reverse DNS is not correctly configured in IPv4. Some emails may fail to get delivered or may get flagged as spam.
  5: 
    description: Services status check
    id: services
    items: 
      details: You can try to restart the service, and if it doesn't work, have a look at the service logs in the webadmin (from the command line, you can do this with 'yunohost service restart ynh-vpnclient' and 'yunohost service log ynh-vpnclient').
      status: ERROR
      summary: Service ynh-vpnclient is failed :(

Je suis preneur de tout conseil !

EDIT : probablement un souci de parefeu de ma box

Il faudrait regarder dans /var/log/openvpn-client.log pourquoi il n’arrive pas à ouvrir le connexion vpn.

C’était un problème de paramétrage de ma box (qui était buggée et que j’ai dû réinitialiser), qui ne redirigeait pas les ports. C’est réglé !

Normalement, l’intérêt du VPN, c’est que tu n’as pas besoin de faire de redirection de ports justement.
Donc là, je dirais que ton compte VPN ne te sert à rien.

En effet, il y a un autre problème.
J’ai 2 services qui sont arrêtés : fail2ban et ynh-vpnclient
Si je les redémarre manuellement depuis une console, il me met un “success”, mais leur état ne bouge pas.

Voilà le log pour /var/log/ynh-vpnclient.log

[INFO] Retrieving Yunohost settings... 
[ OK ] Settings retrieved
[WARN] Service is disabled, not starting it
[INFO] Retrieving Yunohost settings... 
[ OK ] Settings retrieved
[INFO] [vpnclient] Stopping...

(ces lignes plusieurs fois, à chaque fois que j’ai redémarré le service)

EDIT : un nouveau problème apparaît quand je lance le diagnostic du panel admin

Le port sortant 25 semble être bloqué. Vous devriez essayer de le débloquer dans le panneau de configuration de votre fournisseur de services Internet (ou hébergeur). En attendant, le serveur ne pourra pas envoyer des emails à d'autres serveurs.

Le DNS inverse n'est pas correctement configuré en IPv4. Certains emails seront peut-être refusés ou considérés comme des spam.

Votre IP ou domaine x.x.x.x est sur liste noire sur Spamhaus ZEN

Il y a effectivement un truc qui ne marche pas correctement !

Essaye
sudo systemctl enable ynh-vpnclient
Avant de relancer le service.
Le port 25 est fermé (depuis le diagnostic initial. Une fois que le client vpn sera connecté tu n’aura probablement plus d’erreurs concernant le port et la liste noire.
Pour fail2ban, un log ?

Merci pour ta réponse.
J’ai lancé la commande que tu as indiquée pour le vpn, mais le service est toujours désactivé.

Pour le fail2ban, voilà le log quand je tente de le lancer :

LOGFILE: journalctl
-- Logs begin at Sun 2022-02-06 01:40:01 CET, end at Sun 2022-02-06 02:40:54 CET. --
Feb 06 02:39:27 systemd[1]: /lib/systemd/system/fail2ban.service:12: PIDFile= references path below legacy directory /var/run/, updating /var/run/fail2ban/fail2ban.pid → /run/fail2ban/fail2ban.pid; please update the unit file accordingly.
Feb 06 02:40:52 systemd[1]: Starting Fail2Ban Service...
Feb 06 02:40:52 systemd[1]: Started Fail2Ban Service.
Feb 06 02:40:54 fail2ban-server[29451]:  No file(s) found for glob /var/log/piwigoFailedLogins.log
Feb 06 02:40:54 fail2ban-server[29451]:  Failed during configuration: Have not found any log file for piwigo jail
Feb 06 02:40:54 fail2ban-server[29451]:  Async configuration of server failed
Feb 06 02:40:54 systemd[1]: fail2ban.service: Main process exited, code=exited, status=255/EXCEPTION
Feb 06 02:40:54 systemd[1]: fail2ban.service: Failed with result 'exit-code'.

LOGFILE: /var/log/fail2ban.log

En fait, ce n’est pas le service systemd qui est désactivé, c’est le service au sens yunohost. Moi aussi je me suis fait avoir :slight_smile:

@smidge si tu peux accéder à l’interface Web d’admin, tu pourras activer le VPN dans Applications > VPN Client > Panneau de configuration.

Sinon, en ligne de commande : yunohost app config set vpnclient --args service_enabled=1
Et tu devras à nouveau répondre aux questions de configuration (DNS, ipv6, …). Mais les valeurs proposées par défaut devraient fonctionner, donc tu n’auras qu’à taper Enter à chaque fois.

Effectivement, j’ai trouvé ça dans le webadmin, et le VPN n’était pas activé.

Après (tentative d’) activation, j’ai toutefois des erreurs.
Je copie le log que ça m’affiche ici :

args:
  app: vpnclient
  args_file: null
  key: main
  value: null
ended_at: 2022-02-06 08:55:29.089248
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-02-06 08:55:02.335003
success: false
yunohost_version: 4.3.6.2

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

2022-02-06 09:55:02,378: DEBUG - Calling 'apply' action from config script
2022-02-06 09:55:02,408: DEBUG - Executing command '['sh', '-c', '/bin/bash -x "./config" apply 7>&1']'
2022-02-06 09:55:02,444: DEBUG - + source _common.sh
2022-02-06 09:55:02,448: DEBUG - ++ pkg_dependencies='sipcalc dnsutils openvpn curl fake-hwclock'
2022-02-06 09:55:02,450: DEBUG - ++ service_name=ynh-vpnclient
2022-02-06 09:55:02,453: DEBUG - ++ service_checker_name=ynh-vpnclient-checker
2022-02-06 09:55:02,455: DEBUG - + source /usr/share/yunohost/helpers
2022-02-06 09:55:02,459: DEBUG - +++ grep xtrace
2022-02-06 09:55:02,462: DEBUG - +++ set +o
2022-02-06 09:55:02,472: DEBUG - ++ readonly 'XTRACE_ENABLE=set -o xtrace'
2022-02-06 09:55:02,474: DEBUG - ++ XTRACE_ENABLE='set -o xtrace'
2022-02-06 09:55:02,755: DEBUG - + ynh_abort_if_errors
2022-02-06 09:55:02,762: DEBUG - + trap ynh_exit_properly EXIT
2022-02-06 09:55:02,763: DEBUG - + BACKTICK='`'
2022-02-06 09:55:02,765: DEBUG - + TRIPLEBACKTICKS='```'
2022-02-06 09:55:02,773: DEBUG - + ynh_app_config_run apply
2022-02-06 09:55:02,776: DEBUG - + old=()
2022-02-06 09:55:02,779: DEBUG - + declare -Ag old
2022-02-06 09:55:02,781: DEBUG - + changed=()
2022-02-06 09:55:02,784: DEBUG - + declare -Ag changed
2022-02-06 09:55:02,786: DEBUG - + file_hash=()
2022-02-06 09:55:02,789: DEBUG - + declare -Ag file_hash
2022-02-06 09:55:02,791: DEBUG - + binds=()
2022-02-06 09:55:02,794: DEBUG - + declare -Ag binds
2022-02-06 09:55:02,796: DEBUG - + types=()
2022-02-06 09:55:02,799: DEBUG - + declare -Ag types
2022-02-06 09:55:02,802: DEBUG - + formats=()
2022-02-06 09:55:02,804: DEBUG - + declare -Ag formats
2022-02-06 09:55:02,806: DEBUG - + case $1 in
2022-02-06 09:55:02,809: DEBUG - + max_progression=4
2022-02-06 09:55:03,141: INFO - [+++++...............] > Reading config panel description and current configuration...
2022-02-06 09:55:03,153: DEBUG - + ynh_app_config_get
2022-02-06 09:55:03,156: DEBUG - + _ynh_app_config_get
2022-02-06 09:55:03,161: DEBUG - ++ python3
2022-02-06 09:55:03,478: DEBUG - + lines='status;alert;settings
2022-02-06 09:55:03,480: DEBUG - service_enabled;boolean;settings
2022-02-06 09:55:03,484: DEBUG - doc;alert;settings
2022-02-06 09:55:03,487: DEBUG - config_file;file;/etc/openvpn/client.conf
2022-02-06 09:55:03,489: DEBUG - crt_server_ca;file;/etc/openvpn/keys/ca-server.crt
2022-02-06 09:55:03,492: DEBUG - crt_client;file;/etc/openvpn/keys/user.crt
2022-02-06 09:55:03,494: DEBUG - crt_client_key;file;/etc/openvpn/keys/user.key
2022-02-06 09:55:03,496: DEBUG - login_user;string;settings
2022-02-06 09:55:03,499: DEBUG - login_passphrase;password;settings
2022-02-06 09:55:03,501: DEBUG - crt_client_ta;file;/etc/openvpn/keys/user_ta.key
2022-02-06 09:55:03,504: DEBUG - dns_method;select;settings
2022-02-06 09:55:03,506: DEBUG - nameservers;tags;settings
2022-02-06 09:55:03,508: DEBUG - ip6_net;string;settings
2022-02-06 09:55:03,511: DEBUG - ip6_addr;string;settings'
2022-02-06 09:55:03,514: DEBUG - + for line in $lines
2022-02-06 09:55:03,516: DEBUG - + IFS=';'
2022-02-06 09:55:03,520: DEBUG - + read short_setting type bind
2022-02-06 09:55:03,522: DEBUG - + binds[${short_setting}]=settings
2022-02-06 09:55:03,525: DEBUG - + types[${short_setting}]=alert
2022-02-06 09:55:03,527: DEBUG - + file_hash[${short_setting}]=
2022-02-06 09:55:03,530: DEBUG - + formats[${short_setting}]=
2022-02-06 09:55:03,533: DEBUG - + ynh_app_config_get_one status alert settings
2022-02-06 09:55:03,535: DEBUG - + _ynh_app_config_get_one status alert settings
2022-02-06 09:55:03,538: DEBUG - + local short_setting=status
2022-02-06 09:55:03,540: DEBUG - + local type=alert
2022-02-06 09:55:03,543: DEBUG - + local bind=settings
2022-02-06 09:55:03,545: DEBUG - + local getter=get__status
2022-02-06 09:55:03,547: DEBUG - + type -t get__status
2022-02-06 09:55:03,553: DEBUG - + grep -q '^function$'
2022-02-06 09:55:03,556: DEBUG - ++ get__status
2022-02-06 09:55:03,558: DEBUG - +++ ynh_app_setting_get vpnclient service_enabled
2022-02-06 09:55:03,561: DEBUG - +++ local _globalapp=vpnclient
2022-02-06 09:55:03,761: DEBUG - +++ app=vpnclient
2022-02-06 09:55:03,764: DEBUG - +++ [[ service_enabled =~ (unprotected|protected|skipped)_ ]]
2022-02-06 09:55:03,766: DEBUG - +++ ynh_app_setting get vpnclient service_enabled
2022-02-06 09:55:04,289: DEBUG - ++ local service_enabled=0
2022-02-06 09:55:04,294: DEBUG - +++ ping -w3 -c1 ip.yunohost.org
2022-02-06 09:55:04,330: DEBUG - +++ curl --max-time 5 https://ip.yunohost.org --silent
2022-02-06 09:55:04,514: DEBUG - ++ ipv4=xx.xx.xx.xx
2022-02-06 09:55:04,521: DEBUG - +++ ping -w3 -c1 ip6.yunohost.org
2022-02-06 09:55:04,546: DEBUG - ++ ipv6=
2022-02-06 09:55:04,553: DEBUG - ++ ip route get 1.2.3.4
2022-02-06 09:55:04,555: DEBUG - ++ grep -q tun0
2022-02-06 09:55:04,576: DEBUG - ++ cat
2022-02-06 09:55:04,585: DEBUG - + old[$short_setting]='style: info
2022-02-06 09:55:04,587: DEBUG - ask:
2022-02-06 09:55:04,590: DEBUG -   en: The VPN is not enabled'
2022-02-06 09:55:04,594: DEBUG - + formats[${short_setting}]=yaml
2022-02-06 09:55:04,597: DEBUG - + for line in $lines
2022-02-06 09:55:04,600: DEBUG - + IFS=';'
2022-02-06 09:55:04,602: DEBUG - + read short_setting type bind
2022-02-06 09:55:04,605: DEBUG - + binds[${short_setting}]=settings
2022-02-06 09:55:04,607: DEBUG - + types[${short_setting}]=boolean
2022-02-06 09:55:04,610: DEBUG - + file_hash[${short_setting}]=
2022-02-06 09:55:04,612: DEBUG - + formats[${short_setting}]=
2022-02-06 09:55:04,616: DEBUG - + ynh_app_config_get_one service_enabled boolean settings
2022-02-06 09:55:04,619: DEBUG - + _ynh_app_config_get_one service_enabled boolean settings
2022-02-06 09:55:04,622: DEBUG - + local short_setting=service_enabled
2022-02-06 09:55:04,624: DEBUG - + local type=boolean
2022-02-06 09:55:04,627: DEBUG - + local bind=settings
2022-02-06 09:55:04,630: DEBUG - + local getter=get__service_enabled
2022-02-06 09:55:04,633: DEBUG - + grep -q '^function$'
2022-02-06 09:55:04,635: DEBUG - + type -t get__service_enabled
2022-02-06 09:55:04,638: DEBUG - + [[ settings == *\(* ]]
2022-02-06 09:55:04,639: DEBUG - + [[ settings == \n\u\l\l ]]
2022-02-06 09:55:04,641: DEBUG - + [[ boolean == \f\i\l\e ]]
2022-02-06 09:55:04,643: DEBUG - + [[ boolean == \t\e\x\t ]]
2022-02-06 09:55:04,646: DEBUG - + local bind_after=
2022-02-06 09:55:04,650: DEBUG - + [[ settings == \s\e\t\t\i\n\g\s ]]
2022-02-06 09:55:04,658: DEBUG - + bind=:/etc/yunohost/apps/vpnclient/settings.yml
2022-02-06 09:55:04,660: DEBUG - ++ cut -d: -f1
2022-02-06 09:55:04,668: DEBUG - ++ echo :/etc/yunohost/apps/vpnclient/settings.yml
2022-02-06 09:55:04,671: DEBUG - + local bind_key_=
2022-02-06 09:55:04,673: DEBUG - + bind_key_=service_enabled
2022-02-06 09:55:04,684: DEBUG - + [[ service_enabled == *\>* ]]
2022-02-06 09:55:04,686: DEBUG - ++ cut -d: -f2
2022-02-06 09:55:04,689: DEBUG - ++ echo :/etc/yunohost/apps/vpnclient/settings.yml
2022-02-06 09:55:04,692: DEBUG - ++ sed s@__FINALPATH__@@
2022-02-06 09:55:04,695: DEBUG - ++ sed s/__APP__/vpnclient/
2022-02-06 09:55:04,698: DEBUG - + local bind_file=/etc/yunohost/apps/vpnclient/settings.yml
2022-02-06 09:55:04,700: DEBUG - ++ ynh_read_var_in_file --file=/etc/yunohost/apps/vpnclient/settings.yml --key=service_enabled --after=
2022-02-06 09:55:05,212: DEBUG - ++ after=
2022-02-06 09:55:05,215: DEBUG - ++ [[ -f /etc/yunohost/apps/vpnclient/settings.yml ]]
2022-02-06 09:55:05,311: DEBUG - + old[$short_setting]=0
2022-02-06 09:55:05,315: DEBUG - + for line in $lines
2022-02-06 09:55:05,318: DEBUG - + IFS=';'
2022-02-06 09:55:05,321: DEBUG - + read short_setting type bind
2022-02-06 09:55:05,324: DEBUG - + binds[${short_setting}]=settings
2022-02-06 09:55:05,326: DEBUG - + types[${short_setting}]=alert
2022-02-06 09:55:05,328: DEBUG - + file_hash[${short_setting}]=
2022-02-06 09:55:05,331: DEBUG - + formats[${short_setting}]=
2022-02-06 09:55:05,334: DEBUG - + ynh_app_config_get_one doc alert settings
2022-02-06 09:55:05,336: DEBUG - + _ynh_app_config_get_one doc alert settings
2022-02-06 09:55:05,339: DEBUG - + local short_setting=doc
2022-02-06 09:55:05,341: DEBUG - + local type=alert
2022-02-06 09:55:05,344: DEBUG - + local bind=settings
2022-02-06 09:55:05,349: DEBUG - + local getter=get__doc
2022-02-06 09:55:05,355: DEBUG - + grep -q '^function$'
2022-02-06 09:55:05,357: DEBUG - + type -t get__doc
2022-02-06 09:55:05,360: DEBUG - + [[ settings == *\(* ]]
2022-02-06 09:55:05,362: DEBUG - + [[ settings == \n\u\l\l ]]
2022-02-06 09:55:05,365: DEBUG - + [[ alert == \f\i\l\e ]]
2022-02-06 09:55:05,368: DEBUG - + [[ alert == \t\e\x\t ]]
2022-02-06 09:55:05,373: DEBUG - + local bind_after=
2022-02-06 09:55:05,383: DEBUG - + [[ settings == \s\e\t\t\i\n\g\s ]]
2022-02-06 09:55:05,386: DEBUG - + bind=:/etc/yunohost/apps/vpnclient/settings.yml
2022-02-06 09:55:05,388: DEBUG - ++ cut -d: -f1
2022-02-06 09:55:05,391: DEBUG - ++ echo :/etc/yunohost/apps/vpnclient/settings.yml
2022-02-06 09:55:05,393: DEBUG - + local bind_key_=
2022-02-06 09:55:05,395: DEBUG - + bind_key_=doc
2022-02-06 09:55:05,397: DEBUG - + [[ doc == *\>* ]]
2022-02-06 09:55:05,400: DEBUG - ++ cut -d: -f2
2022-02-06 09:55:05,403: DEBUG - ++ echo :/etc/yunohost/apps/vpnclient/settings.yml
2022-02-06 09:55:05,405: DEBUG - ++ sed s@__FINALPATH__@@
2022-02-06 09:55:05,407: DEBUG - ++ sed s/__APP__/vpnclient/
2022-02-06 09:55:05,411: DEBUG - + local bind_file=/etc/yunohost/apps/vpnclient/settings.yml
2022-02-06 09:55:05,414: DEBUG - ++ ynh_read_var_in_file --file=/etc/yunohost/apps/vpnclient/settings.yml --key=doc --after=
2022-02-06 09:55:05,984: DEBUG - ++ after=
2022-02-06 09:55:05,986: DEBUG - ++ [[ -f /etc/yunohost/apps/vpnclient/settings.yml ]]
2022-02-06 09:55:05,994: DEBUG - ++ echo YNH_NULL
2022-02-06 09:55:05,996: DEBUG - ++ return 0
2022-02-06 09:55:05,999: DEBUG - + old[$short_setting]=YNH_NULL
2022-02-06 09:55:06,005: DEBUG - + for line in $lines
2022-02-06 09:55:06,007: DEBUG - + IFS=';'
2022-02-06 09:55:06,010: DEBUG - + read short_setting type bind
2022-02-06 09:55:06,012: DEBUG - + binds[${short_setting}]=/etc/openvpn/client.conf
2022-02-06 09:55:06,015: DEBUG - + types[${short_setting}]=file
2022-02-06 09:55:06,018: DEBUG - + file_hash[${short_setting}]=
2022-02-06 09:55:06,020: DEBUG - + formats[${short_setting}]=
2022-02-06 09:55:06,023: DEBUG - + ynh_app_config_get_one config_file file /etc/openvpn/client.conf
2022-02-06 09:55:06,028: DEBUG - + _ynh_app_config_get_one config_file file /etc/openvpn/client.conf
2022-02-06 09:55:06,034: DEBUG - + local short_setting=config_file
2022-02-06 09:55:06,036: DEBUG - + local type=file
2022-02-06 09:55:06,039: DEBUG - + local bind=/etc/openvpn/client.conf
2022-02-06 09:55:06,041: DEBUG - + local getter=get__config_file
2022-02-06 09:55:06,043: DEBUG - + grep -q '^function$'
2022-02-06 09:55:06,045: DEBUG - + type -t get__config_file
2022-02-06 09:55:06,048: DEBUG - + [[ /etc/openvpn/client.conf == *\(* ]]
2022-02-06 09:55:06,051: DEBUG - + [[ /etc/openvpn/client.conf == \n\u\l\l ]]
2022-02-06 09:55:06,053: DEBUG - + [[ file == \f\i\l\e ]]
2022-02-06 09:55:06,055: DEBUG - + [[ /etc/openvpn/client.conf == \s\e\t\t\i\n\g\s ]]
2022-02-06 09:55:06,059: DEBUG - +++ echo /etc/openvpn/client.conf
2022-02-06 09:55:06,061: DEBUG - +++ sed s@__FINALPATH__@@
2022-02-06 09:55:06,064: DEBUG - +++ sed s/__APP__/vpnclient/
2022-02-06 09:55:06,066: DEBUG - ++ ls /etc/openvpn/client.conf
2022-02-06 09:55:06,073: DEBUG - + old[$short_setting]=/etc/openvpn/client.conf
2022-02-06 09:55:06,075: DEBUG - + file_hash[$short_setting]=true
2022-02-06 09:55:06,079: DEBUG - + for line in $lines
2022-02-06 09:55:06,084: DEBUG - + IFS=';'
2022-02-06 09:55:06,086: DEBUG - + read short_setting type bind
2022-02-06 09:55:06,088: DEBUG - + binds[${short_setting}]=/etc/openvpn/keys/ca-server.crt
2022-02-06 09:55:06,094: DEBUG - + types[${short_setting}]=file
2022-02-06 09:55:06,096: DEBUG - + file_hash[${short_setting}]=
2022-02-06 09:55:06,099: DEBUG - + formats[${short_setting}]=
2022-02-06 09:55:06,102: DEBUG - + ynh_app_config_get_one crt_server_ca file /etc/openvpn/keys/ca-server.crt
2022-02-06 09:55:06,104: DEBUG - + _ynh_app_config_get_one crt_server_ca file /etc/openvpn/keys/ca-server.crt
2022-02-06 09:55:06,107: DEBUG - + local short_setting=crt_server_ca
2022-02-06 09:55:06,112: DEBUG - + local type=file
2022-02-06 09:55:06,114: DEBUG - + local bind=/etc/openvpn/keys/ca-server.crt
2022-02-06 09:55:06,117: DEBUG - + local getter=get__crt_server_ca
2022-02-06 09:55:06,125: DEBUG - + grep -q '^function$'
2022-02-06 09:55:06,128: DEBUG - + type -t get__crt_server_ca
2022-02-06 09:55:06,130: DEBUG - + [[ /etc/openvpn/keys/ca-server.crt == *\(* ]]
2022-02-06 09:55:06,132: DEBUG - + [[ /etc/openvpn/keys/ca-server.crt == \n\u\l\l ]]
2022-02-06 09:55:06,134: DEBUG - + [[ file == \f\i\l\e ]]
2022-02-06 09:55:06,137: DEBUG - + [[ /etc/openvpn/keys/ca-server.crt == \s\e\t\t\i\n\g\s ]]
2022-02-06 09:55:06,139: DEBUG - +++ sed s/__APP__/vpnclient/
2022-02-06 09:55:06,141: DEBUG - +++ echo /etc/openvpn/keys/ca-server.crt
2022-02-06 09:55:06,144: DEBUG - +++ sed s@__FINALPATH__@@
2022-02-06 09:55:06,147: DEBUG - ++ ls /etc/openvpn/keys/ca-server.crt
2022-02-06 09:55:06,157: DEBUG - + old[$short_setting]=/etc/openvpn/keys/ca-server.crt
2022-02-06 09:55:06,159: DEBUG - + file_hash[$short_setting]=true
2022-02-06 09:55:06,165: DEBUG - + for line in $lines
2022-02-06 09:55:06,168: DEBUG - + IFS=';'
2022-02-06 09:55:06,171: DEBUG - + read short_setting type bind
2022-02-06 09:55:06,175: DEBUG - + binds[${short_setting}]=/etc/openvpn/keys/user.crt
2022-02-06 09:55:06,177: DEBUG - + types[${short_setting}]=file
2022-02-06 09:55:06,179: DEBUG - + file_hash[${short_setting}]=
2022-02-06 09:55:06,182: DEBUG - + formats[${short_setting}]=
2022-02-06 09:55:06,184: DEBUG - + ynh_app_config_get_one crt_client file /etc/openvpn/keys/user.crt
2022-02-06 09:55:06,187: DEBUG - + _ynh_app_config_get_one crt_client file /etc/openvpn/keys/user.crt
2022-02-06 09:55:06,188: DEBUG - + local short_setting=crt_client
2022-02-06 09:55:06,190: DEBUG - + local type=file
2022-02-06 09:55:06,192: DEBUG - + local bind=/etc/openvpn/keys/user.crt
2022-02-06 09:55:06,195: DEBUG - + local getter=get__crt_client
2022-02-06 09:55:06,197: DEBUG - + type -t get__crt_client
2022-02-06 09:55:06,200: DEBUG - + grep -q '^function$'
2022-02-06 09:55:06,203: DEBUG - + [[ /etc/openvpn/keys/user.crt == *\(* ]]
2022-02-06 09:55:06,210: DEBUG - + [[ /etc/openvpn/keys/user.crt == \n\u\l\l ]]
2022-02-06 09:55:06,213: DEBUG - + [[ file == \f\i\l\e ]]
2022-02-06 09:55:06,215: DEBUG - + [[ /etc/openvpn/keys/user.crt == \s\e\t\t\i\n\g\s ]]
2022-02-06 09:55:06,217: DEBUG - +++ echo /etc/openvpn/keys/user.crt
2022-02-06 09:55:06,230: DEBUG - +++ sed s@__FINALPATH__@@
2022-02-06 09:55:06,232: DEBUG - +++ sed s/__APP__/vpnclient/
2022-02-06 09:55:06,235: DEBUG - ++ ls /etc/openvpn/keys/user.crt
2022-02-06 09:55:06,247: DEBUG - + old[$short_setting]=/etc/openvpn/keys/user.crt
2022-02-06 09:55:06,249: DEBUG - + file_hash[$short_setting]=true
2022-02-06 09:55:06,252: DEBUG - + for line in $lines
2022-02-06 09:55:06,255: DEBUG - + IFS=';'
2022-02-06 09:55:06,258: DEBUG - + read short_setting type bind
2022-02-06 09:55:06,261: DEBUG - + binds[${short_setting}]=/etc/openvpn/keys/user.key
2022-02-06 09:55:06,265: DEBUG - + types[${short_setting}]=file
2022-02-06 09:55:06,267: DEBUG - + file_hash[${short_setting}]=
2022-02-06 09:55:06,270: DEBUG - + formats[${short_setting}]=
2022-02-06 09:55:06,272: DEBUG - + ynh_app_config_get_one crt_client_key file /etc/openvpn/keys/user.key
2022-02-06 09:55:06,274: DEBUG - + _ynh_app_config_get_one crt_client_key file /etc/openvpn/keys/user.key
2022-02-06 09:55:06,276: DEBUG - + local short_setting=crt_client_key
2022-02-06 09:55:06,279: DEBUG - + local type=file
2022-02-06 09:55:06,282: DEBUG - + local bind=/etc/openvpn/keys/user.key
2022-02-06 09:55:06,284: DEBUG - + local getter=get__crt_client_key
2022-02-06 09:55:06,287: DEBUG - + type -t get__crt_client_key
2022-02-06 09:55:06,290: DEBUG - + grep -q '^function$'
2022-02-06 09:55:06,295: DEBUG - + [[ /etc/openvpn/keys/user.key == *\(* ]]
2022-02-06 09:55:06,299: DEBUG - + [[ /etc/openvpn/keys/user.key == \n\u\l\l ]]
2022-02-06 09:55:06,302: DEBUG - + [[ file == \f\i\l\e ]]
2022-02-06 09:55:06,304: DEBUG - + [[ /etc/openvpn/keys/user.key == \s\e\t\t\i\n\g\s ]]
2022-02-06 09:55:06,314: DEBUG - +++ echo /etc/openvpn/keys/user.key
2022-02-06 09:55:06,316: DEBUG - +++ sed s@__FINALPATH__@@
2022-02-06 09:55:06,318: DEBUG - +++ sed s/__APP__/vpnclient/
2022-02-06 09:55:06,324: DEBUG - ++ ls /etc/openvpn/keys/user.key
2022-02-06 09:55:06,340: DEBUG - + old[$short_setting]=/etc/openvpn/keys/user.key
2022-02-06 09:55:06,342: DEBUG - + file_hash[$short_setting]=true
2022-02-06 09:55:06,346: DEBUG - + for line in $lines
2022-02-06 09:55:06,350: DEBUG - + IFS=';'
2022-02-06 09:55:06,352: DEBUG - + read short_setting type bind
2022-02-06 09:55:06,360: DEBUG - + binds[${short_setting}]=settings
2022-02-06 09:55:06,362: DEBUG - + types[${short_setting}]=string
2022-02-06 09:55:06,365: DEBUG - + file_hash[${short_setting}]=
2022-02-06 09:55:06,368: DEBUG - + formats[${short_setting}]=
2022-02-06 09:55:06,370: DEBUG - + ynh_app_config_get_one login_user string settings
2022-02-06 09:55:06,374: DEBUG - + _ynh_app_config_get_one login_user string settings
2022-02-06 09:55:06,377: DEBUG - + local short_setting=login_user
2022-02-06 09:55:06,382: DEBUG - + local type=string
2022-02-06 09:55:06,384: DEBUG - + local bind=settings
2022-02-06 09:55:06,386: DEBUG - + local getter=get__login_user
2022-02-06 09:55:06,388: DEBUG - + grep -q '^function$'
2022-02-06 09:55:06,391: DEBUG - + type -t get__login_user
2022-02-06 09:55:06,393: DEBUG - ++ get__login_user
2022-02-06 09:55:06,396: DEBUG - ++ '[' -s /etc/openvpn/keys/credentials ']'
2022-02-06 09:55:06,399: DEBUG - ++ echo ''
2022-02-06 09:55:06,402: DEBUG - + old[$short_setting]=
2022-02-06 09:55:06,404: DEBUG - + formats[${short_setting}]=yaml
2022-02-06 09:55:06,407: DEBUG - + for line in $lines
2022-02-06 09:55:06,409: DEBUG - + IFS=';'
2022-02-06 09:55:06,414: DEBUG - + read short_setting type bind
2022-02-06 09:55:06,416: DEBUG - + binds[${short_setting}]=settings
2022-02-06 09:55:06,419: DEBUG - + types[${short_setting}]=password
2022-02-06 09:55:06,421: DEBUG - + file_hash[${short_setting}]=
2022-02-06 09:55:06,424: DEBUG - + formats[${short_setting}]=
2022-02-06 09:55:06,426: DEBUG - + ynh_app_config_get_one login_passphrase password settings
2022-02-06 09:55:06,428: DEBUG - + _ynh_app_config_get_one login_passphrase password settings
2022-02-06 09:55:06,431: DEBUG - + local short_setting=login_passphrase
2022-02-06 09:55:06,434: DEBUG - + local type=password
2022-02-06 09:55:06,437: DEBUG - + local bind=settings
2022-02-06 09:55:06,440: DEBUG - + local getter=get__login_passphrase
2022-02-06 09:55:06,443: DEBUG - + type -t get__login_passphrase
2022-02-06 09:55:06,447: DEBUG - + grep -q '^function$'
2022-02-06 09:55:06,455: DEBUG - ++ get__login_passphrase
2022-02-06 09:55:06,458: DEBUG - ++ '[' -s /etc/openvpn/keys/credentials ']'
2022-02-06 09:55:06,460: DEBUG - ++ echo ''
2022-02-06 09:55:06,463: DEBUG - + old[$short_setting]=
2022-02-06 09:55:06,465: DEBUG - + formats[${short_setting}]=yaml
2022-02-06 09:55:06,467: DEBUG - + for line in $lines
2022-02-06 09:55:06,470: DEBUG - + IFS=';'
2022-02-06 09:55:06,472: DEBUG - + read short_setting type bind
2022-02-06 09:55:06,475: DEBUG - + binds[${short_setting}]=/etc/openvpn/keys/user_ta.key
2022-02-06 09:55:06,478: DEBUG - + types[${short_setting}]=file
2022-02-06 09:55:06,481: DEBUG - + file_hash[${short_setting}]=
2022-02-06 09:55:06,483: DEBUG - + formats[${short_setting}]=
2022-02-06 09:55:06,485: DEBUG - + ynh_app_config_get_one crt_client_ta file /etc/openvpn/keys/user_ta.key
2022-02-06 09:55:06,488: DEBUG - + _ynh_app_config_get_one crt_client_ta file /etc/openvpn/keys/user_ta.key
2022-02-06 09:55:06,490: DEBUG - + local short_setting=crt_client_ta
2022-02-06 09:55:06,492: DEBUG - + local type=file
2022-02-06 09:55:06,495: DEBUG - + local bind=/etc/openvpn/keys/user_ta.key
2022-02-06 09:55:06,498: DEBUG - + local getter=get__crt_client_ta
2022-02-06 09:55:06,501: DEBUG - + type -t get__crt_client_ta
2022-02-06 09:55:06,504: DEBUG - + grep -q '^function$'
2022-02-06 09:55:06,506: DEBUG - + [[ /etc/openvpn/keys/user_ta.key == *\(* ]]
2022-02-06 09:55:06,508: DEBUG - + [[ /etc/openvpn/keys/user_ta.key == \n\u\l\l ]]
2022-02-06 09:55:06,511: DEBUG - + [[ file == \f\i\l\e ]]
2022-02-06 09:55:06,514: DEBUG - + [[ /etc/openvpn/keys/user_ta.key == \s\e\t\t\i\n\g\s ]]
2022-02-06 09:55:06,516: DEBUG - +++ sed s@__FINALPATH__@@
2022-02-06 09:55:06,518: DEBUG - +++ sed s/__APP__/vpnclient/
2022-02-06 09:55:06,521: DEBUG - +++ echo /etc/openvpn/keys/user_ta.key
2022-02-06 09:55:06,524: DEBUG - ++ ls /etc/openvpn/keys/user_ta.key
2022-02-06 09:55:06,527: DEBUG - + old[$short_setting]=/etc/openvpn/keys/user_ta.key
2022-02-06 09:55:06,530: DEBUG - + file_hash[$short_setting]=true
2022-02-06 09:55:06,532: DEBUG - + for line in $lines
2022-02-06 09:55:06,534: DEBUG - + IFS=';'
2022-02-06 09:55:06,537: DEBUG - + read short_setting type bind
2022-02-06 09:55:06,540: DEBUG - + binds[${short_setting}]=settings
2022-02-06 09:55:06,542: DEBUG - + types[${short_setting}]=select
2022-02-06 09:55:06,544: DEBUG - + file_hash[${short_setting}]=
2022-02-06 09:55:06,547: DEBUG - + formats[${short_setting}]=
2022-02-06 09:55:06,551: DEBUG - + ynh_app_config_get_one dns_method select settings
2022-02-06 09:55:06,554: DEBUG - + _ynh_app_config_get_one dns_method select settings
2022-02-06 09:55:06,561: DEBUG - + local short_setting=dns_method
2022-02-06 09:55:06,569: DEBUG - + local type=select
2022-02-06 09:55:06,571: DEBUG - + local bind=settings
2022-02-06 09:55:06,574: DEBUG - + local getter=get__dns_method
2022-02-06 09:55:06,576: DEBUG - + grep -q '^function$'
2022-02-06 09:55:06,579: DEBUG - + type -t get__dns_method
2022-02-06 09:55:06,582: DEBUG - + [[ settings == *\(* ]]
2022-02-06 09:55:06,584: DEBUG - + [[ settings == \n\u\l\l ]]
2022-02-06 09:55:06,587: DEBUG - + [[ select == \f\i\l\e ]]
2022-02-06 09:55:06,589: DEBUG - + [[ select == \t\e\x\t ]]
2022-02-06 09:55:06,591: DEBUG - + local bind_after=
2022-02-06 09:55:06,594: DEBUG - + [[ settings == \s\e\t\t\i\n\g\s ]]
2022-02-06 09:55:06,597: DEBUG - + bind=:/etc/yunohost/apps/vpnclient/settings.yml
2022-02-06 09:55:06,599: DEBUG - ++ cut -d: -f1
2022-02-06 09:55:06,602: DEBUG - ++ echo :/etc/yunohost/apps/vpnclient/settings.yml
2022-02-06 09:55:06,605: DEBUG - + local bind_key_=
2022-02-06 09:55:06,607: DEBUG - + bind_key_=dns_method
2022-02-06 09:55:06,610: DEBUG - + [[ dns_method == *\>* ]]
2022-02-06 09:55:06,613: DEBUG - ++ cut -d: -f2
2022-02-06 09:55:06,615: DEBUG - ++ echo :/etc/yunohost/apps/vpnclient/settings.yml
2022-02-06 09:55:06,617: DEBUG - ++ sed s@__FINALPATH__@@
2022-02-06 09:55:06,620: DEBUG - ++ sed s/__APP__/vpnclient/
2022-02-06 09:55:06,623: DEBUG - + local bind_file=/etc/yunohost/apps/vpnclient/settings.yml
2022-02-06 09:55:06,625: DEBUG - ++ ynh_read_var_in_file --file=/etc/yunohost/apps/vpnclient/settings.yml --key=dns_method --after=
2022-02-06 09:55:07,115: DEBUG - ++ after=
2022-02-06 09:55:07,119: DEBUG - ++ [[ -f /etc/yunohost/apps/vpnclient/settings.yml ]]
2022-02-06 09:55:07,190: DEBUG - + old[$short_setting]=custom
2022-02-06 09:55:07,198: DEBUG - + for line in $lines
2022-02-06 09:55:07,202: DEBUG - + IFS=';'
2022-02-06 09:55:07,205: DEBUG - + read short_setting type bind
2022-02-06 09:55:07,208: DEBUG - + binds[${short_setting}]=settings
2022-02-06 09:55:07,213: DEBUG - + types[${short_setting}]=tags
2022-02-06 09:55:07,216: DEBUG - + file_hash[${short_setting}]=
2022-02-06 09:55:07,219: DEBUG - + formats[${short_setting}]=
2022-02-06 09:55:07,222: DEBUG - + ynh_app_config_get_one nameservers tags settings
2022-02-06 09:55:07,227: DEBUG - + _ynh_app_config_get_one nameservers tags settings
2022-02-06 09:55:07,229: DEBUG - + local short_setting=nameservers
2022-02-06 09:55:07,231: DEBUG - + local type=tags
2022-02-06 09:55:07,234: DEBUG - + local bind=settings
2022-02-06 09:55:07,236: DEBUG - + local getter=get__nameservers
2022-02-06 09:55:07,238: DEBUG - + type -t get__nameservers
2022-02-06 09:55:07,241: DEBUG - + grep -q '^function$'
2022-02-06 09:55:07,244: DEBUG - + [[ settings == *\(* ]]
2022-02-06 09:55:07,247: DEBUG - + [[ settings == \n\u\l\l ]]
2022-02-06 09:55:07,249: DEBUG - + [[ tags == \f\i\l\e ]]
2022-02-06 09:55:07,254: DEBUG - + [[ tags == \t\e\x\t ]]
2022-02-06 09:55:07,257: DEBUG - + local bind_after=
2022-02-06 09:55:07,259: DEBUG - + [[ settings == \s\e\t\t\i\n\g\s ]]
2022-02-06 09:55:07,274: DEBUG - + bind=:/etc/yunohost/apps/vpnclient/settings.yml
2022-02-06 09:55:07,277: DEBUG - ++ echo :/etc/yunohost/apps/vpnclient/settings.yml
2022-02-06 09:55:07,280: DEBUG - ++ cut -d: -f1
2022-02-06 09:55:07,282: DEBUG - + local bind_key_=
2022-02-06 09:55:07,284: DEBUG - + bind_key_=nameservers
2022-02-06 09:55:07,287: DEBUG - + [[ nameservers == *\>* ]]
2022-02-06 09:55:07,290: DEBUG - ++ cut -d: -f2
2022-02-06 09:55:07,293: DEBUG - ++ echo :/etc/yunohost/apps/vpnclient/settings.yml
2022-02-06 09:55:07,296: DEBUG - ++ sed s@__FINALPATH__@@
2022-02-06 09:55:07,298: DEBUG - ++ sed s/__APP__/vpnclient/
2022-02-06 09:55:07,301: DEBUG - + local bind_file=/etc/yunohost/apps/vpnclient/settings.yml
2022-02-06 09:55:07,303: DEBUG - ++ ynh_read_var_in_file --file=/etc/yunohost/apps/vpnclient/settings.yml --key=nameservers --after=
2022-02-06 09:55:07,797: DEBUG - ++ after=
2022-02-06 09:55:07,800: DEBUG - ++ [[ -f /etc/yunohost/apps/vpnclient/settings.yml ]]
2022-02-06 09:55:07,868: DEBUG - + old[$short_setting]=79.143.250.1,79.143.250.2
2022-02-06 09:55:07,874: DEBUG - + for line in $lines
2022-02-06 09:55:07,877: DEBUG - + IFS=';'
2022-02-06 09:55:07,880: DEBUG - + read short_setting type bind
2022-02-06 09:55:07,884: DEBUG - + binds[${short_setting}]=settings
2022-02-06 09:55:07,886: DEBUG - + types[${short_setting}]=string
2022-02-06 09:55:07,888: DEBUG - + file_hash[${short_setting}]=
2022-02-06 09:55:07,891: DEBUG - + formats[${short_setting}]=
2022-02-06 09:55:07,894: DEBUG - + ynh_app_config_get_one ip6_net string settings
2022-02-06 09:55:07,896: DEBUG - + _ynh_app_config_get_one ip6_net string settings
2022-02-06 09:55:07,899: DEBUG - + local short_setting=ip6_net
2022-02-06 09:55:07,902: DEBUG - + local type=string
2022-02-06 09:55:07,905: DEBUG - + local bind=settings
2022-02-06 09:55:07,910: DEBUG - + local getter=get__ip6_net
2022-02-06 09:55:07,912: DEBUG - + type -t get__ip6_net
2022-02-06 09:55:07,914: DEBUG - + grep -q '^function$'
2022-02-06 09:55:07,917: DEBUG - + [[ settings == *\(* ]]
2022-02-06 09:55:07,919: DEBUG - + [[ settings == \n\u\l\l ]]
2022-02-06 09:55:07,921: DEBUG - + [[ string == \f\i\l\e ]]
2022-02-06 09:55:07,924: DEBUG - + [[ string == \t\e\x\t ]]
2022-02-06 09:55:07,927: DEBUG - + local bind_after=
2022-02-06 09:55:07,930: DEBUG - + [[ settings == \s\e\t\t\i\n\g\s ]]
2022-02-06 09:55:07,932: DEBUG - + bind=:/etc/yunohost/apps/vpnclient/settings.yml
2022-02-06 09:55:07,942: DEBUG - ++ cut -d: -f1
2022-02-06 09:55:07,944: DEBUG - ++ echo :/etc/yunohost/apps/vpnclient/settings.yml
2022-02-06 09:55:07,951: DEBUG - + local bind_key_=
2022-02-06 09:55:07,953: DEBUG - + bind_key_=ip6_net
2022-02-06 09:55:07,955: DEBUG - + [[ ip6_net == *\>* ]]
2022-02-06 09:55:07,958: DEBUG - ++ cut -d: -f2
2022-02-06 09:55:07,960: DEBUG - ++ echo :/etc/yunohost/apps/vpnclient/settings.yml
2022-02-06 09:55:07,963: DEBUG - ++ sed s@__FINALPATH__@@
2022-02-06 09:55:07,965: DEBUG - ++ sed s/__APP__/vpnclient/
2022-02-06 09:55:07,969: DEBUG - + local bind_file=/etc/yunohost/apps/vpnclient/settings.yml
2022-02-06 09:55:07,974: DEBUG - ++ ynh_read_var_in_file --file=/etc/yunohost/apps/vpnclient/settings.yml --key=ip6_net --after=
2022-02-06 09:55:08,484: DEBUG - ++ after=
2022-02-06 09:55:08,489: DEBUG - ++ [[ -f /etc/yunohost/apps/vpnclient/settings.yml ]]
2022-02-06 09:55:08,585: DEBUG - + old[$short_setting]=
2022-02-06 09:55:08,591: DEBUG - + for line in $lines
2022-02-06 09:55:08,594: DEBUG - + IFS=';'
2022-02-06 09:55:08,597: DEBUG - + read short_setting type bind
2022-02-06 09:55:08,602: DEBUG - + binds[${short_setting}]=settings
2022-02-06 09:55:08,604: DEBUG - + types[${short_setting}]=string
2022-02-06 09:55:08,607: DEBUG - + file_hash[${short_setting}]=
2022-02-06 09:55:08,609: DEBUG - + formats[${short_setting}]=
2022-02-06 09:55:08,612: DEBUG - + ynh_app_config_get_one ip6_addr string settings
2022-02-06 09:55:08,615: DEBUG - + _ynh_app_config_get_one ip6_addr string settings
2022-02-06 09:55:08,618: DEBUG - + local short_setting=ip6_addr
2022-02-06 09:55:08,620: DEBUG - + local type=string
2022-02-06 09:55:08,627: DEBUG - + local bind=settings
2022-02-06 09:55:08,630: DEBUG - + local getter=get__ip6_addr
2022-02-06 09:55:08,634: DEBUG - + type -t get__ip6_addr
2022-02-06 09:55:08,636: DEBUG - + grep -q '^function$'
2022-02-06 09:55:08,639: DEBUG - + [[ settings == *\(* ]]
2022-02-06 09:55:08,641: DEBUG - + [[ settings == \n\u\l\l ]]
2022-02-06 09:55:08,644: DEBUG - + [[ string == \f\i\l\e ]]
2022-02-06 09:55:08,647: DEBUG - + [[ string == \t\e\x\t ]]
2022-02-06 09:55:08,657: DEBUG - + local bind_after=
2022-02-06 09:55:08,659: DEBUG - + [[ settings == \s\e\t\t\i\n\g\s ]]
2022-02-06 09:55:08,661: DEBUG - + bind=:/etc/yunohost/apps/vpnclient/settings.yml
2022-02-06 09:55:08,664: DEBUG - ++ cut -d: -f1
2022-02-06 09:55:08,666: DEBUG - ++ echo :/etc/yunohost/apps/vpnclient/settings.yml
2022-02-06 09:55:08,668: DEBUG - + local bind_key_=
2022-02-06 09:55:08,671: DEBUG - + bind_key_=ip6_addr
2022-02-06 09:55:08,673: DEBUG - + [[ ip6_addr == *\>* ]]
2022-02-06 09:55:08,675: DEBUG - ++ cut -d: -f2
2022-02-06 09:55:08,678: DEBUG - ++ echo :/etc/yunohost/apps/vpnclient/settings.yml
2022-02-06 09:55:08,680: DEBUG - ++ sed s@__FINALPATH__@@
2022-02-06 09:55:08,682: DEBUG - ++ sed s/__APP__/vpnclient/
2022-02-06 09:55:08,689: DEBUG - + local bind_file=/etc/yunohost/apps/vpnclient/settings.yml
2022-02-06 09:55:08,694: DEBUG - ++ ynh_read_var_in_file --file=/etc/yunohost/apps/vpnclient/settings.yml --key=ip6_addr --after=
2022-02-06 09:55:09,199: DEBUG - ++ after=
2022-02-06 09:55:09,203: DEBUG - ++ [[ -f /etc/yunohost/apps/vpnclient/settings.yml ]]
2022-02-06 09:55:09,329: DEBUG - + old[$short_setting]=
2022-02-06 09:55:09,331: DEBUG - + ynh_app_config_validate
2022-02-06 09:55:09,333: DEBUG - + '[' -z x ']'
2022-02-06 09:55:09,334: DEBUG - + '[' -f /tmp/ynh_filequestion_uqzgmmqz/tmpu0illh7j ']'
2022-02-06 09:55:09,346: DEBUG - ++ cat /tmp/ynh_filequestion_uqzgmmqz/tmpu0illh7j
2022-02-06 09:55:09,350: DEBUG - ++ head -c1
2022-02-06 09:55:09,353: DEBUG - ++ grep -v '^$'
2022-02-06 09:55:09,356: DEBUG - ++ tr -d ' '
2022-02-06 09:55:09,380: DEBUG - + [[ # == \{ ]]
2022-02-06 09:55:09,383: DEBUG - + '[' -f /tmp/ynh_filequestion_uqzgmmqz/tmpu0illh7j ']'
2022-02-06 09:55:09,385: DEBUG - ++ dirname /tmp/ynh_filequestion_uqzgmmqz/tmpu0illh7j
2022-02-06 09:55:09,393: DEBUG - + tmp_dir=/tmp/ynh_filequestion_uqzgmmqz
2022-02-06 09:55:09,395: DEBUG - + ynh_print_info '--message=Extracting TLS keys from .ovpn file'
2022-02-06 09:55:09,480: DEBUG - + grep -q '^\s*<ca>' /tmp/ynh_filequestion_uqzgmmqz/tmpu0illh7j
2022-02-06 09:55:09,483: INFO - Extracting TLS keys from .ovpn file
2022-02-06 09:55:09,494: DEBUG - + grep -q '^\s*<cert>' /tmp/ynh_filequestion_uqzgmmqz/tmpu0illh7j
2022-02-06 09:55:09,507: DEBUG - + grep -q '^\s*cert\s' /tmp/ynh_filequestion_uqzgmmqz/tmpu0illh7j
2022-02-06 09:55:09,519: DEBUG - + grep -q '^\s*<key>' /tmp/ynh_filequestion_uqzgmmqz/tmpu0illh7j
2022-02-06 09:55:09,531: DEBUG - + grep -q '^\s*key\s' /tmp/ynh_filequestion_uqzgmmqz/tmpu0illh7j
2022-02-06 09:55:09,543: DEBUG - + grep -q '^\s*<tls-auth>' /tmp/ynh_filequestion_uqzgmmqz/tmpu0illh7j
2022-02-06 09:55:09,555: DEBUG - + grep -q '^\s*tls-auth\s' /tmp/ynh_filequestion_uqzgmmqz/tmpu0illh7j
2022-02-06 09:55:09,567: DEBUG - + sed -i 's@^\s*ca\s.*$@ca /etc/openvpn/keys/ca-server.crt@g' /tmp/ynh_filequestion_uqzgmmqz/tmpu0illh7j
2022-02-06 09:55:09,582: DEBUG - + sed -i 's@^\s*cert\s.*$@cert /etc/openvpn/keys/user.crt@g' /tmp/ynh_filequestion_uqzgmmqz/tmpu0illh7j
2022-02-06 09:55:09,598: DEBUG - + sed -i 's@^\s*key\s.*$@key /etc/openvpn/keys/user.key@g' /tmp/ynh_filequestion_uqzgmmqz/tmpu0illh7j
2022-02-06 09:55:09,614: DEBUG - + sed -i 's@^\s*tls-auth\s.*$@tls-auth /etc/openvpn/keys/user-ta.key@g' /tmp/ynh_filequestion_uqzgmmqz/tmpu0illh7j
2022-02-06 09:55:09,628: DEBUG - + '[' -f /tmp/ynh_filequestion_uqzgmmqz/tmpu0illh7j ']'
2022-02-06 09:55:09,631: DEBUG - + sed -i '/^\s*user\s/d' /tmp/ynh_filequestion_uqzgmmqz/tmpu0illh7j
2022-02-06 09:55:09,643: DEBUG - + sed -i '/^\s*group\s/d' /tmp/ynh_filequestion_uqzgmmqz/tmpu0illh7j
2022-02-06 09:55:09,659: DEBUG - + _ynh_app_config_validate
2022-02-06 09:55:10,225: INFO - [#####+++++..........] > Checking what changed in the new configuration...
2022-02-06 09:55:10,234: DEBUG - + local nothing_changed=true
2022-02-06 09:55:10,247: DEBUG - + local changes_validated=true
2022-02-06 09:55:10,252: DEBUG - + for short_setting in "${!old[@]}"
2022-02-06 09:55:10,255: DEBUG - + changed[$short_setting]=false
2022-02-06 09:55:10,258: DEBUG - + '[' -z ']'
2022-02-06 09:55:10,261: DEBUG - + declare -g ip6_net=
2022-02-06 09:55:10,264: DEBUG - + continue
2022-02-06 09:55:10,267: DEBUG - + for short_setting in "${!old[@]}"
2022-02-06 09:55:10,269: DEBUG - + changed[$short_setting]=false
2022-02-06 09:55:10,271: DEBUG - + '[' -z ']'
2022-02-06 09:55:10,274: DEBUG - + declare -g login_passphrase=
2022-02-06 09:55:10,276: DEBUG - + continue
2022-02-06 09:55:10,278: DEBUG - + for short_setting in "${!old[@]}"
2022-02-06 09:55:10,280: DEBUG - + changed[$short_setting]=false
2022-02-06 09:55:10,283: DEBUG - + '[' -z ']'
2022-02-06 09:55:10,285: DEBUG - + declare -g crt_client=/etc/openvpn/keys/user.crt
2022-02-06 09:55:10,292: DEBUG - + continue
2022-02-06 09:55:10,295: DEBUG - + for short_setting in "${!old[@]}"
2022-02-06 09:55:10,299: DEBUG - + changed[$short_setting]=false
2022-02-06 09:55:10,306: DEBUG - + '[' -z x ']'
2022-02-06 09:55:10,312: DEBUG - + '[' '!' -z true ']'
2022-02-06 09:55:10,319: DEBUG - + file_hash[old__$short_setting]=
2022-02-06 09:55:10,322: DEBUG - + file_hash[new__$short_setting]=
2022-02-06 09:55:10,324: DEBUG - + '[' -f /etc/openvpn/client.conf ']'
2022-02-06 09:55:10,327: DEBUG - ++ sha256sum /etc/openvpn/client.conf
2022-02-06 09:55:10,330: DEBUG - ++ cut '-d ' -f1
2022-02-06 09:55:10,332: DEBUG - + file_hash[old__$short_setting]=90e2168938311917bd1a28fa981897877ac5bd3c4ef627b7d3f25abca386b235
2022-02-06 09:55:10,335: DEBUG - + '[' -z /tmp/ynh_filequestion_uqzgmmqz/tmpu0illh7j ']'
2022-02-06 09:55:10,337: DEBUG - + '[' -f /tmp/ynh_filequestion_uqzgmmqz/tmpu0illh7j ']'
2022-02-06 09:55:10,339: DEBUG - ++ cut '-d ' -f1
2022-02-06 09:55:10,342: DEBUG - ++ sha256sum /tmp/ynh_filequestion_uqzgmmqz/tmpu0illh7j
2022-02-06 09:55:10,344: DEBUG - + file_hash[new__$short_setting]=90e2168938311917bd1a28fa981897877ac5bd3c4ef627b7d3f25abca386b235
2022-02-06 09:55:10,347: DEBUG - + [[ 90e2168938311917bd1a28fa981897877ac5bd3c4ef627b7d3f25abca386b235 != \9\0\e\2\1\6\8\9\3\8\3\1\1\9\1\7\b\d\1\a\2\8\f\a\9\8\1\8\9\7\8\7\7\a\c\5\b\d\3\c\4\e\f\6\2\7\b\7\d\3\f\2\5\a\b\c\a\3\8\6\b\2\3\5 ]]
2022-02-06 09:55:10,350: DEBUG - + for short_setting in "${!old[@]}"
2022-02-06 09:55:10,352: DEBUG - + changed[$short_setting]=false
2022-02-06 09:55:10,355: DEBUG - + '[' -z ']'
2022-02-06 09:55:10,357: DEBUG - + declare -g doc=YNH_NULL
2022-02-06 09:55:10,359: DEBUG - + continue
2022-02-06 09:55:10,362: DEBUG - + for short_setting in "${!old[@]}"
2022-02-06 09:55:10,364: DEBUG - + changed[$short_setting]=false
2022-02-06 09:55:10,367: DEBUG - + '[' -z ']'
2022-02-06 09:55:10,369: DEBUG - + declare -g nameservers=79.143.250.1,79.143.250.2
2022-02-06 09:55:10,371: DEBUG - + continue
2022-02-06 09:55:10,374: DEBUG - + for short_setting in "${!old[@]}"
2022-02-06 09:55:10,376: DEBUG - + changed[$short_setting]=false
2022-02-06 09:55:10,378: DEBUG - + '[' -z x ']'
2022-02-06 09:55:10,381: DEBUG - + '[' '!' -z '' ']'
2022-02-06 09:55:10,383: DEBUG - + [[ 1 != \0 ]]
2022-02-06 09:55:10,386: DEBUG - + changed[$short_setting]=true
2022-02-06 09:55:10,388: DEBUG - + nothing_changed=false
2022-02-06 09:55:10,391: DEBUG - + for short_setting in "${!old[@]}"
2022-02-06 09:55:10,393: DEBUG - + changed[$short_setting]=false
2022-02-06 09:55:10,395: DEBUG - + '[' -z ']'
2022-02-06 09:55:10,396: DEBUG - + declare -g crt_client_ta=/etc/openvpn/keys/user_ta.key
2022-02-06 09:55:10,398: DEBUG - + continue
2022-02-06 09:55:10,400: DEBUG - + for short_setting in "${!old[@]}"
2022-02-06 09:55:10,401: DEBUG - + changed[$short_setting]=false
2022-02-06 09:55:10,403: DEBUG - + '[' -z ']'
2022-02-06 09:55:10,404: DEBUG - + declare -g login_user=
2022-02-06 09:55:10,405: DEBUG - + continue
2022-02-06 09:55:10,407: DEBUG - + for short_setting in "${!old[@]}"
2022-02-06 09:55:10,408: DEBUG - + changed[$short_setting]=false
2022-02-06 09:55:10,410: DEBUG - + '[' -z ']'
2022-02-06 09:55:10,411: DEBUG - + declare -g crt_server_ca=/etc/openvpn/keys/ca-server.crt
2022-02-06 09:55:10,412: DEBUG - + continue
2022-02-06 09:55:10,414: DEBUG - + for short_setting in "${!old[@]}"
2022-02-06 09:55:10,415: DEBUG - + changed[$short_setting]=false
2022-02-06 09:55:10,417: DEBUG - + '[' -z ']'
2022-02-06 09:55:10,418: DEBUG - + declare -g dns_method=custom
2022-02-06 09:55:10,420: DEBUG - + continue
2022-02-06 09:55:10,421: DEBUG - + for short_setting in "${!old[@]}"
2022-02-06 09:55:10,423: DEBUG - + changed[$short_setting]=false
2022-02-06 09:55:10,424: DEBUG - + '[' -z ']'
2022-02-06 09:55:10,426: DEBUG - + declare -g crt_client_key=**********
2022-02-06 09:55:10,427: DEBUG - + continue
2022-02-06 09:55:10,429: DEBUG - + for short_setting in "${!old[@]}"
2022-02-06 09:55:10,430: DEBUG - + changed[$short_setting]=false
2022-02-06 09:55:10,432: DEBUG - + '[' -z ']'
2022-02-06 09:55:10,433: DEBUG - + declare -g 'status=style: info
2022-02-06 09:55:10,435: DEBUG - ask:
2022-02-06 09:55:10,436: DEBUG -   en: The VPN is not enabled'
2022-02-06 09:55:10,438: DEBUG - + continue
2022-02-06 09:55:10,439: DEBUG - + for short_setting in "${!old[@]}"
2022-02-06 09:55:10,440: DEBUG - + changed[$short_setting]=false
2022-02-06 09:55:10,442: DEBUG - + '[' -z ']'
2022-02-06 09:55:10,443: DEBUG - + declare -g ip6_addr=
2022-02-06 09:55:10,445: DEBUG - + continue
2022-02-06 09:55:10,446: DEBUG - + [[ false == \t\r\u\e ]]
2022-02-06 09:55:10,969: INFO - [##########+++++.....] > Validating the new configuration...
2022-02-06 09:55:10,979: DEBUG - + for short_setting in "${!old[@]}"
2022-02-06 09:55:10,981: DEBUG - + [[ false == \f\a\l\s\e ]]
2022-02-06 09:55:10,985: DEBUG - + continue
2022-02-06 09:55:10,987: DEBUG - + for short_setting in "${!old[@]}"
2022-02-06 09:55:10,989: DEBUG - + [[ false == \f\a\l\s\e ]]
2022-02-06 09:55:10,994: DEBUG - + continue
2022-02-06 09:55:10,998: DEBUG - + for short_setting in "${!old[@]}"
2022-02-06 09:55:11,000: DEBUG - + [[ false == \f\a\l\s\e ]]
2022-02-06 09:55:11,003: DEBUG - + continue
2022-02-06 09:55:11,006: DEBUG - + for short_setting in "${!old[@]}"
2022-02-06 09:55:11,008: DEBUG - + [[ false == \f\a\l\s\e ]]
2022-02-06 09:55:11,010: DEBUG - + continue
2022-02-06 09:55:11,013: DEBUG - + for short_setting in "${!old[@]}"
2022-02-06 09:55:11,016: DEBUG - + [[ false == \f\a\l\s\e ]]
2022-02-06 09:55:11,018: DEBUG - + continue
2022-02-06 09:55:11,021: DEBUG - + for short_setting in "${!old[@]}"
2022-02-06 09:55:11,023: DEBUG - + [[ false == \f\a\l\s\e ]]
2022-02-06 09:55:11,030: DEBUG - + continue
2022-02-06 09:55:11,032: DEBUG - + for short_setting in "${!old[@]}"
2022-02-06 09:55:11,035: DEBUG - + [[ true == \f\a\l\s\e ]]
2022-02-06 09:55:11,038: DEBUG - + local result=
2022-02-06 09:55:11,040: DEBUG - + grep -q '^function$'
2022-02-06 09:55:11,043: DEBUG - + type -t validate__service_enabled
2022-02-06 09:55:11,046: DEBUG - + [[ settings == *\(* ]]
2022-02-06 09:55:11,048: DEBUG - + '[' -n '' ']'
2022-02-06 09:55:11,050: DEBUG - + for short_setting in "${!old[@]}"
2022-02-06 09:55:11,053: DEBUG - + [[ false == \f\a\l\s\e ]]
2022-02-06 09:55:11,055: DEBUG - + continue
2022-02-06 09:55:11,058: DEBUG - + for short_setting in "${!old[@]}"
2022-02-06 09:55:11,060: DEBUG - + [[ false == \f\a\l\s\e ]]
2022-02-06 09:55:11,062: DEBUG - + continue
2022-02-06 09:55:11,065: DEBUG - + for short_setting in "${!old[@]}"
2022-02-06 09:55:11,069: DEBUG - + [[ false == \f\a\l\s\e ]]
2022-02-06 09:55:11,071: DEBUG - + continue
2022-02-06 09:55:11,074: DEBUG - + for short_setting in "${!old[@]}"
2022-02-06 09:55:11,076: DEBUG - + [[ false == \f\a\l\s\e ]]
2022-02-06 09:55:11,079: DEBUG - + continue
2022-02-06 09:55:11,081: DEBUG - + for short_setting in "${!old[@]}"
2022-02-06 09:55:11,084: DEBUG - + [[ false == \f\a\l\s\e ]]
2022-02-06 09:55:11,086: DEBUG - + continue
2022-02-06 09:55:11,089: DEBUG - + for short_setting in "${!old[@]}"
2022-02-06 09:55:11,096: DEBUG - + [[ false == \f\a\l\s\e ]]
2022-02-06 09:55:11,098: DEBUG - + continue
2022-02-06 09:55:11,100: DEBUG - + for short_setting in "${!old[@]}"
2022-02-06 09:55:11,103: DEBUG - + [[ false == \f\a\l\s\e ]]
2022-02-06 09:55:11,105: DEBUG - + continue
2022-02-06 09:55:11,107: DEBUG - + [[ true == \f\a\l\s\e ]]
2022-02-06 09:55:11,411: INFO - [###############+++++] > Applying the new configuration...
2022-02-06 09:55:11,420: DEBUG - + ynh_app_config_apply
2022-02-06 09:55:11,423: DEBUG - + ynh_print_info '--message=Stopping vpnclient in order to edit files'
2022-02-06 09:55:11,505: INFO - Stopping vpnclient in order to edit files
2022-02-06 09:55:11,511: DEBUG - + touch /tmp/.ynh-vpnclient-stopped
2022-02-06 09:55:11,518: DEBUG - + /usr/local/bin/ynh-vpnclient stop
2022-02-06 09:55:11,686: DEBUG - [INFO] Retrieving Yunohost settings...
2022-02-06 09:55:12,232: DEBUG - [ OK ] Settings retrieved
2022-02-06 09:55:12,262: DEBUG - [INFO] [vpnclient] Stopping...
2022-02-06 09:55:12,593: DEBUG - + chown vpnclient:vpnclient /etc/openvpn/keys
2022-02-06 09:55:12,604: DEBUG - + chmod go=--- /etc/openvpn/keys
2022-02-06 09:55:12,613: DEBUG - + _ynh_app_config_apply
2022-02-06 09:55:12,618: DEBUG - + for short_setting in "${!old[@]}"
2022-02-06 09:55:12,625: DEBUG - + ynh_app_config_apply_one ip6_net
2022-02-06 09:55:12,628: DEBUG - + _ynh_app_config_apply_one ip6_net
2022-02-06 09:55:12,632: DEBUG - + local short_setting=ip6_net
2022-02-06 09:55:12,634: DEBUG - + local setter=set__ip6_net
2022-02-06 09:55:12,636: DEBUG - + local bind=settings
2022-02-06 09:55:12,637: DEBUG - + local type=string
2022-02-06 09:55:12,639: DEBUG - + '[' false == true ']'
2022-02-06 09:55:12,640: DEBUG - + for short_setting in "${!old[@]}"
2022-02-06 09:55:12,642: DEBUG - + ynh_app_config_apply_one login_passphrase
2022-02-06 09:55:12,643: DEBUG - + _ynh_app_config_apply_one login_passphrase
2022-02-06 09:55:12,645: DEBUG - + local short_setting=login_passphrase
2022-02-06 09:55:12,646: DEBUG - + local setter=set__login_passphrase
2022-02-06 09:55:12,647: DEBUG - + local bind=settings
2022-02-06 09:55:12,649: DEBUG - + local type=password
2022-02-06 09:55:12,650: DEBUG - + '[' false == true ']'
2022-02-06 09:55:12,652: DEBUG - + for short_setting in "${!old[@]}"
2022-02-06 09:55:12,653: DEBUG - + ynh_app_config_apply_one crt_client
2022-02-06 09:55:12,655: DEBUG - + _ynh_app_config_apply_one crt_client
2022-02-06 09:55:12,656: DEBUG - + local short_setting=crt_client
2022-02-06 09:55:12,658: DEBUG - + local setter=set__crt_client
2022-02-06 09:55:12,659: DEBUG - + local bind=/etc/openvpn/keys/user.crt
2022-02-06 09:55:12,661: DEBUG - + local type=file
2022-02-06 09:55:12,662: DEBUG - + '[' false == true ']'
2022-02-06 09:55:12,664: DEBUG - + for short_setting in "${!old[@]}"
2022-02-06 09:55:12,666: DEBUG - + ynh_app_config_apply_one config_file
2022-02-06 09:55:12,668: DEBUG - + _ynh_app_config_apply_one config_file
2022-02-06 09:55:12,669: DEBUG - + local short_setting=config_file
2022-02-06 09:55:12,671: DEBUG - + local setter=set__config_file
2022-02-06 09:55:12,672: DEBUG - + local bind=/etc/openvpn/client.conf
2022-02-06 09:55:12,682: DEBUG - + local type=file
2022-02-06 09:55:12,684: DEBUG - + '[' false == true ']'
2022-02-06 09:55:12,685: DEBUG - + for short_setting in "${!old[@]}"
2022-02-06 09:55:12,687: DEBUG - + ynh_app_config_apply_one doc
2022-02-06 09:55:12,688: DEBUG - + _ynh_app_config_apply_one doc
2022-02-06 09:55:12,692: DEBUG - + local short_setting=doc
2022-02-06 09:55:12,694: DEBUG - + local setter=set__doc
2022-02-06 09:55:12,696: DEBUG - + local bind=settings
2022-02-06 09:55:12,697: DEBUG - + local type=alert
2022-02-06 09:55:12,699: DEBUG - + '[' false == true ']'
2022-02-06 09:55:12,700: DEBUG - + for short_setting in "${!old[@]}"
2022-02-06 09:55:12,702: DEBUG - + ynh_app_config_apply_one nameservers
2022-02-06 09:55:12,703: DEBUG - + _ynh_app_config_apply_one nameservers
2022-02-06 09:55:12,705: DEBUG - + local short_setting=nameservers
2022-02-06 09:55:12,707: DEBUG - + local setter=set__nameservers
2022-02-06 09:55:12,709: DEBUG - + local bind=settings
2022-02-06 09:55:12,710: DEBUG - + local type=tags
2022-02-06 09:55:12,712: DEBUG - + '[' false == true ']'
2022-02-06 09:55:12,713: DEBUG - + for short_setting in "${!old[@]}"
2022-02-06 09:55:12,715: DEBUG - + ynh_app_config_apply_one service_enabled
2022-02-06 09:55:12,716: DEBUG - + _ynh_app_config_apply_one service_enabled
2022-02-06 09:55:12,718: DEBUG - + local short_setting=service_enabled
2022-02-06 09:55:12,719: DEBUG - + local setter=set__service_enabled
2022-02-06 09:55:12,721: DEBUG - + local bind=settings
2022-02-06 09:55:12,723: DEBUG - + local type=boolean
2022-02-06 09:55:12,724: DEBUG - + '[' true == true ']'
2022-02-06 09:55:12,726: DEBUG - + grep -q '^function$'
2022-02-06 09:55:12,735: DEBUG - + type -t set__service_enabled
2022-02-06 09:55:12,739: DEBUG - + [[ settings == *\(* ]]
2022-02-06 09:55:12,743: DEBUG - + [[ settings == \n\u\l\l ]]
2022-02-06 09:55:12,746: DEBUG - + [[ boolean == \f\i\l\e ]]
2022-02-06 09:55:12,748: DEBUG - + [[ settings == \s\e\t\t\i\n\g\s ]]
2022-02-06 09:55:12,750: DEBUG - + ynh_app_setting_set --app=vpnclient --key=service_enabled --value=1
2022-02-06 09:55:12,753: DEBUG - + local _globalapp=vpnclient
2022-02-06 09:55:13,271: DEBUG - + app=vpnclient
2022-02-06 09:55:13,273: DEBUG - + [[ service_enabled =~ (unprotected|protected|skipped)_ ]]
2022-02-06 09:55:13,276: DEBUG - + ynh_app_setting set vpnclient service_enabled 1
2022-02-06 09:55:13,922: DEBUG - + ynh_print_info '--message=Configuration key '\''service_enabled'\'' edited in app settings'
2022-02-06 09:55:14,007: DEBUG - + for short_setting in "${!old[@]}"
2022-02-06 09:55:14,009: INFO - Configuration key 'service_enabled' edited in app settings
2022-02-06 09:55:14,019: DEBUG - + ynh_app_config_apply_one crt_client_ta
2022-02-06 09:55:14,022: DEBUG - + _ynh_app_config_apply_one crt_client_ta
2022-02-06 09:55:14,024: DEBUG - + local short_setting=crt_client_ta
2022-02-06 09:55:14,028: DEBUG - + local setter=set__crt_client_ta
2022-02-06 09:55:14,031: DEBUG - + local bind=/etc/openvpn/keys/user_ta.key
2022-02-06 09:55:14,033: DEBUG - + local type=file
2022-02-06 09:55:14,036: DEBUG - + '[' false == true ']'
2022-02-06 09:55:14,038: DEBUG - + for short_setting in "${!old[@]}"
2022-02-06 09:55:14,040: DEBUG - + ynh_app_config_apply_one login_user
2022-02-06 09:55:14,043: DEBUG - + _ynh_app_config_apply_one login_user
2022-02-06 09:55:14,045: DEBUG - + local short_setting=login_user
2022-02-06 09:55:14,048: DEBUG - + local setter=set__login_user
2022-02-06 09:55:14,050: DEBUG - + local bind=settings
2022-02-06 09:55:14,052: DEBUG - + local type=string
2022-02-06 09:55:14,055: DEBUG - + '[' false == true ']'
2022-02-06 09:55:14,058: DEBUG - + for short_setting in "${!old[@]}"
2022-02-06 09:55:14,060: DEBUG - + ynh_app_config_apply_one crt_server_ca
2022-02-06 09:55:14,062: DEBUG - + _ynh_app_config_apply_one crt_server_ca
2022-02-06 09:55:14,064: DEBUG - + local short_setting=crt_server_ca
2022-02-06 09:55:14,076: DEBUG - + local setter=set__crt_server_ca
2022-02-06 09:55:14,080: DEBUG - + local bind=/etc/openvpn/keys/ca-server.crt
2022-02-06 09:55:14,083: DEBUG - + local type=file
2022-02-06 09:55:14,088: DEBUG - + '[' false == true ']'
2022-02-06 09:55:14,090: DEBUG - + for short_setting in "${!old[@]}"
2022-02-06 09:55:14,093: DEBUG - + ynh_app_config_apply_one dns_method
2022-02-06 09:55:14,096: DEBUG - + _ynh_app_config_apply_one dns_method
2022-02-06 09:55:14,099: DEBUG - + local short_setting=dns_method
2022-02-06 09:55:14,102: DEBUG - + local setter=set__dns_method
2022-02-06 09:55:14,104: DEBUG - + local bind=settings
2022-02-06 09:55:14,113: DEBUG - + local type=select
2022-02-06 09:55:14,115: DEBUG - + '[' false == true ']'
2022-02-06 09:55:14,117: DEBUG - + for short_setting in "${!old[@]}"
2022-02-06 09:55:14,120: DEBUG - + ynh_app_config_apply_one crt_client_key
2022-02-06 09:55:14,123: DEBUG - + _ynh_app_config_apply_one crt_client_key
2022-02-06 09:55:14,125: DEBUG - + local short_setting=crt_client_key
2022-02-06 09:55:14,128: DEBUG - + local setter=set__crt_client_key
2022-02-06 09:55:14,130: DEBUG - + local bind=**********
2022-02-06 09:55:14,132: DEBUG - + local type=file
2022-02-06 09:55:14,135: DEBUG - + '[' false == true ']'
2022-02-06 09:55:14,138: DEBUG - + for short_setting in "${!old[@]}"
2022-02-06 09:55:14,140: DEBUG - + ynh_app_config_apply_one status
2022-02-06 09:55:14,143: DEBUG - + _ynh_app_config_apply_one status
2022-02-06 09:55:14,152: DEBUG - + local short_setting=status
2022-02-06 09:55:14,154: DEBUG - + local setter=set__status
2022-02-06 09:55:14,157: DEBUG - + local bind=settings
2022-02-06 09:55:14,159: DEBUG - + local type=alert
2022-02-06 09:55:14,162: DEBUG - + '[' false == true ']'
2022-02-06 09:55:14,167: DEBUG - + for short_setting in "${!old[@]}"
2022-02-06 09:55:14,170: DEBUG - + ynh_app_config_apply_one ip6_addr
2022-02-06 09:55:14,172: DEBUG - + _ynh_app_config_apply_one ip6_addr
2022-02-06 09:55:14,175: DEBUG - + local short_setting=ip6_addr
2022-02-06 09:55:14,177: DEBUG - + local setter=set__ip6_addr
2022-02-06 09:55:14,187: DEBUG - + local bind=settings
2022-02-06 09:55:14,189: DEBUG - + local type=string
2022-02-06 09:55:14,191: DEBUG - + '[' false == true ']'
2022-02-06 09:55:14,200: DEBUG - + set_permissions /etc/openvpn/client.conf
2022-02-06 09:55:14,203: DEBUG - + local file=/etc/openvpn/client.conf
2022-02-06 09:55:14,206: DEBUG - + '[' -f /etc/openvpn/client.conf ']'
2022-02-06 09:55:14,211: DEBUG - + chown vpnclient:vpnclient /etc/openvpn/client.conf
2022-02-06 09:55:14,222: DEBUG - + chmod go=--- /etc/openvpn/client.conf
2022-02-06 09:55:14,225: DEBUG - + set_permissions /etc/openvpn/keys/ca-server.crt
2022-02-06 09:55:14,227: DEBUG - + local file=/etc/openvpn/keys/ca-server.crt
2022-02-06 09:55:14,238: DEBUG - + '[' -f /etc/openvpn/keys/ca-server.crt ']'
2022-02-06 09:55:14,240: DEBUG - + chown vpnclient:vpnclient /etc/openvpn/keys/ca-server.crt
2022-02-06 09:55:14,242: DEBUG - + chmod go=--- /etc/openvpn/keys/ca-server.crt
2022-02-06 09:55:14,245: DEBUG - + set_permissions /etc/openvpn/keys/user.crt
2022-02-06 09:55:14,251: DEBUG - + local file=/etc/openvpn/keys/user.crt
2022-02-06 09:55:14,254: DEBUG - + '[' -f /etc/openvpn/keys/user.crt ']'
2022-02-06 09:55:14,256: DEBUG - + chown vpnclient:vpnclient /etc/openvpn/keys/user.crt
2022-02-06 09:55:14,263: DEBUG - + chmod go=--- /etc/openvpn/keys/user.crt
2022-02-06 09:55:14,267: DEBUG - + set_permissions **********
2022-02-06 09:55:14,269: DEBUG - + local file=**********
2022-02-06 09:55:14,272: DEBUG - + '[' -f ********** ']'
2022-02-06 09:55:14,275: DEBUG - + chown vpnclient:vpnclient **********
2022-02-06 09:55:14,277: DEBUG - + chmod go=--- **********
2022-02-06 09:55:14,280: DEBUG - + set_permissions /etc/openvpn/keys/user_ta.key
2022-02-06 09:55:14,283: DEBUG - + local file=/etc/openvpn/keys/user_ta.key
2022-02-06 09:55:14,285: DEBUG - + '[' -f /etc/openvpn/keys/user_ta.key ']'
2022-02-06 09:55:14,287: DEBUG - + chown vpnclient:vpnclient /etc/openvpn/keys/user_ta.key
2022-02-06 09:55:14,290: DEBUG - + chmod go=--- /etc/openvpn/keys/user_ta.key
2022-02-06 09:55:14,292: DEBUG - + ynh_print_info '--message=Starting vpnclient service if needed'
2022-02-06 09:55:14,364: INFO - Starting vpnclient service if needed
2022-02-06 09:55:14,372: DEBUG - + /usr/local/bin/ynh-vpnclient start
2022-02-06 09:55:14,495: DEBUG - [INFO] Retrieving Yunohost settings...
2022-02-06 09:55:15,012: DEBUG - [ OK ] Settings retrieved
2022-02-06 09:55:15,168: DEBUG - [INFO] [vpnclient] Starting...
2022-02-06 09:55:15,228: DEBUG - [INFO] Cleaning vpnclient custom rules from the firewall
2022-02-06 09:55:15,252: DEBUG - [INFO] Restarting yunohost firewall...
2022-02-06 09:55:18,616: WARNING - Could not execute the command 'systemctl reload fail2ban'
2022-02-06 09:55:18,952: DEBUG - [ OK ] Firewall restarted!
2022-02-06 09:55:18,964: DEBUG - [INFO] Now synchronizing time using ntp...
2022-02-06 09:55:27,225: DEBUG - [INFO] Now actually starting OpenVPN client...
2022-02-06 09:55:27,518: WARNING - Job for openvpn@client.service failed because the control process exited with error code.
2022-02-06 09:55:27,525: WARNING - See "systemctl status openvpn@client.service" and "journalctl -xe" for details.
2022-02-06 09:55:27,537: DEBUG - Sun Feb  6 09:52:34 2022 WARNING: cannot stat file '/etc/openvpn/keys/user-ta.key': No such file or directory (errno=2)
2022-02-06 09:55:27,539: DEBUG - Options error: --tls-auth fails with '/etc/openvpn/keys/user-ta.key': No such file or directory (errno=2)
2022-02-06 09:55:27,542: DEBUG - Options error: Please correct these errors.
2022-02-06 09:55:27,544: DEBUG - Use --help for more information.
2022-02-06 09:55:27,547: DEBUG - Sun Feb  6 09:52:35 2022 WARNING: cannot stat file '/etc/openvpn/keys/user-ta.key': No such file or directory (errno=2)
2022-02-06 09:55:27,549: DEBUG - Options error: --tls-auth fails with '/etc/openvpn/keys/user-ta.key': No such file or directory (errno=2)
2022-02-06 09:55:27,552: DEBUG - Options error: Please correct these errors.
2022-02-06 09:55:27,555: DEBUG - Use --help for more information.
2022-02-06 09:55:27,558: DEBUG - Sun Feb  6 09:52:36 2022 WARNING: cannot stat file '/etc/openvpn/keys/user-ta.key': No such file or directory (errno=2)
2022-02-06 09:55:27,560: DEBUG - Options error: --tls-auth fails with '/etc/openvpn/keys/user-ta.key': No such file or directory (errno=2)
2022-02-06 09:55:27,563: DEBUG - Options error: Please correct these errors.
2022-02-06 09:55:27,565: DEBUG - Use --help for more information.
2022-02-06 09:55:27,569: DEBUG - Sun Feb  6 09:52:38 2022 WARNING: cannot stat file '/etc/openvpn/keys/user-ta.key': No such file or directory (errno=2)
2022-02-06 09:55:27,572: DEBUG - Options error: --tls-auth fails with '/etc/openvpn/keys/user-ta.key': No such file or directory (errno=2)
2022-02-06 09:55:27,574: DEBUG - Options error: Please correct these errors.
2022-02-06 09:55:27,576: DEBUG - Use --help for more information.
2022-02-06 09:55:27,578: DEBUG - Sun Feb  6 09:55:27 2022 WARNING: cannot stat file '/etc/openvpn/keys/user-ta.key': No such file or directory (errno=2)
2022-02-06 09:55:27,579: DEBUG - Options error: --tls-auth fails with '/etc/openvpn/keys/user-ta.key': No such file or directory (errno=2)
2022-02-06 09:55:27,581: DEBUG - Options error: Please correct these errors.
2022-02-06 09:55:27,583: DEBUG - Use --help for more information.
2022-02-06 09:55:27,584: WARNING - [CRIT] Failed to start OpenVPN :/
2022-02-06 09:55:27,589: DEBUG - + ynh_exit_properly

Bon, t’as vraiment pas de bol, tu viens de lever un nouveau bug dans la nouvelle interface d’administration de vpnclient :slight_smile:

J’ai trouvé un correctif et je l’ai proposé :

Si tu ne peux pas attendre que ce correctif soit publié, voici une façon de te débloquer :
Depuis l’interface d’admin, dans Applications > VPN Client > Panneau de configuration, uploade à nouveau ton fichier .cube (pas ton fichier .conf).

Explication : le bug ne se produit qu’avec les fichiers .conf ou .ovpn, pas avec les fichiers .cube. Et même si tu n’as jamais toi-même uploadé un fichier .conf, en fait l’appli l’a fait pour toi sans que tu le saches.

ça pourra attendre oui

par contre, j’ai une autre question qui me vient à l’esprit : actuellement, quand je lui demande de faire une mise à jour du système, il me dit qu’elle est faite “avec succès”, mais il me redétecte immédiatement les mêmes mises à jour à faire si je relance le processus (a priori elles n’ont donc pas été appliquées).
C’est lié au même problème ?
Et si mise à jour pour régler mon problème de VPN il doit y avoir, cela fonctionnera ?

Merci beaucoup pour le suivi en tous cas !