-
Notifications
You must be signed in to change notification settings - Fork 178
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Directory node service setup Tor permission issues #1729
Comments
5 weeks, no comments. Is the project still active? |
Project is alive, just people busy with other stuff, I recently often miss GitHub notifications, there are too much of them.
What is exact error message / output? |
"permission denied" |
Could you paste whole output of My guess is that it's permission denied when trying to access Tor control. Do you have these in your
|
missing CookieAuthFileGroupReadable 1 NOTE: not in sample config file, not mentioned in docs torrc joinmarket.cfg says starting from scripts directory start-dn.sh as user, no jmvenv shellcheck source=/dev/nullcd "$(dirname "$0")/.." && start from scripts directory start-dn.py, jmvenv activated |
directory permissions |
I suspect this has something to do with 'apparmor' but I am totally in the dark on how that works except that it seems to break lots of things like SELinux does. It is not helpful when your server is so secure that it will not run, sigh... |
This is the problem. You should not specify |
ok, so I removed the --datadir =, started, got error |
.joinmarket is still empty except for the cfg file and the empty directories for all else |
It would be helpful if you would paste full output, then I can see which line of code is throwing error and possibly other useful info,
That's ok, I don't think anything else than configuration file should be there for directory node. |
Traceback (most recent call last): without the 'hola' it complains: |
See comments in
Basically, you should comment out or delete all |
I deleted all the MESSAGE sections except [MESSAGING:onion], get the exact same error as before, with and without the 'hostname' From your last comment I suspect there is a lot more from the default config file entries that should be removed [DAEMON] [BLOCKCHAIN] [MESSAGING:onion] [LOGGING] [TIMEOUT] [POLICY] [PAYJOIN] [YIELDGENERATOR] [SNICKER] [GUI] |
You have missing As per
|
cat hostname user data location: /home/johndoe/.joinmarket/ |
port 27183 is open |
getting closer? added port 5222 to hostname string ser data location: /home/johndoe/.joinmarket/ Traceback (most recent call last): ports 5222, 27183 are open on the firewall appliance and direct back to the ip of vm host running tor+joinmarket |
Right, I think port had to be specified.
I would suggest looking at Tor logs.
Ports should not be opened for 127.0.0.1 (localhost), by opening ports to public you just dox your directory node. Don't do it! |
127.0.0.1 is not open to outside |
This is the torrc Log debug file /var/log/tor/debug.log |
no errors in the log, tor seems busy with a lot of things but non related to joinmarket when it is started and gets stuck |
joinmarket LOGGING set to debug, nothing in log, it is empty Just a thought. The unacceptable option error, does not stop the directory node, it is just published to stdout or stderr?? |
looking at the error, line 253 is a call to onion.py", line 253, in create |
attempting to connect via telnet to external IP either port 27123, 5222 from another network center gives connection refused |
https://github.com/bitcoin/bitcoin/blob/master/doc/tor.md
/etc/tor/torrc for control port and authcookie
|
I have all of this set up per all the comments above, cookie auth ->debian-tor, ports, etc...Still getting permission denied on /var/lib/tor/hidden_service Could someone that is actually running a directory node please post their joinmarket.cfg and torrc files so I can see what a working directory node looks like. Perhaps that can be added to a FAQ |
lubuntu 22.04.05 LTS
joinmarket-clientserver 9.11
tor 4.6.10
I am trying to setup a directory node on a dedicated host running
joinmarket-clientserver and Tor
Following the directions in the joinmarket docs I have added the
user 'johndoe' to debian-tor group and set hidden_service_dir to
/home/johndoe/dirnode/
Tor fails to create dirnode
If is set hidden_service to tor's preferred
/var/lib/tor/hidden_service/
the directory is created with the appropriate contents, however
start-dn.py can not access that directory
Workarounds I have tried include adding a line to
1 apparmor.d/system.tor
/home/johndoe/dirnode** rwk
2 /lib/systemd/system/tor@defaults
ReadWriteDirectories=-/home/johndoe/dirnode
3 use /opt/tor as base for hidden service, Tor can not write there
all of the above with various file ownership of either
johndoe.johndoe, debian-tor.debian-tor
This problem is obviously solvable as there are many directory nodes
presuemably some on Linux + ubuntu. I'm just missing something
documentation, chat searches, etc... offer no clues other than what I've tried above
Perhaps when this is resolved we can update the documentation to
be more specific on how to setup a directory node.
Suggested updates:
1 how to setup permissions and directories for torrc/joinmarket.cfg
2 which port to designate for HiddenServicePort ??? 127.0.0.1:27183
3 what NAT port to open on firewall for return traffic for tor
80, 443, 5222 ??? when host is on a local network
I will gladly document all of this and submit as a PR once it is
sorted out.
The text was updated successfully, but these errors were encountered: