Opened 6 years ago

Closed 3 years ago

Last modified 2 years ago

#11776 closed defect (invalid)

Could not connect to tor control port

Reported by: jim197 Owned by:
Priority: High Milestone:
Component: Applications/Tor Browser Version:
Severity: Major Keywords:
Cc: mcs, brade Actual Points:
Parent ID: Points:
Reviewer: Sponsor:

Description (last modified by mttp)

I have tried a number of things as per Matt Pagan's advice.
Time is accurate
Have disabled firewall
Have disabled anti virus
Removed and reinstalled TOR Tor Browser

I always get the same message
could not connect to tor control port

I use windows vista and firefox

Child Tickets

Change History (14)

comment:1 Changed 6 years ago by mttp

Component: - Select a componentTor bundles/installation
Description: modified (diff)
Owner: set to erinn
Summary: TOR DOES NOT CONNECTCould not connect to tor control port

comment:2 Changed 6 years ago by mttp

Owner: erinn deleted
Status: newassigned

Tor Browser is saved on the Desktop.

comment:3 Changed 6 years ago by mcs

That message is probably this one from Tor Launcher:
torlauncher.tor_controlconn_failed=Could not connect to Tor control port.

It is displayed if Tor Launcher is unable to connect to the control port within 30 seconds after starting tor. Maybe tor is taking a really long time to start up for some reason? Running from a Terminal window and capturing the output generated would be helpful:

(start Terminal)
cd ~/Desktop/TorBrowser.app (or whatever path is correct)
./Contents/MacOS/TorBrowser.app/Contents/MacOS/firefox

comment:4 Changed 6 years ago by mcs

Cc: mcs brade added

comment:5 Changed 5 years ago by erinn

Keywords: needs-triage added

comment:6 Changed 5 years ago by erinn

Component: Tor bundles/installationTor Browser
Keywords: needs-triage removed

comment:7 in reply to:  description ; Changed 5 years ago by arma

Replying to jim197:

I have tried a number of things as per Matt Pagan's advice.
Have disabled firewall
Have disabled anti virus

My guess would be that there's still a firewall / antivirus thing running, that's preventing Tor Launcher from talking to Tor.

(mcs: your instructions are for osx but the user is on vista.)

comment:8 in reply to:  7 Changed 5 years ago by mcs

Replying to arma:

My guess would be that there's still a firewall / antivirus thing running, that's preventing Tor Launcher from talking to Tor.

(mcs: your instructions are for osx but the user is on vista.)

Oops. Sorry about that!

jim197 (original poster): Is this still an issue? Does it still occur with Tor Browser 4.0?

To capture some browser log messages on Vista with Tor Browser 4.0:

  1. Start a Command Prompt (cmd.exe) and cd to Tor Browser\Browser (the folder that contains firefox.exe).
  1. At the command prompt, type: firefox -console -jsconsole

A new console window should be opened as the browser starts up. Copy all of the log lines that are output there and paste them into this ticket.

If nothing interesting is produced, we may need to have you edit your browser's prefs.js file to enable more Torbutton and Tor Launcher logging.

comment:9 Changed 5 years ago by ukrainer

I have the same problem. Windows 7 Ultimate 64-bit. Antivirus and firewall are disabled.

The only log line which appears after performing "firefox -console -jsconsole":
Failed to find nss3 in installed directory, checking system paths.

But this file (nss3.dll) exist in the Tor directory...

Last edited 5 years ago by ukrainer (previous) (diff)

comment:10 Changed 5 years ago by 1793anupam

This is the problem of anti-virus.
Even if you uninstall the anti-virus completely, some kernel or core files still remain that creates this problem. Try the uninstaller setups of corresponding anti-virus (like Norton removal tool for Norton AV).

comment:11 Changed 4 years ago by uedadayon

Severity: Normal

HELP ME.
I have the same problem with Windows7 Professional.
i was using TOR browser for one year. Now my Firefox is 38.0.0.0 and TOR brower version is 5.5.5

And last week my Windows closed with Blue screen.

Since then my TOR browser says "Could not connect to Tor control port". I don't change anything about my anti-virus (ESET) settings and any connection settings.

my torrc file contains
# This file was generated by Tor; if you edit it, comments will not be preserved
# The old torrc file was renamed to torrc.orig.1 or similar, and Tor will ignore it
Bridge obfs4 194.132.208.50:34522 4E663E0B3CA2F67C17739E1B0DBABFF50247ED98 cert=OObyLZp2oMd51TkgDoNbwdohkZ/aBEJIXo1sp5VNYiT2TV6S07jEurx29mj5j+gSwmL8MQ iat-mode=0
DataDirectory L:\Tor Browser5\Browser\TorBrowser\Data\Tor
GeoIPFile L:\Tor Browser5\Browser\TorBrowser\Data\Tor\geoip
GeoIPv6File L:\Tor Browser5\Browser\TorBrowser\Data\Tor\geoip6
HiddenServiceStatistics 0
UseBridges 1

netstat says
TCP 127.0.0.1:3659 admin-PC:3660 ESTABLISHED [firefox.exe]

TCP 127.0.0.1:3660 admin-PC:3659 ESTABLISHED [firefox.exe]
TCP 127.0.0.1:3661 admin-PC:9150 ESTABLISHED [firefox.exe]
TCP 127.0.0.1:3662 admin-PC:3663 ESTABLISHED [tor.exe]
TCP 127.0.0.1:3663 admin-PC:3662 ESTABLISHED [tor.exe]
TCP 127.0.0.1:3664 admin-PC:9151 ESTABLISHED [firefox.exe]
TCP 127.0.0.1:9150 admin-PC:3661 ESTABLISHED [tor.exe]
TCP 127.0.0.1:9151 admin-PC:3664 ESTABLISHED [tor.exe]

comment:12 Changed 4 years ago by uedadayon

Priority: MediumHigh
Severity: NormalMajor

I got logs as below (sorry for many lines)... "DisableNetwork is set"

How can i fix it ?

May 15 05:20:58.000 [notice] Tor 0.2.7.6 (git-7a489a6389110120) opening new log file.
May 15 05:20:58.806 [notice] Tor v0.2.7.6 (git-7a489a6389110120) running on Windows 7 with Libevent 2.0.22-stable, OpenSSL 1.0.1s and Zlib 1.2.8.
May 15 05:20:58.806 [notice] Tor can't help you if you use it wrong! Learn how to be safe at https://www.torproject.org/download/download#warning
May 15 05:20:58.806 [notice] Read configuration file "C:\Users\admin\Desktop\Tor Browser\Browser\TorBrowser\Data\Tor\torrc-defaults".
May 15 05:20:58.806 [notice] Read configuration file "C:\Users\admin\Desktop\Tor Browser\Browser\TorBrowser\Data\Tor\torrc".
May 15 05:20:58.806 [notice] Opening Control listener on 127.0.0.1:9151
May 15 05:20:58.806 [notice] DisableNetwork is set. Tor will not make or accept non-control network connections. Shutting down all existing connections.
May 15 05:20:58.000 [warn] Your log may contain sensitive information - you're logging more than "notice". Don't log unless it serves an important reason. Overwrite the log afterwards.
May 15 05:20:58.000 [debug] tor_disable_debugger_attach(): Attemping to disable debugger attachment to Tor for unprivileged users.
May 15 05:20:58.000 [info] tor_lockfile_lock(): Locking "C:\Users\admin\Desktop\Tor Browser\Browser\TorBrowser\Data\Tor\lock"
May 15 05:20:58.000 [debug] tor_open_cloexec(): Opening C:\Users\admin\Desktop\Tor Browser\Browser\TorBrowser\Data\Tor\lock with flags 302
May 15 05:20:58.000 [debug] parse_dir_authority_line(): Trusted 100 dirserver at 128.31.0.39:9131 (9695)
May 15 05:20:58.000 [debug] parse_dir_authority_line(): Trusted 100 dirserver at 86.59.21.38:80 (847B)
May 15 05:20:58.000 [debug] parse_dir_authority_line(): Trusted 100 dirserver at 194.109.206.212:80 (7EA6)
May 15 05:20:58.000 [debug] parse_dir_authority_line(): Trusted 16 dirserver at 82.94.251.203:80 (4A0C)
May 15 05:20:58.000 [debug] parse_dir_authority_line(): Trusted 100 dirserver at 131.188.40.189:80 (F204)
May 15 05:20:58.000 [debug] parse_dir_authority_line(): Trusted 100 dirserver at 193.23.244.244:80 (7BE6)
May 15 05:20:58.000 [debug] parse_dir_authority_line(): Trusted 100 dirserver at 208.83.223.34:443 (0AD3)
May 15 05:20:58.000 [debug] parse_dir_authority_line(): Trusted 100 dirserver at 171.25.193.9:443 (BD6A)
May 15 05:20:58.000 [debug] parse_dir_authority_line(): Trusted 100 dirserver at 154.35.175.225:80 (CF6D)
May 15 05:20:58.000 [debug] parse_dir_authority_line(): Trusted 100 dirserver at 199.254.238.52:80 (74A9)
May 15 05:20:58.000 [debug] file_status(): stat()ing C:\Users\admin\Desktop\Tor Browser\Browser\TorBrowser\Data\Tor\state
May 15 05:20:58.000 [debug] tor_open_cloexec(): Opening C:\Users\admin\Desktop\Tor Browser\Browser\TorBrowser\Data\Tor\state with flags 4000
May 15 05:20:58.000 [info] or_state_load(): Loaded state from "C:\Users\admin\Desktop\Tor Browser\Browser\TorBrowser\Data\Tor\state"
May 15 05:20:58.000 [info] circuit_build_times_parse_state(): Adding 0 timeouts.
May 15 05:20:58.000 [info] circuit_build_times_parse_state(): Loaded 0/0 values from 0 lines in circuit time histogram
May 15 05:20:58.000 [debug] tor_open_cloexec(): Opening C:\Users\admin\Desktop\Tor Browser\Browser\TorBrowser\Data\Tor\router-stability with flags 4000
May 15 05:20:58.000 [info] read_file_to_str(): Could not open "C:\Users\admin\Desktop\Tor Browser\Browser\TorBrowser\Data\Tor\router-stability": No such file or directory
May 15 05:20:58.000 [debug] tor_open_cloexec(): Opening C:\Users\admin\Desktop\Tor Browser\Browser\TorBrowser\Data\Tor\control_auth_cookie.tmp with flags 8301
May 15 05:20:58.000 [debug] file_status(): stat()ing C:\Users\admin\Desktop\Tor Browser\Browser\TorBrowser\Data\Tor\control_auth_cookie
May 15 05:20:58.000 [debug] tor_rename(): Renaming C:\Users\admin\Desktop\Tor Browser\Browser\TorBrowser\Data\Tor\control_auth_cookie.tmp to C:\Users\admin\Desktop\Tor Browser\Browser\TorBrowser\Data\Tor\control_auth_cookie
May 15 05:20:58.000 [info] init_cookie_authentication(): Generated auth cookie file in '"C:
Users
admin
Desktop
Tor Browser
Browser
TorBrowser
Data
Tor
control_auth_cookie"'.
May 15 05:20:58.000 [info] tor_process_monitor_new(): Successfully opened handle to process 3464; monitoring it.
May 15 05:20:58.000 [info] cell_ewma_set_scale_factor(): Disabled cell_ewma algorithm because of value in Default value
May 15 05:20:58.000 [notice] Parsing GEOIP IPv4 file C:\Users\admin\Desktop\Tor Browser\Browser\TorBrowser\Data\Tor\geoip.
May 15 05:20:58.000 [notice] Parsing GEOIP IPv6 file C:\Users\admin\Desktop\Tor Browser\Browser\TorBrowser\Data\Tor\geoip6.
May 15 05:20:58.000 [info] crypto_global_init(): NOT using OpenSSL engine support.
May 15 05:20:58.000 [info] evaluate_evp_for_aes(): This version of OpenSSL has a known-good EVP counter-mode implementation. Using it.
May 15 05:20:59.000 [notice] Bootstrapped 0%: Starting
May 15 05:20:59.000 [debug] tor_open_cloexec(): Opening C:\Users\admin\Desktop\Tor Browser\Browser\TorBrowser\Data\Tor\cached-certs with flags 4000
May 15 05:20:59.000 [info] read_file_to_str(): Could not open "C:\Users\admin\Desktop\Tor Browser\Browser\TorBrowser\Data\Tor\cached-certs": No such file or directory
May 15 05:20:59.000 [debug] tor_open_cloexec(): Opening C:\Users\admin\Desktop\Tor Browser\Browser\TorBrowser\Data\Tor\cached-consensus with flags 4000
May 15 05:20:59.000 [info] read_file_to_str(): Could not open "C:\Users\admin\Desktop\Tor Browser\Browser\TorBrowser\Data\Tor\cached-consensus": No such file or directory
May 15 05:20:59.000 [debug] tor_open_cloexec(): Opening C:\Users\admin\Desktop\Tor Browser\Browser\TorBrowser\Data\Tor\unverified-consensus with flags 4000
May 15 05:20:59.000 [info] read_file_to_str(): Could not open "C:\Users\admin\Desktop\Tor Browser\Browser\TorBrowser\Data\Tor\unverified-consensus": No such file or directory
May 15 05:20:59.000 [debug] tor_open_cloexec(): Opening C:\Users\admin\Desktop\Tor Browser\Browser\TorBrowser\Data\Tor\cached-microdesc-consensus with flags 4000
May 15 05:20:59.000 [info] read_file_to_str(): Could not open "C:\Users\admin\Desktop\Tor Browser\Browser\TorBrowser\Data\Tor\cached-microdesc-consensus": No such file or directory
May 15 05:20:59.000 [debug] tor_open_cloexec(): Opening C:\Users\admin\Desktop\Tor Browser\Browser\TorBrowser\Data\Tor\unverified-microdesc-consensus with flags 4000
May 15 05:20:59.000 [info] read_file_to_str(): Could not open "C:\Users\admin\Desktop\Tor Browser\Browser\TorBrowser\Data\Tor\unverified-microdesc-consensus": No such file or directory
May 15 05:20:59.000 [info] tor_mmap_file(): Couldn't mmap file "C:\Users\admin\Desktop\Tor Browser\Browser\TorBrowser\Data\Tor\cached-microdescs": 指定されたファイルが見つかりません。

May 15 05:20:59.000 [debug] tor_open_cloexec(): Opening C:\Users\admin\Desktop\Tor Browser\Browser\TorBrowser\Data\Tor\cached-microdescs.new with flags 4000
May 15 05:20:59.000 [info] read_file_to_str(): Could not open "C:\Users\admin\Desktop\Tor Browser\Browser\TorBrowser\Data\Tor\cached-microdescs.new": No such file or directory
May 15 05:20:59.000 [info] microdesc_cache_reload(): Reloaded microdescriptor cache. Found 0 descriptors.
May 15 05:20:59.000 [info] tor_mmap_file(): Couldn't mmap file "C:\Users\admin\Desktop\Tor Browser\Browser\TorBrowser\Data\Tor\cached-descriptors": 指定されたファイルが見つかりません。

May 15 05:20:59.000 [debug] file_status(): stat()ing C:\Users\admin\Desktop\Tor Browser\Browser\TorBrowser\Data\Tor\cached-descriptors.new
May 15 05:20:59.000 [info] tor_mmap_file(): Couldn't mmap file "C:\Users\admin\Desktop\Tor Browser\Browser\TorBrowser\Data\Tor\cached-extrainfo": 指定されたファイルが見つかりません。

May 15 05:20:59.000 [debug] file_status(): stat()ing C:\Users\admin\Desktop\Tor Browser\Browser\TorBrowser\Data\Tor\cached-extrainfo.new
May 15 05:20:59.000 [info] should_delay_dir_fetches(): Delaying dir fetches (DisableNetwork is set)
May 15 05:20:59.000 [notice] Delaying directory fetches: DisableNetwork is set.
May 15 05:20:59.000 [info] I learned some more directory information, but not enough to build a circuit: DisableNetwork is set.
May 15 05:21:00.000 [info] should_delay_dir_fetches(): Delaying dir fetches (DisableNetwork is set)
May 15 05:21:00.000 [info] should_delay_dir_fetches(): Delaying dir fetches (DisableNetwork is set)
May 15 05:21:00.000 [info] should_delay_dir_fetches(): Delaying dir fetches (DisableNetwork is set)
May 15 05:21:00.000 [debug] tor_open_cloexec(): Opening C:\Users\admin\Desktop\Tor Browser\Browser\TorBrowser\Data\Tor\state.tmp with flags 4301
May 15 05:21:00.000 [debug] file_status(): stat()ing C:\Users\admin\Desktop\Tor Browser\Browser\TorBrowser\Data\Tor\state
May 15 05:21:00.000 [debug] tor_rename(): Renaming C:\Users\admin\Desktop\Tor Browser\Browser\TorBrowser\Data\Tor\state.tmp to C:\Users\admin\Desktop\Tor Browser\Browser\TorBrowser\Data\Tor\state
May 15 05:21:00.000 [info] or_state_save(): Saved state to "C:\Users\admin\Desktop\Tor Browser\Browser\TorBrowser\Data\Tor\state"
May 15 05:21:01.000 [info] should_delay_dir_fetches(): Delaying dir fetches (DisableNetwork is set)
May 15 05:21:01.000 [info] should_delay_dir_fetches(): Delaying dir fetches (DisableNetwork is set)
May 15 05:21:01.000 [info] should_delay_dir_fetches(): Delaying dir fetches (DisableNetwork is set)
May 15 05:21:02.000 [info] should_delay_dir_fetches(): Delaying dir fetches (DisableNetwork is set)
.
.
.
.

Japanese message says "Can't find file"

comment:13 Changed 4 years ago by uedadayon

I changed all of my network settings and now it's working.
I don't know what's wrong but network setting would be caused.

thanks.

comment:14 Changed 3 years ago by bugzilla

Resolution: invalid
Status: assignedclosed

Could not connect to tor control port

Try better to connect to tor control port on Windows. (Start to learn how fw and av work.)

Note: See TracTickets for help on using tickets.