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
I defined the environment variable but still giving me error, the file node.socket is in this rute
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
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
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
still giving me socket11 does not exist error
strange… and do you see new tip
logs statements?
also what is the output of lsof /home/cardano/cnode/sockets/node.socket
Yes I see
When I put lsof /home/cardano/cnode/sockets/node.socket don’t appear nothing
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"
When I put the command whitout sudo su nothing appears but whit sudo su:
what is the output of this command
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
you are right, I stopped the node before
so - querying the tip works now?