What type of hardware are you using: Virtual machine
What YunoHost version are you running: 12.0.16
How are you able to access your server: The webadmin
SSH
Direct access via physical keyboard/screen
Describe your issue
Hi,
I recently had a problem on my Yunohost (no more space left on the disk) and I had the restore a backup retrieved from my borg repo on borgbase.
When I wanted to restore the backup, I noticed that borg
was not available in PATH, despite the app ynh_borgbackup being installed.
Being under pressure, I installed it with apt install borgbackup
and kept going with the restoration process.
The restoration went OK, but since then, all borg backups fail.
I since then uninstalled borg with apt remove borgbackup
, but this did not help.
Thanks for your kind help !
Share relevant logs or error messages
A sample from /var/log/borg/250507_0659.log
:
INFO Collecting files to be backed up for keeweb…
INFO Declaring files to be backed up...
INFO Backup script completed for keeweb. (YunoHost will then actually copy those files to the archive).
INFO Creating a backup archive from the collected files…
INFO The archive will contain about 8.2MB of data.
INFO The operation 'Create a backup archive' could not be completed. Please share the full log of this operation using the command 'yunohost log share 20250507-070020-backup_create' to get help
INFO Collecting files to be backed up for mautrix_signal…
INFO Declaring files to be backed up...
INFO Backing up the PostgreSQL database...
INFO Backup script completed for mautrix_signal. (YunoHost will then actually copy those files to the archive).
INFO Creating a backup archive from the collected files…
INFO The archive will contain about 50.4MB of data.
INFO The operation 'Create a backup archive' could not be completed. Please share the full log of this operation using the command 'yunohost log share 20250507-070027-backup_create' to get help
INFO Collecting files to be backed up for mautrix_telegram…
INFO Declaring files to be backed up...
INFO Backing up the PostgreSQL database...
INFO Backup script completed for mautrix_telegram. (YunoHost will then actually copy those files to the archive).
INFO Creating a backup archive from the collected files…
A sample from /var/log/borg/250507_0659.err
ERROR Custom backup method could not get past the 'backup' step
ERROR Could not run script: /etc/yunohost/hooks.d/backup_method/05-borg_app
ERROR Custom backup method could not get past the 'backup' step
ERROR Could not run script: /etc/yunohost/hooks.d/backup_method/05-borg_app
ERROR Custom backup method could not get past the 'backup' step
ERROR Could not run script: /etc/yunohost/hooks.d/backup_method/05-borg_app
ERROR Custom backup method could not get past the 'backup' step
ERROR Could not run script: /etc/yunohost/hooks.d/backup_method/05-borg_app
ERROR Custom backup method could not get past the 'backup' step
ERROR Could not run script: /etc/yunohost/hooks.d/backup_method/05-borg_app
ERROR Custom backup method could not get past the 'backup' step
ERROR Could not run script: /etc/yunohost/hooks.d/backup_method/05-borg_app
ERROR Custom backup method could not get past the 'backup' step
Here is an export of one of the backup log journal : https://paste.yunohost.org/raw/meyojafalo
Here is a sample from journalctl -u borg.service
:
May 07 07:28:42 yunohost sudo[819521]: pam_limits(sudo:session): Could not set limit for 'core' to soft=0, hard=-1: Operation not permitted; uid=0,euid=0
May 07 07:28:42 yunohost sudo[819521]: pam_unix(sudo:session): session opened for user root(uid=0) by (uid=0)
May 07 07:28:48 yunohost sudo[819521]: pam_unix(sudo:session): session closed for user root
May 07 07:28:48 yunohost sudo[819738]: root : PWD=/ ; USER=root ; COMMAND=/usr/bin/test ! -f /etc/yunohost/apps/wallabag2/scripts/backup
May 07 07:28:48 yunohost sudo[819738]: pam_limits(sudo:session): Could not set limit for 'core' to soft=0, hard=-1: Operation not permitted; uid=0,euid=0
May 07 07:28:48 yunohost sudo[819738]: pam_unix(sudo:session): session opened for user root(uid=0) by (uid=0)
May 07 07:28:48 yunohost sudo[819738]: pam_unix(sudo:session): session closed for user root
May 07 07:28:48 yunohost sudo[819740]: root : PWD=/ ; USER=root ; COMMAND=/usr/bin/yunohost backup create -n auto_wallabag2 --method borg_app --apps wallabag2
May 07 07:28:48 yunohost sudo[819740]: pam_limits(sudo:session): Could not set limit for 'core' to soft=0, hard=-1: Operation not permitted; uid=0,euid=0
May 07 07:28:48 yunohost sudo[819740]: pam_unix(sudo:session): session opened for user root(uid=0) by (uid=0)
May 07 07:28:55 yunohost sudo[819740]: pam_unix(sudo:session): session closed for user root
May 07 07:28:55 yunohost sudo[820030]: root : PWD=/ ; USER=root ; COMMAND=/usr/bin/test ! -f /etc/yunohost/apps/wordpress/scripts/backup
May 07 07:28:55 yunohost sudo[820030]: pam_limits(sudo:session): Could not set limit for 'core' to soft=0, hard=-1: Operation not permitted; uid=0,euid=0
May 07 07:28:55 yunohost sudo[820030]: pam_unix(sudo:session): session opened for user root(uid=0) by (uid=0)
May 07 07:28:55 yunohost sudo[820030]: pam_unix(sudo:session): session closed for user root
May 07 07:28:55 yunohost sudo[820032]: root : PWD=/ ; USER=root ; COMMAND=/usr/bin/yunohost backup create -n auto_wordpress --method borg_app --apps wordpress
May 07 07:28:55 yunohost sudo[820032]: pam_limits(sudo:session): Could not set limit for 'core' to soft=0, hard=-1: Operation not permitted; uid=0,euid=0
May 07 07:28:55 yunohost sudo[820032]: pam_unix(sudo:session): session opened for user root(uid=0) by (uid=0)
May 07 07:29:03 yunohost sudo[820032]: pam_unix(sudo:session): session closed for user root
May 07 07:29:03 yunohost sudo[820346]: root : PWD=/ ; USER=root ; COMMAND=/usr/bin/test ! -f /etc/yunohost/apps/zola/scripts/backup
May 07 07:29:03 yunohost sudo[820346]: pam_limits(sudo:session): Could not set limit for 'core' to soft=0, hard=-1: Operation not permitted; uid=0,euid=0
May 07 07:29:03 yunohost sudo[820346]: pam_unix(sudo:session): session opened for user root(uid=0) by (uid=0)
May 07 07:29:03 yunohost sudo[820346]: pam_unix(sudo:session): session closed for user root
May 07 07:29:03 yunohost sudo[820348]: root : PWD=/ ; USER=root ; COMMAND=/usr/bin/yunohost backup create -n auto_zola --method borg_app --apps zola
May 07 07:29:03 yunohost sudo[820348]: pam_limits(sudo:session): Could not set limit for 'core' to soft=0, hard=-1: Operation not permitted; uid=0,euid=0
May 07 07:29:03 yunohost sudo[820348]: pam_unix(sudo:session): session opened for user root(uid=0) by (uid=0)
May 07 07:29:09 yunohost sudo[820348]: pam_unix(sudo:session): session closed for user root
May 07 07:29:09 yunohost sudo[820982]: root : PWD=/ ; USER=root ; COMMAND=/usr/bin/yunohost app setting borg repository
May 07 07:29:09 yunohost sudo[820982]: pam_limits(sudo:session): Could not set limit for 'core' to soft=0, hard=-1: Operation not permitted; uid=0,euid=0
May 07 07:29:09 yunohost sudo[820982]: pam_unix(sudo:session): session opened for user root(uid=0) by (uid=0)
May 07 07:29:10 yunohost sudo[820982]: pam_unix(sudo:session): session closed for user root
May 07 07:29:10 yunohost sudo[820984]: root : PWD=/ ; USER=root ; COMMAND=/usr/bin/yunohost app setting borg mailalert
May 07 07:29:10 yunohost sudo[820984]: pam_limits(sudo:session): Could not set limit for 'core' to soft=0, hard=-1: Operation not permitted; uid=0,euid=0
May 07 07:29:10 yunohost sudo[820984]: pam_unix(sudo:session): session opened for user root(uid=0) by (uid=0)
May 07 07:29:10 yunohost sudo[820984]: pam_unix(sudo:session): session closed for user root
May 07 07:29:10 yunohost sudo[820986]: root : PWD=/ ; USER=root ; COMMAND=/usr/bin/yunohost app setting borg state -v failed
May 07 07:29:10 yunohost sudo[820986]: pam_limits(sudo:session): Could not set limit for 'core' to soft=0, hard=-1: Operation not permitted; uid=0,euid=0
May 07 07:29:10 yunohost sudo[820986]: pam_unix(sudo:session): session opened for user root(uid=0) by (uid=0)
May 07 07:29:10 yunohost sudo[820986]: pam_unix(sudo:session): session closed for user root
May 07 07:29:10 yunohost sudo[809951]: pam_unix(sudo:session): session closed for user root
May 07 07:29:10 yunohost systemd[1]: borg.service: Main process exited, code=exited, status=1/FAILURE
May 07 07:29:10 yunohost systemd[1]: borg.service: Failed with result 'exit-code'.
May 07 07:29:10 yunohost systemd[1]: Failed to start borg.service - Run backup borg.
May 07 07:29:10 yunohost systemd[1]: borg.service: Consumed 1min 19.740s CPU time.
I