HelloZeroNet / ZeroNet

ZeroNet - Decentralized websites using Bitcoin crypto and BitTorrent network
https://zeronet.io
Other
18.39k stars 2.27k forks source link

I can not start tor #1110

Open kotenok2000 opened 7 years ago

kotenok2000 commented 7 years ago

TorManager Starting self-bundled Tor, due to Tor proxy port 127.0.0.1:9050 check error: 'ascii' codec can't decode byte 0xcf in position 28: ordinal not in range(128) [2017-09-05 14:56:26,697] INFO TorManager Starting Tor client tools/tor/tor.exe... [2017-09-05 14:56:27,200] INFO TorManager Connecting to Tor Controller 127.0.0.1:49051 [2017-09-05 14:56:28,203] ERROR TorManager Error starting Tor client: UnicodeDecodeError: 'ascii' codec can't decode byte 0xcf in position 28: ordinal not in range(128) in TorManager.py line 90 > TorManager.py line 154 > TorManager.py line 190 debug.log.txt

bannychen1983 commented 7 years ago

contact tor and they will help you

skwerlman commented 7 years ago

@bannychen1983 this is not a problem with tor

unsystemizer commented 7 years ago

Google it. Try to set locale to UTF8

kotenok2000 commented 7 years ago

I am russian.

theAkito commented 7 years ago

Same problem here...

metaver5o commented 7 years ago

Hi guys, talking about TOR on Docker zeronet is working fine, tor-browser working fine the problem is opening zeronet on localhost with tor-browser. I have both zeronet and tor-browser running under docker when inspect the zeronet container, I have the IP 172.17.0.6 (docker containers IP range) I can ping this IP from my localhost, from zeronet container, from tor-browser container I have added its ip on about:preferences#advanced under settings I have "allowed scripts globally" in the tor browser interface upper left still getting: Forbidden Invalid host: 172.17.0.6:43110 (which is better error than the one which follows) docker ports are fine, 127.0.0.1:43110->43110/tcp
if trying http://127.0.0.1:43110/ or http://localhost:43110/, I get: Unable to connect: Firefox can’t establish a connection to the server at 127.0.0.1:43110. since I access zeronet from 127.0.0.1 using chrome and firefox, and tor is also browsing .onion addresses fine, any hint on what I am missing here? Thanks, Marco

theAkito commented 7 years ago
[20:36:55] TorManager Connecting to Tor Controller 127.0.0.1:9051
[20:36:55] TorManager Tor controller connect error: error: [Errno 111] Connection refused in TorManager.py line 165 > socket.py line 342
[20:36:55] TorManager Starting self-bundled Tor, due to Tor proxy port 127.0.0.1:9050 check error: No connection
[20:36:55] - Creating UiServer....
[20:36:55] - Removing old SSL certs...
[20:36:55] - Starting servers....
slrslr commented 3 years ago

errors mentioned by theAkito may be solved by checking Tor log, try: journalctl -xeb -u tor; (q = quit) systemctl restart tor||service tor restart

some other things to try: sudo sed -i "s|#ControlPort|ControlPort|g" /etc/tor/torrc;sudo sed -i "s|#CookieAuthentication|CookieAuthentication|g" /etc/tor/torrc;sudo usermod -a -G debian-tor $(whoami) 2>/dev/null||sudo usermod -a -G tor $(whoami) 2>/dev/null;

and restart tor service