Typing this command, give me a error msg:
slotNo=$(cardano-cli query tip --testnet-magic 1 | jq -r ‘.slot’)
error msg:
Command failed: query tip Error: Error while looking up environment variable: CARDANO_NODE_SOCKET_PATH Error: “CARDANO_NODE_SOCKET_PATH”
What does this mean?
Best regards,
You need to export the socket path inside bashrc file
adapt the path for socket file
export CARDANO_NODE_SOCKET_PATH=/home/user/cardano/db/socket
after that login again or type source ~/.bashrc
to reload the changes
I did typ the line in at the end of this file : sudo nano $HOME/.bashrc
and i did restart with the command: source ~/.bashrc
now i got this msg : cardano-cli: Network.Socket.connect: <socket: 11>: does not exist (No such file or directory)
Is that correct?
Best regards,
The node is up and running?
yes, it looks like its runnig. see screenshot.
check if u set the correct path for socket file
The path was:
export CARDANO_NODE_SOCKET_PATH=/home/user/cardano-my-node/db/socket
I did change and restart, but still same msg:
cardano-cli: Network.Socket.connect: <socket: 11>: does not exist (No such file
Sorry, This is the path: ~/cardano-my-node/db , and i changed the path in the $HOME/.bashrc to this :
export CARDANO_NODE_SOCKET_PATH=/home/cardano-my-node/db/socket
Should be right, but not working still.
go inside the folder where the socket is, then type pwd
Copy and paste that path to export line (u can copy the path from start script (u specified the socket path inside)
after that login again or type source ~/.bashrc
to reload the changes
1 Like