"Failed to lock repository" message when no space is left
Using version 0.6.2 from Flathub on Fedora Silverblue Backup located on an external USB3 hard drive
Some weeks ago, my scheduled backup failed due to a large increase of large files on my computer (I was doing some video editing). After getting rid of those large files, I've attempted to perform a backup, but it instantly fails with the following pop-up:
By checking the error logs below, I guess that there is not enough space left on the device (I need to backup ~910 GB on a 1 TB hard drive, which has still 50 GB free space according to gnome-disks
). However, after clicking the "Cleanup Archives" button in the "Archives" tab, a tooltip is displayed with: "Failed to determine how many archives would be deleted - Failed to lock repository." I've tried the workaround suggested here but it didn't work for me. Should I wipe out all of the disk in order to perform a backup?
Failed to lock repository.
Erreur: Failed to lock repository. – Failed to create/acquire the lock /run/media/hellpe/Sauvegarde A/backup-eggmannega-hellpe/lock.exclusive ([Errno 28] No space left on device: '/run/media/hellpe/Sauvegarde A/backup-eggmannega-hellpe/lock.exclusive.aaocormr.tmp').
Erreur: Traceback (most recent call last):
File "/app/lib/python3.10/site-packages/borg/archiver.py", line 5213, in main
exit_code = archiver.run(args)
File "/app/lib/python3.10/site-packages/borg/archiver.py", line 5144, in run
return set_ec(func(args))
File "/app/lib/python3.10/site-packages/borg/archiver.py", line 168, in wrapper
with repository:
File "/app/lib/python3.10/site-packages/borg/repository.py", line 200, in __enter__
self.open(self.path, bool(self.exclusive), lock_wait=self.lock_wait, lock=self.do_lock)
File "/app/lib/python3.10/site-packages/borg/repository.py", line 432, in open
self.lock = Lock(os.path.join(path, 'lock'), exclusive, timeout=lock_wait).acquire()
File "/app/lib/python3.10/site-packages/borg/locking.py", line 384, in acquire
self._wait_for_readers_finishing(remove, sleep)
File "/app/lib/python3.10/site-packages/borg/locking.py", line 397, in _wait_for_readers_finishing
self._lock.acquire()
File "/app/lib/python3.10/site-packages/borg/locking.py", line 137, in acquire
raise LockFailed(self.path, str(err)) from None
borg.locking.LockFailed: Failed to create/acquire the lock /run/media/hellpe/Sauvegarde A/backup-eggmannega-hellpe/lock.exclusive ([Errno 28] No space left on device: '/run/media/hellpe/Sauvegarde A/backup-eggmannega-hellpe/lock.exclusive.aaocormr.tmp').
Platform: Linux eggmannega 6.5.5-200.fc38.x86_64 #1 SMP PREEMPT_DYNAMIC Sun Sep 24 15:52:44 UTC 2023 x86_64
Linux: Unknown Linux
Borg: 1.2.4 Python: CPython 3.10.13 msgpack: 1.0.5 fuse: pyfuse3 3.2.2 [pyfuse3,llfuse]
PID: 54 CWD: /var/home/hellpe
sys.argv: ['/app/bin/borg', 'create', '--rsh', 'ssh -o BatchMode=yes -o StrictHostKeyChecking=accept-new', '--progress', '--json', '--compression=zstd', '--log-json', '--exclude=pp:/var/home/hellpe/.var/app/org.gnome.World.PikaBackup/data/flatpak/', '--exclude=pp:/var/home/hellpe/Téléchargements', '--exclude=pp:/var/home/hellpe/.cache', '--exclude=re:^var/home/hellpe/\\.var/app/[^/]+/cache/', '--exclude-caches', '--exclude=pp:/var/home/hellpe/.local/share/Trash', '--exclude=re:^var/home/hellpe/\\.local/share/flatpak/(?!overrides)', '--exclude=pp:/var/home/hellpe/.local/share/gnome-boxes', '--exclude=pp:/var/home/hellpe/.var/app/org.gnome.Boxes', '--exclude=pp:/var/home/hellpe/.var/app/org.gnome.BoxesDevel', '--exclude=pp:/var/home/hellpe/.local/share/bottles', '--exclude=pp:/var/home/hellpe/.var/app/com.usebottles.bottles', '--exclude=pp:/var/home/hellpe/.local/share/libvirt', '--exclude=pp:/var/home/hellpe/.config/libvirt', '--exclude=pp:/var/home/hellpe/.local/share/containers', '--', '/run/media/hellpe/Sauvegarde A/backup-eggmannega-hellpe::80c436-71721f19', '/var/home/hellpe/']
SSH_ORIGINAL_COMMAND: None