# Cntools.sh is not working on offline machine for 1.26.1

**URL:** <https://forum.cardano.org/t/cntools-sh-is-not-working-on-offline-machine-for-1-26-1/56813>\
**Category:** Operate a Stake Pool\
**Created:** [8 April 2021 23:39 UTC](https://forum.cardano.org/t/cntools-sh-is-not-working-on-offline-machine-for-1-26-1/56813 "2021-04-08T23:39:20Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![CryptostakesCh](https://avatars.discourse-cdn.com/v4/letter/c/cab0a1/32.png) [@CryptostakesCh](https://forum.cardano.org/u/CryptostakesCh)\
**Post date:** [8 April 2021 23:39 UTC](https://forum.cardano.org/t/cntools-sh-is-not-working-on-offline-machine-for-1-26-1/56813/1 "2021-04-08T23:39:20Z")

</div>

I installed the whole guild\_operators stuff on my offline computer.  
When I try to run cntools.sh on this machine, I am not able to do so.  
I get the following error message:

Failed to query protocol-parameters from node, not yet fully started?

ERROR: CNTools failed to load common env file  
Please verify set values in ‘User Variables’ section in env file or log an issue on GitHub

This is due to calling the cardano-cli query protocol-parameters.

Any idea how to fix that?

---

<div class="post-metadata">

**Author:** ![comozo](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/comozo/32/38963_2.png) [@comozo](https://forum.cardano.org/u/comozo)\
**Post date:** [8 April 2021 23:51 UTC](https://forum.cardano.org/t/cntools-sh-is-not-working-on-offline-machine-for-1-26-1/56813/2 "2021-04-08T23:51:58Z")

</div>

Hi @CryptostakesCh

If your node is offline you may want to use this command the -o enable offline mode

```
    `cntools.sh -o`

```

Cheers

---

<div class="post-metadata">

**Author:** ![CryptostakesCh](https://avatars.discourse-cdn.com/v4/letter/c/cab0a1/32.png) [@CryptostakesCh](https://forum.cardano.org/u/CryptostakesCh)\
**Post date:** [9 April 2021 05:16 UTC](https://forum.cardano.org/t/cntools-sh-is-not-working-on-offline-machine-for-1-26-1/56813/3 "2021-04-09T05:16:51Z")

</div>

Hi @comozo

I was not being clear. I was been using cntools.sh -o  
That actually was the problem.  
using cntools.sh -o will later issue a query for the protocol-parameters, but as my database has not been synced (due to the offline mode) there is the mentioned error.

Cheers

---

<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:** [9 April 2021 06:20 UTC](https://forum.cardano.org/t/cntools-sh-is-not-working-on-offline-machine-for-1-26-1/56813/4 "2021-04-09T06:20:30Z")

</div>

Check the env file

---

<div class="post-metadata">

**Author:** ![CryptostakesCh](https://avatars.discourse-cdn.com/v4/letter/c/cab0a1/32.png) [@CryptostakesCh](https://forum.cardano.org/u/CryptostakesCh)\
**Post date:** [9 April 2021 07:12 UTC](https://forum.cardano.org/t/cntools-sh-is-not-working-on-offline-machine-for-1-26-1/56813/5 "2021-04-09T07:12:08Z")

</div>

Hi @Alexd1985

Thanks for your reply. I did that.  
On my box, this line is causing the issue:

if ! PROT\_PARAMS="({CCLI} query protocol-parameters {NETWORK\_IDENTIFIER} 2\>&1)"; then echo -e "{FG\_RED}Failed to query protocol-parameters from node, not yet fully started?${NC}" && return 2; fi

So when I start cntools.sh -o, the env file is started and as I am sitting on my air-gapped machine, it does not allow me to call the CCLI protocol-parameters.

---

<div class="post-metadata">

**Author:** ![CryptostakesCh](https://avatars.discourse-cdn.com/v4/letter/c/cab0a1/32.png) [@CryptostakesCh](https://forum.cardano.org/u/CryptostakesCh)\
**Post date:** [9 April 2021 07:23 UTC](https://forum.cardano.org/t/cntools-sh-is-not-working-on-offline-machine-for-1-26-1/56813/6 "2021-04-09T07:23:19Z")

</div>

Just a short update. On a new installation, I tried to synchronize the database up to epoch \> 214.  
At this point, the env file did return an answer, which allowed me to start cntools.sh -o.

But I find it unfortunate, that I have to sync the database on a air-gapped machine…

---

<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:** [9 April 2021 07:37 UTC](https://forum.cardano.org/t/cntools-sh-is-not-working-on-offline-machine-for-1-26-1/56813/7 "2021-04-09T07:37:37Z")

</div>

wait for the live node to be synced and then u can copy the db to the offline machine.

---

<div class="post-metadata">

**Author:** ![CryptostakesCh](https://avatars.discourse-cdn.com/v4/letter/c/cab0a1/32.png) [@CryptostakesCh](https://forum.cardano.org/u/CryptostakesCh)\
**Post date:** [9 April 2021 22:36 UTC](https://forum.cardano.org/t/cntools-sh-is-not-working-on-offline-machine-for-1-26-1/56813/8 "2021-04-09T22:36:27Z")

</div>

Guild Tools have released a new version 8.1.5 which solves this issue permanently.

Problem solved. Thanks for your support @Alexd1985
