1

Running any cardano-cli command returns this error,Cardano-node is already running in another terminal,CARDANO_NODE_SOCKET_PATH is set in environment variable. Confirmed through echo. It leads to node.socket file white_check_mark eyes raised_hands enter image description here

2
  • 1
    Did you update your terminal with source ~/.bashrc?
    – zhekson
    Commented Jun 27, 2022 at 19:34
  • 1
    Verify that your current user can read the socket file with ls -l $CARDANO_NODE_SOCKET_PATH Commented Jun 28, 2022 at 3:31

1 Answer 1

1

As per my comment, verify that your current user can see the socket file with ls -l $CARDANO_NODE_SOCKET_PATH

The error that you see will be due to either:

  1. The node is not running (but you confirmed that it is running so not that)
  2. Environment variable CARDANO_NODE_SOCKET_PATH is not set for the current user (but you confirmed that it has a value)
  3. CARDANO_NODE_SOCKET_PATH having a value that is different to the actual path of the socket file

Most likely is option 3 which could be due to a typo when setting CARDANO_NODE_SOCKET_PATH

Another possibilty is that the current user might not have permission to read the socket file, but the error normally states if there is a permissions issue so I don't think it's that in your case.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.