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

Build Failure: Running gx install hangs fetching ipfs objects #81

Closed
vyzo opened this issue Aug 8, 2016 · 10 comments
Closed

Build Failure: Running gx install hangs fetching ipfs objects #81

vyzo opened this issue Aug 8, 2016 · 10 comments

Comments

@vyzo
Copy link
Contributor

vyzo commented Aug 8, 2016

I am trying to build go-libp2p in a fresh workspace.
After running make, the obvious next step in building seems to be gx install.
Alas, it hangs while fetching dependencies from ipfs; running with --verbose hangs here:

  - fetching QmZ4Qi3GaRbjcx28Sme5eMH7RQjGkt8wHxt2a65oLaeFEV via ipfs api
@vyzo vyzo changed the title go-libp2p: Running gx install hangs fetching ipfs object Running gx install hangs fetching ipfs object Aug 8, 2016
@vyzo vyzo changed the title Running gx install hangs fetching ipfs object Build Failure: Running gx install hangs fetching ipfs object Aug 8, 2016
@vyzo
Copy link
Contributor Author

vyzo commented Aug 8, 2016

If I C-c the process and restart, it seems go through the previous reference -- only to hang in a different fetch:

  - fetching QmeLQ13LftT9XhNn22piZc3GP56fGqhijuL5Y8KdUaRn1g via ipfs api

@vyzo
Copy link
Contributor Author

vyzo commented Aug 8, 2016

Also, there don't appear to be any artefacts from these fetches in my go workspace.

@vyzo
Copy link
Contributor Author

vyzo commented Aug 8, 2016

Upon further experimentation, it seems that it starts a number of fetches in the background with a non-deterministic process (goroutines problably), resulting in varying fetch print order.
The end result is the same however, it just hangs for a long time

Note: I am not running a local ipfs node.

@vyzo vyzo changed the title Build Failure: Running gx install hangs fetching ipfs object Build Failure: Running gx install hangs fetching ipfs objects Aug 8, 2016
@vyzo
Copy link
Contributor Author

vyzo commented Aug 8, 2016

Running with a local ipfs node seems to be making progress.

Perhaps running ipfs should be a hard dependency listed in the README?

@vyzo
Copy link
Contributor Author

vyzo commented Aug 8, 2016

An update: it made solid albeit slow progress, until it got stuck installing go-libp2p-loggables.
It's been stuck there for over an hour now:

installing package: go-libp2p-loggables-1.0.7
  - QmRBqJF7hb8ZSpRcMwUt8hNhydWcxGEhtk81HKq6oUwKvs not found locally, fetching into /home/vyzo/src/golang/src/gx/ipfs/QmRBqJF7hb8ZSpRcMwUt8hNhydWcxGEhtk81HKq6oUwKvs
  - fetching QmRBqJF7hb8ZSpRcMwUt8hNhydWcxGEhtk81HKq6oUwKvs via ipfs api

@jbenet
Copy link
Contributor

jbenet commented Aug 8, 2016

@whyrusleeping what's going on there? Missing packages?
On Mon, Aug 8, 2016 at 11:18 vyzo notifications@github.com wrote:

An update: it made solid albeit slow progress, until it got stuck
installing go-libp2p-loggables.
It's been stuck there for over an hour now:

installing package: go-libp2p-loggables-1.0.7

  • QmRBqJF7hb8ZSpRcMwUt8hNhydWcxGEhtk81HKq6oUwKvs not found locally, fetching into /home/vyzo/src/golang/src/gx/ipfs/QmRBqJF7hb8ZSpRcMwUt8hNhydWcxGEhtk81HKq6oUwKvs
  • fetching QmRBqJF7hb8ZSpRcMwUt8hNhydWcxGEhtk81HKq6oUwKvs via ipfs api


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

@vyzo
Copy link
Contributor Author

vyzo commented Aug 8, 2016

There seems to be some IPFS routing issue -- the object seems to be resolvable from other locations.

@vyzo
Copy link
Contributor Author

vyzo commented Aug 8, 2016

Restarting the ipfs daemon magically fixed the problem and installation completed!

Closing the issue as there isn't any action that needs to be taken.

@vyzo vyzo closed this as completed Aug 8, 2016
@whyrusleeping
Copy link
Contributor

@vyzo what version of ipfs are you using? This is likely the major bug in 0.4.2 that we've fixed in 0.4.3. If you see this sort of thing somewhat frequently, i would recommend trying out the release candidate for 0.4.3

@vyzo
Copy link
Contributor Author

vyzo commented Aug 8, 2016

Aha! I am using ipfs-0.4.2 (it has an ebuild in gentoo, so it was convenient).

marten-seemann pushed a commit that referenced this issue Apr 26, 2022
Further Optimizations and refactor benchmarking code.
marten-seemann pushed a commit that referenced this issue Jul 1, 2022
move protocol definitions to go-multiaddr
marten-seemann pushed a commit that referenced this issue Aug 9, 2022
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