user7262: 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


user6632: 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:

The node is not running (but you confirmed that it is running so not that)
Environment variable CARDANO_NODE_SOCKET_PATH is not set for the current user (but you confirmed that it has a value)
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.

7262: <p>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
<a href="https://i.stack.imgur.com/9A317.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/9A317.png" alt="enter image description here" /></a></p>
 6632: <p>As per my comment, verify that your current user can see the socket file with <code>ls -l $CARDANO_NODE_SOCKET_PATH</code></p>
<p>The error that you see will be due to either:</p>
<ol>
<li>The node is not running (but you confirmed that it is running so not that)</li>
<li>Environment variable <code>CARDANO_NODE_SOCKET_PATH</code> is not set for the <strong>current user</strong> (but you confirmed that it has a value)</li>
<li><code>CARDANO_NODE_SOCKET_PATH</code> having a value that is different to the actual path of the socket file</li>
</ol>
<p>Most likely is option 3 which could be due to a typo when setting <code>CARDANO_NODE_SOCKET_PATH</code></p>
<p>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.</p>
