Opened 4 years ago

Last modified 2 years ago

#16294 new defect

Unable to bootstrap when no relays meet criteria; logging messages unhelpful

Reported by: atagar Owned by:
Priority: Low Milestone: Tor: unspecified
Component: Core Tor/Tor Version:
Severity: Normal Keywords: tor-client, bootstrap, logging
Cc: Actual Points:
Parent ID: Points:
Reviewer: Sponsor:

Description

Very minor thing but when tor is unable to create a circuit that meets the torrc's criteria tor fails to bootstrap in a confusing way. For example, stem's tutorial demos exiting through Russia but the tor network doesn't have any Russian exits right now. The result is that tor bootstrapping hangs at 45% ("Asking for relay descriptors")...

torrc:

ExitNodes {ru}

tor output:

Jun 04 08:56:59.794 [notice] Tor v0.2.7.1-alpha-dev (git-d5e4a6343694574c) running on Linux with Libevent 2.0.16-stable, OpenSSL 1.0.1 and Zlib 1.2.3.4.
Jun 04 08:56:59.794 [notice] Tor can't help you if you use it wrong! Learn how to be safe at https://www.torproject.org/download/download#warning
Jun 04 08:56:59.794 [notice] This version is not a stable Tor release. Expect more bugs than usual.
Jun 04 08:56:59.802 [notice] Opening Socks listener on 127.0.0.1:7000
Jun 04 08:56:59.000 [warn] Failed to open GEOIP file /usr/local/share/tor/geoip.  We've been configured to use (or avoid) nodes in certain countries, and we need GEOIP information to figure out which ones they are.
Jun 04 08:56:59.000 [warn] Failed to open GEOIP file /usr/local/share/tor/geoip6.  We've been configured to use (or avoid) nodes in certain countries, and we need GEOIP information to figure out which ones they are.
Jun 04 08:56:59.000 [notice] Bootstrapped 0%: Starting
Jun 04 08:57:02.000 [notice] Bootstrapped 45%: Asking for relay descriptors

Rather than just hang we should emit a message saying what's up. Maybe terminate too.

Child Tickets

Change History (5)

comment:1 Changed 4 years ago by nickm

Milestone: Tor: 0.2.???

comment:2 Changed 3 years ago by teor

Milestone: Tor: 0.2.???Tor: 0.3.???

Milestone renamed

comment:3 Changed 3 years ago by nickm

Keywords: tor-03-unspecified-201612 added
Milestone: Tor: 0.3.???Tor: unspecified

Finally admitting that 0.3.??? was a euphemism for Tor: unspecified all along.

comment:4 Changed 2 years ago by nickm

Keywords: tor-03-unspecified-201612 removed

Remove an old triaging keyword.

comment:5 Changed 2 years ago by nickm

Keywords: tor-client bootstrap logging added
Severity: Normal
Summary: Unable to bootstrap when no relays meet criteriaUnable to bootstrap when no relays meet criteria; logging messages unhelpful
Note: See TracTickets for help on using tickets.