Hello everyone
I couldn’t get the node to run properly on the mainnet
I am currently trying to deploy a smart contract using the standard command:
concordium-client module deploy cis2_nft.wasm.v1 --sender SENDER --name cis2_nft --grpc-ip IP --grpc-port 10000
After entering the command, it waits for 30-60 seconds, after which I get the following response concordium-client: user error (Cannot establish connection to GRPC endpoint.)
At the same time, the same command, only with port 10001, is executed successfully.
I conclude that only the node for testnet works for me, but the node for mainnet does not work. The question is how to run it correctly?
What IP are you using? 127.0.0.1? Note that the mainnet node will take a lot longer to start than the testnet node. Does the query fail also after, e.g,. 10min, or after the node has peers?
no, I use the ip of the remote server where the testnet and mainnet nodes are located
Since the mainnet node was launched on January 13, it might not have enough time to deploy?
Can you please tell me what logs are you talking about and where are they located? we are talking about the results of running this command sudo systemctl status concordium-mainnet-node.service
where you can adjust the 2h ago to an appropriate timeline. In those logs there should be something like Starting up concordium .... That’s when the node is starting. If you can show around 50 lines after that we can see what happens during startup.
Your node is clearly running. I just wanted to see the logs from startup since details of the configuration are printed then.
Yes, the mainnet node should be listening there. But if you are querying it from outside the VM then you might have to configure firewall, port forwarding or other things. Have you done none of this for 10001?
So I cannot really help in debugging this fully since I don’t know your network setup.
However you can do the following
check that the node is listening on the correct port for grpc queries. You can do this by running concordium-client from the VM to remove the network/firewall issue.
To query the node from outside the grpc server must be listening on 0.0.0.0 (well technically it can be listening on another interface as well, but let’s try with this). This is the default so unless you’ve changed it it should already be set. However you can check this by running
sudo systemctl cat concordium-mainnet-node
This should print the entire configuration which should contain