Backup Error Restic

NethServer Version: 7.9.2009
Module: Backup

Backup: bck_ns_restyc
Backup started at 2023-11-06 22:00:01
Pre backup scripts status: SUCCESS
using parent snapshot 12e59a1b

Files: 6 new, 118 changed, 128694 unmodified
Dirs: 10 new, 68 changed, 49296 unmodified
Added to the repo: 2.210 GiB

processed 128818 files, 297.111 GiB in 4:01
snapshot 6d3e1a8c saved
unable to create lock in backend: repository is already locked by PID 30291 on srv01.bianchihotels.com by root (UID 0, GID 0)
lock was created at 2023-11-03 22:00:12 (72h4m0.83456196s ago)
storage ID 411f53e6
the unlock command can be used to remove stale locks
Cleanup failed
Action ‘backup-data-restic bck_ns_restyc’: FAIL
Backup status: FAIL

Why it’s failed to cleanup, what i need to do?
Thanks :slight_smile:

Hi @Denis_Pollini, check there aren’t backups running with this command:

ps ax | grep restic

The output should be something like this:

[root@mail ~]# ps ax | grep restic
24460 pts/1    S+     0:00 grep --color=auto restic

If you’ve more lines, please post here the output, otherwise proceed with:

/etc/e-smith/events/actions/mount-$(db backups getprop bck_ns_restyc VFSType) null bck_ns_restyc
restic --cache-dir /var/lib/nethserver/backup/restic -p /var/lib/nethserver/secrets/restic_bck_ns_restyc -r /mnt/backup-bck_ns_restyc unlock -v
/etc/e-smith/events/actions/umount-$(db backups getprop bck_ns_restyc VFSType) null bck_ns_restyc

Then relaunch the backup.
Keep us updated!

2 Likes