Beginner Pool operator here, I was in the process of setting up my wallet and ran into an issue where my socket disappeared.
- set up two relays and a producer
- created a wallet using cntools
- transferred ada from daedalus wallet
- then went to POOL >> SHOW to see if I could see the pool i had created
Then this happened:
2021-03-02 03:30:20 UTC [INFO] >> POOL >> SHOW
2021-03-02 03:30:20 UTC [DEBUG] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2021-03-02 03:30:21 UTC [DEBUG] Selected pool: Adopt_Pool
2021-03-02 03:30:21 UTC [DEBUG] Dumping ledger-state from node, can take a while on larger networksâŚ
2021-03-02 03:30:21 UTC [ACTION] timeout -k 5 300 /home/lando/.cabal/bin/cardano-cli query ledger-state --mary-era --mainnet --out-file /tmp/cnode/cntools/ledger-state.json
2021-03-02 03:30:31 UTC [ERROR] MuxError (MuxIOException writev: resource vanished (Broken pipe)) â(sendAll errored)â
2021-03-02 03:30:31 UTC [ERROR] cardano-cli: MuxIOException writev: resource vanished (Broken pipe) "(sendAll errored)"ERROR: ledger dump failed/timed out
2021-03-02 03:30:31 UTC [ERROR] increase timeout value in cntools.config
- then when trying to register the wallet i get this error:
2021-03-02 03:30:58 UTC [ERROR] cardano-cli: Network.Socket.connect: <socket: 16>: does not exist (No such file or directory)
2021-03-02 03:30:58 UTC [ERROR] cardano-cli: Network.Socket.connect: <socket: 16>: does not exist (No such file or directory)
2021-03-02 03:31:05 UTC [DEBUG] Selected wallet: Adopt (Funds: 0 Ada)
2021-03-02 03:31:05 UTC [ERROR] cardano-cli: Network.Socket.connect: <socket: 16>: does not exist (No such file or directory)
2021-03-02 03:31:05 UTC [ERROR] cardano-cli: Network.Socket.connect: <socket: 16>: does not exist (No such file or directory)
2021-03-02 03:31:05 UTC [ERROR] ERROR: no funds available in base address for wallet Adopt
2021-03-02 03:31:05 UTC [DEBUG] Funds for key deposit(2.000000 Ada) + transaction fee needed to register the wallet
When I looked at one of my relays I saw the existence of node0.socket and I tried to see if I could nano into it thinking I might be able to copy the data into my producer. But this made it disappear from my the relay and the relay is in the same position as the producer. When I look at the other relay I have I can see that node0.socket sitting in cnode/sockets safe and sound. On the relay with the socket I can no problem use gLiveview and itâs connected, on the others they wonât start without the node0.socket. Which makes sense that they need a socket. I am just at a loss as to which command to run to give the producer and the other relay their socket back.
I can no longer get into cntools to finish configuration
Hello,
Check ur env files, ussualy is a problem with socket line , try to uncomment the line and restart the node
What would have caused it to become uncommented? Also I have backup env files that showed up as well
Yes, by default is commented
Try the command
. â${HOME}/.bashrcâ
!!! forum change the format for â - replace them from keyboard
Try to restart the node
Great! It got me a little further on one of my relays. itâs now saying: â\e[31mFailed to query protocol-parameters from node, not yet fully started?\e[0mâ when I run the gLiveview script. Now it says the relay is starting⌠but not active. My other relay is still active and says tip(diff) in place of where the disconnected relay says starting. However, in the working relay, the socket is still commented out. ??
Wait more time and check again with glive, sometime it takes more minutes
Cheers,
Thanks so much and thanks so much for your time. The producer node hasnât improved from itâs original issue even after uncommenting the socket line and running the systemctl restart and bashrc.
type sudo systemctl status cnode
Show me the output
I see ur node is restarting?
Try
journalctl -e -f -u cnode.service
It says " listening on 127.0.0.1 (some port) shutting down⌠cardano-node: Network.Socket.bind: does not exist (No such file or directory)
ah, further up⌠WARN: A prior running Cardano node was not cleanly shutdown, socket file still exists. Cleaning up.
FatalError {fatalErrorMessage = âCardano.Node.Run.handleSimpleNode.readTopologyFile: Is your topology file formatted correctly? The port and valency fields should be numerical. Error in $: Failed reading: satisfy. Expecting object value at â{ââ}
Ok, it is a problem with topology file
Can u show me? Or check the â character
ah, yeah it does look like there are multiples in there⌠
No, the topology file located in files directory
cd âŚ
cd files
nano topology.json
Where u edited the relays IP and port
1 Like
So, I got my producer and both relays running and active and then one of my relays went down again. with same error:

an odd thing is that every time I restart the node it creates a tmp file of env and topologyupdater

my sockets file is empty:

when I look at the processes i get these:

There is nothing in my db folder, on my working node the socket is in my sockets folder

journalctl -e -f -u cnode.service:
cardano-node run --topology â{TOPOLOGY}" --config "{CONFIG}â --database-path â{DB_DIR}" --socket-path "{CARDANO_NODE_SOCKET_PATH}â --host-addr 0.0.0.0 --port ${CNODE_PORT}
Mar 04 01:41:31 mandocardano cnode[26554]: WARN: A prior running Cardano node was not cleanly shutdown, socket file still exists. Cleaning up.

also, attempting to fix it from my producer Iâve now given my producer this issue:
ERROR: You specified xxxxx as your EKG port, but it looks like the cardano-node (PID: xxxxxx ) is not listening on this port. Please update the config or kill the conflicting process first.