Stakepool course error

I am trying to follow the beginners guide to setting up a node and I have run into an error. I am at the point of creating the protocol.json file using the cardano-cli command. It is from the “Create a simple transaction” section. When I enter the command:

cardano-cli shelley query protocol-parameters
–testnet-magic 1097911063
–out-file protocol.json

I get the error message:

cardano-cli: Network.Socket.connect: <socket: 11>: does not exist (Connection refused)

Where do I go from here?

That is quite common but I’m not sure whether the cause is always the same. (I’m not an SPO myself.) You can check previous discussions here: https://forum.cardano.org/search?q=socket%3A%2011

You haven’t set the path to your cardano-node socket file
export CARDANO_NODE_SOCKET_PATH=~/cnode/db/node.socket

you can check the correct path in your cardano-node start script and should look something like this
–database-path ~/cnode/db/node.socket

so you don’t have to type this every time you have a new session - add that to the ~/.bashrc file

2 Likes

I figured it out. There was a typo in my export command. Found it and all is well. Thanks for the help!