Description of problem: Tor fails to start Version-Release number of selected component (if applicable): tor-0.2.7.5-5.fc24.x86_64 How reproducible: consistent Steps to Reproduce: 1. systemctl (re)start tor Actual results: # systemctl start tor Job for tor.service failed because the control process exited with error code. See "systemctl status tor.service" and "journalctl -xe" for details. # systemctl status tor ● tor.service - Anonymizing overlay network for TCP Loaded: loaded (/usr/lib/systemd/system/tor.service; disabled; vendor preset: disabled) Active: activating (auto-restart) (Result: exit-code) since Thu 2015-12-10 08:30:22 CST; 654ms ago Process: 7208 ExecStart=/usr/bin/tor --runasdaemon 0 --defaults-torrc /usr/share/tor/defaults-torrc -f /etc/tor/torrc (code=exited, status=1/FAILURE) Process: 7204 ExecStartPre=/usr/bin/tor --runasdaemon 0 --defaults-torrc /usr/share/tor/defaults-torrc -f /etc/tor/torrc --verify-config (code=exited, status=0 Main PID: 7208 (code=exited, status=1/FAILURE) Dec 10 08:30:22 naruto systemd[1]: Failed to start Anonymizing overlay network for TCP. Dec 10 08:30:22 naruto systemd[1]: tor.service: Unit entered failed state. Dec 10 08:30:22 naruto systemd[1]: tor.service: Failed with result 'exit-code'. Expected results: Tor should start Additional info: Let me know if you need any.
Thanks for the bug report! I can reproduce: # journalctl _SYSTEMD_UNIT=tor.service ... ... Couldn't open "/var/lib/tor/lock" for locking: Read-only file system. ... In tor.service, these lines are present: ReadOnlyDirectories=/ ReadWriteDirectories=/var/lib/tor ReadWriteDirectories=/var/log/tor If you remove those lines then Tor starts working again. This might actually be a bug in systemd.
It seems to work with this instead: ReadOnlyDirectories=/var ReadWriteDirectories=/var/lib/tor ReadWriteDirectories=/var/log/tor Will commit and build shortly.
(In reply to Jamie Nguyen from comment #2) > It seems to work with this instead: > > ReadOnlyDirectories=/var > ReadWriteDirectories=/var/lib/tor > ReadWriteDirectories=/var/log/tor > > Will commit and build shortly. That seems to work for me too. Thanks!
Built for rawhide: http://koji.fedoraproject.org/koji/buildinfo?buildID=704700
t(In reply to Jamie Nguyen from comment #4) > Built for rawhide: > http://koji.fedoraproject.org/koji/buildinfo?buildID=704700 works great for me, thanks again. I'm gonna CLOSED RAWHIDE.
i'm create directory /var/log/tor and worked for me!