Cache corrupted after error in commands #1323

Closed
opened 2026-06-16 21:41:17 +00:00 by MatiasG19 · 6 comments

What I'm trying to do and why

Create backup using borgmatic docker version 2.1.6

Steps to reproduce

  • Update borgmatic Docker container from 2.1.5 to 2.1.6
  • Borg repo in remote location using ssh
  • Config:
source_directories:
    - /mnt/source/nginx-proxy-manager
    - /mnt/source/nextcloud/nextcloud
    - /mnt/source/nextcloud-staging/nextcloud
    - /mnt/source/pihole
    - /mnt/source/home-assistant
    - /mnt/source/portainer

repositories:
    - path: ssh://matias@192.168.0.17:22/media/BackupDrive1/borg-repositories/raspinator
      label: raspinator
      encryption: repokey-blake2

keep_daily: 5
keep_weekly: 3
keep_monthly: 3

checks:
    - name: archives
      frequency: 1 week
      only_run_on:
         - Friday
    - name: repository
      frequency: 2 weeks
      only_run_on:
         - Thursday
    - name: extract
      frequency: 1 month
      only_run_on:
         - Monday
    - name: data
      frequency: 1 month
      only_run_on:
         - Tuesday

verbosity: 2
statistics: true

mariadb_databases:
    - name: nextcloud-db
      label: nextcloud-db
      hostname: nextcloud-db
      port: 3306
      username: /run/secrets/db_user
      password: "{credential container mariadb_password1}"
      password_transport: environment
    - name: nextcloud-db
      label: nextcloud-staging-db
      hostname: nextcloud-staging-db
      port: 3306
      username: /run/secrets/db_user
      password: "{credential container mariadb_password2}"
      password_transport: environment

sqlite_databases:
    - name: memos_prod
      label: memos-db
      path: /mnt/source/memos/data/memos_prod.db
    - name: docker-app-updater
      label: docker-app-updater-db
      path: /mnt/source/docker-app-updater/docker-app-updater.db
  • run inside the docker container: borgmatic --stats --verbosity 1

Actual behavior

After the first password prompt (archive step) borgmatic throws stacktrace:

Local Exception
Traceback (most recent call last):
  File "/usr/local/lib/python3.14/site-packages/borg/archiver.py", line 5759, in main
    exit_code = archiver.run(args)
  File "/usr/local/lib/python3.14/site-packages/borg/archiver.py", line 5677, in run
    rc = func(args)
  File "/usr/local/lib/python3.14/site-packages/borg/archiver.py", line 191, in wrapper
    assert_secure(repository, kwargs['manifest'], self.lock_wait)
    ~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.14/site-packages/borg/cache.py", line 207, in assert_secure
    sm = SecurityManager(repository)
  File "/usr/local/lib/python3.14/site-packages/borg/cache.py", line 65, in __init__
    self.cache_dir = cache_dir(repository)
                     ~~~~~~~~~^^^^^^^^^^^^
  File "/usr/local/lib/python3.14/site-packages/borg/cache.py", line 228, in cache_dir
    return path or os.path.join(get_cache_dir(), repository.id_str)
                                ~~~~~~~~~~~~~^^
  File "/usr/local/lib/python3.14/site-packages/borg/helpers/fs.py", line 143, in get_cache_dir
    with SaveFile(cache_tag_fn, binary=True) as fd:
         ~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.14/site-packages/borg/platform/base.py", line 230, in __enter__
    self.tmp_fd, self.tmp_fname = mkstemp_mode(prefix=self.tmp_prefix, suffix='.tmp', dir=self.dir, mode=0o666)
                                  ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.14/site-packages/borg/helpers/fs.py", line 469, in mkstemp_mode
    return _mkstemp_inner(dir, prefix, suffix, flags, output_type, mode)
  File "/usr/local/lib/python3.14/site-packages/borg/helpers/fs.py", line 425, in _mkstemp_inner
    fd = _os.open(file, flags, mode)
FileNotFoundError: [Errno 2] No such file or directory: '/root/.cache/borg/CACHEDIR.TAG-uu2_on8e.tmp'

Platform: Linux 49c2ebb9da38 6.8.0-1053-raspi #57-Ubuntu SMP PREEMPT_DYNAMIC Wed Apr 15 06:45:56 UTC 2026 aarch64
Linux: Unknown Linux  
Borg: 1.4.4  Python: CPython 3.14.5 msgpack: 1.1.2 fuse: llfuse 1.5.2 [pyfuse3,llfuse]
PID: 672  CWD: /
sys.argv: ['/usr/local/bin/borg', 'create', '--patterns-from', '/tmp/borgmatic-p7rljjs1/borgmatic/tmpr20h54jj', '--read-special', '--log-json', '--info', '--stats', 'ssh://matias@192.168.0.17:22/media/BackupDrive1/borg-repositories/raspinator::{hostname}-{now:%Y-%m-%dT%H:%M:%S.%f}.checkpoint']
SSH_ORIGINAL_COMMAND: None

raspinator: Error running actions for repository
raspinator: Command 'borg create --patterns-from /tmp/borgmatic-p7rljjs1/borgmatic/tmpr20h54jj --read-special --log-json --info --stats ssh://matias@192.168.0.17:22/media/BackupDrive1/borg-repositories/raspinator::{hostname}-{now:%Y-%m-%dT%H:%M:%S.%f}.checkpoint' returned non-zero exit status 2.
/etc/borgmatic.d/config.yaml: Error running configuration
/etc/borgmatic.d/config.yaml: An error occurred

summary:
An error occurred
Error running actions for repository
Local Exception
Traceback (most recent call last):
  File "/usr/local/lib/python3.14/site-packages/borg/archiver.py", line 5759, in main
    exit_code = archiver.run(args)
  File "/usr/local/lib/python3.14/site-packages/borg/archiver.py", line 5677, in run
    rc = func(args)
  File "/usr/local/lib/python3.14/site-packages/borg/archiver.py", line 191, in wrapper
    assert_secure(repository, kwargs['manifest'], self.lock_wait)
    ~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.14/site-packages/borg/cache.py", line 207, in assert_secure
    sm = SecurityManager(repository)
  File "/usr/local/lib/python3.14/site-packages/borg/cache.py", line 65, in __init__
    self.cache_dir = cache_dir(repository)
                     ~~~~~~~~~^^^^^^^^^^^^
  File "/usr/local/lib/python3.14/site-packages/borg/cache.py", line 228, in cache_dir
    return path or os.path.join(get_cache_dir(), repository.id_str)
                                ~~~~~~~~~~~~~^^
  File "/usr/local/lib/python3.14/site-packages/borg/helpers/fs.py", line 143, in get_cache_dir
    with SaveFile(cache_tag_fn, binary=True) as fd:
         ~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.14/site-packages/borg/platform/base.py", line 230, in __enter__
    self.tmp_fd, self.tmp_fname = mkstemp_mode(prefix=self.tmp_prefix, suffix='.tmp', dir=self.dir, mode=0o666)
                                  ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.14/site-packages/borg/helpers/fs.py", line 469, in mkstemp_mode
    return _mkstemp_inner(dir, prefix, suffix, flags, output_type, mode)
  File "/usr/local/lib/python3.14/site-packages/borg/helpers/fs.py", line 425, in _mkstemp_inner
    fd = _os.open(file, flags, mode)
FileNotFoundError: [Errno 2] No such file or directory: '/root/.cache/borg/CACHEDIR.TAG-uu2_on8e.tmp'

Platform: Linux 49c2ebb9da38 6.8.0-1053-raspi #57-Ubuntu SMP PREEMPT_DYNAMIC Wed Apr 15 06:45:56 UTC 2026 aarch64
Linux: Unknown Linux  
Borg: 1.4.4  Python: CPython 3.14.5 msgpack: 1.1.2 fuse: llfuse 1.5.2 [pyfuse3,llfuse]
PID: 672  CWD: /
sys.argv: ['/usr/local/bin/borg', 'create', '--patterns-from', '/tmp/borgmatic-p7rljjs1/borgmatic/tmpr20h54jj', '--read-special', '--log-json', '--info', '--stats', 'ssh://matias@192.168.0.17:22/media/BackupDrive1/borg-repositories/raspinator::{hostname}-{now:%Y-%m-%dT%H:%M:%S.%f}.checkpoint']
SSH_ORIGINAL_COMMAND: None
Command 'borg create --patterns-from /tmp/borgmatic-p7rljjs1/borgmatic/tmpr20h54jj --read-special --log-json --info --stats ssh://matias@192.168.0.17:22/media/BackupDrive1/borg-repositories/raspinator::{hostname}-{now:%Y-%m-%dT%H:%M:%S.%f}.checkpoint' returned non-zero exit status 2.
Error running configuration

Need some help? https://torsion.org/borgmatic/#issues

Expected behavior

Create backup finishes succesfuly.

Other notes / implementation ideas

After downgrading back to 2.1.5, backups run again with no issues.

borgmatic version

2.1.6

borgmatic installation method

docker compose

Borg version

1.4.4 (docker), 1.4.3 (remote ssh repo)

Python version

3.14.6

Database version (if applicable)

mariadb:11.8.6

Operating system and version

alpine3.24 (docker), Ubuntu 24.04.4 LTS for raspbery pi (base OS)

### What I'm trying to do and why Create backup using borgmatic docker version 2.1.6 ### Steps to reproduce - Update borgmatic Docker container from 2.1.5 to 2.1.6 - Borg repo in remote location using ssh - Config: ```yaml source_directories: - /mnt/source/nginx-proxy-manager - /mnt/source/nextcloud/nextcloud - /mnt/source/nextcloud-staging/nextcloud - /mnt/source/pihole - /mnt/source/home-assistant - /mnt/source/portainer repositories: - path: ssh://matias@192.168.0.17:22/media/BackupDrive1/borg-repositories/raspinator label: raspinator encryption: repokey-blake2 keep_daily: 5 keep_weekly: 3 keep_monthly: 3 checks: - name: archives frequency: 1 week only_run_on: - Friday - name: repository frequency: 2 weeks only_run_on: - Thursday - name: extract frequency: 1 month only_run_on: - Monday - name: data frequency: 1 month only_run_on: - Tuesday verbosity: 2 statistics: true mariadb_databases: - name: nextcloud-db label: nextcloud-db hostname: nextcloud-db port: 3306 username: /run/secrets/db_user password: "{credential container mariadb_password1}" password_transport: environment - name: nextcloud-db label: nextcloud-staging-db hostname: nextcloud-staging-db port: 3306 username: /run/secrets/db_user password: "{credential container mariadb_password2}" password_transport: environment sqlite_databases: - name: memos_prod label: memos-db path: /mnt/source/memos/data/memos_prod.db - name: docker-app-updater label: docker-app-updater-db path: /mnt/source/docker-app-updater/docker-app-updater.db ``` - run inside the docker container: `borgmatic --stats --verbosity 1` ### Actual behavior After the first password prompt (archive step) borgmatic throws stacktrace: ```sh Local Exception Traceback (most recent call last): File "/usr/local/lib/python3.14/site-packages/borg/archiver.py", line 5759, in main exit_code = archiver.run(args) File "/usr/local/lib/python3.14/site-packages/borg/archiver.py", line 5677, in run rc = func(args) File "/usr/local/lib/python3.14/site-packages/borg/archiver.py", line 191, in wrapper assert_secure(repository, kwargs['manifest'], self.lock_wait) ~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.14/site-packages/borg/cache.py", line 207, in assert_secure sm = SecurityManager(repository) File "/usr/local/lib/python3.14/site-packages/borg/cache.py", line 65, in __init__ self.cache_dir = cache_dir(repository) ~~~~~~~~~^^^^^^^^^^^^ File "/usr/local/lib/python3.14/site-packages/borg/cache.py", line 228, in cache_dir return path or os.path.join(get_cache_dir(), repository.id_str) ~~~~~~~~~~~~~^^ File "/usr/local/lib/python3.14/site-packages/borg/helpers/fs.py", line 143, in get_cache_dir with SaveFile(cache_tag_fn, binary=True) as fd: ~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.14/site-packages/borg/platform/base.py", line 230, in __enter__ self.tmp_fd, self.tmp_fname = mkstemp_mode(prefix=self.tmp_prefix, suffix='.tmp', dir=self.dir, mode=0o666) ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.14/site-packages/borg/helpers/fs.py", line 469, in mkstemp_mode return _mkstemp_inner(dir, prefix, suffix, flags, output_type, mode) File "/usr/local/lib/python3.14/site-packages/borg/helpers/fs.py", line 425, in _mkstemp_inner fd = _os.open(file, flags, mode) FileNotFoundError: [Errno 2] No such file or directory: '/root/.cache/borg/CACHEDIR.TAG-uu2_on8e.tmp' Platform: Linux 49c2ebb9da38 6.8.0-1053-raspi #57-Ubuntu SMP PREEMPT_DYNAMIC Wed Apr 15 06:45:56 UTC 2026 aarch64 Linux: Unknown Linux Borg: 1.4.4 Python: CPython 3.14.5 msgpack: 1.1.2 fuse: llfuse 1.5.2 [pyfuse3,llfuse] PID: 672 CWD: / sys.argv: ['/usr/local/bin/borg', 'create', '--patterns-from', '/tmp/borgmatic-p7rljjs1/borgmatic/tmpr20h54jj', '--read-special', '--log-json', '--info', '--stats', 'ssh://matias@192.168.0.17:22/media/BackupDrive1/borg-repositories/raspinator::{hostname}-{now:%Y-%m-%dT%H:%M:%S.%f}.checkpoint'] SSH_ORIGINAL_COMMAND: None raspinator: Error running actions for repository raspinator: Command 'borg create --patterns-from /tmp/borgmatic-p7rljjs1/borgmatic/tmpr20h54jj --read-special --log-json --info --stats ssh://matias@192.168.0.17:22/media/BackupDrive1/borg-repositories/raspinator::{hostname}-{now:%Y-%m-%dT%H:%M:%S.%f}.checkpoint' returned non-zero exit status 2. /etc/borgmatic.d/config.yaml: Error running configuration /etc/borgmatic.d/config.yaml: An error occurred summary: An error occurred Error running actions for repository Local Exception Traceback (most recent call last): File "/usr/local/lib/python3.14/site-packages/borg/archiver.py", line 5759, in main exit_code = archiver.run(args) File "/usr/local/lib/python3.14/site-packages/borg/archiver.py", line 5677, in run rc = func(args) File "/usr/local/lib/python3.14/site-packages/borg/archiver.py", line 191, in wrapper assert_secure(repository, kwargs['manifest'], self.lock_wait) ~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.14/site-packages/borg/cache.py", line 207, in assert_secure sm = SecurityManager(repository) File "/usr/local/lib/python3.14/site-packages/borg/cache.py", line 65, in __init__ self.cache_dir = cache_dir(repository) ~~~~~~~~~^^^^^^^^^^^^ File "/usr/local/lib/python3.14/site-packages/borg/cache.py", line 228, in cache_dir return path or os.path.join(get_cache_dir(), repository.id_str) ~~~~~~~~~~~~~^^ File "/usr/local/lib/python3.14/site-packages/borg/helpers/fs.py", line 143, in get_cache_dir with SaveFile(cache_tag_fn, binary=True) as fd: ~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.14/site-packages/borg/platform/base.py", line 230, in __enter__ self.tmp_fd, self.tmp_fname = mkstemp_mode(prefix=self.tmp_prefix, suffix='.tmp', dir=self.dir, mode=0o666) ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.14/site-packages/borg/helpers/fs.py", line 469, in mkstemp_mode return _mkstemp_inner(dir, prefix, suffix, flags, output_type, mode) File "/usr/local/lib/python3.14/site-packages/borg/helpers/fs.py", line 425, in _mkstemp_inner fd = _os.open(file, flags, mode) FileNotFoundError: [Errno 2] No such file or directory: '/root/.cache/borg/CACHEDIR.TAG-uu2_on8e.tmp' Platform: Linux 49c2ebb9da38 6.8.0-1053-raspi #57-Ubuntu SMP PREEMPT_DYNAMIC Wed Apr 15 06:45:56 UTC 2026 aarch64 Linux: Unknown Linux Borg: 1.4.4 Python: CPython 3.14.5 msgpack: 1.1.2 fuse: llfuse 1.5.2 [pyfuse3,llfuse] PID: 672 CWD: / sys.argv: ['/usr/local/bin/borg', 'create', '--patterns-from', '/tmp/borgmatic-p7rljjs1/borgmatic/tmpr20h54jj', '--read-special', '--log-json', '--info', '--stats', 'ssh://matias@192.168.0.17:22/media/BackupDrive1/borg-repositories/raspinator::{hostname}-{now:%Y-%m-%dT%H:%M:%S.%f}.checkpoint'] SSH_ORIGINAL_COMMAND: None Command 'borg create --patterns-from /tmp/borgmatic-p7rljjs1/borgmatic/tmpr20h54jj --read-special --log-json --info --stats ssh://matias@192.168.0.17:22/media/BackupDrive1/borg-repositories/raspinator::{hostname}-{now:%Y-%m-%dT%H:%M:%S.%f}.checkpoint' returned non-zero exit status 2. Error running configuration Need some help? https://torsion.org/borgmatic/#issues ``` ### Expected behavior Create backup finishes succesfuly. ### Other notes / implementation ideas After downgrading back to 2.1.5, backups run again with no issues. ### borgmatic version 2.1.6 ### borgmatic installation method docker compose ### Borg version 1.4.4 (docker), 1.4.3 (remote ssh repo) ### Python version 3.14.6 ### Database version (if applicable) mariadb:11.8.6 ### Operating system and version alpine3.24 (docker), Ubuntu 24.04.4 LTS for raspbery pi (base OS)
Author

I've noticed I'm missing the volume mount of /root/.local/state/borgmatic in the docker compose. But according to the stack trace the problem is with the .cache directory.
Here my docker compose:

services:
  borgmatic:
    container_name: borgmatic-app
    image: ghcr.io/borgmatic-collective/borgmatic:2.1.6
    volumes:
      - ${VOLUME_SOURCE}:/mnt/source:ro # backup source
      - ${ENVIRONMENTS_BASE_PATH}/borgmatic.d:/etc/borgmatic.d/ # borgmatic config file(s) + crontab.txt
      - ${ENVIRONMENTS_BASE_PATH}/.config:/root/.config/borg # config and keyfiles
      - ${ENVIRONMENTS_BASE_PATH}/.ssh:/root/.ssh # ssh key for remote repositories
      - ${VOLUMES_BASE_PATH}/.cache:/root/.cache/borg # checksums used for deduplication
      - /var/run/docker.sock:/var/run/docker.sock
    environment:
      TZ: ${TIMEZONE}
      FILE__BORG_PASSPHRASE: /run/secrets/passphrase
      BORG_RSH: ${BORG_RSH}
      BACKUP_CRON: ${BACKUP_CRON}
      RUN_ON_STARTUP: ${RUN_ON_STARTUP}
      DOCKERCLI: ${DOCKERCLI}
    secrets:
      - passphrase
      - mariadb_password1
      - mariadb_password2

secrets:
  passphrase:
    file: ${SECRETS_BASE_PATH}/passphrase.txt
  mariadb_password1:
    file: ${SECRETS_BASE_PATH}/mariadb_password1.txt
  mariadb_password2:
    file: ${SECRETS_BASE_PATH}/mariadb_password2.txt

Edit:
Seems like the volume is already beeing added to the template docker-compose in https://github.com/borgmatic-collective/docker-borgmatic/pull/392

I've noticed I'm missing the volume mount of `/root/.local/state/borgmatic` in the docker compose. But according to the stack trace the problem is with the .cache directory. Here my docker compose: ```yaml services: borgmatic: container_name: borgmatic-app image: ghcr.io/borgmatic-collective/borgmatic:2.1.6 volumes: - ${VOLUME_SOURCE}:/mnt/source:ro # backup source - ${ENVIRONMENTS_BASE_PATH}/borgmatic.d:/etc/borgmatic.d/ # borgmatic config file(s) + crontab.txt - ${ENVIRONMENTS_BASE_PATH}/.config:/root/.config/borg # config and keyfiles - ${ENVIRONMENTS_BASE_PATH}/.ssh:/root/.ssh # ssh key for remote repositories - ${VOLUMES_BASE_PATH}/.cache:/root/.cache/borg # checksums used for deduplication - /var/run/docker.sock:/var/run/docker.sock environment: TZ: ${TIMEZONE} FILE__BORG_PASSPHRASE: /run/secrets/passphrase BORG_RSH: ${BORG_RSH} BACKUP_CRON: ${BACKUP_CRON} RUN_ON_STARTUP: ${RUN_ON_STARTUP} DOCKERCLI: ${DOCKERCLI} secrets: - passphrase - mariadb_password1 - mariadb_password2 secrets: passphrase: file: ${SECRETS_BASE_PATH}/passphrase.txt mariadb_password1: file: ${SECRETS_BASE_PATH}/mariadb_password1.txt mariadb_password2: file: ${SECRETS_BASE_PATH}/mariadb_password2.txt ``` Edit: Seems like the volume is already beeing added to the template docker-compose in https://github.com/borgmatic-collective/docker-borgmatic/pull/392
Owner

This stack trace is actually coming directly from Borg, and I'm not sure what's causing it. It's especially weird if a downgrade of the container fixes it, since I think both versions of the container contain the same version of Borg. But here are some ideas on things to try:

  • You could try deleting (or temporarily moving aside) the contents of your Borg cache directory on the host (${VOLUMES_BASE_PATH}/.cache/*) to see if that "fixes" the problem. Your first backup afterwards will be slower though as Borg regenerates the cache.
  • It may be helpful to see the source patterns that borgmatic is writing to the patterns file being passed to Borg, in case that provides any clues as to what's going on. You can find those patterns in your borgmatic logs after the Writing patterns to ... line.
  • If you want, you could try running Borg directly without borgmatic to see if the problem still occurs (in each of the 2.1.5 and 2.1.6 containers). You can see the exact Borg command that borgmatic is running at the end of your logs above. You'll have to remove the --patterns-from ... portion though and replace it with all of your source directories directly on the command-line.
This stack trace is actually coming directly from Borg, and I'm not sure what's causing it. It's especially weird if a downgrade of the container fixes it, since I think both versions of the container contain the same version of Borg. But here are some ideas on things to try: * You could try deleting (or temporarily moving aside) the contents of your Borg cache directory on the host (`${VOLUMES_BASE_PATH}/.cache/*`) to see if that "fixes" the problem. Your first backup afterwards will be slower though as Borg regenerates the cache. * It may be helpful to see the source patterns that borgmatic is writing to the patterns file being passed to Borg, in case that provides any clues as to what's going on. You can find those patterns in your borgmatic logs after the `Writing patterns to ...` line. * If you want, you could try running Borg directly without borgmatic to see if the problem still occurs (in each of the 2.1.5 and 2.1.6 containers). You can see the exact Borg command that borgmatic is running at the end of your logs above. You'll have to remove the `--patterns-from ...` portion though and replace it with all of your source directories directly on the command-line.
Owner

Oh, and missing the state directory just means that borgmatic won't be able to record when checks last ran—and thereby won't be able to run checks at the frequency you're requesting (they'll run more frequently). So you should definitely add a volume for the state directory, but not having it shouldn't cause errors.

Oh, and missing the state directory just means that borgmatic won't be able to record when checks last ran—and thereby won't be able to run checks at the frequency you're requesting (they'll run more frequently). So you should definitely add a volume for the state directory, but not having it shouldn't cause errors.
MatiasG19 changed title from Backups do not work after updating from 2.1.5 to 2.1.6 to Cache corrupted after error in commands 2026-06-19 19:00:44 +00:00
Author

Seems like I misdiagnosed the issue. I checked the logs and the update to 2.1.6 was running fine. The real issue seems to be the messing with the commands the other day, to send notification when backup starts/stops. Some commands where not valid and threw errors, that probably corrupted the cache.
Sorry for the false reporting and thank you for the project, it really makes using borg easy.
I will change the issue title to represent the real problem.

Seems like I misdiagnosed the issue. I checked the logs and the update to 2.1.6 was running fine. The real issue seems to be the messing with the commands the other day, to send notification when backup starts/stops. Some commands where not valid and threw errors, that probably corrupted the cache. Sorry for the false reporting and thank you for the project, it really makes using borg easy. I will change the issue title to represent the real problem.
Author

The solution was probably not downgrading to 2.1.5, but just restarting the app / clearing the cache.

The solution was probably not downgrading to 2.1.5, but just restarting the app / clearing the cache.
Owner

Glad to hear you've got it figured out and working now!

Glad to hear you've got it figured out and working now!
Sign in to join this conversation.
No milestone
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
borgmatic-collective/borgmatic#1323
No description provided.