The same thing has happened to me as well…
Same version of Ubuntu:
➜ ~ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=22.04
DISTRIB_CODENAME=jammy
DISTRIB_DESCRIPTION="Ubuntu 22.04.5 LTS"
Same error message:
➜ ~ restic -r my-repository stats
Fatal: Fatal: config cannot be loaded: unsupported repository version
Same version of restic:
➜ ~ restic version
restic 0.12.1 compiled with go1.18.1 on linux/amd64
I installed and configured restic on multiple machines at the same time, one of those via ansible, and looking back at the config history I can see that I installed 0.16.1, which must have been the latest version at the time.
I can still query the repository from that machine, and it reports (version 2, compression level auto)
.
According to the changelog, compression was added to restic in 0.14.0 and introduced version 2 of the repository format. So I must have originally had a version between 0.14.0 and 0.16.1.
I searched through my ~/.zsh_history
and can see that I installed restic via apt, then immediately ran a self-update:
sudo apt install restic
sudo restic self-update
I then searched my /var/log/apt/history.log
files for restic
:
Start-Date: 2024-11-22 13:08:13
Requested-By: me (1000)
Install: …
Upgrade: … restic:amd64 (0.12.1-2ubuntu0.2, 0.12.1-2ubuntu0.3) …
End-Date: 2024-11-22 13:14:46
It turns out my last automated snapshot was taken the day before on 2024-11-21, so this update probably broke things.
I’m assuming that version 0.12.1-2ubuntu0.3 was released on the Ubuntu repo and overwrote the version installed by running sudo restic self-update
. The newly downgraded version could then no longer access the (now) unsupported repository.
I have since uninstalled restic via apt and manually installed it using the release from GitHub to prevent this happening again.