Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is this in dist.ipfs.io? #45

Closed
jbenet opened this issue Aug 26, 2016 · 7 comments
Closed

Is this in dist.ipfs.io? #45

jbenet opened this issue Aug 26, 2016 · 7 comments

Comments

@jbenet
Copy link
Member

jbenet commented Aug 26, 2016

Failed to install 0.4.3-rc3 with ipfs-update:

> ipfs-update install v0.4.3-rc3
fetching go-ipfs version v0.4.3-rc3
binary downloaded, verifying...
success!
stashing old binary
installing new binary to /usr/local/bin/ipfs
checking if repo migration is needed...
  check complete, migration required.
fetching fs-repo-migrations version v1.1.0
ERROR: Migration Failed:  no known migration supports version 4
install failed, reverting changes...
no known migration supports version 4

Looks like fs-repo-migrations latest is not yet in dist.ipfs.io. And https://dist.ipfs.io/fs-repo-migrations shows only two.

@whyrusleeping
Copy link
Member

@jbenet how old is this ipfs-update bin? (i don't think that was the issue, but its good info to have in either case)

@jbenet
Copy link
Member Author

jbenet commented Aug 29, 2016

  • I thought i downloaded a new one. The bin said v0.1.0...
  • Hm, but so does a fresh v1.3.0 from dist.ipfs.io ...

@jbenet
Copy link
Member Author

jbenet commented Aug 29, 2016

> ipfs-update revert v0.4.2
found multiple old binaries:
1)    ipfs-v0.4.2        Mon Aug 29 19:17:37 2016
2)    ipfs-v0.4.3-rc3    Mon Aug 29 19:18:45 2016
install which? (0 to exit)
1
installing ipfs-v0.4.2...
reverting to /Users/earth/.ipfs/old-bin/ipfs-v0.4.2

revert complete.
> cat ~/.ipfs/version
4
> ipfs daemon
Initializing daemon...
Error: Repo has incorrect version: 4
Program version is: 3
Please run the ipfs migration tool before continuing.
See https://github.com/ipfs/fs-repo-migrations/blob/master/run.md
Sorry for the inconvenience. In the future, these will run automatically.

Looks like reverting doesn't revert repo. (makes sense). But we may want to give the user instructions on how to do it.

@jbenet
Copy link
Member Author

jbenet commented Aug 29, 2016

but hey, seems to have worked.

> rm $(which fs-repo-migrations)
> ipfs-update install v0.4.3-rc3
fetching go-ipfs version v0.4.3-rc3
binary downloaded, verifying...
success!
stashing old binary
installing new binary to /usr/local/bin/ipfs
checking if repo migration is needed...
  - Migration required
fetching fs-repo-migrations version v1.1.0
running migration: '/var/folders/nn/33h5t_cn5ql90zjywzwbrxnc0000gn/T/ipfs-update-migrate306730086/fs-repo-migrations -to 4 -y'
Found fs-repo version 3 at /Users/earth/.ipfs
===> Running migration 3 to 4...
applying 3-to-4 repo migration
locking repo at "/Users/earth/.ipfs"
  - verifying version is '3'
  - opening datastore at "/Users/earth/.ipfs"
transfering blocks to new key format
[15 / 15] Approx time remaining: 698s
transferring stored public key records
gathering keys...
got 1 keys, beginning transfer. This will take some time.
[1 / 1]
transferring stored ipns records
gathering keys...
got 1 keys, beginning transfer. This will take some time.
[1 / 1]
updated version file
===> Migration 3 to 4 succeeded!
migration succeeded!

installation complete.

(we could probably make this output more friendly)

@jbenet
Copy link
Member Author

jbenet commented Aug 29, 2016

So i guess close this then?

@whyrusleeping
Copy link
Member

Could you file an issue about making the output more friendly? I really
agree but I'm not good at actually detailing what that would look like

On Mon, Aug 29, 2016, 19:30 Juan Benet [email protected] wrote:

So i guess close this then?


You are receiving this because you commented.
Reply to this email directly, view it on GitHub
#45 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABL4HOo9mQLMcpBehl67noe6FpPpIm7Hks5qk2uEgaJpZM4Jtx63
.

@RichardLitt
Copy link
Member

Filed ipfs/ipfs-update#41.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants