# CARDANO\_NODE\_SOCKET\_PATH Error

**URL:** <https://forum.cardano.org/t/cardano-node-socket-path-error/51726>\
**Category:** Setup a Stake Pool\
**Created:** [4 March 2021 06:20 UTC](https://forum.cardano.org/t/cardano-node-socket-path-error/51726 "2021-03-04T06:20:39Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![zach8302](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/zach8302/32/29636_2.png) [@zach8302](https://forum.cardano.org/u/zach8302)\
**Post date:** [4 March 2021 06:20 UTC](https://forum.cardano.org/t/cardano-node-socket-path-error/51726/1 "2021-03-04T06:20:39Z")

</div>

Hi all

I am trying to run my first node on the testnet. The run command is functioning properly and the node appears to be creating new block but when I attempt to call

cardano-cli shelley query tip --testnet-magic 42

I receive the error

Shelley command failed: query tip Error: Error while looking up environment variable: CARDANO\_NODE\_SOCKET\_PATH Error: “CARDANO\_NODE\_SOCKET\_PATH”

I have already changed the socket path using

export CARDANO\_NODE\_SOCKET\_PATH=/home/user/relay/db/node.socket

but haven’t been able to solve the problem. I would appreciate any advice

thanks!

---

<div class="post-metadata">

**Author:** ![John\_collins](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/john_collins/32/29119_2.png) [@John\_collins](https://forum.cardano.org/u/John_collins)\
**Post date:** [4 March 2021 16:57 UTC](https://forum.cardano.org/t/cardano-node-socket-path-error/51726/2 "2021-03-04T16:57:11Z")

</div>

Same issue here. Why wouldn’t the socket be in the sockets folder!? That’s where it is in an existing relay. I get this error when trying to run gLiveview:

 ![image](https://us1.discourse-cdn.com/flex023/uploads/cardano/original/3X/8/2/8266c196ffd9b1467e897bc7c4d3046f3a23199a.png)

---

<div class="post-metadata">

**Author:** ![zach8302](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/zach8302/32/29636_2.png) [@zach8302](https://forum.cardano.org/u/zach8302)\
**Post date:** [4 March 2021 18:11 UTC](https://forum.cardano.org/t/cardano-node-socket-path-error/51726/3 "2021-03-04T18:11:32Z")

</div>

When I run the node I get

[cardano.#ekgview.realizeFrom:Error:5] [2021-03-04 18:08:54.51 UTC] EKGView backend disabled due to initialisation error: EKGServerStartupError “Network.Socket.bind: resource busy (Address already in use)”

No other processes are running why is the resource busy?

---

<div class="post-metadata">

**Author:** ![zach8302](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/zach8302/32/29636_2.png) [@zach8302](https://forum.cardano.org/u/zach8302)\
**Post date:** [4 March 2021 18:20 UTC](https://forum.cardano.org/t/cardano-node-socket-path-error/51726/4 "2021-03-04T18:20:59Z")

</div>

Figured it out. Just had to killall processes

---

<div class="post-metadata">

**Author:** ![John\_collins](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/john_collins/32/29119_2.png) [@John\_collins](https://forum.cardano.org/u/John_collins)\
**Post date:** [4 March 2021 18:25 UTC](https://forum.cardano.org/t/cardano-node-socket-path-error/51726/5 "2021-03-04T18:25:41Z")

</div>

I was just about to suggest that

---

<div class="post-metadata">

**Author:** ![elboita](https://avatars.discourse-cdn.com/v4/letter/e/8baadc/32.png) [@elboita](https://forum.cardano.org/u/elboita)\
**Post date:** [5 March 2021 01:47 UTC](https://forum.cardano.org/t/cardano-node-socket-path-error/51726/6 "2021-03-05T01:47:40Z")

</div>

Hi, I have same problem too !! I didn’t find the db and the socket folder and I don’t know how to kill the process… I’m really confused 😕

---

<div class="post-metadata">

**Author:** ![KrakenStaking](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/krakenstaking/32/29369_2.png) [@KrakenStaking](https://forum.cardano.org/u/KrakenStaking)\
**Post date:** [5 March 2021 03:15 UTC](https://forum.cardano.org/t/cardano-node-socket-path-error/51726/7 "2021-03-05T03:15:48Z")

</div>

> [@elboita](#):
>
> Hi, I have same problem too !! I didn’t find the db and the socket folder and I don’t know how to kill the process… I’m really confused 😕

Has your node sync’d with the blockchain? I was seeing that error until I let the node sync for awhile.

You can also try to restart the node too, if you used systemd, “sudo systemctl restart cardano-node”

---

<div class="post-metadata">

**Author:** ![elboita](https://avatars.discourse-cdn.com/v4/letter/e/8baadc/32.png) [@elboita](https://forum.cardano.org/u/elboita)\
**Post date:** [5 March 2021 10:19 UTC](https://forum.cardano.org/t/cardano-node-socket-path-error/51726/8 "2021-03-05T10:19:52Z")

</div>

Thanks for your reply.  
Yes I restarted cardano-node and all I got is this error…  
 ![cardano-pool-node-coincashew-1](https://us1.discourse-cdn.com/flex023/uploads/cardano/original/3X/6/a/6a656ccbe2d76e0555531547c79aea29c2c33b40.jpeg)  
The relay works fine.  
 ![cardano-pool-node-coincashew-21](https://us1.discourse-cdn.com/flex023/uploads/cardano/original/3X/8/e/8e78164dc83fd608040c254970c1e6eaea97db58.jpeg)

PS : I didn’t found the db and socket file in the folder cardano-my-node!  
Should I rebuild the whole core node from scratch again?  
Many thanx in advance !

---

<div class="post-metadata">

**Author:** ![Alexd1985](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/alexd1985/32/23759_2.png) [@Alexd1985](https://forum.cardano.org/u/Alexd1985)\
**Post date:** [5 March 2021 11:39 UTC](https://forum.cardano.org/t/cardano-node-socket-path-error/51726/9 "2021-03-05T11:39:28Z")

</div>

Run

journalctl -e -f -u cardano-node.service

---

<div class="post-metadata">

**Author:** ![elboita](https://avatars.discourse-cdn.com/v4/letter/e/8baadc/32.png) [@elboita](https://forum.cardano.org/u/elboita)\
**Post date:** [5 March 2021 11:54 UTC](https://forum.cardano.org/t/cardano-node-socket-path-error/51726/10 "2021-03-05T11:54:25Z")

</div>

Thank you @Alexd1985

I got this

![cardano-pool-node-coincashew-31](https://us1.discourse-cdn.com/flex023/uploads/cardano/original/3X/5/4/54a6c72f408b1a8bcdba6f9c7cdb642dc1035320.jpeg)

---

<div class="post-metadata">

**Author:** ![Alexd1985](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/alexd1985/32/23759_2.png) [@Alexd1985](https://forum.cardano.org/u/Alexd1985)\
**Post date:** [5 March 2021 12:14 UTC](https://forum.cardano.org/t/cardano-node-socket-path-error/51726/11 "2021-03-05T12:14:25Z")

</div>

Ok, and show systemctl status cardano-node

---

<div class="post-metadata">

**Author:** ![rdlrt](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/rdlrt/32/9098_2.png) [@rdlrt](https://forum.cardano.org/u/rdlrt)\
**Post date:** [5 March 2021 12:23 UTC](https://forum.cardano.org/t/cardano-node-socket-path-error/51726/12 "2021-03-05T12:23:39Z")

</div>

> [@John\_collins](#):
>
> Why wouldn’t the socket be in the sockets folder!?

The socket file is created by node after it completes startup (no, service saying running does not mean node has finished startup). Also, if you dont have a clean shutdown or if you interrupt node during startup, you end up having to wait longer because node would have to replay ledger. So for your case, if node is ‘up’ - it could be a matter of monitoring log to ensure node finishes startup before trying to connect to it

---

<div class="post-metadata">

**Author:** ![elboita](https://avatars.discourse-cdn.com/v4/letter/e/8baadc/32.png) [@elboita](https://forum.cardano.org/u/elboita)\
**Post date:** [5 March 2021 12:42 UTC](https://forum.cardano.org/t/cardano-node-socket-path-error/51726/13 "2021-03-05T12:42:56Z")

</div>

> [@Alexd1985](#):
>
> systemctl status cardano-node

I got this  
 ![cardano-pool-node-coincashew-41](https://us1.discourse-cdn.com/flex023/uploads/cardano/original/3X/e/3/e32325aef484e94a1a9cbf45c7b40fb2deb33425.jpeg)

---

<div class="post-metadata">

**Author:** ![Alexd1985](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/alexd1985/32/23759_2.png) [@Alexd1985](https://forum.cardano.org/u/Alexd1985)\
**Post date:** [5 March 2021 12:43 UTC](https://forum.cardano.org/t/cardano-node-socket-path-error/51726/14 "2021-03-05T12:43:49Z")

</div>

ok, so your node doesn’t start; here is the problem

can u try to start it manually?

---

<div class="post-metadata">

**Author:** ![elboita](https://avatars.discourse-cdn.com/v4/letter/e/8baadc/32.png) [@elboita](https://forum.cardano.org/u/elboita)\
**Post date:** [5 March 2021 12:45 UTC](https://forum.cardano.org/t/cardano-node-socket-path-error/51726/15 "2021-03-05T12:45:45Z")

</div>

I think so it stucks at starting…

---

<div class="post-metadata">

**Author:** ![elboita](https://avatars.discourse-cdn.com/v4/letter/e/8baadc/32.png) [@elboita](https://forum.cardano.org/u/elboita)\
**Post date:** [5 March 2021 12:55 UTC](https://forum.cardano.org/t/cardano-node-socket-path-error/51726/16 "2021-03-05T12:55:49Z")

</div>

I got this after trying to start the core node manually…  
 ![cardano-pool-node-coincashew-51](https://us1.discourse-cdn.com/flex023/uploads/cardano/original/3X/9/3/9308e29d53f1ee861abacdf52b7e7ad0389db698.jpeg)

---

<div class="post-metadata">

**Author:** ![Alexd1985](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/alexd1985/32/23759_2.png) [@Alexd1985](https://forum.cardano.org/u/Alexd1985)\
**Post date:** [5 March 2021 12:57 UTC](https://forum.cardano.org/t/cardano-node-socket-path-error/51726/17 "2021-03-05T12:57:51Z")

</div>

and did u checked the script?

nano startBlockProducingNode.sh

try to compare with the script from relay… (or try to start as a relay with the script from relay and check if this way will start)

---

<div class="post-metadata">

**Author:** ![KrakenStaking](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/krakenstaking/32/29369_2.png) [@KrakenStaking](https://forum.cardano.org/u/KrakenStaking)\
**Post date:** [5 March 2021 15:06 UTC](https://forum.cardano.org/t/cardano-node-socket-path-error/51726/18 "2021-03-05T15:06:42Z")

</div>

you mentioned you didn’t see the db folder in cardano-my-node… do you see it at all?

you could point the path in the script startBlockProducingNode.sh to that folder

---

<div class="post-metadata">

**Author:** ![John\_collins](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/john_collins/32/29119_2.png) [@John\_collins](https://forum.cardano.org/u/John_collins)\
**Post date:** [5 March 2021 17:15 UTC](https://forum.cardano.org/t/cardano-node-socket-path-error/51726/19 "2021-03-05T17:15:56Z")

</div>

> [@rdlrt](#):
>
> ont have a clean shutdown or if you interrupt node during startup, you end up having to wait longer because node would have to replay ledger. So for your case, if node is ‘up’ - it could be a matter of monitoring log to ensure node finishes startup before trying to connect to it

I appreciate it. I’ve been very impressed with how helpful the cardano community is. I imagine these would be the kinds of folks to return their shopping carts.

---

<div class="post-metadata">

**Author:** ![Yash7](https://avatars.discourse-cdn.com/v4/letter/y/45deac/32.png) [@Yash7](https://forum.cardano.org/u/Yash7)\
**Post date:** [24 May 2021 18:55 UTC](https://forum.cardano.org/t/cardano-node-socket-path-error/51726/20 "2021-05-24T18:55:55Z")

</div>

I have the path error because the node.socket is not found inside db folder. Does anyone know why is this happening? I just started my node on mainnet 5 minutes before and tried the export command to query slots.

[Next page](https://forum.cardano.org/t/cardano-node-socket-path-error/51726.md?page=2)
