<p>Alright, the problem were the quotation marks. In the docs they use quotation marks too:</p>
<p><code>export CARDANO_NODE_SOCKET_PATH=&quot;/home/user/cardano/db/node.socket&quot;</code></p>
<p>But here the guy didn't use quotation marks: <a href="https://forum.cardano.org/t/cardano-cli-network-socket-connect-socket-11-does-not-exist/38987/7" rel="nofollow noreferrer">https://forum.cardano.org/t/cardano-cli-network-socket-connect-socket-11-does-not-exist/38987/7</a></p>
<p>So I tried it without it in my ~/.bashrc file:
<a href="https://i.sstatic.net/Hf1vH.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/Hf1vH.png" alt="enter image description here" /></a></p>
<p>and it worked after re-starting the cardano-node and the second terminal:
<a href="https://i.sstatic.net/Od4V8.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/Od4V8.png" alt="enter image description here" /></a></p>

CC BY-SA 4.0
2021-09-12T12:00:44.540Z
2021-09-12T12:00:44.540Z
Boommeister
<p>I have found the solution for myself on a Coincashew tutorial.
<a href="https://www.coincashew.com/coins/overview-ada/guide-how-to-build-a-haskell-stakepool-node#2-build-the-node-from-source-code" rel="nofollow noreferrer">https://www.coincashew.com/coins/overview-ada/guide-how-to-build-a-haskell-stakepool-node#2-build-the-node-from-source-code</a></p>
<p>Basically i executed this:</p>
<pre><code>echo export CARDANO_NODE_SOCKET_PATH=&quot;$NODE_HOME/db/socket&quot; &gt;&gt; $HOME/.bashrc
source $HOME/.bashrc
</code></pre>
<p>That rewired the node path to socket (on the place of node.socket). Don't know what is the real difference but this way worked while the 'node.socket' path don't.</p>

CC BY-SA 4.0
2021-09-13T13:12:31.090Z
2021-09-13T13:12:31.090Z
Marcelo Arraes Teixeira
<p>I was having this issue while trying to get the Plutus PAB to connect to the node. I tried lots of solutions but didn't get it to work until I changed the &quot;testnet/node.sock&quot; in the config (testnet/pab-config.yml). Perhaps it needed to be relative?</p>
<p><strong>plutus-apps/plutus-pab/test-node/testnet/pab-config.yml</strong></p>
<pre><code>...
nodeServerConfig:
  pscSocketPath: testnet/node.sock
...
</code></pre>

CC BY-SA 4.0
2022-03-31T12:20:15.660Z
2022-03-31T12:20:15.660Z
carleryd
<p>When you are specifying <code>CARDANO_NODE_SOCKET_PATH</code> in these formats:</p>
<p><code>&quot;$NODE_HOME/db/socket&quot;</code> you must use double quotes around it</p>
<p><code>~/cardano/db/node.socket</code> you don't need to give double quotes around it</p>

CC BY-SA 4.0
2022-08-16T17:23:20.157Z
2022-08-18T05:15:55.140Z
2022-08-18T05:15:55.140Z
pravin johnson
<p>I'm at this part of the <a href="https://developers.cardano.org/docs/get-started/running-cardano" rel="nofollow noreferrer">docs</a>. The node is running (left terminal in the image below), but now I'm trying to query the blockchain from another terminal and receive the error:</p>
<pre><code>cardano-cli: Network.Socket.connect: &lt;socket: 11&gt;: does not exist (No such file or directory)
</code></pre>
<p><a href="https://i.sstatic.net/WNaNZ.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/WNaNZ.png" alt="my two ubuntu terminals" /></a></p>
<p>I'm running the cardano node on a windows laptop inside an ubuntu terminal that I downloaded from the windows store (as recommended in the cardano docs <a href="https://developers.cardano.org/docs/get-started/installing-cardano-node" rel="nofollow noreferrer">here</a>):</p>
<p><a href="https://i.sstatic.net/lwLAD.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/lwLAD.png" alt="windows store" /></a></p>
<p>I think that maybe the two Ubuntu terminals are completely independent from each other and that's why the right terminal can't find the socket? I tried to install the cardano node on a raspberry Pi 4 also, so that I have a native environment, but the raspberry was just to slow for it...</p>
<p><strong>EDIT:</strong>
I have set the socket path now like this at the bottom of my ~/.bashrc file:</p>
<p><a href="https://i.sstatic.net/CRw2R.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/CRw2R.png" alt="enter image description here" /></a></p>
<p>then restarted the terminal, but still I receive the same error.</p>

CC BY-SA 4.0
2021-09-12T03:23:44.337Z
have you mentioned the socket location when starting the node?
GypsyDanger
CC BY-SA 4.0
2021-09-12T10:33:58.373Z
I have set the same socket path as I used in the `cardano-node run` command:
`export CARDANO_NODE_SOCKET_PATH="~/cardano-src/cardano-node/db/node.socket"`

My cardano-node run command looks like this:

`cardano-node run --topology ~/cardano-src/cardano-node/config-files/testnet-topology.json --database-path ~/cardano-src/cardano-node/db --socket-path ~/cardano-src/cardano-node/db/node.socket --host-addr 127.0.0.1 --port 3001 --config ~/cardano-src/cardano-node/config-files/testnet-config.json`

and the query command: `cardano-cli query tip --testnet-magic 1097911063`
Boommeister
CC BY-SA 4.0
2021-09-12T11:21:29.440Z
when I run `echo $CARDANO_NODE_SOCKET_PATH` in my terminal, it gives me the correct path back: `~/cardano-src/cardano-node/db/node.socket`
Boommeister
CC BY-SA 4.0
2021-09-12T11:22:40.683Z
But when I run `ls -al $CARDANO_NODE_SOCKET_PATH` I receive the error: `ls: cannot access '~/cardano-src/cardano-node/db/node.socket': No such file or directory`
Boommeister
<cardano-cli><cardano-node>
cardano-cli: Network.Socket.connect: <socket: 11>: does not exist
# cardano-cli: Network.Socket.connect: <socket: 11>: does not exist

(Asked by: username_0 on 2021-09-11)

I'm at this part of the docs. The node is running (left terminal in the image below), but now I'm trying to query the blockchain from another terminal and receive the error:
cardano-cli: Network.Socket.connect: : does not exist (No such file or directory)


I'm running the cardano node on a windows laptop inside an ubuntu terminal that I downloaded from the windows store (as recommended in the cardano docs here):

I think that maybe the two Ubuntu terminals are completely independent from each other and that's why the right terminal can't find the socket? I tried to install the cardano node on a raspberry Pi 4 also, so that I have a native environment, but the raspberry was just to slow for it...
EDIT:
I have set the socket path now like this at the bottom of my ~/.bashrc file:

then restarted the terminal, but still I receive the same error.

**Tags:** cardano-cli, cardano-node
> **Comments:**
> **username_1**: have you mentioned the socket location when starting the node?  
> **username_0**: I have set the same socket path as I used in the `cardano-node run` command: `export CARDANO_NODE_SOCKET_PATH="~/cardano-src/cardano-node/db/node.socket"`  My cardano-node run command looks like this:  `cardano-node run --topology ~/cardano-src/cardano-node/config-files/testnet-topology.json --database-path ~/cardano-src/cardano-node/db --socket-path ~/cardano-src/cardano-node/db/node.socket --host-addr 127.0.0.1 --port 3001 --config ~/cardano-src/cardano-node/config-files/testnet-config.json`  and the query command: `cardano-cli query tip --testnet-magic 1097911063`  
> **username_0**: when I run `echo $CARDANO_NODE_SOCKET_PATH` in my terminal, it gives me the correct path back: `~/cardano-src/cardano-node/db/node.socket`  
> **username_0**: But when I run `ls -al $CARDANO_NODE_SOCKET_PATH` I receive the error: `ls: cannot access '~/cardano-src/cardano-node/db/node.socket': No such file or directory`  

---

## 4 answers

### Answer by username_0 on 2021-09-12. Score: 0 | Accepted answer

Alright, the problem were the quotation marks. In the docs they use quotation marks too:

`export CARDANO_NODE_SOCKET_PATH="/home/user/cardano/db/node.socket"`

But here the guy didn't use quotation marks: <https://forum.cardano.org/t/cardano-cli-network-socket-connect-socket-11-does-not-exist/38987/7>

So I tried it without it in my ~/.bashrc file:
[![enter image description here](https://i.sstatic.net/Hf1vH.png)](https://i.sstatic.net/Hf1vH.png)

and it worked after re-starting the cardano-node and the second terminal:
[![enter image description here](https://i.sstatic.net/Od4V8.png)](https://i.sstatic.net/Od4V8.png)


---

### Answer by username_2 on 2021-09-13. Score: 3

I have found the solution for myself on a Coincashew tutorial.
https://www.coincashew.com/coins/overview-ada/guide-how-to-build-a-haskell-stakepool-node#2-build-the-node-from-source-code
Basically i executed this:
echo export CARDANO_NODE_SOCKET_PATH="$NODE_HOME/db/socket" >> $HOME/.bashrc
source $HOME/.bashrc

That rewired the node path to socket (on the place of node.socket). Don't know what is the real difference but this way worked while the 'node.socket' path don't.


---

### Answer by username_3 on 2022-03-31. Score: 1

I was having this issue while trying to get the Plutus PAB to connect to the node. I tried lots of solutions but didn't get it to work until I changed the "testnet/node.sock" in the config (testnet/pab-config.yml). Perhaps it needed to be relative?
plutus-apps/plutus-pab/test-node/testnet/pab-config.yml
...
nodeServerConfig:
  pscSocketPath: testnet/node.sock
...


---

### Answer by username_4 on 2022-08-16. Score: 1

When you are specifying `CARDANO_NODE_SOCKET_PATH` in these formats:

`"$NODE_HOME/db/socket"` you must use double quotes around it

`~/cardano/db/node.socket` you don't need to give double quotes around it


---

