[Borgbackup] corrupted backup

Bill Kenworthy billk at iinet.net.au
Sun Oct 28 08:04:39 EDT 2018


I am getting the following error:


Synchronizing chunks cache...
Archives: 63, w/ cached Idx: 9, w/ outdated Idx: 0, w/o cached Idx: 54.
Reading cached archive chunk index for lxc-20161230213958 ...958
Local Exception
Traceback (most recent call last):
  File "/usr/lib64/python3.6/site-packages/borg/archiver.py", line 4434,
in main
    exit_code = archiver.run(args)
  File "/usr/lib64/python3.6/site-packages/borg/archiver.py", line 4366,
in run
    return set_ec(func(args))
  File "/usr/lib64/python3.6/site-packages/borg/archiver.py", line 152,
in wrapper
    return method(self, args, repository=repository, **kwargs)
  File "/usr/lib64/python3.6/site-packages/borg/archiver.py", line 547,
in do_create
    cache_mode=args.files_cache_mode, ignore_inode=args.ignore_inode) as
cache:
  File "/usr/lib64/python3.6/site-packages/borg/cache.py", line 379, in
__new__
    return local()
  File "/usr/lib64/python3.6/site-packages/borg/cache.py", line 373, in
local
    lock_wait=lock_wait, cache_mode=cache_mode)
  File "/usr/lib64/python3.6/site-packages/borg/cache.py", line 466, in
__init__
    self.sync()
  File "/usr/lib64/python3.6/site-packages/borg/cache.py", line 850, in sync
    self.chunks = create_master_idx(self.chunks)
  File "/usr/lib64/python3.6/site-packages/borg/cache.py", line 796, in
create_master_idx
    archive_chunk_idx = read_archive_index(archive_id, archive_name)
  File "/usr/lib64/python3.6/site-packages/borg/cache.py", line 739, in
read_archive_index
    archive_chunk_idx = ChunkIndex.read(fd, permit_compact=True)
  File "src/borg/hashindex.pyx", line 107, in borg.hashindex.IndexBase.read
  File "src/borg/hashindex.pyx", line 94, in
borg.hashindex.IndexBase.__cinit__
ValueError: Could not read header (expected 18, but read 0 bytes)

Platform: Linux lxc 4.14.65-gentoo #1 SMP Mon Aug 20 18:29:29 AWST 2018
x86_64
Linux: Gentoo Base System 2.4.1
Borg: 1.1.7  Python: CPython 3.6.5
PID: 22336  CWD: /root
sys.argv: ['/usr/lib/python-exec/python3.6/borg', 'create', '-p', '-v',
'--stats', '-C', 'lz4', '--exclude-caches', '--exclude-from',
'/root/bbexcl', '--exclude', '/home/wdk/tmp',
'rattus.lan.localdomain:/mnt/backups/borg/lxc::lxc-{now:%Y%m%d%H%M%S}', '/']
SSH_ORIGINAL_COMMAND: None


real    0m1.362s
user    0m0.385s
sys     0m0.056s



I have run check --repair with no change.

Is it recoverable?  I have a second backup of the system involved so I
can lose this one and start again, but if it can be fixed I would like
to do so.


BillK




More information about the Borgbackup mailing list