[Borgbackup] What to do if borg check fails due to Input/Output Error 5?

Sascha Ternes imperator at jedimail.de
Fri Feb 15 07:11:49 EST 2019


Hi!

I use BorgBackup with repository on davfs for quite a while now. After
several month of having no problems I now get an error (OSError 5 /
Input/output error) with one of the data chunk files when doing a "borg
check" (see log below).

I read some issues in GitHub concerning davfs. I do not consider this
error a BorgBackup issue, but my question is: What can I possibly do
now? Is there a way to delete this file or truncate it, or do I have to
throw away the whole backup (since I cannot run a check anymore) and
create it from scratch?

Sascha

----

Starting repository check
Local Exception
Traceback (most recent call last):
  File "borg/repository.py", line 1295, in get_fd
  File "borg/lrucache.py", line 21, in __getitem__
KeyError: 103

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "borg/archiver.py", line 4455, in main
  File "borg/archiver.py", line 4387, in run
  File "borg/archiver.py", line 154, in wrapper
  File "borg/archiver.py", line 315, in do_check
  File "borg/repository.py", line 923, in check
  File "borg/repository.py", line 1340, in iter_objects
  File "borg/repository.py", line 1297, in get_fd
OSError: [Errno 5] Input/output error: '/srv/borg/data/0/103'

Platform: Linux v22018041585863736 4.9.0-8-amd64 #1 SMP Debian 4.9.130-2
(2018-10-27) x86_64
Linux: debian 9.7
Borg: 1.1.9  Python: CPython 3.5.6
PID: 8601  CWD: /root
sys.argv: ['/usr/local/bin/borg', 'check', '-v', '/srv/borg']
SSH_ORIGINAL_COMMAND: None



More information about the Borgbackup mailing list