Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
MrBlockchain22 opened this issue Feb 22, 2024 · 1 comment

Comments

@MrBlockchain22
Copy link

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
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant