Migration failed without error or output

I am running migration to v2 on a repo but it doesn’t seem to do anything beyond opening the repo then exiting. No error or anything. Here is the output plus some logs.

[root@X ~]# nice -n 19 restic -r b2:Backups:/Restic/X stats --mode raw-data
repository 90457a26 opened successfully, password is correct
scanning...
Stats for all snapshots in raw-data mode:
  Total Blob Count:   477456
        Total Size:   29.349 GiB
[root@X ~]# nice -n 19 restic -r b2:Backups:/Restic/X check
using temporary cache in /tmp/restic-check-cache-453153952
repository 90457a26 opened successfully, password is correct
created new cache in /tmp/restic-check-cache-453153952
create exclusive lock for repository
load indexes
check all packs
check snapshots, trees and blobs
no errors were found
[root@X ~]# nice -n 19 restic -r b2:Backups:/Restic/X migrate upgrade_repo_v2
repository 90457a26 opened successfully, password is correct
[root@X ~]#

I’m confused. :upside_down_face: The steps to run prune are described in this thread you mentioned.

I’m running the migration the same as I do on all my servers and so far they have all worked except for this one. Usually if it’s already a V2 repo then it will say that error or if the backup has some type of issue it will output that error. However with this one it just says that the password is correct and then stops.

That restic version is too old to support compression. Please always include the restic version. It’s rather tedious to reverse engineer it from changes to the output format.

But the migrate command should really return an error when trying to run an unknown migration.

Edit: migrate: show warning if migration is unknown by MichaelEischer · Pull Request #4973 · restic/restic · GitHub will add a simple warning. But that will only work in future restic versions.

Thank you for this. You are right all my servers were on the correct version and expect this one to be as well. This server has restic 0.9.2 I will update and try again. Do you mind letting me know how you knew it was an old version by the line you qouted?

Starting from restic 0.14.0 the repository ... opened line includes the repository version:

repository 90457a26 opened (version 1)
1 Like