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: <socket: 11>: 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.
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
echo $CARDANO_NODE_SOCKET_PATH
in my terminal, it gives me the correct path back:~/cardano-src/cardano-node/db/node.socket
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