You are not logged in.

#1 2015-06-11 04:10:17

Vahids
Member
From: Iran
Registered: 2014-11-07
Posts: 27

[SOLVED] TOR Stock on Opening Socks listener on 127.0.0.1:9050

I installed tor and change /var/lib/tor chown to my user (vahid) and run tor:

[vahid@Laptop ~]$ tor
Jun 11 08:36:04.983 [notice] Tor v0.2.6.8 (git-5c8440b13bde6c88) running on Linux with Libevent 2.0.22-stable, OpenSSL 1.0.2a and Zlib 1.2.8.
Jun 11 08:36:04.983 [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 11 08:36:04.983 [notice] Read configuration file "/etc/tor/torrc".
Jun 11 08:36:04.988 [notice] Opening Socks listener on 127.0.0.1:9050

Last edited by Vahids (2015-06-11 10:49:29)

Offline

#2 2015-06-11 04:14:15

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,601

Re: [SOLVED] TOR Stock on Opening Socks listener on 127.0.0.1:9050

And?
Is there a question, or is this just an assertion?


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

#3 2015-06-11 04:25:31

Vahids
Member
From: Iran
Registered: 2014-11-07
Posts: 27

Re: [SOLVED] TOR Stock on Opening Socks listener on 127.0.0.1:9050

It's not working. tor not started. just this 3 lines. It should connect to bridges and learn circuit and ...

Offline

#4 2015-06-11 04:50:38

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,601

Re: [SOLVED] TOR Stock on Opening Socks listener on 127.0.0.1:9050

Why are you starting it from the command line?  Did it complain about your user?
Are you following a guide?   Our wiki?

I ask because this is a new machine and had not been using tor yet.  This thread prompted me to install it.  Now, I appear to be in Germany.
All I did was install tor and enable and start the service in accordance with the wiki and it is working.

Jun 10 21:40:17 turing mpd[845]: player: played "Jimmy Hendrix - Hey Jo.mp3"
Jun 10 21:41:42 turing polkitd[528]: Registered Authentication Agent for unix-process:4847:8473986 (system bus name :1.47 [/usr/bin/pkttyagent --notify-fd 5 --fallback], object path /org/freedesktop/PolicyKit1/A
Jun 10 21:41:48 turing polkitd[528]: Operator of unix-process:4847:8473986 successfully authenticated as unix-user:ewaller to gain TEMPORARY authorization for action org.freedesktop.systemd1.manage-units for sys
Jun 10 21:41:48 turing systemd[1]: Started Anonymizing Overlay Network.
Jun 10 21:41:48 turing systemd[1]: Starting Anonymizing Overlay Network...
Jun 10 21:41:48 turing tor[4855]: Jun 10 21:41:48.143 [notice] Tor v0.2.6.8 (git-5c8440b13bde6c88) running on Linux with Libevent 2.0.22-stable, OpenSSL 1.0.2a and Zlib 1.2.8.
Jun 10 21:41:48 turing tor[4855]: Jun 10 21:41:48.143 [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 10 21:41:48 turing tor[4855]: Jun 10 21:41:48.143 [notice] Read configuration file "/etc/tor/torrc".
Jun 10 21:41:48 turing tor[4855]: Jun 10 21:41:48.147 [notice] Opening Socks listener on 127.0.0.1:9050
Jun 10 21:41:48 turing Tor[4855]: Tor v0.2.6.8 (git-5c8440b13bde6c88) running on Linux with Libevent 2.0.22-stable, OpenSSL 1.0.2a and Zlib 1.2.8.
Jun 10 21:41:48 turing Tor[4855]: Tor can't help you if you use it wrong! Learn how to be safe at https://www.torproject.org/download/download#warning
Jun 10 21:41:48 turing Tor[4855]: Read configuration file "/etc/tor/torrc".
Jun 10 21:41:48 turing Tor[4855]: Opening Socks listener on 127.0.0.1:9050
Jun 10 21:41:48 turing Tor[4855]: Parsing GEOIP IPv4 file /usr/share/tor/geoip.
Jun 10 21:41:48 turing polkitd[528]: Unregistered Authentication Agent for unix-process:4847:8473986 (system bus name :1.47, object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locale en_US.UTF-8) (disc
Jun 10 21:41:48 turing Tor[4855]: Parsing GEOIP IPv6 file /usr/share/tor/geoip6.
Jun 10 21:41:48 turing Tor[4855]: Bootstrapped 0%: Starting
Jun 10 21:41:49 turing Tor[4855]: Bootstrapped 5%: Connecting to directory server
Jun 10 21:41:49 turing Tor[4855]: Bootstrapped 10%: Finishing handshake with directory server
Jun 10 21:41:50 turing Tor[4855]: Bootstrapped 15%: Establishing an encrypted directory connection
Jun 10 21:41:50 turing Tor[4855]: Bootstrapped 20%: Asking for networkstatus consensus
Jun 10 21:41:51 turing Tor[4855]: Bootstrapped 25%: Loading networkstatus consensus
Jun 10 21:41:53 turing Tor[4855]: I learned some more directory information, but not enough to build a circuit: We have no usable consensus.
Jun 10 21:41:54 turing Tor[4855]: Bootstrapped 40%: Loading authority key certs
Jun 10 21:41:55 turing Tor[4855]: Bootstrapped 45%: Asking for relay descriptors
Jun 10 21:41:55 turing Tor[4855]: I learned some more directory information, but not enough to build a circuit: We need more microdescriptors: we have 0/6561, and can only build 0% of likely paths. (We have 0% o
Jun 10 21:41:55 turing Tor[4855]: Bootstrapped 50%: Loading relay descriptors
Jun 10 21:41:56 turing Tor[4855]: Bootstrapped 57%: Loading relay descriptors
Jun 10 21:41:57 turing Tor[4855]: Bootstrapped 65%: Loading relay descriptors
Jun 10 21:41:58 turing Tor[4855]: Bootstrapped 71%: Loading relay descriptors
Jun 10 21:41:59 turing Tor[4855]: Bootstrapped 80%: Connecting to the Tor network
Jun 10 21:41:59 turing Tor[4855]: Bootstrapped 90%: Establishing a Tor circuit
Jun 10 21:41:59 turing Tor[4855]: Tor has successfully opened a circuit. Looks like client functionality is working.
Jun 10 21:41:59 turing Tor[4855]: Bootstrapped 100%: Done

Last edited by ewaller (2015-06-11 04:52:44)


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

#5 2015-06-11 05:47:52

Vahids
Member
From: Iran
Registered: 2014-11-07
Posts: 27

Re: [SOLVED] TOR Stock on Opening Socks listener on 127.0.0.1:9050

I flowed this wiki to install:
https://wiki.archlinux.org/index.php/Tor#Installation

I didn't have any issue in Ubuntu and Debian and Fedora.
I just installed and run tor command in terminal.

I just installed with pacman -S tor
and run from terminal!

but show me this error:

Jun 11 07:54:25.402 [notice] Tor v0.2.6.8 (git-5c8440b13bde6c88) running on Linux with Libevent 2.0.22-stable, OpenSSL 1.0.2a and Zlib 1.2.8.
Jun 11 07:54:25.403 [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 11 07:54:25.403 [notice] Read configuration file "/etc/tor/torrc".
Jun 11 07:54:25.409 [notice] Opening Socks listener on 127.0.0.1:9050
Jun 11 07:54:25.409 [warn] /var/lib/tor is not owned by this user (vahid, 1000) but by tor (43). Perhaps you are running Tor as the wrong user?
Jun 11 07:54:25.409 [warn] Failed to parse/validate config: Couldn't access/create private data directory "/var/lib/tor"
Jun 11 07:54:25.409 [err] Reading config failed--see warnings above.

So I change chown vahid /var/lib/tor
and run again tor, but this time noting happened:

[vahid@Laptop ~]$ tor
Jun 11 10:17:22.451 [notice] Tor v0.2.6.8 (git-5c8440b13bde6c88) running on Linux with Libevent 2.0.22-stable, OpenSSL 1.0.2a and Zlib 1.2.8.
Jun 11 10:17:22.451 [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 11 10:17:22.451 [notice] Read configuration file "/etc/tor/torrc".
Jun 11 10:17:22.457 [notice] Opening Socks listener on 127.0.0.1:9050
[vahid@Laptop ~]$ 

Offline

#6 2015-06-11 05:54:33

Vahids
Member
From: Iran
Registered: 2014-11-07
Posts: 27

Re: [SOLVED] TOR Stock on Opening Socks listener on 127.0.0.1:9050

I chekced log by $ journalctl -af and found out :

Could not open "/var/lib/tor/state": Permission denied
chown vahid /var/lib/tor/state

seems like It's fixed. But cause of censorship I think first time gone take some time to connect to tor.
I will mark topic to SOLVED if it's worked.

Thanks for replay.

Last edited by Vahids (2015-06-11 05:55:39)

Offline

#7 2015-06-11 08:22:31

Spider.007
Member
Registered: 2004-06-20
Posts: 1,176

Re: [SOLVED] TOR Stock on Opening Socks listener on 127.0.0.1:9050

tor is a service, which you shouldn't run as a user. I propose you execute these commands to get your install back to the original state:

sudo rm -R /var/lib/tor/*; sudo chown tor: /var/lib/tor/

. Now start tor properly:

sudo systemctl start tor

If you have any issues, post them here; this should work fine as confirmed by ewaller

Last edited by Spider.007 (2015-06-11 08:22:55)

Offline

#8 2015-06-11 10:43:18

Vahids
Member
From: Iran
Registered: 2014-11-07
Posts: 27

Re: [SOLVED] TOR Stock on Opening Socks listener on 127.0.0.1:9050

Spider.007 wrote:

tor is a service, which you shouldn't run as a user. I propose you execute these commands to get your install back to the original state:

sudo rm -R /var/lib/tor/*; sudo chown tor: /var/lib/tor/

. Now start tor properly:

sudo systemctl start tor

If you have any issues, post them here; this should work fine as confirmed by ewaller

I can't find /var/log/tor for log.
how you see your tor log ?

----------------------------------

I found it. It's need to set in /etc/tor/torrc file

Last edited by Vahids (2015-06-11 10:48:47)

Offline

#9 2015-06-11 11:14:28

Spider.007
Member
Registered: 2004-06-20
Posts: 1,176

Re: [SOLVED] TOR Stock on Opening Socks listener on 127.0.0.1:9050

Like all other deamons, tor logs to stderr, which can be viewed through journalctl

Offline

Board footer

Powered by FluxBB