Skip to main content
1 of 2

System tor does nothing after a system wide upgrade

I'm not talking about the Tor Browser, which still works. I'm talking about the tor package which no longer works as intended after the upgrade.

When I say it does nothing, I mean it literally doesn't do anything. It doesn't even write to the log file. The service starts, its status is active when I check it, and it can stop it via service tor stop as usual. Except it doesn't work at all. When I try torify links http://google.com, I get this in return:

Error loading http://google.com/:
Host not found

My hidden service doesn't work either, and I find working over a naked IP SSH connection really insecure and inconvenient.

And, like I said, it doesn't write to the log file. At all. It's completely empty, and the last entry was made before the upgrade.

I suspect it might be due to the permissions. Which implies something changed after the upgrade. Anyway, when I simply run tor rather than sudo service tor start, this is what I get in response:

Jul 29 10:15:04.081 [warn] Directory /var/lib/tor/hidden_service cannot be read: Permission denied

The /var/lib/tor/hidden_service folder belongs to user debian-tor:debian-tor with permissions drwx--S---. When I ran sudo -u debian-tor tor, I got this:

Jul 29 10:15:32.607 [warn] Directory /home/user/.tor cannot be read: Permission denied

And I got the same warning after I recursively chowned the directory to debian-tor:debian-tor.

The log file is still empty regardless of what I do. It belongs to debian-tor:adm and has these permissions: drwxr-s---.