Hi there,
I’m wondering if I can get some help to recover a seemingly corrupt repo and also possibly some advice if the way I’m running maintenance led to the corruption.
My backup script has this sequence of commands:
kopia repository connect filesystem ...
kopia snapshot create /path1
kopia snapshot create /path2
...
kopia snapshot expire --delete
kopia maintenance run --full --force
kopia repository sync-to ...
On a recent run, one of the snapshot create
steps failed with this error:
ERROR unable to add xn25_04abe9d83a08a65c09bda238af191587-s91f147a798c55c73110-c1 to index blob cache: context canceled
ERROR failed to open repository: unable to create shared content manager: error loading indexes: error downloading indexes: error loading index blob xn25_30af0bb486ea90784518d7f408be9a12-s37430c3792a30207110-c1: error decrypting BLOB xn25_30af0bb486ea90784518d7f408be9a12-s37430c3792a30207110-c1: unable to decrypt content: cipher: message authentication failed
ERROR open repository: unable to open repository: unable to create shared content manager: error loading indexes: error downloading indexes: error loading index blob xn25_30af0bb486ea90784518d7f408be9a12-s37430c3792a30207110-c1: error decrypting BLOB xn25_30af0bb486ea90784518d7f408be9a12-s37430c3792a30207110-c1: unable to decrypt content: cipher: message authentication failed
Subsequently, any attempt to connect to the repo now fails with:
ERROR unable to add xs22_0d8f8797b3f05d4f46b95e9f0f5befe6-s533719395a86f109-c1 to index blob cache: context canceled
ERROR failed to open repository: unable to create shared content manager: error loading indexes: error downloading indexes: error loading index blob xn25_04abe9d83a08a65c09bda238af191587-s91f147a798c55c73110-c1: error decrypting BLOB xn25_04abe9d83a08a65c09bda238af191587-s91f147a798c55c73110-c1: unable to decrypt content: cipher: message authentication failed
From my command history, my backup script ran without issue last time, completing the snapshots, full maintenance and sync.
I’ve tried resyncing twice from my online backup. The first time, I simply reran the above script and I run into the same sequence of errors (ie. able to connect, then fail on the same snapshot create step) leading me to believe the corruption happened sometime between the last successful snapshot and the sync.
After the second resync, I tried the following:
kopia repository connect filesystem
kopia maintenance run --full --force
kopia snapshot verify
Those commands complete without issue but when I tried my usual backup script again, it too failed at the same snapshot create step.
Is there any advice on what I should try next to try to recover my repo?