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

CC BY-SA 4.0
2022-06-30T01:38:22.373Z
2022-06-30T01:38:22.373Z
MC_Brisbane - JUST Pool
<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.sstatic.net/9A317.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/9A317.png" alt="enter image description here" /></a></p>

CC BY-SA 4.0
2022-06-27T19:34:36.490Z
Did you update your terminal with `source ~/.bashrc`?
zhekson
CC BY-SA 4.0
2022-06-28T03:31:40.417Z
Verify that your current user can read the socket file with `ls -l $CARDANO_NODE_SOCKET_PATH`
MC_Brisbane - JUST Pool
<cardano-cli><wallet><cardano-node>
Stuck in cardano node
# Stuck in cardano node

(Asked by: username_0 on 2022-06-27)

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](https://i.sstatic.net/9A317.png)](https://i.sstatic.net/9A317.png)

**Tags:** cardano-cli, wallet, cardano-node
> **Comments:**
> **username_1**: Did you update your terminal with `source ~/.bashrc`?  
> **username_2**: Verify that your current user can read the socket file with `ls -l $CARDANO_NODE_SOCKET_PATH`  

---

## 1 answers

### Answer by username_2 on 2022-06-30. Score: 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.


---

