Hello, I have a Tor Bridge and it worked well (thanks also for your kind support) but it doesn't work anymore after I tried to move it. Basically I copied the 'Keys' folder (at /var/lib/tor/keys) on a USB flash drive. After that I put the folder into the /var/lib/tor folder of the new device (deleting the pre-existing "Keys" folder). But I receive these errors on syslog (/var/log/syslog):
"Jun 12 15:13:59 PC systemd[1]: Stopped Anonymizing overlay network for TCP. Jun 12 15:13:59 PC systemd[1]: Starting Anonymizing overlay network for TCP... Jun 12 15:13:59 PC tor[38309]: Jun 12 15:13:59.472 [notice] Tor 0.4.5.6 running on Linux with Libevent 2.1.12-stable, OpenSSL 1.1.1j, Zlib 1.2.11, Liblzma 5.2.5, Libzstd 1.4.8 and Glibc 2.33 as libc. Jun 12 15:13:59 PC tor[38309]: Jun 12 15:13:59.472 [notice] Tor can't help you if you use it wrong! Learn how to be safe at https://www.torproject.org/download/download#warning Jun 12 15:13:59 PC tor[38309]: Jun 12 15:13:59.472 [notice] Read configuration file "/usr/share/tor/tor-service-defaults-torrc". Jun 12 15:13:59 PC tor[38309]: Jun 12 15:13:59.472 [notice] Read configuration file "/etc/tor/torrc". Jun 12 15:13:59 PC tor[38309]: Jun 12 15:13:59.474 [notice] Based on detected system memory, MaxMemInQueues is set to 2875 MB. You can override this by setting MaxMemInQueues by hand. Jun 12 15:13:59 PC tor[38309]: Jun 12 15:13:59.476 [warn] /var/lib/tor/keys is not owned by this user (debian-tor, 124) but by root (0). Perhaps you are running Tor as the wrong user? Jun 12 15:13:59 PC tor[38309]: Jun 12 15:13:59.476 [warn] Failed to parse/validate config: Couldn't access private data directory "/var/lib/tor/keys" Jun 12 15:13:59 PC tor[38309]: Jun 12 15:13:59.476 [err] Reading config failed--see warnings above. Jun 12 15:13:59 PC systemd[1]: tor@default.service: Control process exited, code=exited, status=1/FAILURE Jun 12 15:13:59 PC systemd[1]: tor@default.service: Failed with result 'exit-code'. Jun 12 15:13:59 PC systemd[1]: Failed to start Anonymizing overlay network for TCP. Jun 12 15:13:59 PC systemd[1]: tor@default.service: Scheduled restart job, restart counter is at 4. Jun 12 15:13:59 PC systemd[1]: Stopped Anonymizing overlay network for TCP. Jun 12 15:13:59 PC systemd[1]: Starting Anonymizing overlay network for TCP... Jun 12 15:13:59 PC tor[38314]: Jun 12 15:13:59.721 [notice] Tor 0.4.5.6 running on Linux with Libevent 2.1.12-stable, OpenSSL 1.1.1j, Zlib 1.2.11, Liblzma 5.2.5, Libzstd 1.4.8 and Glibc 2.33 as libc. Jun 12 15:13:59 PC tor[38314]: Jun 12 15:13:59.721 [notice] Tor can't help you if you use it wrong! Learn how to be safe at https://www.torproject.org/download/download#warning Jun 12 15:13:59 PC tor[38314]: Jun 12 15:13:59.721 [notice] Read configuration file "/usr/share/tor/tor-service-defaults-torrc". Jun 12 15:13:59 PC tor[38314]: Jun 12 15:13:59.721 [notice] Read configuration file "/etc/tor/torrc". Jun 12 15:13:59 PC tor[38314]: Jun 12 15:13:59.723 [notice] Based on detected system memory, MaxMemInQueues is set to 2875 MB. You can override this by setting MaxMemInQueues by hand. Jun 12 15:13:59 PC tor[38314]: Jun 12 15:13:59.726 [warn] /var/lib/tor/keys is not owned by this user (debian-tor, 124) but by root (0). Perhaps you are running Tor as the wrong user? Jun 12 15:13:59 PC tor[38314]: Jun 12 15:13:59.726 [warn] Failed to parse/validate config: Couldn't access private data directory "/var/lib/tor/keys" Jun 12 15:13:59 PC tor[38314]: Jun 12 15:13:59.726 [err] Reading config failed--see warnings above. Jun 12 15:13:59 PC systemd[1]: tor@default.service: Control process exited, code=exited, status=1/FAILURE Jun 12 15:13:59 PC systemd[1]: tor@default.service: Failed with result 'exit-code'. Jun 12 15:13:59 PC systemd[1]: Failed to start Anonymizing overlay network for TCP. Jun 12 15:13:59 PC systemd[1]: tor@default.service: Scheduled restart job, restart counter is at 5. Jun 12 15:13:59 PC systemd[1]: Stopped Anonymizing overlay network for TCP. Jun 12 15:13:59 PC systemd[1]: tor@default.service: Start request repeated too quickly. Jun 12 15:13:59 PC systemd[1]: tor@default.service: Failed with result 'exit-code'. Jun 12 15:13:59 PC systemd[1]: Failed to start Anonymizing overlay network for TCP."
(i'm using a PC with Kubuntu 21.04 and I followed this guide for the setting up: https://community.torproject.org/relay/setup/bridge/debian-ubuntu/)
What can I do to solve these errors?
On 6/12/21 5:42 PM, Cor.ling wrote:
Jun 12 15:13:59 PC tor[38309]: Jun 12 15:13:59.476 [warn] /var/lib/tor/keys is not owned by this user (debian-tor, 124) but by root (0). Perhaps you are running Tor as the wrong user? Jun 12 15:13:59 PC tor[38309]: Jun 12 15:13:59.476 [warn] Failed to parse/validate config: Couldn't access private data directory "/var/lib/tor/keys"
Wrong file/dor ownership could be the root cause for the trouble.
-- Toralf
tor-relays@lists.torproject.org