TOR [0.2.6.8] issues on CentOS 7.1
Tue, Jun 16, 2015I just recently started to play around with Tor and already provided some GBytes traffic within the Network. I’m not providing an Exit-Node but hope to improve the performance of the network.
Yesterday I just made an update to my CentOS 7.1 Maschine and Tor got updated to version 0.2.6.8. After that update Tor wasn’t starting anymore and showed failures as the following
[user@centos ~]$ sudo service tor status
Redirecting to /bin/systemctl status tor.service
tor.service - Anonymizing overlay network for TCP
Loaded: loaded (/usr/lib/systemd/system/tor.service; disabled)
Active: failed (Result: start-limit) since Tue 2015-06-16 10:09:41 CEST; 3s ago
Process: 2436 ExecStart=/usr/bin/tor --runasdaemon 0 --defaults-torrc /usr/share/tor/defaults-torrc -f /etc/tor/torrc (code=exited, status=1/FAILURE)
Process: 2433 ExecStartPre=/usr/bin/tor -f /etc/tor/torrc --verify-config (code=exited, status=0/SUCCESS)
Main PID: 2436 (code=exited, status=1/FAILURE)
Jun 16 10:09:41 neu.gerl1ng.de systemd[1]: tor.service: main process exited, code=exited, status=1/FAILURE
Jun 16 10:09:41 neu.gerl1ng.de systemd[1]: Unit tor.service entered failed state.
Jun 16 10:09:41 neu.gerl1ng.de systemd[1]: tor.service holdoff time over, scheduling restart.
Jun 16 10:09:41 neu.gerl1ng.de systemd[1]: Stopping Anonymizing overlay network for TCP...
Jun 16 10:09:41 neu.gerl1ng.de systemd[1]: Starting Anonymizing overlay network for TCP...
Jun 16 10:09:41 neu.gerl1ng.de systemd[1]: tor.service start request repeated too quickly, refusing to start.
Jun 16 10:09:41 neu.gerl1ng.de systemd[1]: Failed to start Anonymizing overlay network for TCP.
Jun 16 10:09:41 neu.gerl1ng.de systemd[1]: Unit tor.service entered failed state.
[/code]
So I started investigating on this error but couldn't find any helpful info. However after a fresh reboot I got the following Lines in the status output:
[code language="text"]
[user@centos ~]$ sudo service tor status
Redirecting to /bin/systemctl status tor.service
tor.service - Anonymizing overlay network for TCP
Loaded: loaded (/usr/lib/systemd/system/tor.service; disabled)
Active: inactive (dead)
Jun 16 10:08:43 neu.gerl1ng.de systemd[1]: [/usr/lib/systemd/system/tor.service:20] Not an absolute path, ignoring: -/var/lib/tor
Jun 16 10:08:43 neu.gerl1ng.de systemd[1]: [/usr/lib/systemd/system/tor.service:21] Not an absolute path, ignoring: -/var/log/tor
I looked into the tor.service file located at /usr/lib/systemd/system/tor.service and changed the entries from
...
ReadWriteDirectories = -/var/lib/tor
ReadWriteDirectories = -/var/log/tor
...
to
...
ReadWriteDirectories = /var/lib/tor
ReadWriteDirectories = /var/log/tor
...
After that I needet systemctl to do a daemon-reload and the tor service would start fine.
[user@centos ~]$ sudo systemctl daemon-reload
[user@centos ~]$ sudo service tor start
Redirecting to /bin/systemctl start tor.service
[user@centos ~]$ sudo service tor status
Redirecting to /bin/systemctl status tor.service
tor.service - Anonymizing overlay network for TCP
Loaded: loaded (/usr/lib/systemd/system/tor.service; disabled)
Active: active (running) since Tue 2015-06-16 10:11:49 CEST; 3s ago
Process: 2549 ExecStartPre=/usr/bin/tor -f /etc/tor/torrc --verify-config (code=exited, status=0/SUCCESS)
Main PID: 2551 (tor)
CGroup: /system.slice/tor.service
└─2551 /usr/bin/tor --runasdaemon 0 --defaults-torrc /usr/share/tor/defaults-torrc -f /etc/tor/torrc
Jun 16 10:11:49 neu.gerl1ng.de Tor[2551]: Tor v0.2.6.8 (git-5c8440b13bde6c88) running on Linux with Libevent 2.0.21-stable, OpenSSL 1.0.1e-fips an...ib 1.2.7
Jun 16 10:11:49 neu.gerl1ng.de Tor[2551]: Tor can't help you if you use it wrong! Learn how to be safe at https://www.torproject.org/download/download#warnin
Jun 16 10:11:49 neu.gerl1ng.de Tor[2551]: Read configuration file "/usr/share/tor/defaults-torrc".
Jun 16 10:11:49 neu.gerl1ng.de Tor[2551]: Read configuration file "/etc/tor/torrc".
Jun 16 10:11:49 neu.gerl1ng.de Tor[2551]: Opening Directory listener on 0.0.0.0:9030
Jun 16 10:11:49 neu.gerl1ng.de Tor[2551]: Parsing GEOIP IPv4 file /usr/share/tor/geoip.
Jun 16 10:11:49 neu.gerl1ng.de Tor[2551]: Parsing GEOIP IPv6 file /usr/share/tor/geoip6.
Jun 16 10:11:49 neu.gerl1ng.de Tor[2551]: We were built to run on a 64-bit CPU, with OpenSSL 1.0.1 or later, but with a version of OpenSSL that apparently ..
Jun 16 10:11:49 neu.gerl1ng.de Tor[2551]: Bootstrapped 0%: Starting
Jun 16 10:11:51 neu.gerl1ng.de Tor[2551]: Bootstrapped 80%: Connecting to the Tor network