What is node.socket - when does it exist?

Hi Folks,

What exactly is node.socket and when does it exist, and when does it not exist?

Thank you

Hi!

Cardano-cli connects to cardano-node via socket. The socket “exists” when cardano-node has finished starting up - all databases opened.

1 Like

This is the same challenge that I had before … ‘Socket does not exist’ I do not see a socket file, adn this worked days ago, and I do not recall making a change.

Variables and path exist …
error 5

Error
error_2

db Directory - NO SOCKET
error 4

Block Producer
error_1

Relay
error_3

Any thoughts as to why there is no socket?

Thank you

Check inside the script (for starting the node) what path has the socket file, and u should find it there

This is the start script on the block producer - nothing special …

error6

I stopped the service on the BP, then sudo rm -R db and started the service. The socket folder reappeared and I’ll wait for the db to finish tomorrow and see if this works.

Thank

Hi!

The socket is a file, not a folder. That is why is better to give an extension for the file - like:
--socket-path /home/ec2-user/cardano-node/db/node.socket

Once this file created it should remain there regardless of the node stopped or restarted…