Hello,
My relay stopped working (I think) and I don’t know why. How do I know it stopped working? Well, running nyx
returns (even after sudo chown $USER
:debian-tor /var/run/tor/control.authcookie):
Unable to authenticate: socket connection failed ([Errno 111] Connection refused)
And, it also says on the website that it stopped working, but that’s much slower to update.
My /etc/tor/torrc
:
ControlPort 9051
CookieAuthentication 1
CookieAuthFileGroupReadable 1
ORPort 9001 IPv4Only
Nickname FreeInternet
ContactInfo <cocolinofan@protonmail.com>PGP: D8E7 0DAC 2CB9 F4DE 2728 00D5 8CCA F633 B685 9E80
Looking at the running process with htop
I see a process running with high CPU usage:
/usr/bin/tor --defaults-torrc /usr/share/tor/tor-service-defaults-torrc -f /etc/tor/torrc --RunAsDaemon 0
and systemctl status tor
returns:
● tor.service - Anonymizing overlay network for TCP (multi-instance-master)
Loaded: loaded (/lib/systemd/system/tor.service; enabled; preset: enabled)
Active: active (exited) since Thu 2025-02-13 18:57:03 GMT; 25min ago
Process: 1319 ExecStart=/bin/true (code=exited, status=0/SUCCESS)
Main PID: 1319 (code=exited, status=0/SUCCESS)
CPU: 9ms
Feb 13 18:57:03 battleMini systemd[1]: Starting tor.service - Anonymizing overlay network for TCP (multi-instance-master)...
Feb 13 18:57:03 battleMini systemd[1]: Finished tor.service - Anonymizing overlay network for TCP (multi-instance-master).
Looking at journalctl -e -u tor@default
I see:
Feb 13 19:22:11 battleMini tor[1432]: Feb 13 19:22:11.453 [notice] Tor 0.4.7.16 running on Linux with Libevent 2.1.12-stable, OpenSSL 3.0.15, Zlib 1.2.13, Liblzma 5.4.1, Libzstd 1.5.4 and Glibc 2.36 as libc.
Feb 13 19:22:11 battleMini tor[1432]: Feb 13 19:22:11.453 [notice] Tor can't help you if you use it wrong! Learn how to be safe at https://support.torproject.org/faq/staying-anonymous/
Feb 13 19:22:11 battleMini tor[1432]: Feb 13 19:22:11.453 [notice] Read configuration file "/usr/share/tor/tor-service-defaults-torrc".
Feb 13 19:22:11 battleMini tor[1432]: Feb 13 19:22:11.454 [notice] Read configuration file "/etc/tor/torrc".
Feb 13 19:22:11 battleMini tor[1432]: Feb 13 19:22:11.475 [notice] Based on detected system memory, MaxMemInQueues is set to 690 MB. You can override this by setting MaxMemInQueues by hand.
Feb 13 19:22:11 battleMini tor[1432]: Feb 13 19:22:11.476 [notice] By default, Tor does not run as an exit relay. If you want to be an exit relay, set ExitRelay to 1. To suppress this message in the future, set ExitRelay to 0.
Feb 13 19:22:11 battleMini tor[1432]: Feb 13 19:22:11.493 [notice] Opening Socks listener on 127.0.0.1:9050
Feb 13 19:22:11 battleMini tor[1432]: Feb 13 19:22:11.494 [notice] Opened Socks listener connection (ready) on 127.0.0.1:9050
Feb 13 19:22:11 battleMini tor[1432]: Feb 13 19:22:11.494 [notice] Opening Control listener on 127.0.0.1:9051
Feb 13 19:22:11 battleMini tor[1432]: Feb 13 19:22:11.494 [notice] Opened Control listener connection (ready) on 127.0.0.1:9051
Feb 13 19:22:11 battleMini tor[1432]: Feb 13 19:22:11.494 [notice] Opening OR listener on 0.0.0.0:9001
Feb 13 19:22:11 battleMini tor[1432]: Feb 13 19:22:11.494 [notice] Opened OR listener connection (ready) on 0.0.0.0:9001
Feb 13 19:22:11 battleMini Tor[1432]: We compiled with OpenSSL 300000b0: OpenSSL 3.0.11 19 Sep 2023 and we are running with OpenSSL 300000f0: 3.0.15. These two versions should be binary compatible.
Feb 13 19:22:11 battleMini Tor[1432]: Tor 0.4.7.16 running on Linux with Libevent 2.1.12-stable, OpenSSL 3.0.15, Zlib 1.2.13, Liblzma 5.4.1, Libzstd 1.5.4 and Glibc 2.36 as libc.
Feb 13 19:22:11 battleMini Tor[1432]: Tor can't help you if you use it wrong! Learn how to be safe at https://support.torproject.org/faq/staying-anonymous/
Feb 13 19:22:11 battleMini Tor[1432]: Read configuration file "/usr/share/tor/tor-service-defaults-torrc".
Feb 13 19:22:11 battleMini Tor[1432]: Read configuration file "/etc/tor/torrc".
Feb 13 19:22:11 battleMini Tor[1432]: Based on detected system memory, MaxMemInQueues is set to 690 MB. You can override this by setting MaxMemInQueues by hand.
Feb 13 19:22:11 battleMini Tor[1432]: By default, Tor does not run as an exit relay. If you want to be an exit relay, set ExitRelay to 1. To suppress this message in the future, set ExitRelay to 0.
Feb 13 19:22:11 battleMini Tor[1432]: Opening Socks listener on 127.0.0.1:9050
Feb 13 19:22:11 battleMini Tor[1432]: Opened Socks listener connection (ready) on 127.0.0.1:9050
Feb 13 19:22:11 battleMini Tor[1432]: Opening Control listener on 127.0.0.1:9051
Feb 13 19:22:11 battleMini Tor[1432]: Opened Control listener connection (ready) on 127.0.0.1:9051
Feb 13 19:22:11 battleMini Tor[1432]: Opening OR listener on 0.0.0.0:9001
Feb 13 19:22:11 battleMini Tor[1432]: Opened OR listener connection (ready) on 0.0.0.0:9001
lines 538-603/603 (END)
`.::///+:/-. --///+//-:`` cocolino@battleMini
`+oooooooooooo: `+oooooooooooo: -------------------
/oooo++//ooooo: ooooo+//+ooooo. OS: Raspbian GNU/Linux 12 (bookworm) armv7l
`+ooooooo:-:oo- +o+::/ooooooo: Host: Raspberry Pi 2 Model B Rev 1.1
`:oooooooo+`` `.oooooooo+- Kernel: 6.6.74+rpt-rpi-v7
`:++ooo/. :+ooo+/.` Uptime: 1 day, 47 mins
...` `.----.` ``.. Packages: 1645 (dpkg)
.::::-``:::::::::.`-:::-` Shell: bash 5.2.15
-:::-` .:::::::-` `-:::- Terminal: /dev/pts/1
`::. `.--.` `` `.---.``.::` CPU: BCM2835 (4) @ 900MHz
.::::::::` -::::::::` ` Memory: 104MiB / 920MiB
.::` .:::::::::- `::::::::::``::.
-:::` ::::::::::. ::::::::::.`:::-
:::: -::::::::. `-:::::::: ::::
-::- .-:::-.``....``.-::-. -::-
.. `` .::::::::. `..`..
-:::-` -::::::::::` .:::::`
:::::::` -::::::::::` :::::::.
.::::::: -::::::::. ::::::::
`-:::::` ..--.` ::::::.
`...` `...--..` `...`
.::::::::::
`.-::::-`
I also did some network changes, but I don’t think the problem is related to that. I setup all the port forwarding for port 9001, and the relay has the same external IP.
I am confused.