Hosting a Virtual Node from Home

Hello Incognito Team,

Iā€™m having some strange issues with my Virtual Node. When adding the vNode to my wallet I see the following (screen shot attached)
SmartSelect_20200819-203436_Incognito Wallet

I have run through the steps outlined in the ā€œFIXā€ button.
I can confirm that my Port 9334 is open on this Linux machine with IP 58.164.38.229 , and that Docker has these 3 ā€œcontainer namesā€ running:

  1. inc_logshipper
  2. inc_miner
  3. inc_kovan

I have removed this Vnode and added it back a dozen times over the span of the last week and I get the same result.

Can someone please help me with this issue?
Perhaps @Chucky, you may have some ideas?

1 Like

When I check your Nodeā€™s connection I get an error. Where did you check open ports?
image

2 Likes

Thanks for looking into this @Jamie

Hereā€™s what I see - Screenshot_20200819-232637_Vivaldi

Also , this next screen shot just taken now after removing then re-adding the Vnode at IP address 58.164.38.229
Screenshot_20200819-232902_Incognito Wallet

I have also check my Linux terminal via
$ sudo docker ps
I see that 3 containers running as outlined in my previous post.

Is there anything Iā€™ve forgotten to check?

Is the server NATā€™ed? Do your have your router set to forward requests to the ports on the server from the external IP?

2 Likes

Hi @fitz_fiat, Thanks for the reply.
Iā€™ve configured my Home Modem-Router (that has an inbuilt firewall) with the following Port Forwarding configuration, where 192.168.0.14 is my PC running Linux and Docker container for my vNode.

Hereā€™s a photo of my firewall port fwd configuration -

Please confirm this is OK?

Hey @Jamie, do I need to forward any other ports?

I am not too familiar with running vNodes at home locations, just with VPS installs. At this point adding more ports will not solve things. The 9334 one needs to be accessible to begin with. Which doesnā€™t seem to be the case.

Hi @Jamie, I took this photo just nowā€¦


Under the canyouseeme.org ā€˜successā€™ message is my Docker containers running.

Any other troubleshooting ideas from anyone?

I really want to get my vNode working on my home PC and not have to rely or pay for a hosting provider.

1 Like

Can you use this post instead of the other one? It will keep information more organized. And will make it easier to find for people who can help, or want to do the same thing you are trying to do.

Also, if you can, adjust the size of your images so they show up in whole instead of partially.

If the port is open, then maybe the ip of the node changed. Did you set a permanent address for the node to use?

2 Likes

Hi @Jamie, thanks for splitting this thread out.
Yes, my PC is running Docker and incognito containers has itā€™s IP address fixed on my home network to 192.168.0.14

Add port 9433
If that doesnā€™t solve it then add 8545 and 30303 for both tcp and udp.

Also make sure your ā€˜docker network inspect <inc_xxxx> ā€˜ is setup and reports your processes.

You may need to verify that you donā€™t have any firewall rules in place on your server as well. Some have it set to not allow inbound communication and certain outbound.

Make sure you are running docker with the sudo command and not just as a user.

Thatā€™s all I can think of that might be blocking you.

1 Like

Hey @fitz_fiat, I am a newbie to Linux but keen to learn so I feel like I am in deep with attempting to run my own Incognito virtual node.

You mentioned about checking my serverā€™s firewall. That may be my problem as I didnā€™t know how to check this in my Linux installation.

Can you share any commands I should run to check these settings? Thx.

Unfortunately it depends on the flavor of Linux, districts and version.

For Ubuntu

sudo ufw status

Will show you what is going on.

Also look at the configuration info for running your own vnode on the incog site.
You should see some examples of different firewall setting to use.

Best alternative since you are behind a natā€™ed router with a firewall is to turn your servers firewall off all together.

Make a note of the website and commands that were used and save in a file in your vnode directory so that you can reset later.

Best wishe

1 Like

@Linnovations :wave:t6:
It's really cool that you're working on this! I have a vnode at home just like you. When adding your home vnode, you must specify 192.168.0.14 instead of the external IP address. when adding it, you must be in your wifi network! Good luck!
P.S. Let me remind you that your computer must work 24/7

If you have multiple vNode on the same computer, use the ports to add themā€¦example: 192.168.0.14:9334
192.168.0.14:9335 192.168.0.14:9336 ā€¦

20200820_115258

4 Likes

An issue became known (and solved) recently, the run.sh file was pointing to testnet instead of mainnet. Seeing you have an inc_kovan container running means you are working on testnet at the moment.

Take a look at this post

1 Like

Thanks @Jamie for bringing this to my attention. I re-deployed and no more inc_kovan.

What I see now in docker is :-

  1. inc_mainnet
  2. eth_mainnet

However, Iā€™ve run into another issue on my Linux box. My Terminal keeps crashing after running my Incognito vNode for about 15-20 mins. This forces me to close and restart my Linux Terminal.

Below are the pair of error messages I keep getting (remember Iā€™m a newbie to Linux so this is jiberish to me)

[ERROR:utils.cc(50)] Failed to read message size from socket: Connection reset by peer (104)

[ERROR:vsh_client.cc(232)] Failed to read message size from socket: Connection reset by peer (104)

Can someone help decipher what is going on with my Linux Terminal and is there a way to prevent these errors as it is impacting my vNode uptime?

For those following this thread, I mentioned earlier that I would attempt to build an Incognito vNode on the worldā€™s smallest mini PC the CHUWI LarkBox - https://www.indiegogo.com/projects/chuwi-larkbox-world-s-smallest-4k-mini-pc

Screenshot_20200926-170552

I have just recieved delivery of my LarkBox.

If there is enough interest, I will work on documenting every step I take from unboxing, through to Linux OS installation and installing Incognito Virtual Node.

Does the community see value in me doing such a post?

2 Likes

Absolutely. It would be better to start a new post on this subject and probably leave a link here and in a comment of the post about getting a Raspberry Pi to run as a node. That will make people who are interested in doing something similar aware. They can help or copy, who knows.

1 Like

Ok, thanks for your feedback @Jamie.
I will endeavour to start a new post.

Question: Does it matter what flavour of Linux I run my vNode on?

I was thinking of running Ubuntu as Iā€™m a complete newbie when it comes to Linux. Iā€™ve been Windows and Mac user my entire life but never used Linux before.

Is Ubuntu my best choice of Linux OS?

Ubuntu will be fine. Version 16.04 and up should get you going.

3 Likes

Iā€™d like to thank everyone on this thread that has helped answer one of more of my questions.

I did not know a single Linux command, nor how to configure Port Forwarding rules, or check if ports were opened successfully. Many of you came to my rescue - @Jamie @zes333 @fitz_fiat @Chucky Thank You!

I finally got round to posting my first article on my experience building and testing my very Virtual Node on a Mini PC running on Ubuntu.

Here is my Step-by-Step account of how I did it. I hope this post inspires others to take the plunge and run a virtual node to help expand and grow the Incognito network.

Step-by-Step: How I built my Virtual Node on the Worldā€™s Smallest Mini PC ($170 USD)

Please review my article and if I have missed any important steps or got something wrong, please drop a comment on the article.

5 Likes