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

New IPFS Repo Version #38

Open
mrd0ll4r opened this issue Feb 24, 2022 · 9 comments
Open

New IPFS Repo Version #38

mrd0ll4r opened this issue Feb 24, 2022 · 9 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@mrd0ll4r
Copy link

go-ipfs v0.12 was released. This introduced repo version 12. I upgraded IPFS, upgraded my repo, but now superhighway84 doesn't like it anymore, which is understandable:

panic: Your programs version (11) is lower than your repos (12).
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.


goroutine 1 [running]:
log.Panicln({0xc001d59f48, 0xc0000ec400, 0xc000181500})
        /opt/hostedtoolcache/go/1.17.6/x64/src/log/log.go:368 +0x65
main.main()
        /home/runner/work/superhighway84/superhighway84/superhighway84.go:87 +0x5e6

What's the plan? I'm using a separate IPFS_PATH for superhighway84 with repo version 11 now, which works, but I guess we'll have to upgrade at some point...

@mrusme
Copy link
Owner

mrusme commented Feb 24, 2022

Well, Superhighway84 is depending on go-orbit-db which atm is still using an older version. I tried upgrading to the latest go-orbit-db a few days ago but it failed due to some dependency issues that seem to happen rn in go-orbit-db.

@mrusme mrusme added the enhancement New feature or request label Feb 24, 2022
@mrusme
Copy link
Owner

mrusme commented Feb 28, 2022

Checked again:

go: downloading github.com/ipfs/go-ipfs v0.12.0
go: downloading github.com/whyrusleeping/cbor-gen v0.0.0-20220224212727-7a699437a831
go: downloading github.com/libp2p/go-libp2p-swarm v0.10.2
go: downloading github.com/libp2p/go-tcp-transport v0.5.1
go: downloading github.com/libp2p/go-mplex v0.5.0
go: downloading github.com/klauspost/compress v1.14.4
go: downloading golang.org/x/mobile v0.0.0-20220224134551-8a0a1e50732f
go: downloading golang.org/x/exp/shiny v0.0.0-20220218215828-6cf2b201936e
go: downloading golang.org/x/exp v0.0.0-20220218215828-6cf2b201936e
go: downloading github.com/godbus/dbus/v5 v5.1.0
# github.com/libp2p/go-libp2p-mplex
../../../.go/pkg/mod/github.com/libp2p/[email protected]/transport.go:21:32: multiple-value multiplex.NewMultiplex() in single-value context
# github.com/libp2p/go-libp2p/p2p/protocol/circuitv2/client
../../../.go/pkg/mod/github.com/libp2p/[email protected]/p2p/protocol/circuitv2/client/client.go:32:13: undefined: upgrader.Upgrader
../../../.go/pkg/mod/github.com/libp2p/[email protected]/p2p/protocol/circuitv2/client/client.go:57:33: undefined: upgrader.Upgrader
../../../.go/pkg/mod/github.com/libp2p/[email protected]/p2p/protocol/circuitv2/client/transport.go:21:42: undefined: upgrader.Upgrader

Something still doesn't seem right with the dependencies.

@mrusme
Copy link
Owner

mrusme commented Feb 28, 2022

Unlike what the comment in the linked go-libp2p stated randomly removing indirect dependencies and basically go get-ing everything from scratch finally fixed the upgrade issues. Man, IPFSs really exaggerates it with dependencies and it seems there's no documentation which version of lib A works with what versions of lib B. Anyway, at least Superhighway84 is now running the latest go-orbit-db release.

@mrd0ll4r
Copy link
Author

mrd0ll4r commented Mar 1, 2022

Man, IPFSs really exaggerates it with dependencies and it seems there's no documentation which version of lib A works with what versions of lib B. Anyway, at least Superhighway84 is now running the latest go-orbit-db release.

I can very much relate :) Thanks for looking into it!

@mrusme
Copy link
Owner

mrusme commented May 6, 2022

FYI: go-orbit-db was upgraded to 1.17.1, which now uses go-ipfs 0.12.2. I have just pushed an update, 0.2.0, which includes the updated libraries. Now Superhighway84 is able to run on IPFS 0.12 repositories!

@mister-monster
Copy link

the same thing is now happening with regard to program version 12 and repo version 13...

@mrusme
Copy link
Owner

mrusme commented Jun 29, 2023

Sorry, yeah, it's really a little bit of a PITA. :-( Will have a look!

@mrusme mrusme reopened this Jun 29, 2023
@timecool-cpu
Copy link

@mrusme I get the same question but i cannot solve it:
Your programs version (13) is lower than your repos (14).

i download the fs-repo-migrations and run that but get the error:migrations/fs-repo-migrations ; exit;
Could not get available repo migrations: http.DefaultClient.Do error: Get "https://ipfs.io/ipns/dist.ipfs.io/fs-repo-10-to-11/versions": dial tcp 52.58.1.161:443: i/o timeout

@mrusme
Copy link
Owner

mrusme commented Jul 20, 2023

@timecool-cpu yeah, version incompatibilities are a tough sell for IPFS unfortunately. Ultimately if you don't care, you can just delete the whole IPFS repo and re-initialize it with the version that Superhighway84 is using. Alternatively, I've described in the README how you can use a dedicated IPFS repo for Superhighway84. You'd need to have the IPFS CLI in that version around nevertheless.

@mrusme mrusme added the help wanted Extra attention is needed label Jul 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

4 participants