Need some assistence on making it run correctly

Hi there,

made the convert from Core to Knots.
Running it on a laptop on Fedora 42.
Now trying to run the commands from Make Knots reachable over Tor … But already stranded on command #1.
Eventually i came past it but not sure if im oke know. Also run the #3 command but didnt find the user. Changed that to my user and it went through.
Also check the group but there is no group that like debian-tor. I think it didnt go well with installing Tor.

1 Like

Paul might be able to help, try posting up the commands you were following and any error messages or results you got when you tried.

1 Like

I’m spinning up a VM with Fedora 42 now. I’ll run through the commands (should be similar to the ones I posted for RHEL / CentOS / Rocky / Alma) and see what needs to change. If you have more details about what went wrong, that will also help. I’ll post an update shortly, once I get it working.

Haha, I hadn’t used Fedora before. The tree carving in the default background cracked me up:

image

Anyway, the below process worked (fresh install of Fedora 42 x86_64 and Knots v29.1.knots20250903)

#1. Install & start Tor (Fedora uses dnf and the service is tor):

sudo dnf install -y tor
sudo systemctl enable --now tor

#2. Expose Tor’s control port (and make the cookie/group readable):

sudo tee -a /etc/tor/torrc >/dev/null <<'EOF'
ControlPort 9051
CookieAuthentication 1
CookieAuthFileGroupReadable 1
DataDirectoryGroupReadable 1
EOF

sudo systemctl restart tor

#3. Give your login user access to the Tor cookie, then log out/in once

sudo usermod -aG toranon $USER

Log out/in (or reboot) for group changes to apply.

#4. Enable RPC Server in Bitcoin Knots
Open Settings → Options
Check “Enable RPC server”, click OK.

#5. Tell Bitcoin Knots to use Tor
Open Settings → Options → Open Configuration File → Continue, paste:

proxy=127.0.0.1:9050
listen=1
listenonion=1

Save.

#6. Restart Knots. Once fully synced, get your node’s .onion address:

bitcoin-cli getnetworkinfo | grep ".onion"

And check it on bitnodes.io

Looks like you were following the “Debian / Ubuntu / Linux Mint / Pop!_OS / RaspOS” instructions. The ones closer to your system are under “RHEL / CentOS / Rocky / Alma”, but what I just posted above is exactly the set of commands that I ran which worked for me on Fedora 42. So it should work best for you if you follow them.

Thanks, I will check it tomorrow when I’m back from work.
I’ll let you know.

Cool. I think you should skip step #2 if you already ran that in your earlier attempt. That one appends things to the config, so if you run it more than once it will add duplicate entries.

If you’ve already run step #2 more than once, you’ll want to edit /etc/tor/torrc and remove any duplicate entries from it. You should have only one set of these rows in there:

ControlPort 9051
CookieAuthentication 1
CookieAuthFileGroupReadable 1
DataDirectoryGroupReadable 1

i think im almost there.
the line datadirectorygroup… i added to the file.

question about the config file of knots. My file contains a line server=1 should i leave it there or delete it?

and can i delete the core folder or should i leave it?

got an error when i want to receive the onion adress

Could not locate RPC credentials. No authentication cookiecould be found, and RPC password is not set.

This is equivalent to:

#4. Enable RPC Server in Bitcoin Knots
Open Settings → Options
Check “Enable RPC server” , click OK .

I don’t know which one takes precidence, so you can just leave it there in your bitcoin.conf file to be sure.

This either means you have your datadir in a non-standard location (most likely) or that you have RPC authentication parameters in your bitcoin.conf (I assume not, since you only mentioned server=1 being in there). It could also mean that Knots is not running (make sure it is).

Locate where you have your datadir, and then you can update the command to:

bitcoin-cli -datadir=/path/to/your/datadir getnetworkinfo | grep -F '.onion'

i found my onion adress in the bitcoin knots ui. it is online.

can i delete the core folder?

i have just 1 incoming connection. a 127 adress is that oke?

Yes, as long as you don’t have your datadir under that folder (unlikely, but depends on how you configured it).

As long as you confirmed your node is reachable (for example, via bitnodes.io) then you are good to go. Other nodes will randomly start to connect with your node as your onion address propagates the known peers lists of other nodes that you connect with.

1 Like

Then everything is working. Thank you very much for the assistence.

1 Like