CNTools - Error: Rerun in offline mode

Cool, you are now ready to create BLOCKS!
Wellcome to decentralization and tell your friends to support small pools!

Thx!

Does anyone has an explanation why I had to set this param in my cnode.sh for the BP even if its already set in the env file? Took me a while to figure out what was the problem. But apparently without setting the POOL_DIR path in cnode.sh it wont load the keys hence not start the node as a BP.

Nope, it should work without … did u updated the bashrc file? Can u check the last lines with export?

nano ./bashrc

PS: it was needed in the past but now should work without

last lines contain

export CNODE_HOME=/opt/cardano/cnode
export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH

EDIT:
all the params from env are working, so its just weird that this specific one does not

Can u share the env file, the line with
pool name? Thanks!

yes of course:

POOL_NAME="TTL" 

thanks for your help …

now go to
cd opt/cardano/cnode/priv/pool
ls -l

share the output

drwxrwxrwx 2 User User 4096 Nov 12 08:08 TTL

as mentioned before it works with setting

POOL_DIR="${CNODE_HOME}/priv/pool/TTL"

in cnode.sh

can u share the env again? First 10 lines?

nothing changed there apart of the port

!/usr/bin/env bash
# shellcheck disable=SC2034,SC2086,SC2230,SC2009,SC2206,SC2062,SC2059,SC2229,SC2154,SC2162,SC2120

######################################
# User Variables - Change as desired #
# Leave as is if unsure              #
######################################

#CNODEBIN="${HOME}/.cabal/bin/cardano-node"             # Override automatic detection of cardano-node executable
#CCLI="${HOME}/.cabal/bin/cardano-cli"                  # Override automatic detection of cardano-cli executable
#CNCLI="${HOME}/.cargo/bin/cncli"                       # Override automatic detection of executable (https://github.com/AndrewWes>
#CNODE_HOME="/opt/cardano/cnode"                        # Override default CNODE_HOME path (defaults to /opt/cardano/cnode)
CNODE_PORT=myPORT                                         # Set node port
#CONFIG="${CNODE_HOME}/files/config.json"               # Override automatic detection of node config path
#SOCKET="${CNODE_HOME}/sockets/node0.socket"            # Override automatic detection of path to socket
#TOPOLOGY="${CNODE_HOME}/files/topology.json"           # Override default topology.json path
#LOG_DIR="${CNODE_HOME}/logs"                           # Folder where your logs will be sent to (must pre-exist)
#DB_DIR="${CNODE_HOME}/db"                              # Folder to store the cardano-node blockchain db
#UPDATE_CHECK="Y"                                       # Check for updates to scripts, it will still be prompted before proceedin>
#TMP_DIR="/tmp/cnode"                                   # Folder to hold temporary files in the various scripts, each script might>
#USE_EKG="Y"                                            # Use EKG metrics from the node instead of Prometheus. Prometheus metrics >
#EKG_HOST=127.0.0.1                                     # Set node EKG host IP
#EKG_PORT=12788                                         # Override automatic detection of node EKG port
#PROM_HOST=127.0.0.1                                    # Set node Prometheus host IP
#PROM_PORT=12798                                        # Override automatic detection of node Prometheus port
#EKG_TIMEOUT=3                                          # Maximum time in seconds that you allow EKG req

maybe its worth mentioning that I switched from the coincashew guide to the cnode guild one

its also not so bad, i figured out what caused the issue so its working now, just been curious why this happened to me …

Nope, it seems they changes the path, look at the latest version of env

https://raw.githubusercontent.com/cardano-community/guild-operators/master/scripts/cnode-helper-scripts/env

It looks from now this is the right path

which path do you mean?

what is more important to me is that every time I restart the node I get this stupid message and the node is verifying the whole db which takes around 15 min before it fully starts. It happens on the BP and the RN but the RN start in under 2 min and the BP takes like 15 min :-/

WARN: A prior running Cardano node was not cleanly shutdown, socket file still exists. Cleaning up.

do u see? U don’t need to soecify the folder name…

without specifying the POOL_DIR folder my node is just starting as a RN instead of a BP.

what I just found during startup is:

cnode[245126]: cardano-node: /priv/pool/TTL/vrf.skey: getFileStatus: does not exist

so somehow it messes up the $CNODE_HOME

It is normal to see thar warning… also it depends how faster is the CPU

Try this command


. "${HOME}/.bashrc"

cd CNODE_HOME/priv/pool/TTL

ls -l

can u share the output?

Also can be your cnode.sh different than mine?

https://charity-pool.ro/cnode.txt

U can run prereqs.sh again to download the latest files

it seems like that for what ever reason I uncommented

#POOL_FOLDER="${CNODE_HOME}/priv/pool"  

in env. After I commented it back it works now without specifying POOL_DIR in cnode.sh

very interesting/weird fact … anyways thanks a lot for your help alex. You´re a legend here in this forum, I have read a lot of your comments already … enjoy your weekend …

… and using coincashew´s systemd startup script seem to decrease my startup time drastically. I don´t understand why guild operators have to use the kill command to exit the node …

Thank you

But if u are using cntools can u run the script ./deploy-as-systemd.sh

First disable the systemd from coincashew !

  • for relay pres Y for topology updater and keep the default the restart time (24 hours)
  • for producer press N for topology updater and also for the rest

restart the nodes and check again

Thats what I did initially after switching from coincashew guide/version to cntools. Like I said so far its working fine for my relay nodes (restart took yesterday - one day in the new epoch - around 1 min) but for my block producer it took around 15 minutes … tried it several times … after switching the systemd starting script from cntools one to coincashew even my block producer started way faster … does not really matter anyways cause I do not plan to restart my block producer that often but if I does it should restart as fast as possible just because its the block producer :stuck_out_tongue:

thanks again for your advice alex, really appreciate it …

1 Like