LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Tor downloaded in centOS 7 but is failing to start and giving an error mesage that is "Failed to parse/validate config: Failed to bind one " (https://www.linuxquestions.org/questions/linux-newbie-8/tor-downloaded-in-centos-7-but-is-failing-to-start-and-giving-an-error-mesage-that-is-failed-to-parse-validate-config-failed-to-bind-one-4175597880/)

th3g3ntl3man 01-20-2017 07:18 AM

Tor downloaded in centOS 7 but is failing to start and giving an error mesage that is "Failed to parse/validate config: Failed to bind one "
 
I added following repos in etc/yum.repos.d/tor.repo:

[Tor]
name=Tor Project Repo
baseurl=http://deb.torproject.org/torproject.org/rpm/el/6/$basearch/
gpgcheck=1
enabled=1
gpgkey=http://deb.torproject.org/torproject.org/rpm/RPM-GPG-KEY-torproject.org.asc

then i downloaded tor by:

[root@dhcppc29 tor]# yum install tor

it downloaded and installed successfully but it is not working and following is the output

Jan 20 18:14:01.219 [notice] Tor v0.2.8.12 running on Linux with Libevent 2.0.21-stable, OpenSSL 1.0.1e-fips and Zlib 1.2.7.
Jan 20 18:14:01.219 [notice] Tor can't help you if you use it wrong! Learn how to be safe at https://www.torproject.org/download/download#warning
Jan 20 18:14:01.220 [notice] Read configuration file "/etc/tor/torrc".
Jan 20 18:14:01.223 [notice] Opening Socks listener on 127.0.0.1:9050
Jan 20 18:14:01.223 [warn] Could not bind to 127.0.0.1:9050: Address already in use. Is Tor already running?
Jan 20 18:14:01.224 [warn] /run/tor is not owned by this user (root, 0) but by toranon (988). Perhaps you are running Tor as the wrong user?
Jan 20 18:14:01.224 [warn] Before Tor can create a control socket in "/run/tor/control", the directory "/run/tor" needs to exist, and to be accessible only by the user and group account that is running Tor. (On some Unix systems, anybody who can list a socket can connect to it, so Tor is being careful.)
Jan 20 18:14:01.224 [warn] Failed to parse/validate config: Failed to bind one of the listener ports.
Jan 20 18:14:01.224 [err] Reading config failed--see warnings above.

Please help

TheEzekielProject 01-20-2017 10:44 AM

This is the part that's relevant
Quote:

Jan 20 18:14:01.223 [warn] Could not bind to 127.0.0.1:9050: Address already in use. Is Tor already running?
Jan 20 18:14:01.224 [warn] /run/tor is not owned by this user (root, 0) but by toranon (988). Perhaps you are running Tor as the wrong user?
Did you start Tor as root? Start it as a regular user instead


All times are GMT -5. The time now is 01:23 PM.