How to set up a POOL in a few minutes - and register using CNTOOLS

type journalctl -e -f -u cnode and check for the error

Byron genesis file not found: /opt/cardano/cnode/files/null
ERROR: Failed to load common env file
Please verify set values in 'User Variables' section in env file or log an issue on GitHub

I think this is what I reported above, and the files are there.

cd /opt/cardano/cnode/files
ls -l

can you share the output? cover the user in case is not root

/o/c/c/files ls -l                                                             13:22:29
total 1108
-rw-rw-r-- 1 test    9459 Apr 17  2023 alonzo-genesis.json
-rw-rw-r-- 1 test 1056360 Apr 17  2023 byron-genesis.json
-rw-rw-r-- 1 test    2651 Apr 17  2023 config.json
-rw-rw-r-- 1 test    2597 Mar  7  2023 config.json_bkp1678210870
-rw-rw-r-- 1 test    2651 Mar 13  2023 config.json_bkp1678721683
-rw-rw-r-- 1 test    2651 Apr 17  2023 config.json_bkp1681731550
-rw-rw-r-- 1 test    2651 Apr 17  2023 config.json_bkp1681732017
-rw-rw-r-- 1 test    2632 Apr 17  2023 dbsync.json
-rw-rw-r-- 1 test    2632 Mar  7  2023 dbsync.json_bkp1678210870
-rw-rw-r-- 1 test    2632 Mar 13  2023 dbsync.json_bkp1678721683
-rw-rw-r-- 1 test   2632 Apr 17  2023 dbsync.json_bkp1681731550
-rw-rw-r-- 1 test    2632 Apr 17  2023 dbsync.json_bkp1681732017
-rw-rw-r-- 1 test    2486 Apr 17  2023 shelley-genesis.json
-rw-rw-r-- 1 test     128 Apr 17  2023 topology.json
-rw-rw-r-- 1 test     192 Mar  7  2023 topology.json_bkp1678210870
-rw-rw-r-- 1 test     128 Mar 13  2023 topology.json_bkp1678721683
-rw-rw-r-- 1 test     128 Apr 17  2023 topology.json_bkp1681731550
-rw-rw-r-- 1 test     128 Apr 17  2023 topology.json_bkp1681732017

You are missing the conway config file

2 Likes

OK, thank you, @Zyroxa!
I went to How to run cardano-node | Cardano Developer Portal
and got the files.
Now I’m getting

Checking for script updates...
Looks like cardano-node is running with socket-path as /opt/cardano/cnode/sockets/node.socket, but the actual socket file does not exist.
This could occur if the node hasnt completed startup or if a second instance of node startup was attempted!
If this does not resolve automatically in a few minutes, you might want to restart your node and try again.

I enter sudo systemctl stop cnode and get the same message.
In /opt/cardano/cnode/sockets, I have node0.socket= rather than “node.socket”.
Not sure how to fix this.

I think you can adjust it in your env file but not 100% certain if thats enough. maybe @Alexd1985 knows better.

type again journalctl -e -f -u cnode and check for the error; should be a different one

Here’s everything I’m seeing:

Deploying cnode-submit-api as systemd service..
cnode-submit-api.service deployed successfully!!

~~ Topology Updater ~~
An intermediate centralized solution for relay nodes to handle the static topology files until P2P network module is implemented on protocol level.
A service file is deployed that once every 60 min send a message to API. After 4 consecutive successful requests (3 hours) the relay is accepted and available for others to fetch. If the node is turned off, it’s automatically delisted after 3 hours.
For more info, visit https://cardano-community.github.io/guild-operators/Scripts/topologyupdater

Deploy Topology Updater as systemd services? (only for relay nodes) [y|n]

~~ Leaderlog / PoolTool SendSlots ~~
A collection of services that together creates a blocklog of current and upcoming blocks
Dependant on cnode.service and when started|stopped|restarted all these companion services will apply the same action
cnode-cncli-sync        : Start CNCLI chainsync process that connects to cardano-node to sync blocks stored in SQLite DB
cnode-cncli-leaderlog   : Loops through all slots in current epoch to calculate leader schedule
cnode-cncli-validate    : Confirms that the block made actually was accepted and adopted by chain
cnode-cncli-ptsendslots : Securely sends PoolTool the number of slots you have assigned for an epoch and validates the correctness of your past epochs (optional)
cnode-logmonitor        : Parses JSON log of cardano-node for traces of interest to give instant adopted status and invalid status (optional)

cncli executable not found... skipping!

~~ PoolTool SendTip ~~
Countinously sends node tip to PoolTool for network analysis and to show that your node is alive and well with a green badge
Dependant on cnode.service and when started|stopped|restarted ptsendtip services will apply the same action

cncli executable not found... skipping!

~~ BlockPerf / Propagation performance ~~
A service parsing the node block propagation times from announced header to adopted block
sends block propagation time data to TopologyUpdater for common network analysis and performance comparison
cnode-tu-blockperf          : Parses JSON log of cardano-node for block network propagation times

Deploy BlockPerf as systemd services? [y|n]
Checking for script updates...
Looks like cardano-node is running with socket-path as /opt/cardano/cnode/sockets/node.socket, but the actual socket file does not exist.
This could occur if the node hasnt completed startup or if a second instance of node startup was attempted!
If this does not resolve automatically in a few minutes, you might want to restart your node and try again.
sleeping for 10s and testing again...

I notice it can’t find cncli…

I don’t know what you are doing
run ./cnode.sh from scripts folder

what is the output?

btw did u run guild-deploy script?

I’m following out of date instructions, apparently. :slightly_smiling_face:
I did run the guild-deploy script.
I’m running ./cnode.sh now, and it’s on
“Replayed block: slot xxxxxxx out of 10882289”

and sudo systemctl status cnode

10 hours later, it is finally running.
Thank you so much.

Good day Alex! I’m trying to setup preprod and I’m having trouble with my producer node’s topology file. I added a screenshot of the file.

Here is the error message I am recieving: cardano-node: Cardano.Node.Configuration.Topology.readTopologyFile: Is your topology file formatted correctly? Expecting Non-P2P Topology file format. The port and valency fields should be numerical. If you specified the correct topology file make sure that you correctly setup EnableP2P configuration flag. Error in $: empty
CallStack (from HasCallStack):

I managed to get my relay running with the same topology file but it was somehow replaced with this:

{ “resultcode”: “402”, “datetime”:“2024-04-01 15:04:01”, “clientIp”: “64.227.69.231”, “iptype”: 4,
“msg”: “IP is not (yet) allowed to fetch this list”, “Producers”: [ { “addr”: “preprod-node.world.dev.cardano.org”, “port”: 30000, “valency”: 1 } ] }

Thanks in advance!

Are you running p2p on your bp? If not, you have to set p2p to true and change “useLedgerAfterSlot” to -1.

Thank you for the quick reply! I managed to get BP running too. Here is what i see now, it doesn’t look right to me. The one on the right side should be my relay.

Peer analysis shows that nodes are not talking to each other

Did you edit the env file on your bp? Because it looks like you didnt edit it there. Also could you please post both topology files?

I poked around a little more. I am not sure if this is valhalla yet but it looks like i made progress. This is what i see:

I need some rest. Will check back tomorrow.

You have to adjust the poolname in your env file, so that you are running this node as a block producer.

Second question : is there a reason you dont run both in p2p mode?