Odd issue where port had disappeared before wallet registration

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

image

image

I see ur node is restarting?

Try

journalctl -e -f -u cnode.service

image

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)

No other error?

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… image

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:

image

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

image

my sockets file is empty:

image

when I look at the processes i get these:

image

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

image

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.

image

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.