`snapshot migrate` does not work

When I run:

docker exec -it kopia kopia --config-file /app/config/new-repo.config snapshot migrate --all --apply-ignore-rules --policies --source-config /app/config/old-repo.config

… I get:

ERROR failed to open repository: unable to create shared content manager: error loading indexes: error downloading indexes: error loading index blob xn0_018b4bc1d4e116eefde8d1b922df728d-s8db05e17fe3cd69012f-c1: decrypt blob: error decrypting BLOB xn0_018b4bc1d4e116eefde8d1b922df728d-s8db05e17fe3cd69012f-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 xn0_018b4bc1d4e116eefde8d1b922df728d-s8db05e17fe3cd69012f-c1: decrypt blob: error decrypting BLOB xn0_018b4bc1d4e116eefde8d1b922df728d-s8db05e17fe3cd69012f-c1: unable to decrypt content: cipher: message authentication failed

unable to decrypt content sounds like one of the repos can’t be connected to. But I can connect to both repositories without error (e.g. docker exec -it kopia kopia repository connect from-config --file /app/config/new-repo.config).

I have been experimenting with this for quite a while now and at some point, the migrate command seemed to finish fine and showed a result, but the result was that nothing was migrated.

This repo is 5 TB in size and had errors before, which I thought I had solved running:

  • kopia snapshot fix invalid-files --verify-files-percent=100 --commit
  • kopia maintenance run --full

Being desperate, I also ran:

  • kopia index recover --parallel=10 --commit --advanced-commands=enabled

Afterwards, the repo showed errors again, so I re-ran the previous repair commands. Now I can connect to the repo without any errors, but the migrate command does not finish anymore, and instead leads to the error message further up.

I have put A LOT of time into this. But I’m not getting anywhere anymore. I would massively appreciate any and all help or pointers.

Anyone able to help with at least some pointers? I have put a lot of time and effort into trying to save this repository. I really really do not want to just throw it away. :pensive:

EDIT: also… currently my backups are off… which does not feel super good…

What I forgot to mention is that the reason I’m trying out snapshot migrate is the comment of @jkowalski here. The way I understood it is that through migrating I would eliminate errors and end up with an error-free new repository. Some files might be missing, but those would have had errors in the old repo anyway.

Did I understand that correctly?