How to host a Virtual Node

Perfect, please do note about your PC specs:

  • 8 CPUs
  • 4 GBs of RAM
  • 500 GBs of SSD

As the sync data process consume a lot CPU and storage :slight_smile:
Anyway, the development team is working on the reduction of data size :wink:

5 Likes

Hey @khanhj,

CONTAINER ID        IMAGE                                         COMMAND                  CREATED             STATUS              PORTS                                                                                                                               NAMES
0ba327f146a3        incognitochain/incognito-mainnet:20200213_1   "/bin/sh run_incogni…"   33 hours ago        Up 33 hours         0.0.0.0:9335->9335/tcp, 0.0.0.0:9434->9434/tcp                                                                                      inc_mainnet2
fee43127e869        incognitochain/logshipper:1.0.0               "/usr/local/bin/dock…"   6 weeks ago         Up 13 days                                                                                                                                              inc_logshipper
f788fcd2742b        incognitochain/incognito-mainnet:20191227_1   "/bin/sh run_incogni…"   6 weeks ago         Up 13 days          0.0.0.0:9334->9334/tcp, 0.0.0.0:9433->9433/tcp                                                                                      inc_mainnet
994da074e85c        parity/parity:stable                          "/bin/parity --light…"   6 weeks ago         Up 13 days          5001/tcp, 8080/tcp, 8082-8083/tcp, 8180/tcp, 0.0.0.0:8545->8545/tcp, 8546/tcp, 0.0.0.0:30303->30303/tcp, 0.0.0.0:30303->30303/udp   eth_mainnet

This is the current output of docker ps. I have some questions. The difference between this output and the above output is that 3cbb737605ec was dead and 0ba327f146a3 is live. Besides, their images are different. Obviously, inc_mainnet2 docker restarted. Is this problem in terms of earning PRV? If problem exists, instead of restarting the docker container silently, could you put some logs stating why the container restarted? If not exist, why is one (20200205_1) of two images updated but the other not (20191227_1)?

2 Likes

Hey @abduraman,

You’re right about inc_mainnet2 restarted, this is expected behavior. The inc_mainnet2 is running latest incognito version 20200213_1
So, the real problem is inc_mainnet still running older version 20191227_1

Please execute these commands:
sudo ps -ef | grep run.sh
sudo kill -9 <process_id_of_run.sh>
sudo docker stop inc_mainnet
sudo bash run.sh

=> this will restart the run.sh file to pull the latest incognito build and then run on your inc_mainnet

We’ll troubleshoot the issue why your inc_mainnet not automatically update to newer version.

PS: this problem has nothing related to earning PRV

5 Likes

Thanks @khanhj . Now, they use the same image.

3 Likes

Is there a tutorial or a guide for setting up a pNode like we have for vNodes How to host a Virtual Node? If not can someone create one? Im currently running Ubuntu Server latest on Mac Mini.

2 Likes

:волна:






9 Likes

So I can get stats this is what I get.
22%20PM

5 Likes

Could anyone help me trouble shoot this…?

image

1 Like

Hi, can you try to split the command into two rows?
curl https://node.incognito.org/run.sh > run.sh && sed -i “s/xxx/validator_key/” run.sh
sudo bash run.sh
Let me know how it works.

2 Likes

Same thing it seems…

root@vmi347454:~# curl https://node.incognito.org/run.sh > run.sh && sed -i “s/xxx/mykeyhere/” run.sh
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 3043 100 3043 0 0 3747 0 --:–:-- --:–:-- --:–:-- 3752
sed: -e expression #1, char 1: unknown command: `▒’
root@vmi347454:~#

2 Likes

I am checking, please wait a moment.

2 Likes

Hi Geodesix, let’s remove the double quotation mark. Please try again with this command:
curl https://node.incognito.org/run.sh > run.sh && sed -i s/xxx/validator_key/ run.sh && sudo bash run.sh

4 Likes

That seems to have worked, thanks…

2 Likes

When the image is updated, the container restarts. This is OK and at this condition, “CREATED” and “STATUS” parameters in the output of “sudo docker ps” are the same. Unless the node image is updated, why do the containers restart? In that case, “CREATED” becomes older than “STATUS”. Is restarting used for fault-tolerancy? @khanhj

In general, when is the restart of a container an indicator of a problem? Could we understand from “log.txt” under “data” directory?

2 Likes

Yeah, it would be the case, that why the run.sh keep running in background to restart the docker container when it crashed.

You can check the log.txt and error_log.txt under data/ folder for more detail.

3 Likes

But there is a problem. The contents of log.txt and error_log.txt start after the restart :slight_smile: Should I change some settings?

In addition, error_log.txt is not so readable as below. Why?

2020/02/24 01:05:27 privacy-token-���]3^YC@��k�k�H/^?^Z�
/T8)�ܿ^[^S-��^G���;^@^@^@^@�ɚ;
2020/02/24 01:12:06 privacy-token-���]3^YC@��k�k�H/^?^Z�
/T8)�ܿ^[^S-��^G���;^@^@^@^@�ɚ;
2020/02/24 01:16:05 privacy-token-���]3^YC@��k�k�H/^?^Z�
/T8)�ܿ^[^S-��^G���;^@^@^@^@�ɚ;
2020/02/24 01:22:05 privacy-token-���]3^YC@��k�k�H/^?^Z�
/T8)�ܿ^[^S-��^G���;^@^@^@^@�ɚ;
2020/02/24 03:32:05 privacy-token-���]3^YC@��k�k�H/^?^Z�
/T8)�ܿ^[^S-��^G���;^@^@^@^@�ɚ;
2020/02/24 08:38:06 privacy-token-{8TE�~P
 ��^Q����1�5p^ZR^Y�9�NxRQe�^G-��;^@^@^@^@�ɚ;
2 Likes

I have no idea about this. Let’s wait for khanhj’s assistance.

2 Likes

Hey @abduraman,

I confirm this is an issue, can you create new ticket here so that our dev will fix it later?

This problem related to decoding character.

4 Likes

A post was merged into an existing topic: How to check your server storage for your Virtual Node

Hey guys, I’d like to move my setup to a workstation. What are all the ports that should be forwarded in the router when using default script?

3 Likes