[tor-bugs] #10405 [Tor]: Bug: Tried to open a socket with DisableNetwork set.

Tor Bug Tracker & Wiki blackhole at torproject.org
Mon Dec 23 06:28:07 UTC 2013


#10405: Bug: Tried to open a socket with DisableNetwork set.
------------------------+--------------------------------
     Reporter:  arma    |      Owner:
         Type:  defect  |     Status:  new
     Priority:  normal  |  Milestone:  Tor: 0.2.3.x-final
    Component:  Tor     |    Version:
   Resolution:          |   Keywords:  tor-client
Actual Points:          |  Parent ID:
       Points:          |
------------------------+--------------------------------
Changes (by Sherief):

 * cc: Sherief (added)


Old description:

> {{{
> $ src/or/tor bridge 128.31.0.34:9009 disablenetwork 1 usebridges 1
> Dec 15 04:50:47.533 [notice] Tor v0.2.4.19 (git-e719d05fd296a9dd) running
> on Linux with Libevent 2.0.19-stable and OpenSSL 1.0.1e.
> [...]
> Dec 15 04:50:47.539 [notice] DisableNetwork is set. Tor will not make or
> accept
>  non-control network connections. Shutting down all existing connections.
> [...]
> Dec 15 04:50:48.697 [notice] Bootstrapped 5%: Connecting to directory
> server.
> Dec 15 04:50:48.698 [warn] connection_connect(): Bug: Tried to open a
> socket with DisableNetwork set.
> Dec 15 04:50:48.698 [warn] Problem bootstrapping. Stuck at 5%: Connecting
> to directory server. (Network is unreachable; NOROUTE; count 1;
> recommendation warn)
> }}}
>
> Noticed because I had a bridge configured in my tbb3.0rc1 but TBB had
> failed to work on the last run, so it popped up the "connect or
> configure" dialog box but then it popped up the "Tor failed to establish
> a Tor network connection.\n\nNetwork is unreachable" error box right
> after.

New description:

 {{{
 $ src/or/tor bridge 128.31.0.34:9009 disablenetwork 1 usebridges 1
 Dec 15 04:50:47.533 [notice] Tor v0.2.4.19 (git-e719d05fd296a9dd) running
 on Linux with Libevent 2.0.19-stable and OpenSSL 1.0.1e.
 [...]
 Dec 15 04:50:47.539 [notice] DisableNetwork is set. Tor will not make or
 accept
  non-control network connections. Shutting down all existing connections.
 [...]
 Dec 15 04:50:48.697 [notice] Bootstrapped 5%: Connecting to directory
 server.
 Dec 15 04:50:48.698 [warn] connection_connect(): Bug: Tried to open a
 socket with DisableNetwork set.
 Dec 15 04:50:48.698 [warn] Problem bootstrapping. Stuck at 5%: Connecting
 to directory server. (Network is unreachable; NOROUTE; count 1;
 recommendation warn)
 }}}
 Noticed because I had a bridge configured in my tbb3.0rc1 but TBB had
 failed to work on the last run, so it popped up the "connect or configure"
 dialog box but then it popped up the "Tor failed to establish a Tor
 network connection.\n\nNetwork is unreachable" error box right after.

--

Comment:

 Here is another log from TBB 3.5:

 {{{

 12/22/2013 17:34:09 PM.491 [NOTICE] Bootstrapped 5%: Connecting to
 directory server.
 12/22/2013 17:34:09 PM.494 [WARN] connection_connect(): Bug: Tried to open
 a socket with !DisableNetwork set.
 12/22/2013 17:34:09 PM.494 [WARN] Problem bootstrapping. Stuck at 5%:
 Connecting to directory server. (Network is unreachable [WSAENETUNREACH ];
 NOROUTE; count 1; recommendation warn)
 12/22/2013 17:37:42 PM.286 [WARN] Problem bootstrapping. Stuck at 5%:
 Connecting to directory server. (Network is unreachable [WSAENETUNREACH ];
 NOROUTE; count 2; recommendation warn)
 12/22/2013 17:37:42 PM.288 [WARN] Problem bootstrapping. Stuck at 5%:
 Connecting to directory server. (Network is unreachable [WSAENETUNREACH ];
 NOROUTE; count 3; recommendation warn)
 12/22/2013 17:49:08 PM.699 [WARN] Problem bootstrapping. Stuck at 5%:
 Connecting to directory server. (Network is unreachable [WSAENETUNREACH ];
 NOROUTE; count 4; recommendation warn)
 12/22/2013 17:49:08 PM.702 [WARN] Problem bootstrapping. Stuck at 5%:
 Connecting to directory server. (Network is unreachable [WSAENETUNREACH ];
 NOROUTE; count 5; recommendation warn)
 12/22/2013 17:49:08 PM.707 [WARN] Problem bootstrapping. Stuck at 5%:
 Connecting to directory server. (Network is unreachable [WSAENETUNREACH ];
 NOROUTE; count 6; recommendation warn)
 12/22/2013 17:49:42 PM.911 [NOTICE] !DisableNetwork is set. Tor will not
 make or accept non-control network connections. Shutting down all existing
 connections.
 12/22/2013 17:49:42 PM.912 [WARN] Problem bootstrapping. Stuck at 5%:
 Connecting to directory server. (Network is unreachable [WSAENETUNREACH ];
 NOROUTE; count 7; recommendation warn)
 12/22/2013 17:49:50 PM.134 [WARN] Problem bootstrapping. Stuck at 5%:
 Connecting to directory server. (Network is unreachable [WSAENETUNREACH ];
 NOROUTE; count 8; recommendation warn)
 12/22/2013 17:49:50 PM.137 [WARN] Problem bootstrapping. Stuck at 5%:
 Connecting to directory server. (Network is unreachable [WSAENETUNREACH ];
 NOROUTE; count 9; recommendation warn)
 12/22/2013 17:49:50 PM.139 [NOTICE] !DisableNetwork is set. Tor will not
 make or accept non-control network connections. Shutting down all existing
 connections.
 12/22/2013 17:49:50 PM.139 [NOTICE] !DisableNetwork is set. Tor will not
 make or accept non-control network connections. Shutting down all existing
 connections.
 12/22/2013 17:49:50 PM.139 [NOTICE] Opening Socks listener on
 127.0.0.1:9150
 12/22/2013 17:49:50 PM.141 [NOTICE] Bootstrapped 10%: Finishing handshake
 with directory server.
 12/22/2013 17:49:50 PM.143 [WARN] Problem bootstrapping. Stuck at 10%:
 Finishing handshake with directory server. (DONE; DONE; count 10;
 recommendation warn)
 12/22/2013 17:49:50 PM.144 [WARN] 1 connections have failed:
 12/22/2013 17:49:50 PM.145 [WARN]  1 connections died in state handshaking
 (TLS) with SSL state SSLv3 read finished A in HANDSHAKE
 12/22/2013 17:50:04 PM.705 [WARN] Problem bootstrapping. Stuck at 10%:
 Finishing handshake with directory server. (Connection timed out
 [WSAETIMEDOUT ]; TIMEOUT; count 11; recommendation warn)
 12/22/2013 17:50:04 PM.705 [WARN] 1 connections have failed:
 12/22/2013 17:50:04 PM.706 [WARN]  1 connections died in state handshaking
 (TLS) with SSL state SSLv3 read finished A in HANDSHAKE
 12/22/2013 17:50:08 PM.600 [WARN] Problem bootstrapping. Stuck at 10%:
 Finishing handshake with directory server. (Connection timed out
 [WSAETIMEDOUT ]; TIMEOUT; count 12; recommendation warn)
 12/22/2013 17:50:08 PM.600 [WARN] 2 connections have failed:
 12/22/2013 17:50:08 PM.610 [WARN]  1 connections died in state
 connect()ing with SSL state (No SSL object)
 12/22/2013 17:50:08 PM.620 [WARN]  1 connections died in state handshaking
 (TLS) with SSL state SSLv3 read finished A in HANDSHAKE
 12/22/2013 17:50:08 PM.640 [WARN] Problem bootstrapping. Stuck at 10%:
 Finishing handshake with directory server. (Connection timed out
 [WSAETIMEDOUT ]; TIMEOUT; count 13; recommendation warn)
 12/22/2013 17:50:08 PM.640 [WARN] 3 connections have failed:
 12/22/2013 17:50:08 PM.650 [WARN]  2 connections died in state
 connect()ing with SSL state (No SSL object)
 12/22/2013 17:50:08 PM.650 [WARN]  1 connections died in state handshaking
 (TLS) with SSL state SSLv3 read finished A in HANDSHAKE
 12/22/2013 17:50:08 PM.670 [NOTICE] Ignoring directory request, since no
 bridge nodes are available yet.
 12/22/2013 17:50:18 PM.877 [WARN] Problem bootstrapping. Stuck at 10%:
 Finishing handshake with directory server. (DONE; DONE; count 14;
 recommendation warn)
 12/22/2013 17:50:18 PM.878 [WARN] 5 connections have failed:
 12/22/2013 17:50:18 PM.879 [WARN]  3 connections died in state
 connect()ing with SSL state (No SSL object)
 12/22/2013 17:50:18 PM.880 [WARN]  2 connections died in state handshaking
 (TLS) with SSL state SSLv3 read finished A in HANDSHAKE

 }}}

 Also, the user said he disabled his antivirus and firewall.

--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/10405#comment:1>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online


More information about the tor-bugs mailing list