8000 Crash during prune due to corrupted item metadata · Issue #8781 · borgbackup/borg · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Crash during prune due to corrupted item metadata #8781
Open
@omgold

Description

@omgold

Since a couple of days I got a crash with the exception below when I try to prune my repo. No idea what changed (It already started with borg 1.4.0).

I added a debug print to see what is in the item Python complains about, which produces the first line of output below. Seems the key group got messed up somehow.

{
b'chunks': ((b'Cp\xb6)JxY\xdf\xeb\xdbX\x05\xde\x1f]M\rp\xb0\xeb\xaf\xb6\xcf\x8e\xc5\x18\x870\xae"\xeb\x10', 1223, 1266),),
b'ctime': 1741265229576867330,
b'gid': 1000,
b'gro\xf5p': b'omgold',         #  <--- key corrupted
b'hardlink_master': False,
b'mode': 33060,
b'mtime': 1741265229576867330,
b'path': b'home/omgold/kernel/.git/objects/9c/58c0ac1a932ec9b2a7399ceb9361f7a658e376',
b'size': 1223,
b'uid': 1000,
b'user': b'omgold'
}

Local Exception
Traceback (most recent call last):
  File "/usr/lib/python3.13/site-packages/borg/archiver.py", line 5465, in main
    exit_code = archiver.run(args)
  File "/usr/lib/python3.13/site-packages/borg/archiver.py", line 5383, in run
    rc = func(args)
  File "/usr/lib/python3.13/site-packages/borg/archiver.py", line 200, in wrapper
    return method(self, args, repository=repository, **kwargs)
  File "/usr/lib/python3.13/site-packages/borg/archiver.py", line 1607, in do_prune
    archive.delete(stats, forced=args.forced)
    ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.13/site-packages/borg/archive.py", line 1010, in delete
    item = Item(internal_dict=item)
  File "src/borg/item.pyx", line 48, in borg.item.PropDict.__init__
  File "src/borg/item.pyx", line 69, in borg.item.PropDict.update_internal
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xf5 in position 3: invalid start byte

Platform: Linux home 6.12.16-1-lts #1 SMP PREEMPT_DYNAMIC Fri, 21 Feb 2025 19:20:31 +0000 x86_64
Linux: Unknown Linux  
Borg: 1.4.1  Python: CPython 3.13.3 msgpack: 1.0.5 fuse: llfuse 1.5.0 [pyfuse3,llfuse]
PID: 3311491  CWD: /home/omgold
sys.argv: ['/usr/bin/borg', 'prune', '--info', '--keep-hourly=176', '--keep-daily=30', '--keep-weekly=50', '--keep-monthly=60', '--keep-yearly=100', 'borg@backup:home']
SSH_ORIGINAL_COMMAND: None

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0