XinFinOrg / XinFin-Node

Setup XinFin Masternode using Docker
https://xinfin.org/setup-masternode.php
63 stars 54 forks source link

XDC Node does not start after following steps on github getting error "NETWORK env Must be set, mainnet/testnet/devnet" #120

Open MrBlockchain22 opened 6 months ago

MrBlockchain22 commented 6 months ago

I am trying to set up an RPC node on mainnet and followed the instructions posted here. and also the Github repo steps for installing a node. All the steps were successful: cloning the repo, changing the directory and installing docker, copying and editing the .env file with the correspondent information. as shown below:

image

I have edited the start-node.sh to enable 0x prefix and saved the file. I have also edited the .env file that contains the following information:

image

Once I run the command to start the node, I get the following error:

image

Steps I have taken:

  1. I have changed the .env file to reflect "full" instead of "archive"
  2. I have checked that I was inside the right directory /XinFin-Node/mainnet
  3. I have wipe the server and start fresh
  4. I have stopped, checked all the files, start the node again with no success env file.txt

NOTES: I also want to add that I did not manually typed the commands. I copied and pasted from source (Github, Gitbook) line by line to avoid any typos.

MrBlockchain22 commented 6 months ago

After speaking with Rohit, he shared his .env file and I added the last two lines that my env file was missing. The version of the node is 1.5.0 and copying the template .env file does not add the last two lines in the new .env file. Adding the last two lines as posted here fixed the initial issue I was encountering: NETWORK=mainnet PRIVATE_KEYS=123 Next issue is that this version does not recognize "archive" and it's expecting either "full" "fast" or "light". If I am running an RPC node, which node type I should be selecting? IMAGE 2024-02-26 11:23:56

@liam-lai @AnilChinchawale