[UbuntuVM] permission issues of tor@default
See original GitHub issueUsing the current state of the dev branch I am running into an annoying issue with the tor@default instance. Interestingly tor@lnd works flawlessly.
Settings are at default and tried already reinstalling and deleting the /mnt/hdd/tor directory to no avail.
$ tor --version
Tor version 0.4.5.10.
$ uname -a
Linux nadmin-BHYVE 5.11.0-34-generic #36~20.04.1-Ubuntu SMP Fri Aug 27 08:06:32 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
The failure is:
$ sudo journalctl -fu tor@default
Sep 12 18:43:30 nadmin-BHYVE systemd[1]: tor@default.service: Failed with result 'exit-code'.
Sep 12 18:43:30 nadmin-BHYVE systemd[1]: Failed to start Anonymizing overlay network for TCP.
Sep 12 18:43:30 nadmin-BHYVE systemd[1]: tor@default.service: Scheduled restart job, restart counter is at 4.
Sep 12 18:43:30 nadmin-BHYVE systemd[1]: Stopped Anonymizing overlay network for TCP.
Sep 12 18:43:30 nadmin-BHYVE systemd[1]: Starting Anonymizing overlay network for TCP...
Sep 12 18:43:30 nadmin-BHYVE tor[1159]: Sep 12 18:43:30.966 [notice] Tor 0.4.5.10 running on Linux with Libevent 2.1.11-stable, OpenSSL 1.1.1f, Zlib 1.2.11, Liblzma 5.2.4, Libzstd 1.4.4 and Glibc 2.31 as libc.
Sep 12 18:43:30 nadmin-BHYVE tor[1159]: Sep 12 18:43:30.966 [notice] Tor can't help you if you use it wrong! Learn how to be safe at https://www.torproject.org/download/download#warning
Sep 12 18:43:30 nadmin-BHYVE tor[1159]: Sep 12 18:43:30.966 [notice] Read configuration file "/usr/share/tor/tor-service-defaults-torrc".
Sep 12 18:43:30 nadmin-BHYVE tor[1159]: Sep 12 18:43:30.966 [notice] Read configuration file "/etc/tor/torrc".
Sep 12 18:43:30 nadmin-BHYVE tor[1159]: Sep 12 18:43:30.968 [warn] Your log may contain sensitive information - you disabled SafeLogging. Don't log unless it serves an important reason. Overwrite the log afterwards.
Sep 12 18:43:30 nadmin-BHYVE tor[1159]: Configuration was valid
Sep 12 18:43:30 nadmin-BHYVE tor[1160]: Sep 12 18:43:30.983 [notice] Tor 0.4.5.10 running on Linux with Libevent 2.1.11-stable, OpenSSL 1.1.1f, Zlib 1.2.11, Liblzma 5.2.4, Libzstd 1.4.4 and Glibc 2.31 as libc.
Sep 12 18:43:30 nadmin-BHYVE tor[1160]: Sep 12 18:43:30.983 [notice] Tor can't help you if you use it wrong! Learn how to be safe at https://www.torproject.org/download/download#warning
Sep 12 18:43:30 nadmin-BHYVE tor[1160]: Sep 12 18:43:30.983 [notice] Read configuration file "/usr/share/tor/tor-service-defaults-torrc".
Sep 12 18:43:30 nadmin-BHYVE tor[1160]: Sep 12 18:43:30.983 [notice] Read configuration file "/etc/tor/torrc".
Sep 12 18:43:30 nadmin-BHYVE tor[1160]: Sep 12 18:43:30.984 [notice] Opening Socks listener on 127.0.0.1:9050
Sep 12 18:43:30 nadmin-BHYVE tor[1160]: Sep 12 18:43:30.985 [notice] Opened Socks listener connection (ready) on 127.0.0.1:9050
Sep 12 18:43:30 nadmin-BHYVE tor[1160]: Sep 12 18:43:30.985 [notice] Opening Control listener on 127.0.0.1:9051
Sep 12 18:43:30 nadmin-BHYVE tor[1160]: Sep 12 18:43:30.985 [notice] Opened Control listener connection (ready) on 127.0.0.1:9051
Sep 12 18:43:30 nadmin-BHYVE tor[1160]: Sep 12 18:43:30.985 [warn] Directory /mnt/hdd/tor/sys cannot be read: Permission denied
Sep 12 18:43:30 nadmin-BHYVE tor[1160]: Sep 12 18:43:30.985 [notice] Closing partially-constructed Socks listener connection (ready) on 127.0.0.1:9050
Sep 12 18:43:30 nadmin-BHYVE tor[1160]: Sep 12 18:43:30.985 [notice] Closing partially-constructed Control listener connection (ready) on 127.0.0.1:9051
Sep 12 18:43:30 nadmin-BHYVE tor[1160]: Sep 12 18:43:30.985 [warn] Failed to parse/validate config: Couldn't create private data directory "/mnt/hdd/tor/sys"
Sep 12 18:43:30 nadmin-BHYVE tor[1160]: Sep 12 18:43:30.985 [err] Reading config failed--see warnings above.
Sep 12 18:43:30 nadmin-BHYVE systemd[1]: tor@default.service: Main process exited, code=exited, status=1/FAILURE
Sep 12 18:43:30 nadmin-BHYVE systemd[1]: tor@default.service: Failed with result 'exit-code'.
Sep 12 18:43:30 nadmin-BHYVE systemd[1]: Failed to start Anonymizing overlay network for TCP.
Sep 12 18:43:31 nadmin-BHYVE systemd[1]: tor@default.service: Scheduled restart job, restart counter is at 5.
Sep 12 18:43:31 nadmin-BHYVE systemd[1]: Stopped Anonymizing overlay network for TCP.
Sep 12 18:43:31 nadmin-BHYVE systemd[1]: tor@default.service: Start request repeated too quickly.
Sep 12 18:43:31 nadmin-BHYVE systemd[1]: tor@default.service: Failed with result 'exit-code'.
Sep 12 18:43:31 nadmin-BHYVE systemd[1]: Failed to start Anonymizing overlay network for TCP.
debug output of a newly built node in a VM: https://termbin.com/fa0t
Issue Analytics
- State:
- Created 2 years ago
- Comments:14 (5 by maintainers)
Top Results From Across the Web
Permission denied on Cloud9 Ubuntu VM - .NET Core
This looks like the permission issue is due to a locked down Cloud9 VM. mjc: I'm wondering then if there are special permissions...
Read more >世界の 4/1\" 21 7'2\" torq 2 47.2L 4/3\" サーフィン - 買い誠実 NIKE ...
UbuntuVM ] permission issues of tor@default · Issue #2531 新品・未使用 EMPORIO ARMANI EA7 ダウンベスト. K2501 thread | Page 9 | XDA Forums
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Ok this apparmor profile with the added directories does work:
SUCCES
disabling the line:
in
/lib/systemd/system/tor@default.servicedid it!now Tor is working.
Alternatively can add to the
/etc/systemd/system/tor@default.service.d/raspiblitz.confso it looks like:after either modification run: