Handle crash of a backup
Hi my automated backup got shutdown by an electric failure and know i got a lock in my backup how can pika Backup can handle this ? ( i know i can delete the lock but the good way is to implement something or not for this user case.
Thanks again for this awsome app !
Exception: Local Exception
Erreur: Le dépôt est déjà en cours d’utilisation. – Failed to create/acquire the lock /home/yodatak/.var/app/org.gnome.World.PikaBackup/cache/borg/d33aa8b243349395af929484a3d53bf99e3ff220275916e951611f6a781b74a8/lock.exclusive (timeout).
Erreur: Exception – Local Exception
Erreur: Traceback (most recent call last):
File "/app/lib/python3.9/site-packages/borg/archiver.py", line 5115, in main
exit_code = archiver.run(args)
File "/app/lib/python3.9/site-packages/borg/archiver.py", line 5046, in run
return set_ec(func(args))
File "/app/lib/python3.9/site-packages/borg/archiver.py", line 183, in wrapper
return method(self, args, repository=repository, **kwargs)
File "/app/lib/python3.9/site-packages/borg/archiver.py", line 654, in do_create
with Cache(repository, key, manifest, progress=args.progress,
File "/app/lib/python3.9/site-packages/borg/cache.py", line 387, in __new__
return local()
File "/app/lib/python3.9/site-packages/borg/cache.py", line 378, in local
return LocalCache(repository=repository, key=key, manifest=manifest, path=path, sync=sync,
File "/app/lib/python3.9/site-packages/borg/cache.py", line 487, in __init__
self.open()
File "/app/lib/python3.9/site-packages/borg/cache.py", line 542, in open
self.rollback()
File "/app/lib/python3.9/site-packages/borg/cache.py", line 662, in rollback
self._do_open()
File "/app/lib/python3.9/site-packages/borg/cache.py", line 527, in _do_open
self.chunks = ChunkIndex.read(fd)
File "src/borg/hashindex.pyx", line 114, in borg.hashindex.IndexBase.read
File "src/borg/hashindex.pyx", line 99, in borg.hashindex.IndexBase.__cinit__
ValueError: Could not read header (expected 18, but read 0 bytes)
Platform: Linux fedora 5.18.11-200.fc36.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Jul 12 22:52:35 UTC 2022 x86_64
Linux: Unknown Linux
Borg: 1.2.1 Python: CPython 3.9.9 msgpack: 1.0.4 fuse: pyfuse3 3.2.1 [pyfuse3,llfuse]
PID: 37 CWD: /home/yodatak
sys.argv: ['/app/bin/borg', 'create', '--rsh', 'ssh -o BatchMode=yes -o StrictHostKeyChecking=accept-new', '--progress', '--json', '--compression=zstd', '--log-json', '--exclude=pp:/home/yodatak/.cache', '--exclude=pp:/home/yodatak/.mnt/borg', '--exclude=pp:/home/yodatak/.var/app/org.gnome.World.PikaBackup/data/flatpak/', '--exclude=pp:/mnt', '--exclude=re:/\\.var/app/[^/]+/cache/', '--', '/XXXXX::013XXc-f80dXX8', '/home/yodatak/']
SSH_ORIGINAL_COMMAND: None
Edited by yodatak