Opened at 2013-03-20T21:21:56Z
Last modified at 2015-03-27T10:47:44Z
#1935 new defect
bad behavior when localhost is down
Reported by: | warner | Owned by: | warner |
---|---|---|---|
Priority: | normal | Milestone: | undecided |
Component: | code-network | Version: | 1.9.2 |
Keywords: | loopback localhost network error unix iputil transparency | Cc: | |
Launchpad Bug: |
Description (last modified by zooko)
User "amospalla" on IRC had problems setting up an introducer and a node on the same box (they reported that the node started, and the web ui was visible, but it could not connect to the introducer). The problem turned out to be that their loopback interface (lo, usually bound to 127.0.0.1) was disabled or unconfigured, leaving only en0 (which had some 192-net private address). The node created a furl with functional connection hints (I think telnetting to the 192-net address worked). But the node never reported connecting to the introducer. They were using "debian 7.0".
We don't know exactly what happened, but it sounds like something might accidentally depend upon having 127.0.0.1 be functional. I'd like to reproduce this on my linux box by doing "ifconfig lo down" and see what happens.
Change History (6)
comment:1 Changed at 2013-03-20T21:56:47Z by davidsarah
- Keywords loopback localhost network error unix added
comment:2 Changed at 2013-05-27T17:29:49Z by zooko
- Description modified (diff)
comment:3 Changed at 2013-05-27T17:37:40Z by zooko
- Keywords iputil transparency added
comment:4 Changed at 2013-06-25T18:15:57Z by Daira Hopwood <david-sarah@…>
comment:5 Changed at 2013-06-27T02:13:08Z by daira
- Owner set to warner
This needs re-testing; the way iputil obtains the local IP address list is now more tolerant of errors, but I don't know whether that is sufficient to fix this ticket.
comment:6 Changed at 2015-03-27T10:47:44Z by daira
Note that as a side-effect of the fix to #754 (which will be released in Tahoe-LAFS 1.10.1), setting tub.location without including "AUTO" will skip the local IP auto-detection code entirely, thus allowing a workaround for this problem if the other changes on trunk didn't fix it.
See #1988.