How to setup a Full Node with Tor/i2p

Started by qvqc, Jun 20, 2021, 05:04 PM

Previous topic - Next topic

qvqc

use cli wallet with i2pd on same machine, you proxy the wallet through i2p

`./wownero-wallet-cli --proxy 127.0.0.1:4447 --daemon-address axrmv5ucdghi5b4fklx4kjta2c3cwygxs6ctme4tunbvmpmbnm7q.b32.i2p:34568`

keep in mind i2p is smaller network than Tor and it takes some time for your node to become well routed. docs say connections can be slow/spotty up to a week after leaving the node up 24/7

wow4reedom

Hey @qvqc , QQ now that I've got a Full Node running as a service, what command do I type in the Terminal to check to if my node is still synchronized with the blockchain?

heady_wook

How can I do this on Manjaro, an Arch distro? I am running wownero-x86_64-linux-gnu-2bdd70d65 which is located at /home/manjaro/Downloads/
I want it through Tor. I am mining and wish to connect my node to my wallet.

orklemerkle

Assuming it's on the same machine, try `wownerod status`, or `curl http://localhost:34568/get_info`. Compare the reported height against other nodes, e.g. block explorers.

From another machine, you can use the curl command above, replacing `localhost:34568` with your node's RPC address:port combination. It also works with remote nodes! (But if it's a Tor or I2P address, you'll need to tell curl to use the right proxy.)

Note that current blockchain height is one more than the latest block's height.

orklemerkle

***Brief disclaimer***: I haven't personally tested these commands. I might have missed something obvious. Your system might not work exactly the way I imagined it. And be very careful whenever you have `sudo` and `rm -rf` together!

## Setup steps

It's mostly the same as Ubuntu in the OP, as you're still dealing with `systemd`. There are a couple of Debian-isms that you'll need to change, though:

### Setup Directories and User

Instead of:

    sudo addgroup --system wownero
    sudo adduser --system wownero --home /var/lib/wownero

Do:

    sudo groupadd --system wownero
    sudo useradd --system --gid wownero --shell /usr/bin/nologin --home-dir /var/lib/wownero --create-home

### Setting up Tor/i2p

Instead of:

    sudo apt install i2pd tor

Do:

    sudo pacman -S tor i2pd

You might want to refer to the Arch wiki: Tor](https://wiki.archlinux.org/title/Tor), [I2P.

## Optional: Moving your blockchain across

Since it sounds like you've been running `wownerod` under your user ID, you can copy or move the blockchain across instead of having to wait for it to sync again from scratch. (If I got it wrong, and you *don't* have the blockchain downloaded already, skip this section.)

Do this *after* creating the user and directories, but *before* you start `wownerod.service`. *Make sure* that there are no running instances of `wownerod`, either as your user or as a service.

    ps auwx | grep wownero

Make sure this shows nothing running, except maybe grep itself.

    sudo mkdir -p /var/lib/wownero/.wownero/
    sudo rm -rf /var/lib/wownero/.wownero/lmdb # delete DB if it already exists
    sudo cp -a ~/.wownero/lmdb /var/lib/wownero/.wownero/
    sudo chown -R wownero:wownero /var/lib/wownero/.wownero

Substitute `mv` for `cp -a` if you'd prefer to move the blockchain instead of copying it.

Now you can start `wownerod.service` and continue from there.

bimmer

(post withdrawn by author, will be automatically deleted in 24 hours unless flagged)

h0dl3r

y734rmk4na6eab4outppg5sdwkwquw3k7d65fsl7p4lsr4ccntwa.b32.i2p:34565
xbynn7n7434bysjwhdz3cjtjuii3wfc7bex7zdjv6ucsx4vnd2xa.b32.i2p:34568
kuswfmv5eudmkwpwsre2mvubluliqkz6mxpl35yy2utt2fqacdwueaad.onion:34566/34568

cyberblade

Here is my new node adr... CyberLife Node online...

YOUR I2P P2P ADDRESS
4b23ht57c43ehzkwsvvpeojhq3kei74upfi7pmusxj4ayqh74aea.b32.i2p:34565
YOUR I2P RPC ADDRESS
mmwqzzhen2ko5gkjpl5f3gmifwjwqnmr6mwb27m5gsvfkrj24ygq.b32.i2p:34568
YOUR TOR P2P/RPC ADDRESS ( :34566 / :34568 )
w4lx3lfcm5j7sq37jb3afk7iamolfmowumgjuvt577c7b3bbkvuuw7id.onion

cyberblade

YOUR I2P P2P ADDRESS
zdorb7kna4qc753ne3ryehvrdyxxm4i62nmogg57oz56mmfhvxpa.b32.i2p:34565
YOUR I2P RPC ADDRESS
erfhsamaheehr4rteikojeu6kei4z5kmdyp3gyo37ggceivnroeq.b32.i2p:34568
YOUR TOR P2P/RPC ADDRESS ( :34566 / :34568 )
c4stcqg3ndfrof5yfnhw7lbmhpbpdrhewn6nsilfsesnkryfsam3otyd.onion

purplewow

@qvqc, I followed these instructions on Ubuntu 22.04.1 LTS Server edition and can't get i2pd to work, with the following errors:

$ sudo systemctl status i2pd.service
× i2pd.service - I2P Router written in C++
     Loaded: loaded (/lib/systemd/system/i2pd.service; enabled; vendor preset: enabled)
     Active: failed (Result: core-dump) since Mon 2022-11-14 14:17:28 UTC; 6min ago
       Docs: man:i2pd(1)
             https://i2pd.readthedocs.io/en/latest/
    Process: 1070 ExecStart=/usr/sbin/i2pd $DAEMON_OPTS (code=exited, status=0/SUCCESS)
   Main PID: 1136 (code=dumped, signal=SEGV)
        CPU: 35ms

Nov 14 14:17:23 ubuntu systemd[1]: Starting I2P Router written in C++...
Nov 14 14:17:24 ubuntu systemd[1]: Started I2P Router written in C++.
Nov 14 14:17:28 ubuntu systemd[1]: i2pd.service: Main process exited, code=dumped, status=11/SEGV
Nov 14 14:17:28 ubuntu systemd[1]: i2pd.service: Failed with result 'core-dump'.

---and---

$ sudo tail -f /var/log/i2pd/i2pd.log
[sudo] password for signoi:
18:32:31@280/none - i2pd v2.39.0 starting
18:32:32@280/error - RouterInfo: Can't open file
18:32:32@280/warn - NetIface: interface with yggdrasil network address not found
18:35:08@973/none - i2pd v2.39.0 starting
18:35:08@973/error - RouterInfo: Can't open file
18:35:08@973/warn - NetIface: interface with yggdrasil network address not found

Can't find any useful references online regarding "error - RouterInfo: Can't open file". Any idea how to resolve this issue?

houndvoyager

I set up a remote node on a VPS and made it accessible through Tor.
Checking the status page works and connecting to the node is possible.

On the other hand, I get this whenever I connect to it in WOWlet:


As you can see, the wallet isn't syncing :frowning:
Any clue how to fix this?

(I'm running Debian 11 for the server, if that makes any difference)

Thanks!