Skip to content

msgpack Exception in Borg: 2.0.0b15.dev96+g66b952ca #8787

@SebastianSpeitel

Description

@SebastianSpeitel

Just encountered this error.
The same run worked before. Nothing should have been changed.

Error:

UnpackException: unhashable type: 'list'

If reporting bugs, please include the following:

Traceback (most recent call last):
  File "/home/satan/.local/share/uv/tools/borgbackup/lib/python3.12/site-packages/borg/helpers/msgpack.py", line 165, in __next__
    return super().__next__()
           ^^^^^^^^^^^^^^^^^^
  File "msgpack/_unpacker.pyx", line 540, in msgpack._cmsgpack.Unpacker.__next__
  File "msgpack/_unpacker.pyx", line 463, in msgpack._cmsgpack.Unpacker._unpack
TypeError: unhashable type: 'list'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/satan/.local/share/uv/tools/borgbackup/lib/python3.12/site-packages/borg/archiver/__init__.py", line 647, in main
    exit_code = archiver.run(args)
                ^^^^^^^^^^^^^^^^^^
  File "/home/satan/.local/share/uv/tools/borgbackup/lib/python3.12/site-packages/borg/archiver/__init__.py", line 541, in run
    rc = func(args)
         ^^^^^^^^^^
  File "/home/satan/.local/share/uv/tools/borgbackup/lib/python3.12/site-packages/borg/archiver/_common.py", line 169, in wrapper
    return method(self, args, repository=repository, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/satan/.local/share/uv/tools/borgbackup/lib/python3.12/site-packages/borg/archiver/create_cmd.py", line 268, in do_create
    create_inner(archive, cache, fso)
  File "/home/satan/.local/share/uv/tools/borgbackup/lib/python3.12/site-packages/borg/archiver/create_cmd.py", line 169, in create_inner
    self._rec_walk(
  File "/home/satan/.local/share/uv/tools/borgbackup/lib/python3.12/site-packages/borg/archiver/create_cmd.py", line 527, in _rec_walk
    self._rec_walk(
  File "/home/satan/.local/share/uv/tools/borgbackup/lib/python3.12/site-packages/borg/archiver/create_cmd.py", line 467, in _rec_walk
    status = self._process_any(
             ^^^^^^^^^^^^^^^^^^
  File "/home/satan/.local/share/uv/tools/borgbackup/lib/python3.12/site-packages/borg/archiver/create_cmd.py", line 284, in _process_any
    return fso.process_file(
           ^^^^^^^^^^^^^^^^^
  File "/home/satan/.local/share/uv/tools/borgbackup/lib/python3.12/site-packages/borg/archive.py", line 1390, in process_file
    known, chunks = cache.file_known_and_unchanged(hashed_path, path_hash, st)
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/satan/.local/share/uv/tools/borgbackup/lib/python3.12/site-packages/borg/cache.py", line 611, in file_known_and_unchanged
    entry = self.files.get(path_hash)
            ^^^^^^^^^^
  File "/home/satan/.local/share/uv/tools/borgbackup/lib/python3.12/site-packages/borg/cache.py", line 428, in files
    self._files = self._read_files_cache()  # try loading from cache dir
                  ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/satan/.local/share/uv/tools/borgbackup/lib/python3.12/site-packages/borg/cache.py", line 526, in _read_files_cache
    for path_hash, entry in u:
                            ^
  File "/home/satan/.local/share/uv/tools/borgbackup/lib/python3.12/site-packages/borg/helpers/msgpack.py", line 169, in __next__
    raise UnpackException(e)
borg.helpers.msgpack.UnpackException: unhashable type: 'list'

Platform: Linux wlan-a0610 6.14.2-gentoo-dist #1 SMP PREEMPT_DYNAMIC Fri Apr 11 18:02:50 CEST 2025 x86_64
Linux: Unknown Linux
Borg: 2.0.0b15.dev96+g66b952ca  Python: CPython 3.12.10 msgpack: 1.1.0 fuse: None [pyfuse3,llfuse]
PID: 18481  CWD: /home/satan
sys.argv: ['/home/satan/.local/bin/borg', '--debug', 'create', '--progress', '--log-json', '--stats', '--compression', 'auto,zstd,22', 'dyson', '/home/satan', '--exclude-from', '.borgignore']
SSH_ORIGINAL_COMMAND: None

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions