My YunoHost server
Hardware: Old laptop or computer
YunoHost version: 4.3.4.2
I have access to my server : Through SSH | through the webadmin | direct access via keyboard / screen | âŠ
Are you in a special context or did you perform some particular tweaking on your YunoHost instance ? : no
Description of my issue
Hello,
Iâve installed borg two days ago. First backup has been done successfully. This morning, Iâve a fail message, just for some app backup, not for all.
The backup miserably failed to backup system configurations.
The backup miserably failed to backup system data.
The backup miserably failed to backup borg application.
The backup miserably failed to backup borgserver application.
The backup miserably failed to backup roundcube application.
The backup miserably failed to backup roundcube__2 application.
The backup miserably failed to backup roundcube__3 application.
Création d'une archive de sauvegarde à partir des fichiers collectés ...
L'archive contiendra environ 323.9KiB de données.
L'opération 'Créer une archive de sauvegarde' a échoué ! Pour obtenir de l'aide, merci de partager le journal de l'opération en utilisant la commande 'yunohost log share 20211215-130148-backup_create'
Création d'une archive de sauvegarde à partir des fichiers collectés ...
L'archive contiendra environ 772.3MiB de données.
L'opération 'Créer une archive de sauvegarde' a échoué ! Pour obtenir de l'aide, merci de partager le journal de l'opération en utilisant la commande 'yunohost log share 20211215-130204-backup_create'
Collecte des fichiers devant ĂȘtre sauvegardĂ©s pour borg...
Loading installation settings...
Declaring files to be backed up...
Backup script completed for borg. (YunoHost will then actually copy those files to the archive).
Création d'une archive de sauvegarde à partir des fichiers collectés ...
L'archive contiendra environ 104.2KiB de données.
L'opération 'Créer une archive de sauvegarde' a échoué ! Pour obtenir de l'aide, merci de partager le journal de l'opération en utilisant la commande 'yunohost log share 20211215-130221-backup_create'
Collecte des fichiers devant ĂȘtre sauvegardĂ©s pour borgserver...
Loading installation settings...
Declaring files to be backed up...
Borg backup repo in /home/backupVPS/ won't be backup to avoid backup of backup loop issue.
Backup script completed for borgserver. (YunoHost will then actually copy those files to the archive).
Création d'une archive de sauvegarde à partir des fichiers collectés ...
L'archive contiendra environ 59.4KiB de données.
L'opération 'Créer une archive de sauvegarde' a échoué ! Pour obtenir de l'aide, merci de partager le journal de l'opération en utilisant la commande 'yunohost log share 20211215-130233-backup_create'
Collecte des fichiers devant ĂȘtre sauvegardĂ©s pour roundcube...
Loading installation settings...
Declaring files to be backed up...
Backing up the MySQL database...
Backup script completed for roundcube. (YunoHost will then actually copy those files to the archive).
Création d'une archive de sauvegarde à partir des fichiers collectés ...
L'archive contiendra environ 92.1MiB de données.
L'opération 'Créer une archive de sauvegarde' a échoué ! Pour obtenir de l'aide, merci de partager le journal de l'opération en utilisant la commande 'yunohost log share 20211215-130243-backup_create'
Collecte des fichiers devant ĂȘtre sauvegardĂ©s pour roundcube__2...
Loading installation settings...
Declaring files to be backed up...
Backing up the MySQL database...
Backup script completed for roundcube__2. (YunoHost will then actually copy those files to the archive).
Création d'une archive de sauvegarde à partir des fichiers collectés ...
L'archive contiendra environ 99.6MiB de données.
L'opération 'Créer une archive de sauvegarde' a échoué ! Pour obtenir de l'aide, merci de partager le journal de l'opération en utilisant la commande 'yunohost log share 20211215-130256-backup_create'
Collecte des fichiers devant ĂȘtre sauvegardĂ©s pour roundcube__3...
Loading installation settings...
Declaring files to be backed up...
Backing up the MySQL database...
Backup script completed for roundcube__3. (YunoHost will then actually copy those files to the archive).
Création d'une archive de sauvegarde à partir des fichiers collectés ...
L'archive contiendra environ 100.1MiB de données.
L'opération 'Créer une archive de sauvegarde' a échoué ! Pour obtenir de l'aide, merci de partager le journal de l'opération en utilisant la commande 'yunohost log share 20211215-130310-backup_create'
Failed to format translated string 'backup_applying_method_custom': 'Appel de la méthode de sauvegarde personnalisée '{method}' ...' 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}'...' with arguments '()' and '{}', raising error: KeyError('method') (don't panic this is just a warning)
A repository already exists at /media/svgd.
Ă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'
Failed to format translated string 'backup_applying_method_custom': 'Appel de la méthode de sauvegarde personnalisée '{method}' ...' 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}'...' with arguments '()' and '{}', raising error: KeyError('method') (don't panic this is just a warning)
A repository already exists at /media/svgd.
Ă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'
Source path '/root/.ssh/id_borg_ed25519' does not exist
Source path '/root/.ssh/id_borg_ed25519.pub' does not exist
Failed to format translated string 'backup_applying_method_custom': 'Appel de la méthode de sauvegarde personnalisée '{method}' ...' 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}'...' with arguments '()' and '{}', raising error: KeyError('method') (don't panic this is just a warning)
A repository already exists at /media/svgd.
Ă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'
Failed to format translated string 'backup_applying_method_custom': 'Appel de la méthode de sauvegarde personnalisée '{method}' ...' 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}'...' with arguments '()' and '{}', raising error: KeyError('method') (don't panic this is just a warning)
A repository already exists at /media/svgd.
Ă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'
Failed to format translated string 'backup_applying_method_custom': 'Appel de la méthode de sauvegarde personnalisée '{method}' ...' 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}'...' with arguments '()' and '{}', raising error: KeyError('method') (don't panic this is just a warning)
A repository already exists at /media/svgd.
Ă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'
Failed to format translated string 'backup_applying_method_custom': 'Appel de la méthode de sauvegarde personnalisée '{method}' ...' 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}'...' with arguments '()' and '{}', raising error: KeyError('method') (don't panic this is just a warning)
A repository already exists at /media/svgd.
Ă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'
Failed to format translated string 'backup_applying_method_custom': 'Appel de la méthode de sauvegarde personnalisée '{method}' ...' 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}'...' with arguments '()' and '{}', raising error: KeyError('method') (don't panic this is just a warning)
A repository already exists at /media/svgd.
Ă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'
If I do `systemctl status borg.service`, I have
borg.service - Run backup borg
Loaded: loaded (/etc/systemd/system/borg.service; static; vendor preset: enabled)
Active: failed (Result: exit-code) since Wed 2021-12-15 14:43:21 CET; 4min 52s ago
Process: 32435 ExecStart=/usr/bin/sudo /usr/local/bin/backup-with-borg borg (code=exited, status=1/FAILURE)
Main PID: 32435 (code=exited, status=1/FAILURE)
déc. 15 14:43:20 domain.tld.fr sudo[4244]: root : TTY=unknown ; PWD=/ ; USER=root ; COMMAND=/usr/bin/yunohost app
déc. 15 14:43:20 domain.tld.fr sudo[4244]: pam_unix(sudo:session): session opened for user root by (uid=0)
déc. 15 14:43:21 domain.tld.fr sudo[4244]: pam_unix(sudo:session): session closed for user root
déc. 15 14:43:21 domain.tld.fr sudo[4246]: root : TTY=unknown ; PWD=/ ; USER=root ; COMMAND=/usr/bin/yunohost app
déc. 15 14:43:21 domain.tld.fr sudo[4246]: pam_unix(sudo:session): session opened for user root by (uid=0)
déc. 15 14:43:21 domain.tld.fr sudo[4246]: pam_unix(sudo:session): session closed for user root
déc. 15 14:43:21 domain.tld.fr sudo[32435]: pam_unix(sudo:session): session closed for user root
déc. 15 14:43:21 domain.tld.fr systemd[1]: borg.service: Main process exited, code=exited, status=1/FAILURE
dĂ©c. 15 14:43:21 domain.tld.fr systemd[1]: borg.service: Failed with result âexit-codeâ.
déc. 15 14:43:21 domain.tld.fr systemd[1]: Failed to start Run backup borg.
lines 1-16/16 (END)
You can see logs here.
Iâve checked my passphrase with yunohost app setting borg passphrase
, and itâs ok.
Iâve tried to start again borg : service borg start
But this time everything is failedâŠ
I donât know what to doâŠ
for info, hookâs content :
#!/bin/bash
set -eo pipefail
app="${0#"./05-"}"
app="${app%"_app"}"
BORG_PASSPHRASE="$(yunohost app setting $app passphrase)"
repo="$(yunohost app setting $app repository)" #$4
if ssh-keygen -F "" >/dev/null ; then
BORG_RSH="ssh -i /root/.ssh/id_${app}_ed25519 -oStrictHostKeyChecking=yes "
else
BORG_RSH="ssh -i /root/.ssh/id_${app}_ed25519 -oStrictHostKeyChecking=no "
fi
do_need_mount() {
true
}
LOGFILE=/var/log/backup_borg.err
log_with_timestamp() {
sed -e "s/^/[$(date +"%Y-%m-%d_%H:%M:%S")] /" | tee -a $LOGFILE
}
do_backup() {
I donât do this. But I had another hook, about nextcloud, like this : :
And directory conf_regen
is disapeared⊠I donât understand
Mon serveur YunoHost
Matériel: Vieil ordinateur
Version de YunoHost: 4.3.4.2
Jâai accĂšs Ă mon serveur : En SSH | Par la webadmin | En direct avec un clavier/Ă©cran | âŠ
Ătes-vous dans un contexte particulier ou avez-vous effectuĂ© des modificiations particuliĂšres sur votre instance ? : non
Description du problĂšme
Bonjour,
Jâai installer borg il y a deux jours. Le premier backup sâest fait correctement. Ce matin par contre, jâai reçu un mail dâerreur, avec juste quelques applications qui nâont pas pu ĂȘtre sauvegardĂ©es.
The backup miserably failed to backup system configurations.
The backup miserably failed to backup system data.
The backup miserably failed to backup borg application.
The backup miserably failed to backup borgserver application.
The backup miserably failed to backup roundcube application.
The backup miserably failed to backup roundcube__2 application.
The backup miserably failed to backup roundcube__3 application.
Création d'une archive de sauvegarde à partir des fichiers collectés ...
L'archive contiendra environ 323.9KiB de données.
L'opération 'Créer une archive de sauvegarde' a échoué ! Pour obtenir de l'aide, merci de partager le journal de l'opération en utilisant la commande 'yunohost log share 20211215-130148-backup_create'
Création d'une archive de sauvegarde à partir des fichiers collectés ...
L'archive contiendra environ 772.3MiB de données.
L'opération 'Créer une archive de sauvegarde' a échoué ! Pour obtenir de l'aide, merci de partager le journal de l'opération en utilisant la commande 'yunohost log share 20211215-130204-backup_create'
Collecte des fichiers devant ĂȘtre sauvegardĂ©s pour borg...
Loading installation settings...
Declaring files to be backed up...
Backup script completed for borg. (YunoHost will then actually copy those files to the archive).
Création d'une archive de sauvegarde à partir des fichiers collectés ...
L'archive contiendra environ 104.2KiB de données.
L'opération 'Créer une archive de sauvegarde' a échoué ! Pour obtenir de l'aide, merci de partager le journal de l'opération en utilisant la commande 'yunohost log share 20211215-130221-backup_create'
Collecte des fichiers devant ĂȘtre sauvegardĂ©s pour borgserver...
Loading installation settings...
Declaring files to be backed up...
Borg backup repo in /home/backupVPS/ won't be backup to avoid backup of backup loop issue.
Backup script completed for borgserver. (YunoHost will then actually copy those files to the archive).
Création d'une archive de sauvegarde à partir des fichiers collectés ...
L'archive contiendra environ 59.4KiB de données.
L'opération 'Créer une archive de sauvegarde' a échoué ! Pour obtenir de l'aide, merci de partager le journal de l'opération en utilisant la commande 'yunohost log share 20211215-130233-backup_create'
Collecte des fichiers devant ĂȘtre sauvegardĂ©s pour roundcube...
Loading installation settings...
Declaring files to be backed up...
Backing up the MySQL database...
Backup script completed for roundcube. (YunoHost will then actually copy those files to the archive).
Création d'une archive de sauvegarde à partir des fichiers collectés ...
L'archive contiendra environ 92.1MiB de données.
L'opération 'Créer une archive de sauvegarde' a échoué ! Pour obtenir de l'aide, merci de partager le journal de l'opération en utilisant la commande 'yunohost log share 20211215-130243-backup_create'
Collecte des fichiers devant ĂȘtre sauvegardĂ©s pour roundcube__2...
Loading installation settings...
Declaring files to be backed up...
Backing up the MySQL database...
Backup script completed for roundcube__2. (YunoHost will then actually copy those files to the archive).
Création d'une archive de sauvegarde à partir des fichiers collectés ...
L'archive contiendra environ 99.6MiB de données.
L'opération 'Créer une archive de sauvegarde' a échoué ! Pour obtenir de l'aide, merci de partager le journal de l'opération en utilisant la commande 'yunohost log share 20211215-130256-backup_create'
Collecte des fichiers devant ĂȘtre sauvegardĂ©s pour roundcube__3...
Loading installation settings...
Declaring files to be backed up...
Backing up the MySQL database...
Backup script completed for roundcube__3. (YunoHost will then actually copy those files to the archive).
Création d'une archive de sauvegarde à partir des fichiers collectés ...
L'archive contiendra environ 100.1MiB de données.
L'opération 'Créer une archive de sauvegarde' a échoué ! Pour obtenir de l'aide, merci de partager le journal de l'opération en utilisant la commande 'yunohost log share 20211215-130310-backup_create'
Failed to format translated string 'backup_applying_method_custom': 'Appel de la méthode de sauvegarde personnalisée '{method}' ...' 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}'...' with arguments '()' and '{}', raising error: KeyError('method') (don't panic this is just a warning)
A repository already exists at /media/svgd.
Ă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'
Failed to format translated string 'backup_applying_method_custom': 'Appel de la méthode de sauvegarde personnalisée '{method}' ...' 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}'...' with arguments '()' and '{}', raising error: KeyError('method') (don't panic this is just a warning)
A repository already exists at /media/svgd.
Ă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'
Source path '/root/.ssh/id_borg_ed25519' does not exist
Source path '/root/.ssh/id_borg_ed25519.pub' does not exist
Failed to format translated string 'backup_applying_method_custom': 'Appel de la méthode de sauvegarde personnalisée '{method}' ...' 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}'...' with arguments '()' and '{}', raising error: KeyError('method') (don't panic this is just a warning)
A repository already exists at /media/svgd.
Ă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'
Failed to format translated string 'backup_applying_method_custom': 'Appel de la méthode de sauvegarde personnalisée '{method}' ...' 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}'...' with arguments '()' and '{}', raising error: KeyError('method') (don't panic this is just a warning)
A repository already exists at /media/svgd.
Ă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'
Failed to format translated string 'backup_applying_method_custom': 'Appel de la méthode de sauvegarde personnalisée '{method}' ...' 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}'...' with arguments '()' and '{}', raising error: KeyError('method') (don't panic this is just a warning)
A repository already exists at /media/svgd.
Ă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'
Failed to format translated string 'backup_applying_method_custom': 'Appel de la méthode de sauvegarde personnalisée '{method}' ...' 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}'...' with arguments '()' and '{}', raising error: KeyError('method') (don't panic this is just a warning)
A repository already exists at /media/svgd.
Ă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'
Failed to format translated string 'backup_applying_method_custom': 'Appel de la méthode de sauvegarde personnalisée '{method}' ...' 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}'...' with arguments '()' and '{}', raising error: KeyError('method') (don't panic this is just a warning)
A repository already exists at /media/svgd.
Ă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'
Vous pouvez voir les logs ici.
Jâai vĂ©rifiĂ© ma passphrase avec yunohost app setting borg passphrase
, et elle est juste et entiĂšre.
Jâai essayĂ© de relancer borg : service borg start
Mais cette fois tout a Ă©chouĂ©âŠ
Si je fais systemctl status borg.service
, jâobtiens
borg.service - Run backup borg
Loaded: loaded (/etc/systemd/system/borg.service; static; vendor preset: enabled)
Active: failed (Result: exit-code) since Wed 2021-12-15 14:43:21 CET; 4min 52s ago
Process: 32435 ExecStart=/usr/bin/sudo /usr/local/bin/backup-with-borg borg (code=exited, status=1/FAILURE)
Main PID: 32435 (code=exited, status=1/FAILURE)
déc. 15 14:43:20 domain.tld.fr sudo[4244]: root : TTY=unknown ; PWD=/ ; USER=root ; COMMAND=/usr/bin/yunohost app
déc. 15 14:43:20 domain.tld.fr sudo[4244]: pam_unix(sudo:session): session opened for user root by (uid=0)
déc. 15 14:43:21 domain.tld.fr sudo[4244]: pam_unix(sudo:session): session closed for user root
déc. 15 14:43:21 domain.tld.fr sudo[4246]: root : TTY=unknown ; PWD=/ ; USER=root ; COMMAND=/usr/bin/yunohost app
déc. 15 14:43:21 domain.tld.fr sudo[4246]: pam_unix(sudo:session): session opened for user root by (uid=0)
déc. 15 14:43:21 domain.tld.fr sudo[4246]: pam_unix(sudo:session): session closed for user root
déc. 15 14:43:21 domain.tld.fr sudo[32435]: pam_unix(sudo:session): session closed for user root
déc. 15 14:43:21 domain.tld.fr systemd[1]: borg.service: Main process exited, code=exited, status=1/FAILURE
déc. 15 14:43:21 domain.tld.fr systemd[1]: borg.service: Failed with result 'exit-code'.
déc. 15 14:43:21 domain.tld.fr systemd[1]: Failed to start Run backup borg.
lines 1-16/16 (END)
Je ne sais pas trop quoi faireâŠ
Juste pour info, le hook contient :
#!/bin/bash
set -eo pipefail
app="${0#"./05-"}"
app="${app%"_app"}"
BORG_PASSPHRASE="$(yunohost app setting $app passphrase)"
repo="$(yunohost app setting $app repository)" #$4
if ssh-keygen -F "" >/dev/null ; then
BORG_RSH="ssh -i /root/.ssh/id_${app}_ed25519 -oStrictHostKeyChecking=yes "
else
BORG_RSH="ssh -i /root/.ssh/id_${app}_ed25519 -oStrictHostKeyChecking=no "
fi
do_need_mount() {
true
}
LOGFILE=/var/log/backup_borg.err
log_with_timestamp() {
sed -e "s/^/[$(date +"%Y-%m-%d_%H:%M:%S")] /" | tee -a $LOGFILE
}
do_backup() {
Ce nâest pas moi qui lâai mis lĂ . Par contre, jâavais fait un Hook sur la proposition de metyun :
Et le dossier conf_regen a disparu⊠Je ne comprends pas ce qui se passe