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

ipfs add hangs for > 6h #2022

Closed
dignifiedquire opened this issue Dec 1, 2015 · 12 comments · Fixed by #2048
Closed

ipfs add hangs for > 6h #2022

dignifiedquire opened this issue Dec 1, 2015 · 12 comments · Fixed by #2048

Comments

@dignifiedquire
Copy link
Member

Report from IRC (user tidux)

If you want progress with add you need to do: ipfs add -p .mp3
[1:15pm] tidux: I did use that
[1:16pm] tidux: "no visible progress" means the f
** bar hasn't moved in six hours
[1:16pm] dignifiedquire: tidux: that sounds like a bug
[1:16pm] tidux: like I said, I'd report it on github but my account is locked out
[1:16pm] dignifiedquire: or at best something gone very wrong somewhere
[1:17pm] tidux: is there some sort of exclusive lock generated when the daemon is running?
[1:17pm] dignifiedquire: could you create a pastebin/gist of your log output, I’ll create a report
[1:17pm] tidux: I've got it backgrounded as a systemd service
[1:17pm] alterego: tidux: no, the command line client will use the daemon if it finds it.
[1:17pm] tidux: it's not logging anything
[1:17pm] dignifiedquire: also, what version are you running 0.3.9?
[1:17pm] tidux: ~/.ipfs/logs is empty
[1:17pm] tidux: 0.3.9
[1:18pm] dignifiedquire: okay
[1:18pm] dignifiedquire: before you cancel, there is a way to get a stacktrace from the running process
[1:18pm] dignifiedquire: let me quickly dig up the command for that
[1:19pm] dignifiedquire: tidux: if you could run this: curl localhost:5001/debug/pprof/goroutine?debug=2 > debug.log and add the output to your pastebin that would be really helpful
[1:20pm] tidux: > wc -l debug.log
[1:20pm] tidux: 268581 debug.log
[1:20pm] tidux: I think I'll just link it directly from my webserver
[1:21pm] dignifiedquire: yeah that file can get quite large
[1:22pm] tidux: https://borg.moe/ipfs-debug/debug.log

(updated by jbenet for formatting)

@rht
Copy link
Contributor

rht commented Dec 1, 2015

It would be faster to debug if the bug can be reproduced (e.g. using sample .mp3 files).

@rht
Copy link
Contributor

rht commented Dec 1, 2015

Also, I'm advocating for anon bug report experiment as stated in #1946 (comment). Github account shouldn't be required.

@dignifiedquire
Copy link
Member Author

Some more updates from IRC

tidux:
possibly related: I have the local gateway reverse proxied to nginx on port 80 on that system and have seen other people using it
[1:29pm] tidux:
ok it's definitely related to something in the running environment of that server
[1:29pm] tidux:
the same ipfs add command completed in less than a minute on my desktop

@dignifiedquire
Copy link
Member Author

Github account shouldn't be required.

Fully agreed

@rht
Copy link
Contributor

rht commented Dec 3, 2015

possibly related: I have the local gateway reverse proxied to nginx on port 80 on that system and have seen other people using it

I see, is s/he recreating the ipfs.io gateway from scratch?
(if @lgierth can sense what is possibly wrong with that local daemon)

Though in the past, reproducible bugs (not necessarily have to be container-ed) were more likely to be fixed.

@ghost
Copy link

ghost commented Dec 8, 2015

This might be jbenet/go-peerstream#21 cc @whyrusleeping

@ghost
Copy link

ghost commented Dec 8, 2015

Plenty of goroutine 92200796 [semacquire, 38 minutes] from jbenet/go-peerstream.(*Conn).Close()

@whyrusleeping
Copy link
Member

very likely, yeah

@whyrusleeping
Copy link
Member

oh yeah, tidux was the one who helped me find that bug in the first place, lol

@whyrusleeping
Copy link
Member

i sent him stickers for it

@ghost
Copy link

ghost commented Dec 8, 2015

haha ok :) let's close this one then, or do we need to update godeps?

@whyrusleeping
Copy link
Member

we need to update godeps

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

Successfully merging a pull request may close this issue.

3 participants