ipfs / fs-repo-migrations

Migrations for the filesystem repository of ipfs clients
MIT License
58 stars 42 forks source link

Already At Target Version Number #120

Open stevebanik opened 3 years ago

stevebanik commented 3 years ago

I'm unable to start the daemon due to a version error. I ran fs-repo-migrations but it says I'm already at the target:

stacktrace:fs-repo-migrations stacktrace$ ll
total 108912
-rwxr-xr-x  1 stacktrace  staff  55761744 Jan 28 18:48 fs-repo-migrations
stacktrace:fs-repo-migrations stacktrace$ ./fs-repo-migrations 
ipfs migration: already at target version number
stacktrace:fs-repo-migrations stacktrace$ ipfs daemon
Initializing daemon...
go-ipfs version: 0.7.0
Repo version: 10
System version: amd64/darwin
Golang version: go1.14.4

Error: Your programs version (10) is lower than your repos (11).
Please update ipfs to a version that supports the existing repo, or run
a migration in reverse.

See https://github.com/ipfs/fs-repo-migrations/blob/master/run.md for details.
stacktrace:fs-repo-migrations stacktrace$

How can I resolve this?

Also, I'm unable to start IPFS Desktop on my Mac Mini M1. It started the daemon, so I was unable to start the daemon via the CLI in order to cat the file. I killed the daemon but couldn't start it in the CLI and this is where I ended up.

Soundtoxin commented 3 years ago

I just hit the same snag. I guess in my case the arch package is a little old. I did this: fs-repo-migrations -to 10 --revert-ok

lidel commented 3 years ago

@stevebanik can you check if you have an old version of fs-repo-migrations on your PATH? (which fs-repo-migrations) Is the problem is still present when you remove/update the old stale version to one from https://dist.ipfs.io/#fs-repo-migrations?