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

Users who aren't pingable do not receive feedback on commands failing #4027

Closed
d34d10cc opened this issue Jul 2, 2017 · 5 comments
Closed
Labels
topic/nat Topic nat

Comments

@d34d10cc
Copy link
Contributor

d34d10cc commented Jul 2, 2017

Version information:

go-ipfs version: 0.4.10-
Repo version: 5
System version: amd64/windows
Golang version: go1.8.3

Type:

Bug/Enhancement

Severity:

Medium

Description:

I'm not really sure I should be listing this here, but users who are not pingable due to e.g being behind a CGNAT do not receive any errors or general feedback while the commands they run are failing. As far as I understand, a massive time-out limit is in place for all commands so commands just hang and block additional console input. On Windows, at least, it is impossible to stop the running of the commands via conventional methods (Ctrl+C, etc). I am not sure this would be fixable without intervention from nodes outside the user's local network to ping the machine. If not, a warning should be put in place to prevent confusion, because a large number of people do not have access to unblocked, static IP addresses.

@whyrusleeping
Copy link
Member

What sort of commands are failing with no errors? Are you sure its related to NAT and not something else?

@d34d10cc
Copy link
Contributor Author

d34d10cc commented Jul 3, 2017

All commands that rely on p2p. For example, cat fails and cannot be stopped, but I can access the web interface if the daemon is running. Add fails too. I'm sure it's related to NAT since once I tunneled through a 6in4 tunnel I could use ipfs just fine.

@whyrusleeping
Copy link
Member

ipfs add fails? That has nothing to do with any sort of networking though. Can you copy paste some command invocations youre running?

@d34d10cc
Copy link
Contributor Author

d34d10cc commented Jul 3, 2017

My bad, I just tested again, it does work. On the other hand ipfs swarm peers only shows four servers (earth, pluto, venus...) and ipfs swarm connect fails like the others.

@whyrusleeping whyrusleeping added the topic/nat Topic nat label Aug 31, 2017
@Stebalien
Copy link
Member

  • ^C should work on windows, if not, let's investigate that in a new issue.
  • We now have an AutoRelay feature that we're going to enable by default pretty soon. This will allow nodes to detect their NATs and, if present, setup a relay to allow incoming connections.
  • --read-timeout option for ipfs get #5541

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic/nat Topic nat
Projects
None yet
Development

No branches or pull requests

3 participants