I am trying to run my first node on the testnet. The run command is functioning properly and the node appears to be creating new block but when I attempt to call
cardano-cli shelley query tip --testnet-magic 42
I receive the error
Shelley command failed: query tip Error: Error while looking up environment variable: CARDANO_NODE_SOCKET_PATH Error: “CARDANO_NODE_SOCKET_PATH”
Same issue here. Why wouldn’t the socket be in the sockets folder!? That’s where it is in an existing relay. I get this error when trying to run gLiveview:
Thanks for your reply.
Yes I restarted cardano-node and all I got is this error…
The relay works fine.
PS : I didn’t found the db and socket file in the folder cardano-my-node!
Should I rebuild the whole core node from scratch again?
Many thanx in advance !
The socket file is created by node after it completes startup (no, service saying running does not mean node has finished startup). Also, if you dont have a clean shutdown or if you interrupt node during startup, you end up having to wait longer because node would have to replay ledger. So for your case, if node is ‘up’ - it could be a matter of monitoring log to ensure node finishes startup before trying to connect to it
I appreciate it. I’ve been very impressed with how helpful the cardano community is. I imagine these would be the kinds of folks to return their shopping carts.
I have the path error because the node.socket is not found inside db folder. Does anyone know why is this happening? I just started my node on mainnet 5 minutes before and tried the export command to query slots.