I am running Tor hidden service on Ubuntu 20.04 (with Apache2). It worked before and the service could be viewed in Tor web browser.
However, after a few reboots, it stopped working. The server logs show that the service has outgoing connections but in a Tor browser, the onion site was not found. The configurations and connection details can be found below.
[[[ Outgoing network connections ]]]
tcp 0 0 172.16.60.133:36966 2.58.52.163:9004 ESTABLISHED
tcp 0 0 172.16.60.133:54068 89.58.12.210:9001 ESTABLISHED
tcp 0 0 172.16.60.133:45758 194.9.172.238:9000 ESTABLISHED
tcp 0 0 172.16.60.133:35414 78.138.98.42:9001 ESTABLISHED
tcp 0 0 172.16.60.133:56780 79.137.198.213:443 ESTABLISHED
[[[ ONION address ]]]
tryme@ubuntu:~$ sudo cat /var/lib/tor/hidden_service/hostname
*s2r3juy6ax5z3cwjttgpg3gtthbujpvlzq2s7kuuqjy55qim2rwsqayd.onion*
[[[ Tor service status ]]]
tryme@ubuntu:~$ sudo service tor@default status
β tor@default.service - Anonymizing overlay network for TCP
Loaded: loaded (/lib/systemd/system/tor@default.service; enabled-runtime; vendor preset: enabled)
Active: active (running) since Thu 2025-04-24 20:37:49 PDT; 12h ago
Main PID: 7388 (tor)
Tasks: 1 (limit: 9370)
Memory: 89.7M
CGroup: /system.slice/system-tor.slice/tor@default.service
ββ7388 /usr/bin/tor --defaults-torrc /usr/share/tor/tor-service-defaults-torrc -f /etc/tor/torrc --RunAsDaemon 0
Apr 24 20:37:48 ubuntu tor[7387]: Apr 24 20:37:48.656 [notice] Read configuration file "/usr/share/tor/tor-service-defaults-tor>
Apr 24 20:37:48 ubuntu tor[7387]: Apr 24 20:37:48.656 [notice] Read configuration file "/etc/tor/torrc".
Apr 24 20:37:48 ubuntu tor[7387]: Configuration was valid
Apr 24 20:37:48 ubuntu tor[7388]: Apr 24 20:37:48.668 [notice] Tor 0.4.2.7 running on Linux with Libevent 2.1.11-stable, OpenSS>
Apr 24 20:37:48 ubuntu tor[7388]: Apr 24 20:37:48.668 [notice] Tor can't help you if you use it wrong! Learn how to be safe at >
Apr 24 20:37:48 ubuntu tor[7388]: Apr 24 20:37:48.668 [notice] Read configuration file "/usr/share/tor/tor-service-defaults-tor>
Apr 24 20:37:48 ubuntu tor[7388]: Apr 24 20:37:48.668 [notice] Read configuration file "/etc/tor/torrc".
Apr 24 20:37:48 ubuntu tor[7388]: Apr 24 20:37:48.669 [notice] Opening Socks listener on 127.0.0.1:9050
Apr 24 20:37:48 ubuntu tor[7388]: Apr 24 20:37:48.669 [notice] Opened Socks listener on 127.0.0.1:9050
Apr 24 20:37:49 ubuntu systemd[1]: Started Anonymizing overlay network for TCP.
[[[ Partial log entries ]]]
tryme@ubuntu:~$ tail -10 /var/log/tor/tor.log
Apr 25 08:38:26.000 [info] channelpadding_send_padding_cell_for_callback(): Sending netflow keepalive on 10 to [scrubbed] ([scru bbed]) after 5252 ms. Delta 3ms
Apr 25 08:38:27.000 [info] channelpadding_send_padding_cell_for_callback(): Sending netflow keepalive on 10 to [scrubbed] ([scru bbed]) after 1720 ms. Delta 0ms
Apr 25 08:38:29.000 [info] channelpadding_send_padding_cell_for_callback(): Sending netflow keepalive on 11 to [scrubbed] ([scru bbed]) after 8628 ms. Delta 5ms
Apr 25 08:38:36.000 [info] channelpadding_send_padding_cell_for_callback(): Sending netflow keepalive on 11 to [scrubbed] ([scru bbed]) after 6780 ms. Delta 4ms
Apr 25 08:38:36.000 [info] channelpadding_send_padding_cell_for_callback(): Sending netflow keepalive on 2 to [scrubbed] ([scrub bed]) after 4672 ms. Delta 5ms
Apr 25 08:38:38.000 [info] channelpadding_send_padding_cell_for_callback(): Sending netflow keepalive on 11 to [scrubbed] ([scru bbed]) after 2016 ms. Delta 3ms
Apr 25 08:38:41.000 [info] channelpadding_send_padding_cell_for_callback(): Sending netflow keepalive on 10 to [scrubbed] ([scru bbed]) after 5304 ms. Delta 2ms
Apr 25 08:38:48.000 [info] channelpadding_send_padding_cell_for_callback(): Sending netflow keepalive on 10 to [scrubbed] ([scru bbed]) after 6260 ms. Delta 1ms
Apr 25 08:38:54.000 [info] channelpadding_send_padding_cell_for_callback(): Sending netflow keepalive on 10 to [scrubbed] ([scru bbed]) after 6216 ms. Delta 0ms
Apr 25 08:38:54.000 [info] channelpadding_send_padding_cell_for_callback(): Sending netflow keepalive on 11 to [scrubbed] ([scru bbed]) after 7424 ms. Delta 6ms
What has gone wrong? Thank you.