Opened 10 years ago

Last modified 2 years ago

#1099 new defect (None)

Spurious bootstrap warnings if no-route-to-host

Reported by: arma Owned by:
Priority: Low Milestone: Tor: unspecified
Component: Core Tor/Tor Version: 0.2.1.19
Severity: Normal Keywords: tor-client, bootstrap, usability, sponsor8-maybe
Cc: arma, Sebastian, nickm Actual Points:
Parent ID: Points:
Reviewer: Sponsor:

Description (last modified by nickm)

Sep 19 22:42:11.251 [warn] Problem bootstrapping. Stuck at 85%: Finishing handshake with first hop. (No route to host; NOROUTE; count 1; recommendation warn)

$ telnet 89.54.142.227 443
Trying 89.54.142.227...
telnet: Unable to connect to remote host: No route to host

This isn't a problem with my network, it's a problem with that host.

And it looks like Tor can't tell the difference:
$ grep END_OR_CONN_REASON_NO_ROUTE *.h
or.h:#define END_OR_CONN_REASON_NO_ROUTE 6 /* no route to host/net */

We should teach it the difference.

Step one is to do this in errno_to_orconn_end_reason(), which I think will
solve the particular issue here.

Step two would be to solve it in tls_error_to_orconn_end_reason(), but I
bet that might be trickier.

[Automatically added by flyspray2trac: Operating System: All]

Child Tickets

Change History (7)

comment:1 Changed 9 years ago by shadowsjack

This is the message log when this occurs during a connected TOR session:

Jan 16 11:27:27.906 [Notice] Tor v0.2.1.21. This is experimental software. Do not rely on it for strong anonymity. (Running on Windows XP Service Pack 3 [workstation] {terminal services, single user})
Jan 16 11:27:28.015 [Notice] Initialized libevent version 1.4.13-stable using method win32. Good.
Jan 16 11:27:28.031 [Notice] Opening Socks listener on 127.0.0.1:9050
Jan 16 11:27:28.031 [Notice] Opening Control listener on 127.0.0.1:9051
Jan 16 11:27:28.140 [Notice] Parsing GEOIP file.
Jan 16 11:27:35.906 [Notice] Bootstrapped 90%: Establishing a Tor circuit.
Jan 16 11:27:40.921 [Notice] Tor has successfully opened a circuit. Looks like client functionality is working.
Jan 16 11:27:40.921 [Notice] Bootstrapped 100%: Done.
Jan 16 14:57:08.109 [Notice] We stalled too much while trying to write 798 bytes to address [scrubbed]. If this happens a lot, either something is wrong with your network connection, or something is wrong with theirs. (fd 1432, type Socks, state 11, marked at connection_edge.c:93).
Jan 16 17:03:02.046 [Notice] Tried for 120 seconds to get a connection to [scrubbed]:443. Giving up. (waiting for circuit)
Jan 16 17:03:08.046 [Notice] Tried for 120 seconds to get a connection to [scrubbed]:443. Giving up. (waiting for circuit)
Jan 16 17:04:22.062 [Notice] Tried for 120 seconds to get a connection to [scrubbed]:443. Giving up. (waiting for circuit)
Jan 16 17:05:30.078 [Notice] Tried for 120 seconds to get a connection to [scrubbed]:443. Giving up. (waiting for circuit)

and this is the message log when it won't connect at all:

Jan 14 10:25:14.921 [Warning] Problem bootstrapping. Stuck at 85%: Finishing handshake with first hop. (Socket is not connected [WSAENOTCONN ]; NOROUTE; count 1; recommendation warn)

Jan 14 10:33:03.578 [Warning] Problem bootstrapping. Stuck at 85%: Finishing handshake with first hop. (Socket is not connected [WSAENOTCONN ]; NOROUTE; count 1; recommendation warn)

Jan 14 10:37:07.093 [Notice] Tor v0.2.1.21. This is experimental software. Do not rely on it for strong anonymity. (Running on Windows XP Service Pack 3 [workstation] {terminal services, single user})
Jan 14 10:37:07.093 [Notice] Initialized libevent version 1.4.13-stable using method win32. Good.
Jan 14 10:37:07.093 [Notice] Opening Socks listener on 127.0.0.1:9050
Jan 14 10:37:07.093 [Notice] Opening Control listener on 127.0.0.1:9051
Jan 14 10:37:07.093 [Notice] Parsing GEOIP file.
Jan 14 10:37:30.921 [Warning] Problem bootstrapping. Stuck at 80%: Connecting to the Tor network. (Socket is not connected [WSAENOTCONN ]; NOROUTE; count 1; recommendation warn)
Jan 14 10:37:31.031 [Warning] Problem bootstrapping. Stuck at 80%: Connecting to the Tor network. (Socket is not connected [WSAENOTCONN ]; NOROUTE; count 2; recommendation warn)
Jan 14 10:37:34.859 [Warning] Problem bootstrapping. Stuck at 80%: Connecting to the Tor network. (Socket is not connected [WSAENOTCONN ]; NOROUTE; count 3; recommendation warn)
Jan 14 10:37:34.875 [Warning] Problem bootstrapping. Stuck at 80%: Connecting to the Tor network. (Socket is not connected [WSAENOTCONN ]; NOROUTE; count 4; recommendation warn)
Jan 14 10:37:35.078 [Warning] Problem bootstrapping. Stuck at 80%: Connecting to the Tor network. (No route to host [WSAEHOSTUNREACH ]; NOROUTE; count 5; recommendation warn)
Jan 14 10:37:36.078 [Warning] Problem bootstrapping. Stuck at 80%: Connecting to the Tor network. (No route to host [WSAEHOSTUNREACH ]; NOROUTE; count 6; recommendation warn)
Jan 14 10:37:37.078 [Warning] Problem bootstrapping. Stuck at 80%: Connecting to the Tor network. (No route to host [WSAEHOSTUNREACH ]; NOROUTE; count 7; recommendation warn)
Jan 14 10:37:38.078 [Warning] Problem bootstrapping. Stuck at 80%: Connecting to the Tor network. (No route to host [WSAEHOSTUNREACH ]; NOROUTE; count 8; recommendation warn)
Jan 14 10:37:39.078 [Warning] Problem bootstrapping. Stuck at 80%: Connecting to the Tor network. (No route to host [WSAEHOSTUNREACH ]; NOROUTE; count 9; recommendation warn)
Jan 14 10:38:01.000 [Warning] Problem bootstrapping. Stuck at 80%: Connecting to the Tor network. (Socket is not connected [WSAENOTCONN ]; NOROUTE; count 10; recommendation warn)
Jan 14 10:38:02.968 [Warning] Problem bootstrapping. Stuck at 80%: Connecting to the Tor network. (Socket is not connected [WSAENOTCONN ]; NOROUTE; count 11; recommendation warn)
Jan 14 10:38:04.109 [Notice] Bootstrapped 85%: Finishing handshake with first hop.
Jan 14 10:38:32.031 [Warning] Problem bootstrapping. Stuck at 85%: Finishing handshake with first hop. (Socket is not connected [WSAENOTCONN ]; NOROUTE; count 12; recommendation warn)
Jan 14 10:40:21.953 [Warning] Problem bootstrapping. Stuck at 85%: Finishing handshake with first hop. (Socket is not connected [WSAENOTCONN ]; NOROUTE; count 13; recommendation warn)
Jan 14 10:40:23.156 [Warning] Problem bootstrapping. Stuck at 85%: Finishing handshake with first hop. (Socket is not connected [WSAENOTCONN ]; NOROUTE; count 14; recommendation warn)
Jan 14 10:40:25.015 [Warning] Problem bootstrapping. Stuck at 85%: Finishing handshake with first hop. (Socket is not connected [WSAENOTCONN ]; NOROUTE; count 15; recommendation warn)
Jan 14 10:40:37.046 [Notice] Tried for 120 seconds to get a connection to [scrubbed]:443. Giving up. (waiting for circuit)
Jan 14 10:40:45.140 [Warning] Problem bootstrapping. Stuck at 85%: Finishing handshake with first hop. (Socket is not connected [WSAENOTCONN ]; NOROUTE; count 16; recommendation warn)
Jan 14 10:40:46.015 [Warning] Problem bootstrapping. Stuck at 85%: Finishing handshake with first hop. (Socket is not connected [WSAENOTCONN ]; NOROUTE; count 17; recommendation warn)
Jan 14 10:41:07.109 [Warning] Problem bootstrapping. Stuck at 85%: Finishing handshake with first hop. (Socket is not connected [WSAENOTCONN ]; NOROUTE; count 18; recommendation warn)
Jan 14 10:41:09.078 [Warning] Problem bootstrapping. Stuck at 85%: Finishing handshake with first hop. (Socket is not connected [WSAENOTCONN ]; NOROUTE; count 19; recommendation warn)
Jan 14 10:41:28.984 [Warning] Problem bootstrapping. Stuck at 85%: Finishing handshake with first hop. (Socket is not connected [WSAENOTCONN ]; NOROUTE; count 20; recommendation warn)
Jan 14 10:41:31.062 [Warning] Problem bootstrapping. Stuck at 85%: Finishing handshake with first hop. (Socket is not connected [WSAENOTCONN ]; NOROUTE; count 21; recommendation warn)
Jan 14 10:41:49.984 [Warning] Problem bootstrapping. Stuck at 85%: Finishing handshake with first hop. (Socket is not connected [WSAENOTCONN ]; NOROUTE; count 22; recommendation warn)
Jan 14 10:41:53.046 [Warning] Problem bootstrapping. Stuck at 85%: Finishing handshake with first hop. (Socket is not connected [WSAENOTCONN ]; NOROUTE; count 23; recommendation warn)
Jan 14 10:42:10.984 [Warning] Problem bootstrapping. Stuck at 85%: Finishing handshake with first hop. (Socket is not connected [WSAENOTCONN ]; NOROUTE; count 24; recommendation warn)
Jan 14 10:42:14.156 [Warning] Problem bootstrapping. Stuck at 85%: Finishing handshake with first hop. (Socket is not connected [WSAENOTCONN ]; NOROUTE; count 25; recommendation warn)
Jan 14 10:42:31.984 [Warning] Problem bootstrapping. Stuck at 85%: Finishing handshake with first hop. (Socket is not connected [WSAENOTCONN ]; NOROUTE; count 26; recommendation warn)
Jan 14 10:42:36.031 [Warning] Problem bootstrapping. Stuck at 85%: Finishing handshake with first hop. (Socket is not connected [WSAENOTCONN ]; NOROUTE; count 27; recommendation warn)
Jan 14 10:42:59.875 [Warning] Problem bootstrapping. Stuck at 85%: Finishing handshake with first hop. (DONE; DONE; count 28; recommendation warn)
Jan 14 10:42:59.953 [Warning] Problem bootstrapping. Stuck at 85%: Finishing handshake with first hop. (DONE; DONE; count 29; recommendation warn)
Jan 14 10:42:59.953 [Warning] Problem bootstrapping. Stuck at 85%: Finishing handshake with first hop. (DONE; DONE; count 30; recommendation warn)
Jan 14 10:42:59.953 [Warning] Problem bootstrapping. Stuck at 85%: Finishing handshake with first hop. (Socket is not connected [WSAENOTCONN ]; NOROUTE; count 31; recommendation warn)
Jan 14 10:42:59.968 [Warning] Problem bootstrapping. Stuck at 85%: Finishing handshake with first hop. (Socket is not connected [WSAENOTCONN ]; NOROUTE; count 32; recommendation warn)
Jan 14 10:43:00.078 [Warning] Problem bootstrapping. Stuck at 85%: Finishing handshake with first hop. (No route to host [WSAEHOSTUNREACH ]; NOROUTE; count 33; recommendation warn)
Jan 14 10:43:01.093 [Warning] Problem bootstrapping. Stuck at 85%: Finishing handshake with first hop. (No route to host [WSAEHOSTUNREACH ]; NOROUTE; count 34; recommendation warn)
Jan 14 10:43:22.078 [Warning] Problem bootstrapping. Stuck at 85%: Finishing handshake with first hop. (No route to host [WSAEHOSTUNREACH ]; NOROUTE; count 35; recommendation warn)
Jan 14 10:43:23.093 [Warning] Problem bootstrapping. Stuck at 85%: Finishing handshake with first hop. (No route to host [WSAEHOSTUNREACH ]; NOROUTE; count 36; recommendation warn)
Jan 14 10:43:24.078 [Warning] Problem bootstrapping. Stuck at 85%: Finishing handshake with first hop. (No route to host [WSAEHOSTUNREACH ]; NOROUTE; count 37; recommendation warn)
Jan 14 10:43:25.093 [Warning] Problem bootstrapping. Stuck at 85%: Finishing handshake with first hop. (No route to host [WSAEHOSTUNREACH ]; NOROUTE; count 38; recommendation warn)
Jan 14 10:43:26.093 [Warning] Problem bootstrapping. Stuck at 85%: Finishing handshake with first hop. (No route to host [WSAEHOSTUNREACH ]; NOROUTE; count 39; recommendation warn)
Jan 14 10:43:27.093 [Warning] Problem bootstrapping. Stuck at 85%: Finishing handshake with first hop. (No route to host [WSAEHOSTUNREACH ]; NOROUTE; count 40; recommendation warn)

It seems that the handshake bug that was supposed to be solved with the latest stable version has found another way to manifest itself.

comment:2 Changed 9 years ago by nickm

Description: modified (diff)
Milestone: Tor: 0.2.3.x-final

shadowsjack's stuff isn't related to this problem; it's an ssl handshake thing. Does it still occur for you in a recent version? We did some more fixes since January. If not, please open a new ticket.

arma: marking this for 0.2.3.x.

comment:3 Changed 7 years ago by nickm

Milestone: Tor: 0.2.3.x-finalTor: unspecified

comment:4 Changed 7 years ago by nickm

Keywords: tor-client added

comment:5 Changed 7 years ago by nickm

Component: Tor ClientTor

comment:6 Changed 2 years ago by nickm

Cc: arma,Sebastian,nickmarma, Sebastian, nickm
Keywords: bootstrap usability added
Severity: Normal

comment:7 Changed 2 years ago by nickm

Keywords: sponsor8-maybe added
Note: See TracTickets for help on using tickets.