Skip to content
This repository has been archived by the owner on Aug 28, 2023. It is now read-only.

Error: "CARDANO_NODE_SOCKET_PATH" #1

Closed
lucifer911 opened this issue Apr 14, 2021 · 2 comments
Closed

Error: "CARDANO_NODE_SOCKET_PATH" #1

lucifer911 opened this issue Apr 14, 2021 · 2 comments

Comments

@lucifer911
Copy link

Hello,
Sorry i have no other way to contact you. I ran into an issue.
I think I am having trouble setting up the PATH. When i run node src/get-balance.js I am getting this error.
Screen Shot 2021-04-14 at 2 04 20 PM
Can you plz guide me.
Thank you.

@AstroWa3l
Copy link
Member

Socket is not showing in db, most likely need to restart your node and check db again, if you don't see socket I would delete db and redownloaded it as it may be corrupted.

@eastpiada
Copy link
Member

@lucifer911 Try this from the command line:

echo $CARDANO_NODE_SOCKET_PATH

If that doesn't return anything then the script you're trying to use won't be able to find your socket. It should be located somewhere like $NODE_HOME/db/socket or $CNODE_HOME/sockets/node0.socket - just depends on how your cardano-node install looks. $NODE_HOME might be something like /home/ada/pi-node or /opt/cardano/cnode for example.

You can set it from the command line and it'll be available for the duration of your session:
export CARDANO_NODE_SOCKET_PATH=$NODE_HOME/db/socket

Or add that export command above to your .bashrc file in your $HOME directory and you shouldn't have to mess with it again.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants