Closed billygarrison closed 3 years ago
Just to confirm, you have the following lines uncommented out in your torrc
?
ControlPort 9051 CookieAuthentication 1 CookieAuthFileGroupReadable 1
And you restarted the tor
service/the entire system?
If the file /run/tor/control.authcookie
exists in your system but the user running lightningd
cannot access it (try cat /run/tor/control.authcookie
with the user that runs lightningd
), then possibly the missing step is to usermod -a -G ${TORGROUP} ${LIGHTNINGUSER}
.
You can get ${TORGROUP}
by using ls -la /run/tor/control.authcookie
to see the user and group of the file. The second name is the group. On most Debian-derived systems that would be debian-tor
. ${LIGHTNINGUSER}
is whatever user is running lightningd
.
If the user trying to run lightningd
can successfully cat /run/tor/control.authcookie > /dev/null
then it "should" work.
Thank you @ZmnSCPxj, running usermod -a -G ${TORGROUP} ${LIGHTNINGUSER}
and rebooting did the trick!
Okay, I suppose that is a missing instruction in the guide, will update as well.
Reopening. Will change OP to a "documentation bug".
Edited by ZmnSCPxj
Missing instruction in
doc/TOR.md
:Original post:
System
Tor v0.4.2.7 Bitcoin Core v0.20.1 c-lightning v0.9.1
Issue and Steps to Reproduce
I installed Tor and set it up using the "Quick Start On Linux" section here.
I didn't do anything in detailed discussion because I am under the impression that the quick start has all the required steps that I need? I get the following error message when trying to run lightningd:
My config file looks like:
The log file: