# CNTools - Error: Rerun in offline mode

**URL:** <https://forum.cardano.org/t/cntools-error-rerun-in-offline-mode/42880>\
**Category:** Operate a Stake Pool\
**Created:** [6 December 2020 05:37 UTC](https://forum.cardano.org/t/cntools-error-rerun-in-offline-mode/42880 "2020-12-06T05:37:31Z")\
**Posts on this page:** 20\
**Page:** 2

<div class="post-metadata">

**Author:** ![Alexd1985](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/alexd1985/32/23759_2.png) [@Alexd1985](https://forum.cardano.org/u/Alexd1985)\
**Post date:** [7 December 2020 19:51 UTC](https://forum.cardano.org/t/cntools-error-rerun-in-offline-mode/42880/23 "2020-12-07T19:51:14Z")

</div>

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

Thx!

---

<div class="post-metadata">

**Author:** ![aRved](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/arved/32/52885_2.png) [@aRved](https://forum.cardano.org/u/aRved)\
**Post date:** [12 November 2021 17:53 UTC](https://forum.cardano.org/t/cntools-error-rerun-in-offline-mode/42880/24 "2021-11-12T17:53:45Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Alexd1985](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/alexd1985/32/23759_2.png) [@Alexd1985](https://forum.cardano.org/u/Alexd1985)\
**Post date:** [12 November 2021 17:59 UTC](https://forum.cardano.org/t/cntools-error-rerun-in-offline-mode/42880/25 "2021-11-12T17:59:14Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![aRved](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/arved/32/52885_2.png) [@aRved](https://forum.cardano.org/u/aRved)\
**Post date:** [12 November 2021 18:01 UTC](https://forum.cardano.org/t/cntools-error-rerun-in-offline-mode/42880/26 "2021-11-12T18:01:36Z")

</div>

last lines contain

```auto
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

---

<div class="post-metadata">

**Author:** ![Alexd1985](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/alexd1985/32/23759_2.png) [@Alexd1985](https://forum.cardano.org/u/Alexd1985)\
**Post date:** [12 November 2021 18:04 UTC](https://forum.cardano.org/t/cntools-error-rerun-in-offline-mode/42880/27 "2021-11-12T18:04:59Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![aRved](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/arved/32/52885_2.png) [@aRved](https://forum.cardano.org/u/aRved)\
**Post date:** [12 November 2021 18:07 UTC](https://forum.cardano.org/t/cntools-error-rerun-in-offline-mode/42880/28 "2021-11-12T18:07:24Z")

</div>

yes of course:

```auto
POOL_NAME="TTL" 

```

thanks for your help …

---

<div class="post-metadata">

**Author:** ![Alexd1985](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/alexd1985/32/23759_2.png) [@Alexd1985](https://forum.cardano.org/u/Alexd1985)\
**Post date:** [12 November 2021 18:08 UTC](https://forum.cardano.org/t/cntools-error-rerun-in-offline-mode/42880/29 "2021-11-12T18:08:41Z")

</div>

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

share the output

---

<div class="post-metadata">

**Author:** ![aRved](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/arved/32/52885_2.png) [@aRved](https://forum.cardano.org/u/aRved)\
**Post date:** [12 November 2021 18:12 UTC](https://forum.cardano.org/t/cntools-error-rerun-in-offline-mode/42880/30 "2021-11-12T18:12:44Z")

</div>

```auto
drwxrwxrwx 2 User User 4096 Nov 12 08:08 TTL

```

as mentioned before it works with setting

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

```

in cnode.sh

---

<div class="post-metadata">

**Author:** ![Alexd1985](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/alexd1985/32/23759_2.png) [@Alexd1985](https://forum.cardano.org/u/Alexd1985)\
**Post date:** [12 November 2021 18:15 UTC](https://forum.cardano.org/t/cntools-error-rerun-in-offline-mode/42880/31 "2021-11-12T18:15:12Z")

</div>

can u share the env again? First 10 lines?

---

<div class="post-metadata">

**Author:** ![aRved](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/arved/32/52885_2.png) [@aRved](https://forum.cardano.org/u/aRved)\
**Post date:** [12 November 2021 18:16 UTC](https://forum.cardano.org/t/cntools-error-rerun-in-offline-mode/42880/32 "2021-11-12T18:16:13Z")

</div>

nothing changed there apart of the port

```auto
!/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 …

---

<div class="post-metadata">

**Author:** ![Alexd1985](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/alexd1985/32/23759_2.png) [@Alexd1985](https://forum.cardano.org/u/Alexd1985)\
**Post date:** [12 November 2021 18:22 UTC](https://forum.cardano.org/t/cntools-error-rerun-in-offline-mode/42880/33 "2021-11-12T18:22:03Z")

</div>

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](https://raw.githubusercontent.com/cardano-community/guild-operators/master/scripts/cnode-helper-scripts/env)

It looks from now this is the right path

---

<div class="post-metadata">

**Author:** ![aRved](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/arved/32/52885_2.png) [@aRved](https://forum.cardano.org/u/aRved)\
**Post date:** [12 November 2021 18:26 UTC](https://forum.cardano.org/t/cntools-error-rerun-in-offline-mode/42880/34 "2021-11-12T18:26:02Z")

</div>

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 :-/

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

```

---

<div class="post-metadata">

**Author:** ![Alexd1985](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/alexd1985/32/23759_2.png) [@Alexd1985](https://forum.cardano.org/u/Alexd1985)\
**Post date:** [12 November 2021 18:28 UTC](https://forum.cardano.org/t/cntools-error-rerun-in-offline-mode/42880/35 "2021-11-12T18:28:01Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![aRved](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/arved/32/52885_2.png) [@aRved](https://forum.cardano.org/u/aRved)\
**Post date:** [12 November 2021 18:32 UTC](https://forum.cardano.org/t/cntools-error-rerun-in-offline-mode/42880/36 "2021-11-12T18:32:18Z")

</div>

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:

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

```

so somehow it messes up the $CNODE\_HOME

---

<div class="post-metadata">

**Author:** ![Alexd1985](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/alexd1985/32/23759_2.png) [@Alexd1985](https://forum.cardano.org/u/Alexd1985)\
**Post date:** [12 November 2021 18:42 UTC](https://forum.cardano.org/t/cntools-error-rerun-in-offline-mode/42880/37 "2021-11-12T18:42:44Z")

</div>

> [@aRved](#):
>
> 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 :-/

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

---

<div class="post-metadata">

**Author:** ![Alexd1985](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/alexd1985/32/23759_2.png) [@Alexd1985](https://forum.cardano.org/u/Alexd1985)\
**Post date:** [12 November 2021 18:45 UTC](https://forum.cardano.org/t/cntools-error-rerun-in-offline-mode/42880/38 "2021-11-12T18:45:00Z")

</div>

> [@aRved](#):
>
> so somehow it messes up the $CNODE\_HOME

Try this command

```auto

. "${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](https://charity-pool.ro/cnode.txt)

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

---

<div class="post-metadata">

**Author:** ![aRved](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/arved/32/52885_2.png) [@aRved](https://forum.cardano.org/u/aRved)\
**Post date:** [12 November 2021 19:55 UTC](https://forum.cardano.org/t/cntools-error-rerun-in-offline-mode/42880/40 "2021-11-12T19:55:05Z")

</div>

it seems like that for what ever reason I uncommented

```auto
#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 …

---

<div class="post-metadata">

**Author:** ![aRved](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/arved/32/52885_2.png) [@aRved](https://forum.cardano.org/u/aRved)\
**Post date:** [12 November 2021 19:58 UTC](https://forum.cardano.org/t/cntools-error-rerun-in-offline-mode/42880/41 "2021-11-12T19:58:08Z")

</div>

… and using [coincashew](https://www.coincashew.com/coins/overview-ada/guide-how-to-build-a-haskell-stakepool-node#7.-create-startup-scripts)´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 …

---

<div class="post-metadata">

**Author:** ![Alexd1985](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/alexd1985/32/23759_2.png) [@Alexd1985](https://forum.cardano.org/u/Alexd1985)\
**Post date:** [12 November 2021 20:08 UTC](https://forum.cardano.org/t/cntools-error-rerun-in-offline-mode/42880/42 "2021-11-12T20:08:04Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![aRved](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/arved/32/52885_2.png) [@aRved](https://forum.cardano.org/u/aRved)\
**Post date:** [14 November 2021 00:14 UTC](https://forum.cardano.org/t/cntools-error-rerun-in-offline-mode/42880/43 "2021-11-14T00:14:12Z")

</div>

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 😛

thanks again for your advice alex, really appreciate it …

[Previous page](https://forum.cardano.org/t/cntools-error-rerun-in-offline-mode/42880.md?page=1)

[Next page](https://forum.cardano.org/t/cntools-error-rerun-in-offline-mode/42880.md?page=3)
