-
Notifications
You must be signed in to change notification settings - Fork 179
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
Troubleshooting Directory Service Node Setup #1456
Comments
So: (1) you have a directory node running and (2) you had to edit certain tor config settings, presumably something different from what's written here? Just checking I follow exactly where you are with this. On the second point, let us know if there's something we should add to that section of the documentation. |
Afaik the most active place is the Telegram group: https://t.me/joinmarketorg |
(1) Yes, the new directory node is running now and stable for the last two weeks. The only downtime has been for server maintenance. (2) Honestly, I am still not sure why I was geting some errors. At some point I'll do the setup process again and document my steps better in case documentation should be updated. If I remember correctly, the only difference was adding the default ubuntu user to tor config, in addition to adding them to the linux user group for tor, but that might not be complete/accurate. I have not yet experience any failure of the directory node, nor any failure of connection to the node from maker bots.
The "No such file or directory" error still haunts startup of my directory node. It seems that turning off tor service, then restarting tor service allows the script to start successfully, as I can reproduce the error consistently by rebooting the server and trying to launch the node without stopping/starting tor. If the script is started immediately after restarting tor, it works correctly for me. |
I encountered the very same issue. It turned out it was (at my end) related to hidden service directory permission which must be set to |
c2a6b3d Rephrase hidden service dir config, lint (roshii) Pull request description: - Rephrase hidden service directory config recommendation (see #1456) - Lint document - Re-organize headers ACKs for top commit: kristapsk: ACK c2a6b3d Tree-SHA512: 085321b6d3f8f66c6cf3c01e6279ee87d0b0a0e4e9590defc13ed00625440430296acb58698ab93e5fd6fea76445c090a308ebb3757ce54a11ff0d9d244f9539
Hi! As you can see here: #1687 |
|
Having difficulty setting up directory node [BLOCKCHAIN] [MESSAGING:onion] regtest_count = 0,0 [LOGGING] [TIMEOUT] accept_commitment_broadcasts = 1 permissions on "dirnode" 700 when I start start-dn.py in the jmvenv environment, this is the resulting output |
port 443 is open on firewall and directed back to the host for this process |
so the issue appear to be that tor can not create the hidden service directory in the users directory tree. Yes, the user belongs to group debian-tor |
I am trying to get a directory node up, but have run into a couple issues. Please consider this low priority, as I may just need more clarity on syntax or something simple. It's been quite a while since I've dove into the inner workings of JoinMarket, so forgive my ignorance! Eventually, I'd like to help resolve this issue and contribute to the stopgap list / default nodes if I can get past this. Maybe try to smash some bugs here and there.
I have reviewed and understand the start-dn.py script for the most part, and have setup joinmarket.cfg after a fresh install on a new virtual server running ubuntu 22, command line only, with tor, for backround. The server is dedicated to this project only, with only minimal services installed.
My joinmarket.cfg has these relevant lines:
directory_nodes is default currently, as this is where I am stuck.
When I run start-dn.py to generate the onion for my node, this is the output:
This will go on for at least 10 minutes, probably more, but I didn't let it keep running for longer. I then Ctrl-C out and get this:
I don't see anything in tor logs or joinmarket logs that is helping me narrow down the issue. I looked through the txtorcon scripts, but couldn't resolve much about this error/code. Any insight is appreciated!
Thanks for everyone's contributions to JoinMarket! BTW, is this the best place to discuss and ask questions about contributions, or do you all still have an IRC or Discord channel or something now days for this type of thing? I hope to contribute more often over the next year if possible.
update: I'm more confused now. I fiddled with some tor settings and directory locations and I managed to generate the genesis node.
I changed nothing afterwards, just closed the script, and put the genesis onion into joinmarket.cfg as directory_nodes. When I run the script I now get this error:
I'll keep playing around and update accordingly. Any suggestions are appreciated.
FINAL UPDATE:
tor is very particular, as it should be. The solution boiled down to conflicting settings in /etc/tor/torrc vs /usr/share/tor/tor-service-defaults-torrc and the directory node. I won't post all my settings here, but I'm happy to help others having similar issues. The directory node is now running, tested to communicate properly with an outside maker bot. I will unhide and publish the onion to the issues referenced in the first paragraph, once I'm confident the server is stable.
The text was updated successfully, but these errors were encountered: