You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I ran ipfs-update install 0.5.0-rc4. IPFS and repo were upgraded as expected.
I ran a downgrade back to 0.4.23.
Expected: A revert migration on downgrade
Had: Downgrade of IPFS, not of Repo.
Command Output:
bertrand@computer:~$ ipfs-update --version
ipfs-update version 1.6.0
bertrand@computer:~$ ipfs-update version
v0.5.0-rc4
bertrand@computer:~$ sudo ipfs-update install 0.4.23 --allow-downgrade
fetching go-ipfs version v0.4.23
binary downloaded, verifying...
success! tests all passed.
stashing old binary
installing new binary to /usr/local/bin/ipfs
checking if repo migration is needed...
' <- EXPECTED A REPO REVERT MIGRATION HERE
Installation complete!
bertrand@computer:~$ ipfs daemon
Initializing daemon...
go-ipfs version: 0.4.23-
Repo version: 7
System version: amd64/linux
Golang version: go1.13.7
Error: Your programs version (7) is lower than your repos (9).
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.
The text was updated successfully, but these errors were encountered:
It seems you run your ipfs daemon with your normal user : $ ipfs daemon.
But you are running sudo ipfs-update install.... By using sudo the 0.4.23 version of ipfs is getting installed to your root user, which probably had a different version of ipfs installed than 0.5.0-rc4 and did not need a migration.
Try downgrading without sudo.
For me things downgrades work as expected, and this is also covered in tests. Please re-open/comment if I missed base and you keep having problems.
Version information:
ipfs-update version 1.6.0
OS: Ubuntu 20.04
Description:
Expected: A revert migration on downgrade
Had: Downgrade of IPFS, not of Repo.
Command Output:
The text was updated successfully, but these errors were encountered: