seanh
September 2, 2022, 6:41pm
1
When I run restic migrate upgrade_repo_v2
I’m getting this:
migration upgrade_repo_v2 cannot be applied: check failed
If you want to apply this migration anyway, re-run with option --force
restic check
passes fine on the repo in question.
Using restic 0.14.0
.
Thanks
Are you sure the repository is not already upgraded to version 2? Which version does restic snapshots
print? Or which version does restic cat config
show?
seanh
September 2, 2022, 8:36pm
3
Ah! Yes, I guess I already upgraded and forgot:
$ restic cat config
repository d59c3d15 opened (repository version 2) successfully, password is correct
{
"version": 2,
"id": "d59c3d1563165cc09ea4095c76bac7cf7515ae77799572306043131aece262e4",
"chunker_polynomial": "339da299e79691"
}
Thanks!
Eli6
September 3, 2022, 5:07am
4
Yeah I wrote about this error message hete
The error message when a v2 repository is mistakenly upgraded can be made more helpful. Right now the error message is
Migration upgrade cannot be applied: check failed
If you want to apply this migration anyways re-run with option – – force
Instead, the message could be:
Error: repository is already in v2 format.