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 daemon not reconnect on Wi-Fi change (OS X) #2892

Open
apiarian opened this issue Jun 22, 2016 · 7 comments
Open

ipfs daemon not reconnect on Wi-Fi change (OS X) #2892

apiarian opened this issue Jun 22, 2016 · 7 comments
Labels
help wanted Seeking public contribution on this issue kind/bug A bug in existing code (including security flaws) status/deferred Conscious decision to pause or backlog topic/libp2p Topic libp2p

Comments

@apiarian
Copy link

apiarian commented Jun 22, 2016

My ipfs daemon sometimes fails to reconnect when my Wi-Fi switches. Running go-ipfs version 0.4.2 on OS X.

10 seconds of ipfs log tail:

{"event":"Bitswap.Rebroadcast.active","session":"a04d3a5d-257c-4c57-9d27-e1d854436c64","system":"bitswap","time":"2016-06-22T23:30:20.293085691Z"}
{"event":"Bitswap.Rebroadcast.idle","session":"a04d3a5d-257c-4c57-9d27-e1d854436c64","system":"bitswap","time":"2016-06-22T23:30:20.293185298Z"}
{"event":"Bitswap.Rebroadcast.idle","session":"a04d3a5d-257c-4c57-9d27-e1d854436c64","system":"bitswap","time":"2016-06-22T23:30:20.293237349Z"}
{"event":"periodicBootstrapBegin","peerID":"QmNT744VjtRFpDYB25EVLx7ha1zAVDKsd3qFjxfQLjPEXq","system":"core","time":"2016-06-22T23:30:30.289558618Z"}
{"event":"Bitswap.Rebroadcast.active","session":"a04d3a5d-257c-4c57-9d27-e1d854436c64","system":"bitswap","time":"2016-06-22T23:30:30.289577453Z"}
{"event":"Bitswap.Rebroadcast.idle","session":"a04d3a5d-257c-4c57-9d27-e1d854436c64","system":"bitswap","time":"2016-06-22T23:30:30.289604517Z"}
{"event":"Bitswap.Rebroadcast.idle","session":"a04d3a5d-257c-4c57-9d27-e1d854436c64","system":"bitswap","time":"2016-06-22T23:30:30.289617496Z"}
{"event":"bootstrapStartBegin","peerID":"QmNT744VjtRFpDYB25EVLx7ha1zAVDKsd3qFjxfQLjPEXq","system":"core","time":"2016-06-22T23:30:30.290924042Z"}
{"event":"bootstrapDialBegin","peerID":"QmSoLSafTMBsPKadTEgaXctDQVcqN88CNLHXMkTNwMKPnu","system":"core","time":"2016-06-22T23:30:30.29099558Z"}
{"event":"bootstrapDialBegin","peerID":"QmSoLnSGccFuZQJzRadHn95W2CrSFmZuTdDWP8HXaHca9z","system":"core","time":"2016-06-22T23:30:30.291116708Z"}
{"event":"bootstrapDialBegin","peerID":"QmSoLer265NRgSp2LA3dPaeykiS1J6DifTC88f5uVQKNAd","system":"core","time":"2016-06-22T23:30:30.291118927Z"}
{"event":"bootstrapDialFailed","peerID":"QmSoLer265NRgSp2LA3dPaeykiS1J6DifTC88f5uVQKNAd","system":"core","time":"2016-06-22T23:30:30.291266904Z"}
{"duration":218743,"event":"bootstrapDial","peerID":"QmSoLer265NRgSp2LA3dPaeykiS1J6DifTC88f5uVQKNAd","system":"core","time":"2016-06-22T23:30:30.291322829Z"}
{"event":"bootstrapDialBegin","peerID":"QmSoLV4Bbm51jM9C4gDYZQ9Cy3U6aXMJDAbzgu2fzaDs64","system":"core","time":"2016-06-22T23:30:30.291460015Z"}
{"event":"bootstrapDialFailed","peerID":"QmSoLV4Bbm51jM9C4gDYZQ9Cy3U6aXMJDAbzgu2fzaDs64","system":"core","time":"2016-06-22T23:30:30.291575622Z"}
{"duration":192390,"event":"bootstrapDial","peerID":"QmSoLV4Bbm51jM9C4gDYZQ9Cy3U6aXMJDAbzgu2fzaDs64","system":"core","time":"2016-06-22T23:30:30.291622538Z"}

http://localhost:5001/debug/pprof/goroutine?debug=2 output: https://gist.github.com/apiarian/91b24fec73f41cfc1453cfab838459d7

@Kubuxu
Copy link
Member

Kubuxu commented Jun 23, 2016

Can you put the stacktrace into a gist?

@apiarian
Copy link
Author

@davidak
Copy link

davidak commented Jul 21, 2016

any news on this? have it twice a day :/

@Kubuxu
Copy link
Member

Kubuxu commented Jul 21, 2016

You can try switching to go-ipfs 0.4.3-dev (which you would have to build on your own) or wait for 0.4.3-rc1 build which will probably happen on 25th or 27th.

@whyrusleeping
Copy link
Member

@davidak what do you do to reproduce this? I'm not able to make this happen reliably myself

@davidak
Copy link

davidak commented Jul 21, 2016

@Kubuxu then i will wait

@whyrusleeping go to work (use Thunderbolt-Ethernet-Adapter for network) and go home again (Wifi)

@davidak
Copy link

davidak commented Jul 22, 2016

i can't reproduce it when i:

  • just turn Wifi off and on
  • switch Wifi network
  • connected with Thunderbolt-Ethernet-Adapter (Wifi off), pull it out, turn Wifi on

but when i:

  • go to another place and connect there to Wifi (Wifi on all the time)

@whyrusleeping whyrusleeping added kind/bug A bug in existing code (including security flaws) help wanted Seeking public contribution on this issue topic/libp2p Topic libp2p labels Aug 23, 2016
@whyrusleeping whyrusleeping added the status/deferred Conscious decision to pause or backlog label Nov 28, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Seeking public contribution on this issue kind/bug A bug in existing code (including security flaws) status/deferred Conscious decision to pause or backlog topic/libp2p Topic libp2p
Projects
None yet
Development

No branches or pull requests

4 participants