<p>Seems like you forgot to set the environment variable for CARDANO_NODE_SOCKET_PATH as mentioned in here while setting up the node.</p>
<p><a href="https://developers.cardano.org/docs/get-started/running-cardano/#querying-the-cardano-blockchain" rel="nofollow noreferrer">https://developers.cardano.org/docs/get-started/running-cardano/#querying-the-cardano-blockchain</a></p>

CC BY-SA 4.0
2022-03-28T20:37:01.640Z
I am now getting this error :(
Cardanofan
CC BY-SA 4.0
2022-03-28T20:38:09.177Z
root@vmi828826:/home/cardano# cardano-node run \
>    --topology path/to/mainnet-topology.json \
>    --database-path path/to/db \
>    --socket-path path/to/db/node.socket \
>    --host-addr 154.53.34.181 \
>    --port 3001 \
>    --config path/to/mainnet-config.json
InvalidYaml (Just (YamlException "Yaml file not found: path/to/mainnet-config.json"))

cardano-node: YAML exception:
Yaml file not found: path/to/mainnet-config.jsonroot@vmi828826:/home/cardano#
Cardanofan
CC BY-SA 4.0
2022-03-29T00:54:08.217Z
You have to change each of the values of 'path/to/...' to the actual path that suits your environment.
MC_Brisbane - JUST Pool
CC BY-SA 4.0
2022-03-29T07:37:43.377Z
damn. i have no idea how to do that lol
Cardanofan
CC BY-SA 4.0
2022-03-28T08:17:46.480Z
2022-03-28T09:06:31.103Z
2022-03-28T09:06:31.103Z
nabin
<p>I am trying to run my own cardano node and use cli wallets. When I run this command: cardano-cli query tip --mainnet</p>
<p>I am getting the following error: Command failed: query tip  Error: Error while looking up environment variable: CARDANO_NODE_SOCKET_PATH  Error: &quot;CARDANO_NODE_SOCKET_PATH&quot;</p>
<p>Can some one guide me please? I am very new to this</p>
<p>Thanks a Ton</p>

<cardano-cli><wallet><node>
CARDANO_NODE_SOCKET_PATH Error
# CARDANO_NODE_SOCKET_PATH Error

(Asked by: username_0 on 2022-03-28)

I am trying to run my own cardano node and use cli wallets. When I run this command: cardano-cli query tip --mainnet

I am getting the following error: Command failed: query tip Error: Error while looking up environment variable: CARDANO\_NODE\_SOCKET\_PATH Error: "CARDANO\_NODE\_SOCKET\_PATH"

Can some one guide me please? I am very new to this

Thanks a Ton

**Tags:** cardano-cli, wallet, node

---

## 1 answers

### Answer by username_1 on 2022-03-28. Score: 2

Seems like you forgot to set the environment variable for CARDANO\_NODE\_SOCKET\_PATH as mentioned in here while setting up the node.

<https://developers.cardano.org/docs/get-started/running-cardano/#querying-the-cardano-blockchain>

> **Comments:**
> **username_0**: I am now getting this error :(  
> **username_0**: root@vmi828826:/home/cardano# cardano-node run \ >    --topology path/to/mainnet-topology.json \ >    --database-path path/to/db \ >    --socket-path path/to/db/node.socket \ >    --host-addr 154.53.34.181 \ >    --port 3001 \ >    --config path/to/mainnet-config.json InvalidYaml (Just (YamlException "Yaml file not found: path/to/mainnet-config.json"))  cardano-node: YAML exception: Yaml file not found: path/to/mainnet-config.jsonroot@vmi828826:/home/cardano#  
> **username_2**: You have to change each of the values of 'path/to/...' to the actual path that suits your environment.  
> **username_0**: damn. i have no idea how to do that lol  

---

