Bonjour,
Je rencontre des soucis de backups depuis une quinzaine de jours et la mise à jour sur Yunohost 4.2.4. Je cherche depuis ce matin sans trouver une solution. Voici les détails.
Mon serveur YunoHost
Matériel: VPS chez Kimsufi.
Version de YunoHost:
yunohost:
repo: stable
version: 4.2.4
yunohost-admin:
repo: stable
version: 4.2.2
moulinette:
repo: stable
version: 4.2.2
ssowat:
repo: stable
version: 4.2.2
J’ai accès à mon serveur : En SSH et par la webadmin
Êtes-vous dans un contexte particulier ou avez-vous effectué des modificiations particulières sur votre instance ? : Mise à jour sur Yunohost v4.2.4 le …/05/2021.
Description du problème
Les backups automatiques ne fonctionnent plus depuis le serveurA vers le serveurB alors qu’ils marchaient très bien avant la dernière mise à jour. Les backups du serveurB vers le serveurA fonctionnent correctement.
J’ai vérifié les clés SSH, ça semble cohérent.
J’ai essayé de lancer manuellement un backup, ça ne marche pas mieux.
Dans les logs, j’ai ces lignes qui se répètent :
root@artanux:/home/admin# tail -n 100 /var/log/borg/210521_0000.err
(...)
Remote: Debian GNU/Linux 10
A repository already exists at ssh://fagus@simonlefort.be/~/backup.
Échec de l’exécution du script : /etc/yunohost/hooks.d/backup_method/05-borg_app
Échec de la méthode de sauvegarde personnalisée à l’étape 'backup'
/bin/sh: BASH_XTRACEFD : 7 : valeur non valable pour un descripteur de fichier de trace
Failed to format translated string 'backup_applying_method_custom': 'Appel de la méthode de sauvegarde personnalisée '{method:s}'...' with arguments '()' and '{}, raising error: KeyError('method') (don't panic this is just a warning)
Failed to format translatable string 'backup_applying_method_custom': 'Calling the custom backup method '{method:s}'...' with arguments '()' and '{}', raising error: KeyError('method') (don't panic this is just a warning)
/bin/sh: BASH_XTRACEFD : 7 : valeur non valable pour un descripteur de fichier de trace
/bin/sh: BASH_XTRACEFD : 7 : valeur non valable pour un descripteur de fichier de trace
Quand je regarde les logs via yunohost :
# yunohost log share 20210524-114021-backup_create
(...)
2021-05-24 11:40:34,210: DEBUG - + borg init -e repokey ssh://serveurA@TLD.COM/~/backup
2021-05-24 11:40:35,754: WARNING - Remote: Debian GNU/Linux 10
2021-05-24 11:40:37,847: WARNING - A repository already exists at ssh://serveurA@TLD.COM/~/backup.
2021-05-24 11:40:37,940: DEBUG - + set -e
2021-05-24 11:40:37,943: DEBUG - + borg create ssh://serveurA@TLD.COM/~/backup::_auto_data-2021-05-24_11:40 ./
2021-05-24 11:40:37,943: DEBUG - + log_with_timestamp
2021-05-24 11:40:37,944: DEBUG - ++ date +%Y-%m-%d_%H:%M:%S
2021-05-24 11:40:37,946: DEBUG - + sed -e 's/^/[2021-05-24_11:40:37] /'
2021-05-24 11:40:41,741: ERROR - Could not run script: /etc/yunohost/hooks.d/backup_method/05-borg_app
Traceback (most recent call last):
File "/usr/lib/moulinette/yunohost/hook.py", line 307, in hook_callback
path, args=hook_args, chdir=chdir, env=env, raise_on_error=True
File "/usr/lib/moulinette/yunohost/hook.py", line 386, in hook_exec
raise YunohostError("hook_exec_failed", path=path)
yunohost.utils.error.YunohostError: Could not run script: /etc/yunohost/hooks.d/backup_method/05-borg_app