#1140103 borgbackup2: Fails with "unexpected keyword" error

Package:
borgbackup2
Source:
borgbackup2
Description:
deduplicating and compressing backup program (version 2.x)
Submitter:
Brian Vaughan
Date:
2026-06-16 05:45:02 UTC
Severity:
normal
#1140103#5
Date:
2026-06-15 20:36:16 UTC
From:
To:
Dear Maintainer,

I was trying to do a routine backup with borgbackup2, using a simple script. It
failed immediately, with the error below. (I'm not worried about y'all seeing
my directory structure.) Usually it would prompt me for a password, but it
didn't get to that point.

I also have borgbackup-is-borgbackup2 installed.

It doesn't look like borgbackup2 has been updated since the last time I
successfully used it, about two weeks ago.


Local Exception

Error:

TypeError: Store.__init__() got an unexpected keyword argument 'levels'

If reporting bugs, please include the following:

Traceback (most recent call last):
  File "/usr/lib/borgbackup2/borg/archiver/__init__.py", line 669, in main
    exit_code = archiver.run(args)
  File "/usr/lib/borgbackup2/borg/archiver/__init__.py", line 546, in run
    rc = func(args)
  File "/usr/lib/borgbackup2/borg/archiver/_common.py", line 110, in wrapper
    repository = get_repository(
        location,
    ...<5 lines>...
        v1_or_v2=False,
    )
  File "/usr/lib/borgbackup2/borg/archiver/_common.py", line 43, in
get_repository
    repository = Repository(location, create=create, exclusive=exclusive,
lock_wait=lock_wait, lock=lock)
  File "/usr/lib/borgbackup2/borg/repository.py", line 161, in __init__
    self.store = Store(url, levels=levels_config, permissions=permissions)
                 ~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: Store.__init__() got an unexpected keyword argument 'levels'

Platform: Linux rosa 7.0.12+deb14.1-amd64 #1 SMP PREEMPT_DYNAMIC Debian
7.0.12-2 (2026-06-12) x86_64
Linux: Unknown Linux
Borg: 2.0.0b20  Python: CPython 3.13.14 msgpack: 1.1.2 fuse: pyfuse3 3.4.0
[mfusepy,pyfuse3,llfuse]
PID: 42353  CWD: /home/brian
sys.argv: ['/usr/bin/borg', '-r', '/run/media/brian/BackupHD/rosa', 'create', '
--progress', '--stats', 'backup', '/home/brian/.KeePass', '/home/brian/bin',
'/home/brian/Desktop', '/home/brian/Documents', '/home/brian/Library',
'/home/brian/Music', '/home/brian/Pictures', '/home/brian/projects',
'/home/brian/Public', '/home/brian/Sync', '/home/brian/Templates',
'/home/brian/Videos']
SSH_ORIGINAL_COMMAND: None

#1140103#10
Date:
2026-06-16 05:43:56 UTC
From:
To:
  Hello:

  I think this bug is related to the python3-borgstore version.

https://github.com/borgbackup/borgstore/blob/master/docs/
changes.rst#version-050-2026-05-28[1]

  I think currently packaged borgbackup2 version (2.0.0b20) requires a lowe python3-
borgstore version (lower than 0.5.0). It looks only latest borgbackup from git support
borgstore versions greater than 0.5.0.

  Regards,
-------- [1] https://github.com/borgbackup/borgstore/blob/master/docs/ changes.rst#version-050-2026-05-28