What type of hardware are you using: Raspberry Pi 3, 4+
What YunoHost version are you running: 12.0.12
What app is this about: BorgBackup
Describe your issue
Since a few days Borg Backup fails in making a backup of 2 Apps (nextcloud and syncthing), all other apps are fine. I assume but I’am not sure that it is related to the recent update to 12.0.12 but not sure about that.
As i didn’t found any related issues, I opened a new topic. Thanks for your help.
Share relevant logs or error messages
args:
apps:
- syncthing
description: null
dry_run: false
methods: - borg_app
name: auto_syncthing
output_directory: null
system: null
ended_at: 2025-03-29 00:05:18.377932
error: Custom backup method could not get past the ‘backup’ step
interface: cli
operation: backup_create
parent: null
related_to: -
- app
- syncthing
started_at: 2025-03-29 00:01:55.299975
success: false
yunohost_version: 12.0.12
============
2025-03-29 00:01:55,313: INFO - Collecting files to be backed up for syncthing…
2025-03-29 00:01:55,322: DEBUG - Executing command ‘[‘sh’, ‘-c’, ‘/bin/bash -x “/var/cache/yunohost/app_tmp_work_dirs/app_nb_9mo1d/scripts/backup” 7>&1’]’
2025-03-29 00:01:55,324: DEBUG - + source ../settings/scripts/_common.sh
2025-03-29 00:01:55,324: DEBUG - + source /usr/share/yunohost/helpers
2025-03-29 00:01:55,325: DEBUG - ++++ dirname – /usr/share/yunohost/helpers
2025-03-29 00:01:55,325: DEBUG - +++ cd – /usr/share/yunohost
2025-03-29 00:01:55,325: DEBUG - +++ pwd
2025-03-29 00:01:55,325: DEBUG - ++ SCRIPT_DIR=/usr/share/yunohost
2025-03-29 00:01:55,325: DEBUG - ++ YNH_HELPERS_VERSION=2
2025-03-29 00:01:55,327: DEBUG - ++ readonly ‘XTRACE_ENABLE=set -o xtrace’
2025-03-29 00:01:55,327: DEBUG - ++ XTRACE_ENABLE=‘set -o xtrace’
2025-03-29 00:01:55,346: DEBUG - + ynh_print_info ‘–message=Declaring files to be backed up…’
2025-03-29 00:01:55,354: INFO - Declaring files to be backed up…
2025-03-29 00:01:55,354: DEBUG - + ynh_backup --src_path=/var/www/syncthing
2025-03-29 00:01:55,373: DEBUG - + dest_path=
2025-03-29 00:01:55,374: DEBUG - + is_big=0
2025-03-29 00:01:55,374: DEBUG - + not_mandatory=0
2025-03-29 00:01:55,374: DEBUG - + BACKUP_CORE_ONLY=0
2025-03-29 00:01:55,374: DEBUG - + test -n syncthing
2025-03-29 00:01:55,374: DEBUG - ++ ynh_app_setting_get --app=syncthing --key=do_not_backup_data
2025-03-29 00:01:55,441: DEBUG - + do_not_backup_data=
2025-03-29 00:01:55,442: DEBUG - + ‘[’ ‘!’ -e /var/www/syncthing ‘]’
2025-03-29 00:01:55,442: DEBUG - ++ realpath /var/www/syncthing
2025-03-29 00:01:55,443: DEBUG - + src_path=/var/www/syncthing
2025-03-29 00:01:55,443: DEBUG - + [[ -z ‘’ ]]
2025-03-29 00:01:55,443: DEBUG - + dest_path=var/www/syncthing
2025-03-29 00:01:55,443: DEBUG - + [[ -e var/www/syncthing ]]
2025-03-29 00:01:55,443: DEBUG - + local rel_dir=/apps/syncthing/backup
2025-03-29 00:01:55,443: DEBUG - + rel_dir=/apps/syncthing/backup/
2025-03-29 00:01:55,443: DEBUG - + dest_path=/apps/syncthing/backup/var/www/syncthing
2025-03-29 00:01:55,443: DEBUG - + dest_path=apps/syncthing/backup/var/www/syncthing
2025-03-29 00:01:55,444: DEBUG - ++ echo /var/www/syncthing
2025-03-29 00:01:55,444: DEBUG - ++ sed --regexp-extended ‘s/"/""/g’
2025-03-29 00:01:55,445: DEBUG - + local src=/var/www/syncthing
2025-03-29 00:01:55,446: DEBUG - ++ echo apps/syncthing/backup/var/www/syncthing
2025-03-29 00:01:55,446: DEBUG - ++ sed --regexp-extended ‘s/"/""/g’
2025-03-29 00:01:55,447: DEBUG - + local dest=apps/syncthing/backup/var/www/syncthing
2025-03-29 00:01:55,447: DEBUG - ++ dirname /home/yunohost.backup/tmp/auto_syncthing/apps/syncthing/backup/var/www/syncthing
2025-03-29 00:01:55,448: DEBUG - + mkdir --parents /home/yunohost.backup/tmp/auto_syncthing/apps/syncthing/backup/var/www
2025-03-29 00:01:55,449: DEBUG - + ynh_backup --src_path=/home/yunohost.app/syncthing --is_big
2025-03-29 00:01:55,488: DEBUG - + dest_path=
2025-03-29 00:01:55,489: DEBUG - + is_big=1
2025-03-29 00:01:55,489: DEBUG - + not_mandatory=0
2025-03-29 00:01:55,489: DEBUG - + BACKUP_CORE_ONLY=0
2025-03-29 00:01:55,489: DEBUG - + test -n syncthing
2025-03-29 00:01:55,489: DEBUG - ++ ynh_app_setting_get --app=syncthing --key=do_not_backup_data
2025-03-29 00:01:55,557: DEBUG - + do_not_backup_data=
2025-03-29 00:01:55,557: DEBUG - + ‘[’ ‘!’ -e /home/yunohost.app/syncthing ‘]’
2025-03-29 00:01:55,558: DEBUG - ++ realpath /home/yunohost.app/syncthing
2025-03-29 00:01:55,559: DEBUG - + src_path=/home/yunohost.app/syncthing
2025-03-29 00:01:55,559: DEBUG - + [[ -z ‘’ ]]
2025-03-29 00:01:55,559: DEBUG - + dest_path=home/yunohost.app/syncthing
2025-03-29 00:01:55,559: DEBUG - + [[ -e home/yunohost.app/syncthing ]]
2025-03-29 00:01:55,559: DEBUG - + local rel_dir=/apps/syncthing/backup
2025-03-29 00:01:55,559: DEBUG - + rel_dir=/apps/syncthing/backup/
2025-03-29 00:01:55,559: DEBUG - + dest_path=/apps/syncthing/backup/home/yunohost.app/syncthing
2025-03-29 00:01:55,559: DEBUG - + dest_path=apps/syncthing/backup/home/yunohost.app/syncthing
2025-03-29 00:01:55,560: DEBUG - ++ echo /home/yunohost.app/syncthing
2025-03-29 00:01:55,560: DEBUG - ++ sed --regexp-extended ‘s/"/""/g’
2025-03-29 00:01:55,561: DEBUG - + local src=/home/yunohost.app/syncthing
2025-03-29 00:01:55,562: DEBUG - ++ echo apps/syncthing/backup/home/yunohost.app/syncthing
2025-03-29 00:01:55,562: DEBUG - ++ sed --regexp-extended ‘s/"/""/g’
2025-03-29 00:01:55,563: DEBUG - + local dest=apps/syncthing/backup/home/yunohost.app/syncthing
2025-03-29 00:01:55,564: DEBUG - ++ dirname /home/yunohost.backup/tmp/auto_syncthing/apps/syncthing/backup/home/yunohost.app/syncthing
2025-03-29 00:01:55,565: DEBUG - + mkdir --parents /home/yunohost.backup/tmp/auto_syncthing/apps/syncthing/backup/home/yunohost.app
2025-03-29 00:01:55,566: DEBUG - + ynh_backup --src_path=/etc/nginx/conf.d/maindomain.tld.d/syncthing.conf
2025-03-29 00:01:55,588: DEBUG - + dest_path=
2025-03-29 00:01:55,588: DEBUG - + is_big=0
2025-03-29 00:01:55,589: DEBUG - + not_mandatory=0
2025-03-29 00:01:55,589: DEBUG - + BACKUP_CORE_ONLY=0
2025-03-29 00:01:55,589: DEBUG - + test -n syncthing
2025-03-29 00:01:55,589: DEBUG - ++ ynh_app_setting_get --app=syncthing --key=do_not_backup_data
2025-03-29 00:01:55,655: DEBUG - + do_not_backup_data=
2025-03-29 00:01:55,655: DEBUG - + ‘[’ ‘!’ -e /etc/nginx/conf.d/maindomain.tld.d/syncthing.conf ‘]’
2025-03-29 00:01:55,655: DEBUG - ++ realpath /etc/nginx/conf.d/maindomain.tld.d/syncthing.conf
2025-03-29 00:01:55,656: DEBUG - + src_path=/etc/nginx/conf.d/maindomain.tld.d/syncthing.conf
2025-03-29 00:01:55,656: DEBUG - + [[ -z ‘’ ]]
2025-03-29 00:01:55,656: DEBUG - + dest_path=etc/nginx/conf.d/maindomain.tld.d/syncthing.conf
2025-03-29 00:01:55,656: DEBUG - + [[ -e etc/nginx/conf.d/maindomain.tld.d/syncthing.conf ]]
2025-03-29 00:01:55,656: DEBUG - + local rel_dir=/apps/syncthing/backup
2025-03-29 00:01:55,657: DEBUG - + rel_dir=/apps/syncthing/backup/
2025-03-29 00:01:55,657: DEBUG - + dest_path=/apps/syncthing/backup/etc/nginx/conf.d/maindomain.tld.d/syncthing.conf
2025-03-29 00:01:55,657: DEBUG - + dest_path=apps/syncthing/backup/etc/nginx/conf.d/maindomain.tld.d/syncthing.conf
2025-03-29 00:01:55,657: DEBUG - ++ echo /etc/nginx/conf.d/maindomain.tld.d/syncthing.conf
2025-03-29 00:01:55,657: DEBUG - ++ sed --regexp-extended ‘s/"/""/g’
2025-03-29 00:01:55,658: DEBUG - + local src=/etc/nginx/conf.d/maindomain.tld.d/syncthing.conf
2025-03-29 00:01:55,659: DEBUG - ++ echo apps/syncthing/backup/etc/nginx/conf.d/maindomain.tld.d/syncthing.conf
2025-03-29 00:01:55,660: DEBUG - ++ sed --regexp-extended ‘s/"/""/g’
2025-03-29 00:01:55,660: DEBUG - + local dest=apps/syncthing/backup/etc/nginx/conf.d/maindomain.tld.d/syncthing.conf
2025-03-29 00:01:55,661: DEBUG - ++ dirname /home/yunohost.backup/tmp/auto_syncthing/apps/syncthing/backup/etc/nginx/conf.d/maindomain.tld.d/syncthing.conf
2025-03-29 00:01:55,662: DEBUG - + mkdir --parents /home/yunohost.backup/tmp/auto_syncthing/apps/syncthing/backup/etc/nginx/conf.d/maindomain.tld.d
2025-03-29 00:01:55,663: DEBUG - + ynh_backup --src_path=/etc/systemd/system/syncthing.service
2025-03-29 00:01:55,684: DEBUG - + dest_path=
2025-03-29 00:01:55,685: DEBUG - + is_big=0
2025-03-29 00:01:55,685: DEBUG - + not_mandatory=0
2025-03-29 00:01:55,685: DEBUG - + BACKUP_CORE_ONLY=0
2025-03-29 00:01:55,685: DEBUG - + test -n syncthing
2025-03-29 00:01:55,685: DEBUG - ++ ynh_app_setting_get --app=syncthing --key=do_not_backup_data
2025-03-29 00:01:55,751: DEBUG - + do_not_backup_data=
2025-03-29 00:01:55,752: DEBUG - + ‘[’ ‘!’ -e /etc/systemd/system/syncthing.service ‘]’
2025-03-29 00:01:55,752: DEBUG - ++ realpath /etc/systemd/system/syncthing.service
2025-03-29 00:01:55,753: DEBUG - + src_path=/etc/systemd/system/syncthing.service
2025-03-29 00:01:55,753: DEBUG - + [[ -z ‘’ ]]
2025-03-29 00:01:55,753: DEBUG - + dest_path=etc/systemd/system/syncthing.service
2025-03-29 00:01:55,753: DEBUG - + [[ -e etc/systemd/system/syncthing.service ]]
2025-03-29 00:01:55,753: DEBUG - + local rel_dir=/apps/syncthing/backup
2025-03-29 00:01:55,753: DEBUG - + rel_dir=/apps/syncthing/backup/
2025-03-29 00:01:55,753: DEBUG - + dest_path=/apps/syncthing/backup/etc/systemd/system/syncthing.service
2025-03-29 00:01:55,753: DEBUG - + dest_path=apps/syncthing/backup/etc/systemd/system/syncthing.service
2025-03-29 00:01:55,754: DEBUG - ++ echo /etc/systemd/system/syncthing.service
2025-03-29 00:01:55,754: DEBUG - ++ sed --regexp-extended ‘s/"/""/g’
2025-03-29 00:01:55,755: DEBUG - + local src=/etc/systemd/system/syncthing.service
2025-03-29 00:01:55,756: DEBUG - ++ echo apps/syncthing/backup/etc/systemd/system/syncthing.service
2025-03-29 00:01:55,756: DEBUG - ++ sed --regexp-extended ‘s/"/""/g’
2025-03-29 00:01:55,757: DEBUG - + local dest=apps/syncthing/backup/etc/systemd/system/syncthing.service
2025-03-29 00:01:55,758: DEBUG - ++ dirname /home/yunohost.backup/tmp/auto_syncthing/apps/syncthing/backup/etc/systemd/system/syncthing.service
2025-03-29 00:01:55,758: DEBUG - + mkdir --parents /home/yunohost.backup/tmp/auto_syncthing/apps/syncthing/backup/etc/systemd/system
2025-03-29 00:01:55,760: DEBUG - + ynh_print_info ‘–message=Backup script completed for syncthing. (YunoHost will then actually copy those files to the archive).’
2025-03-29 00:01:55,768: DEBUG - + ynh_exit_properly
2025-03-29 00:01:55,769: INFO - Backup script completed for syncthing. (YunoHost will then actually copy those files to the archive).
2025-03-29 00:01:55,769: DEBUG - + [[ backup =~ ^install$|^upgrade$|^restore$ ]]
2025-03-29 00:01:55,869: DEBUG - Backup permission for syncthing
2025-03-29 00:01:55,939: DEBUG - initializing root ldap interface
2025-03-29 00:01:55,975: INFO - Creating a backup archive from the collected files…
2025-03-29 00:01:55,976: INFO - The archive will contain about 34.7GB of data.
2025-03-29 00:01:55,976: DEBUG - Calling the custom backup method ‘borg_app’…
2025-03-29 00:01:55,976: DEBUG - Executing command ‘[‘sh’, ‘-c’, ‘/bin/bash -x “./05-borg_app” need_mount /home/yunohost.backup/tmp/auto_syncthing auto_syncthing /home/yunohost.backup/archives 37259604204 '' 7>&1’]’
2025-03-29 00:01:55,978: DEBUG - + set -Eeuo pipefail
2025-03-29 00:01:55,978: DEBUG - + borg=/var/www/borg/venv/bin/borg
2025-03-29 00:01:55,978: DEBUG - ++ yunohost app setting borg passphrase
2025-03-29 00:01:56,189: DEBUG - + BORG_PASSPHRASE=**********
2025-03-29 00:01:56,190: DEBUG - ++ yunohost app setting borg repository
2025-03-29 00:01:56,406: DEBUG - + BORG_REPO=/mnt/backupssd/BorgBackupOrdner
2025-03-29 00:01:56,406: DEBUG - + BORG_LOGGING_CONF=/var/www/borg/logging.conf
2025-03-29 00:01:56,406: DEBUG - + ssh-keygen -F ‘’
2025-03-29 00:01:56,412: WARNING - Cannot stat /root/.ssh/known_hosts: No such file or directory
2025-03-29 00:01:56,412: DEBUG - + BORG_RSH='ssh -i /root/.ssh/id_borg_ed25519 -oStrictHostKeyChecking=no ’
2025-03-29 00:01:56,412: DEBUG - + work_dir=/home/yunohost.backup/tmp/auto_syncthing
2025-03-29 00:01:56,412: DEBUG - + name=auto_syncthing
2025-03-29 00:01:56,412: DEBUG - + size=37259604204
2025-03-29 00:01:56,412: DEBUG - + description=
2025-03-29 00:01:56,412: DEBUG - + case “$1” in
2025-03-29 00:01:56,412: DEBUG - + do_need_mount /home/yunohost.backup/tmp/auto_syncthing auto_syncthing 37259604204 ‘’
2025-03-29 00:01:56,412: DEBUG - + true
2025-03-29 00:01:56,524: DEBUG - Copying 0.002460479736328125MB to organize the archive
2025-03-29 00:01:56,524: DEBUG - Executing command ‘[‘sh’, ‘-c’, ‘/bin/bash -x “./05-borg_app” backup /home/yunohost.backup/tmp/auto_syncthing auto_syncthing /home/yunohost.backup/archives 37259604204 '' 7>&1’]’
2025-03-29 00:01:56,528: DEBUG - + set -Eeuo pipefail
2025-03-29 00:01:56,528: DEBUG - + borg=/var/www/borg/venv/bin/borg
2025-03-29 00:01:56,529: DEBUG - ++ yunohost app setting borg passphrase
2025-03-29 00:01:56,740: DEBUG - + BORG_PASSPHRASE=**********
2025-03-29 00:01:56,741: DEBUG - ++ yunohost app setting borg repository
2025-03-29 00:01:56,952: DEBUG - + BORG_REPO=/mnt/backupssd/BorgBackupOrdner
2025-03-29 00:01:56,953: DEBUG - + BORG_LOGGING_CONF=/var/www/borg/logging.conf
2025-03-29 00:01:56,953: DEBUG - + ssh-keygen -F ‘’
2025-03-29 00:01:56,956: WARNING - Cannot stat /root/.ssh/known_hosts: No such file or directory
2025-03-29 00:01:56,957: DEBUG - + BORG_RSH='ssh -i /root/.ssh/id_borg_ed25519 -oStrictHostKeyChecking=no ’
2025-03-29 00:01:56,957: DEBUG - + work_dir=/home/yunohost.backup/tmp/auto_syncthing
2025-03-29 00:01:56,957: DEBUG - + name=auto_syncthing
2025-03-29 00:01:56,957: DEBUG - + size=37259604204
2025-03-29 00:01:56,957: DEBUG - + description=
2025-03-29 00:01:56,957: DEBUG - + case “$1” in
2025-03-29 00:01:56,957: DEBUG - + do_backup /home/yunohost.backup/tmp/auto_syncthing auto_syncthing 37259604204 ‘’
2025-03-29 00:01:56,957: DEBUG - + export BORG_PASSPHRASE
2025-03-29 00:01:56,957: DEBUG - + export BORG_REPO
2025-03-29 00:01:56,957: DEBUG - + export BORG_RSH
2025-03-29 00:01:56,957: DEBUG - + export BORG_LOGGING_CONF
2025-03-29 00:01:56,957: DEBUG - + export BORG_RELOCATED_REPO_ACCESS_IS_OK=yes
2025-03-29 00:01:56,957: DEBUG - + BORG_RELOCATED_REPO_ACCESS_IS_OK=yes
2025-03-29 00:01:56,957: DEBUG - + work_dir=/home/yunohost.backup/tmp/auto_syncthing
2025-03-29 00:01:56,957: DEBUG - + name=auto_syncthing
2025-03-29 00:01:56,957: DEBUG - + size=37259604204
2025-03-29 00:01:56,957: DEBUG - + description=
2025-03-29 00:01:56,957: DEBUG - + set +e
2025-03-29 00:01:56,957: DEBUG - + /var/www/borg/venv/bin/borg list
2025-03-29 00:01:57,463: DEBUG - + set -e
2025-03-29 00:01:57,463: DEBUG - + pushd /home/yunohost.backup/tmp/auto_syncthing
2025-03-29 00:01:57,463: DEBUG - /home/yunohost.backup/tmp/auto_syncthing /etc/yunohost/hooks.d/backup_method
2025-03-29 00:01:57,463: DEBUG - + /var/www/borg/venv/bin/borg create --stats ‘::auto_syncthing-{now}’ .
2025-03-29 00:05:18,264: DEBUG - + retcode=2
2025-03-29 00:05:18,267: DEBUG - + popd
2025-03-29 00:05:18,267: DEBUG - /etc/yunohost/hooks.d/backup_method
2025-03-29 00:05:18,267: DEBUG - + [[ 2 == 1 ]]
2025-03-29 00:05:18,267: DEBUG - + [[ 2 != 0 ]]
2025-03-29 00:05:18,267: DEBUG - + exit 2
2025-03-29 00:05:18,368: ERROR - Could not run script: /etc/yunohost/hooks.d/backup_method/05-borg_app
Traceback (most recent call last):
File “/usr/lib/python3/dist-packages/yunohost/hook.py”, line 301, in hook_callback
hook_return = hook_exec(
^^^^^^^^^^
File “/usr/lib/python3/dist-packages/yunohost/hook.py”, line 421, 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