Parsing ledger-state stucks with cntools

Which script?

topology updater? I don’t think it’s necessary do download again the configuration file (but u can try) because when u ran the script manually it worked… but when u ran with crontab it doesn’t

Updater works. What is wrong is the blockNo that

https://api.clio.one/htopology/v1/

get from topologyupdater. What this curl request pass is these variables

?port=6000&blockNo=5334296&valency=1&magic=764824073

Now I’m pretty sure about port and valency, magic comes from this

jq -r .networkMagic < mainnet-shelley-genesis.json

and blockNo from

curl -s -m ${EKG_TIMEOUT} -H ‘Accept: application/json’ “http://${EKG_HOST}:${EKG_PORT}/” 2>/dev/null | jq -er ‘.cardano.node.metrics.blockNum.int.val //0’

I guess something wrong from cardano.node.metrics.blockNum.int.val. Any idea from where this comes from?

Hi!

could you get the ledger-state by using cardano-cli? here is the command:
./cardano-cli query ledger-state --mainnet --allegra-era > ledger-state.json

Nope. I get

cardano-cli: Network.Socket.connect: <socket: 11>: does not exist (Connection refused)

I’ve installed everything following
https://cardano-community.github.io/guild-operators/#/

I find a socket called node0.socket under opt/cardano/cnode/sockets/

You haven’t set the path to your cardano-node socket file
export CARDANO_NODE_SOCKET_PATH=~/cnode/db/node.socket

you can check the correct path in your cardano-node start script and should look something like this
–database-path ~/cnode/db/node.socket

so you don’t have to type this every time you have a new session - add that to the ~/.bashrc file