Hello all,
I have been running a Mailcow server for 2 years and secure it with borgmatic. Everything has been set up as described in the manual. 2 weeks ago I adjusted the config.yml file and the backup ran without problems. Today I wanted to check the backup and I get the following message:
`root@mail:/opt/mailcow-dockerized# docker compose exec borgmatic-mailcow borgmatic config validate
summary:
All configuration files are valid
root@mail:/opt/mailcow-dockerized# docker compose exec borgmatic-mailcow borgmatic check
Local Exception
Traceback (most recent call last):
File “/usr/local/lib/python3.11/site-packages/borg/archiver.py”, line 5324, in main
exit_code = archiver.run(args)
^^^^^^^^^^^^^^^^^^
File “/usr/local/lib/python3.11/site-packages/borg/archiver.py”, line 5255, in run
return set_ec(func(args))
^^^^^^^^^^
File “/usr/local/lib/python3.11/site-packages/borg/archiver.py”, line 174, in wrapper
assert_secure(repository, kwargs[‘manifest’], self.lock_wait)
File “/usr/local/lib/python3.11/site-packages/borg/cache.py”, line 209, in assert_secure
sm.assert_secure(manifest, manifest.key, lock_wait=lock_wait)
File “/usr/local/lib/python3.11/site-packages/borg/cache.py”, line 174, in assert_secure
with cache_config:
File “/usr/local/lib/python3.11/site-packages/borg/cache.py”, line 250, in enter
self.open()
File “/usr/local/lib/python3.11/site-packages/borg/cache.py”, line 273, in open
self.load()
File “/usr/local/lib/python3.11/site-packages/borg/cache.py”, line 279, in load
self._check_upgrade(self.config_path)
File “/usr/local/lib/python3.11/site-packages/borg/cache.py”, line 338, in _check_upgrade
raise Exception(‘%s does not look like a Borg cache.’ % config_path) from None
Exception: /root/.cache/borg/36ac254530963aad3c2b35ec2b3c73a7f56b7f448f39b686c696ff3990cfcef3/config does not look like a Borg cache.
Platform: Linux mailcow 6.1.0-12-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.52-1 (2023-09-07) x86_64
Linux: Unknown Linux
Borg: 1.2.6 Python: CPython 3.11.5 msgpack: 1.0.5 fuse: llfuse 1.5.0 [pyfuse3,llfuse]
PID: 37 CWD: /
sys.argv: [‘/usr/local/bin/borg’, ‘info’, ‘–json’, ‘/mnt/borg-repository’]
SSH_ORIGINAL_COMMAND: None
local: Error running actions for repository
Command '(‘borg’, ‘info’, ‘–json’, ‘/mnt/borg-repository’)' returned non-zero exit status 2.
/etc/borgmatic.d/config.yaml: An error occurred
summary:
/etc/borgmatic.d/config.yaml: An error occurred
local: Error running actions for repository
Command '(‘borg’, ‘info’, ‘–json’, ‘/mnt/borg-repository’)' returned non-zero exit status 2.
Need some help? https://torsion.org/borgmatic/#issues
root@mail:/opt/mailcow-dockerized#`
Can anyone help me why the backup is no longer running?