How to setup your own node in a blink of an eye (Now support multi-nodes per host)

Thank you, yes I saw that setting 0 workers would disable the enhanced mode. But how do I do this with the docker container and the scripts from this thread? Does it require an updated docker image where run_incognito.sh reads the environment variable? Or is there something I can do?

Change this part of Rocky’s install script.

After you have changed those two lines just rerun your setup/install script.

If this doesn’t work let me know.

Nah, Rocky’s script passes on options by using environment variables when starting the docker container (-e flags). These are then read and used by the run_incognito.sh script inside the container. The problem is that in my docker container, the NUM_INDEXER_WORKERS and ENABLE_COIN_INDEXER are not used for anything.

As you can see here https://github.com/incognitochain/incognito-chain/blob/875cd37644bffc3583b39a47583968d4dce20b34/run_incognito.sh#L53 --numindexerworkers is hardcoded to 0

2 Likes

Ah, I see the issue now. I escalated this with the devs and they are having the code changed. This was changed prior and never changed back. Please note to use this environment variable you will have to be running a fullnode.

2 Likes

Hey guys @Rocky @Jared, if I have two vNodes on one server, and one of them with status latest and the second with status stall.

Should I restart the second one? If so can I do it separately, or do I have to restart both (they both are on the same server)?

image

Hello @andrey,

I have a handy guide for vNode operators helping with troubleshooting:

I would first try to restarting that stalled node with:

docker container stop inc_mainnet_#

(replace the # with the problematic node number. check docker ps for this)

To start just this node use:

docker container start inc_mainnet_#

(again change the # to your node number)

If restarting does not work follow the troubleshooting guide to stop the node. Delete stalled data (shard or beacon) and then restart the node.

3 Likes

@andrey!!!

3 Likes

Thanks @Jared, gonna try tonight )

@JG20 :wave:

2 Likes

6 Likes

Alright, thanks for the reply.

I’ve changed everything accordingly and waited for my 1750 PRVs to be withdrawn from the Provide. They are in my wallet now.

Now I’m the step 6 (Adding your node) of the guide How to host a Virtual Node (out dated)

I’ve added the node with the IP of the server + “:9433” but it shows that the node is not active, that I have to import a keychain and the name of the node in the list is only a dash. I’ve tried to import a keychain but it fairly states that it has already been imported into the app. I have no option to stake and pass to step 7.

I checked at https://monitor.incognito.org/node-monitor and the node is online with only the Beacon synced at the current block height (and still syncing) meanwhile it is blocked at block 1 for the 8 shards and it is not syncing; it also has, rightly, no stake.

What am I doing wrong?

1 Like

It’s the other port (RPC) you’re trying to add the node port.

2 Likes

Oh, now I get it. Thanks a lot. Now it is stakable.

2 Likes

Hey @Support,

To avoid the risks of Ethereum full-node centralization (i.e. infura), is it possible to use our own Ethereum full-nodes?

For example, I’m a StrongBlock (provides single-click Ethereum fullnode setup) operator and have multiple Ethereum full-nodes which are ready to use with their RPC and WSS endpoints.

Thanks.

Hi @abduraman,

I think you just need to change the GETH_NAME into your RPC fullnode URL then all is well.

You’re totally able to do that, just change the GETH_NAME to your StrongBlock host

2 Likes

Will try. Thanks.

Hello I am trying to set up a full node by referring to this article @sid @Gaurav_Saini

I had a few queries though

  1. What are the minimum requirements for the VPS in order to run the full node? I read an article here which gives me the bare minimum requirements, also I posted a query on this topic and got mixed replies. Please let me know if the below-mentioned specs will be enough for running a full node?
  • 6 CPUs
  • 16 GB RAM
  • 400 GB SSD
  1. What do I do with the validator keys in the install script? I only intend to set up a full node for data retrieval purposes.

Please find the section below :

VALIDATOR_K="validator key 1,

validator key 2,

validator key 3"

Do I delete this part or do I set it as empty ie VALIDATOR_K=""?

  1. How will I know that the full node is synchronized up to date? I read in this article that we can Send request getbeaconbeststatedetail to our full node and if the If my epoch number “Epoch”: 932 is same as Incognito’s website https://mainnet.incognito.org/ , then your full node is synchronized up to date. Is this correct?
  1. The hardware config is good enough. but since the current data of a typical fullnode is now around 150GB, so I think you should throw in some more SSD if you plan to use it for a long time.
  2. For the best, you should set it as empty.
  3. You can use the following command to get your node current block height, then compare them with https://mainnet.incognito.org/
curl -s --header "Content-Type: application/json" --request POST --data '{ "jsonrpc":"1.0", "method":"getblockchaininfo", "params":[], "id":1 }' http://your-node-ip:rpc-port
4 Likes

Thank you so much. I had another query.

Once my full node setup is complete, how do I post RPC calls on this full node using postman?

Do I have to paste “https://node-ip:rpc-port” in the section where we paste the full node URL?

I have posted RPC calls on the community full nodes by using the community full node URLs ie

https://beta-fullnode.incognito.org/fullnode and https://mainnet.incognito.org/fullnode

Please find the screenshot below:
getreward amount
Will my full node URL look something similar to https://95.100.247.619:9221?

The URL has the following form: IP:PORT (with http or https prefix, depending on your server configuration, usually http for ip). For example: http://1.1.1.1:1111.

3 Likes