Query tip error: CARDANO_NODE_SOCKET_PATH

problema_05_01

I can run the node but when I query tip this error appear

Hi!

"Many commands rely on the environment variable CARDANO_NODE_SOCKET_PATH:

so you have to define this environment variable:
export CARDANO_NODE_SOCKET_PATH=path/to/db/node.socket

more info:
https://docs.cardano.org/projects/cardano-node/en/latest/stake-pool-operations/getConfigFiles_AND_Connect.html

I defined the environment variable but still giving me error, the file node.socket is in this rute
problema_05_02

is the node running?

Yes is running but when I start the node gives me another error different, and when I stop the node gives 3 more, gives error, but the node can run
problema_05_03

problema_05_04

maybe it is started already and you try to start another one - list all the processes and kill the unnecessary cardano-node processes
ps -ef | grep cardano-node

killall -s SIGINT cardano-node

with this command I killed all I think

1 Like

ok, so start the node then wait for till goes into running state - then you can query the tip:

how long do I have to wait for it to go into running state?

till all the database opened - until that you will get the error socket: 11 does not exist

problema_05_05

still giving me socket11 does not exist error

1 Like

strange… and do you see new tip logs statements?
also what is the output of lsof /home/cardano/cnode/sockets/node.socket

1 Like

Yes I see

When I put lsof /home/cardano/cnode/sockets/node.socket don’t appear nothing

1 Like

something should be like this:

$ lsof storage/node.socket 
COMMAND     PID USER   FD   TYPE             DEVICE SIZE/OFF     NODE NAME
cardano-n 29917   bb   29u  unix 0x0000000000000000      0t0 41682830 storage/node.socket type=STREAM

so list all the sockets and find the one which belongs to cardano:
lsof | grep "node.socket"

1 Like

When I put the command whitout sudo su nothing appears but whit sudo su:
problema_05_06

what is the output of this command

1 Like

the same result as the other

that means the node is not running…
do you have cardano-node process running?
ps -ef | grep cardano-node

1 Like

you are right, I stopped the node before
problema_05_07

so - querying the tip works now?

1 Like