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

API is (mostly) inaccessible on Windows #1758

Closed
Mithgol opened this issue Sep 27, 2015 · 10 comments
Closed

API is (mostly) inaccessible on Windows #1758

Mithgol opened this issue Sep 27, 2015 · 10 comments

Comments

@Mithgol
Copy link

Mithgol commented Sep 27, 2015

The command ipfs swarm peers produces the response Error: Post http://127.0.0.1:5001/api/v0/swarm/peers?encoding=json&stream-channels=true: read tcp 127.0.0.1:55749->127.0.0.1:5001: wsarecv: An existing connection was forcibly closed by the remote host.

The ipfs daemon is running (in another window) and IPFS is unblocked in Windows firewall.

@jbenet
Copy link
Member

jbenet commented Sep 27, 2015

is this always, or some times?

@Mithgol
Copy link
Author

Mithgol commented Sep 27, 2015

Looks like always.

Of course 0.3.8-dev build is only ≈9 hours old and thus I might have missed some chance to encounter a successful ipfs swarm peers.

But I don't think so.

@Mithgol
Copy link
Author

Mithgol commented Sep 27, 2015

The next useful question would be: “Is it just me, or do other people on Windows experience the same issue?”

Quite fortunately, on GitHub it's possible to notify and summon people by mentioning them. I am mentioning @slothbag and @mjanczyk from #1661 and @Vegberg from #1681; they'd no longer encounter neither #1661 nor #1681 in the new 0.3.8-dev, they'd be eager to try 0.3.8-dev, and thus they are likely to encounter the same problem that I've described above.

Chime in. Is it my problem here or some more common problem?

@ghost
Copy link

ghost commented Sep 27, 2015

It hasn't occurred for me with my own build (git master).
However, I downloaded gobuilder binary and started getting this error, for less than 50% of "ipfs swarm peers" executions. So I rebuilded ipfs by myself, using go 1.5.1 instead of 1.4.2, and it started occurring with that binary. Builded with 1.4.2 again - again could not reproduce, not even once.

Still, it occurs only on every other command execution. Doesn't seem to depend on a version of ipfs.exe I use to run daemon, only on client build. Does never occur just after daemon boot, with low peer count, but it doesn't look like I'm hitting some max value, neither - after connecting to more peers, every other call that is successful outputs more lines.

Idk if it could really be compiler version related?

@Mithgol
Copy link
Author

Mithgol commented Sep 27, 2015

I've just repeated ipfs swarm peers ten times in quick succession, and I've got:

  • 8 times Error: Post http://127.0.0.1:5001/api/v0/swarm/peers?encoding=json&stream-channels=true: read tcp 127.0.0.1:49848->127.0.0.1:5001: wsarecv: An existing connection was forcibly closed by the remote host.
  • once Error: read tcp 127.0.0.1:49857->127.0.0.1:5001: wsarecv: An existing connection was forcibly closed by the remote host.
  • once the list of peers

So it's a probabilistic thing, contrary to what I've thought 11 hour ago.

Even on my computer it works sometimes.

@jbenet
Copy link
Member

jbenet commented Sep 27, 2015

This may be the HTTP trailers problem. Maybe we could merge that fix dependent on the go compiler version (the issue is that fix requires go 1.5, and I wanted to give some time to air out weirdness with 1.5, like this)


Sent from Mailbox

On Sun, Sep 27, 2015 at 3:45 PM, Mithgol notifications@github.com wrote:

I've just repeated ipfs swarm peers ten times in quick succession, and I've got:

  • 8 times Error: Post http://127.0.0.1:5001/api/v0/swarm/peers?encoding=json&stream-channels=true: read tcp 127.0.0.1:49848->127.0.0.1:5001: wsarecv: An existing connection was forcibly closed by the remote host.
  • once Error: read tcp 127.0.0.1:49857->127.0.0.1:5001: wsarecv: An existing connection was forcibly closed by the remote host.
  • once the list of peers
    So it's a probabilistic thing, contrary to what I've thought 11 hour ago.
    Even on my computer it works sometimes.

    Reply to this email directly or view it on GitHub:
    API is (mostly) inaccessible on Windows #1758 (comment)

@Mithgol
Copy link
Author

Mithgol commented Sep 28, 2015

Which fix? The fix for #1661?

@Mithgol Mithgol changed the title cannot access API on Windows API is (mostly) inaccessible on Windows Sep 28, 2015
@ghost
Copy link

ghost commented Sep 29, 2015

@Mithgol I would presume #1621. Patch seems to be working, too, afaict and unless I mis-tested.

@whyrusleeping
Copy link
Member

This should be resolved now, open a new issue if problems reoccur

@Mithgol
Copy link
Author

Mithgol commented Aug 19, 2016

Yes, resolved long ago.

I've just forgotten that the issue's been still open.

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