[Borgbackup] Borg verify fails for big archive on webdav share

Andreas Kemper a_kemper at gmx.de
Mon Jan 14 07:30:37 EST 2019


Hi,

I'm using Borgbackup for quite some time on different machines without 
any problems so far, while in particular appreciating the compact 
archive size.

Now I've created a new archive for approx. ~ 25GB of files from my 
ownCloud installation. Creating / updating / pruning the archive works 
well, but when running a "borg check -v (--repository-only)" it 
repetitively crashes as printed below. Doing the same check on a local 
copy of the respective archive works well, while even increasing the 
lock-wait value doesn't help with the webdav mount (1&1 Online-Speicher).

Is this something I should file as a bug, alternatively any tips for a 
workaround (apart from rsyncing a local archive for instance)?

Thx
Andreas


root at vserver:/# borg check -v --repository-only /media/1und1/backup/www
Starting repository check
Local Exception
Traceback (most recent call last):
   File "/usr/lib/python3/dist-packages/borg/repository.py", line 1283, 
in get_fd
     return self.fds[segment]
   File "/usr/lib/python3/dist-packages/borg/lrucache.py", line 21, in 
__getitem__
     value = self._cache[key]  # raise KeyError if not found
KeyError: 25

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
   File "/usr/lib/python3/dist-packages/borg/archiver.py", line 4434, in 
main
     exit_code = archiver.run(args)
   File "/usr/lib/python3/dist-packages/borg/archiver.py", line 4366, in run
     return set_ec(func(args))
   File "/usr/lib/python3/dist-packages/borg/archiver.py", line 152, in 
wrapper
     return method(self, args, repository=repository, **kwargs)
   File "/usr/lib/python3/dist-packages/borg/archiver.py", line 313, in 
do_check
     if not repository.check(repair=args.repair, 
save_space=args.save_space):
   File "/usr/lib/python3/dist-packages/borg/repository.py", line 911, 
in check
     objects = list(self.io.iter_objects(segment))
   File "/usr/lib/python3/dist-packages/borg/repository.py", line 1328, 
in iter_objects
     fd = self.get_fd(segment)
   File "/usr/lib/python3/dist-packages/borg/repository.py", line 1285, 
in get_fd
     fd = open(self.segment_filename(segment), 'rb')
OSError: [Errno 5] Input/output error: '/media/1und1/backup/www/data/0/25'

Platform: Linux vserver 4.15.0-43-generic #46-Ubuntu SMP Thu Dec 6 
14:45:28 UTC 2018 x86_64
Linux: Ubuntu 18.04 bionic
Borg: 1.1.7  Python: CPython 3.6.7
PID: 3204  CWD: /
sys.argv: ['/usr/bin/borg', 'check', '-v', '--repository-only', 
'/media/1und1/backup/www']
SSH_ORIGINAL_COMMAND: None


More information about the Borgbackup mailing list