# Error when executing cardano-cli over node.socket

**URL:** <https://forum.cardano.org/t/error-when-executing-cardano-cli-over-node-socket/62015>\
**Category:** Misc Dev Talk\
**Created:** [19 May 2021 20:43 UTC](https://forum.cardano.org/t/error-when-executing-cardano-cli-over-node-socket/62015 "2021-05-19T20:43:31Z")\
**Posts on this page:** 20\
**Page:** 2

<div class="post-metadata">

**Author:** ![laplasz](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/laplasz/32/15238_2.png) [@laplasz](https://forum.cardano.org/u/laplasz)\
**Post date:** [2 June 2021 16:03 UTC](https://forum.cardano.org/t/error-when-executing-cardano-cli-over-node-socket/62015/21 "2021-06-02T16:03:58Z")

</div>

related:

> [@What means Notice: TraceForwarder's queue is full, 200 log items were dropped!?](https://forum.cardano.org/t/what-means-notice-traceforwarders-queue-is-full-200-log-items-were-dropped/63194):
>
> I’m using kubernetes to run a cluster with two cardano node relays and one as a producer. When I do microk8s.kubectl logs -f relay1-0, Sometimes I got [relay1-0:cardano.node.ChainDB:Notice:35] [2021-05-28 17:57:12.34 UTC] Chain extended, new tip: 1377b12ebf47344453262058595f270dc2899b6104ab5e9680f5b9205ccbe51a at slot 25345. But most of the time, the output log in console is Notice: TraceForwarder's queue is full, 200 log items were dropped! What that means? My nodes have a problem?

---

<div class="post-metadata">

**Author:** ![DiazRock](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/diazrock/32/35026_2.png) [@DiazRock](https://forum.cardano.org/u/DiazRock)\
**Post date:** [2 June 2021 16:19 UTC](https://forum.cardano.org/t/error-when-executing-cardano-cli-over-node-socket/62015/22 "2021-06-02T16:19:52Z")

</div>

Yep. Perhaps its a problem with my exposing services to the outside world.

---

<div class="post-metadata">

**Author:** ![DiazRock](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/diazrock/32/35026_2.png) [@DiazRock](https://forum.cardano.org/u/DiazRock)\
**Post date:** [2 June 2021 19:25 UTC](https://forum.cardano.org/t/error-when-executing-cardano-cli-over-node-socket/62015/23 "2021-06-02T19:25:38Z")

</div>

I moved only to a docker image running, using docker run and all the necesary parametters, removing all k8s stuffs. And I still getting the same issue.

```bash
CallStack (from HasCallStack):
  error, called at src/Ouroboros/Network/Protocol/LocalStateQuery/Codec.hs:79:7 in ouroboros-network-0.1.0.0-9c93ee3d43e9b56140acbe9faa613f57a7448c5507bb4a7893cc753336307046:Ouroboros.Network.Protocol.LocalStateQuery.Codec

```

However I’m not having in this stage the [Notice message](https://forum.cardano.org/t/what-means-notice-traceforwarders-queue-is-full-200-log-items-were-dropped/63194). And I’m using the update topology option from nessusio.

I’m using the latest version of nessusio image from which I can inspect, it using the latest version available: 1.27

---

<div class="post-metadata">

**Author:** ![laplasz](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/laplasz/32/15238_2.png) [@laplasz](https://forum.cardano.org/u/laplasz)\
**Post date:** [2 June 2021 19:44 UTC](https://forum.cardano.org/t/error-when-executing-cardano-cli-over-node-socket/62015/24 "2021-06-02T19:44:40Z")

</div>

but this never get fixed somehow?

---

<div class="post-metadata">

**Author:** ![DiazRock](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/diazrock/32/35026_2.png) [@DiazRock](https://forum.cardano.org/u/DiazRock)\
**Post date:** [2 June 2021 19:58 UTC](https://forum.cardano.org/t/error-when-executing-cardano-cli-over-node-socket/62015/25 "2021-06-02T19:58:58Z")

</div>

Nope. I tried some alternatives, but no. The query tips works without --shelley-mode, but this point to Byron era. And other commands, prints an error about it cannot be done in Byron era. And when I use shelley-mode, I get the error message. So I’m stuck right now between these two error messages.

---

<div class="post-metadata">

**Author:** ![DiazRock](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/diazrock/32/35026_2.png) [@DiazRock](https://forum.cardano.org/u/DiazRock)\
**Post date:** [2 June 2021 20:28 UTC](https://forum.cardano.org/t/error-when-executing-cardano-cli-over-node-socket/62015/26 "2021-06-02T20:28:02Z")

</div>

Well, now I’m using the following executables  
[cardano-node:1.25](https://hub.docker.com/layers/nessusio/cardano-node/1.25.1/images/sha256-1a530f9056a7584ebe3a3d705d735c421c4f0377f2da5487ddf9ee5ee8adec3e?context=explore)  
cardano-cli 1.25 from inside the docker image. (I copied it to the host and using from there to query tips 😃)  
I did

`cardano-cli query tip --shelley-mode --testnet-magic 764824073`

And I got

```json
{
    "blockNo": 111005,
    "headerHash": "c309b1b55f38069a2c336545d5379f26031b0d32d0391e14f017169a317239ab",
    "slotNo": 111034
}

```

Now, I’m gonna jump to version 1.26 and see what its there.

---

<div class="post-metadata">

**Author:** ![DiazRock](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/diazrock/32/35026_2.png) [@DiazRock](https://forum.cardano.org/u/DiazRock)\
**Post date:** [2 June 2021 20:48 UTC](https://forum.cardano.org/t/error-when-executing-cardano-cli-over-node-socket/62015/27 "2021-06-02T20:48:50Z")

</div>

![image](https://us1.discourse-cdn.com/flex023/uploads/cardano/original/3X/5/a/5a5b9b4112e596baf9a9ec48bdfb0888de056bf9.png)

As you can see, [cardano-cli-1.26](https://www.myadanode.com/cardano-node/1.26.2/aarch64/cardano-cli).  
And the node is running using the following docker [image](https://hub.docker.com/layers/nessusio/cardano-node/1.26.2/images/sha256-98409156abd96feb41955ccec32586b4959cead5ac48111f3966722d54bbfa0e?context=explore)

---

<div class="post-metadata">

**Author:** ![DiazRock](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/diazrock/32/35026_2.png) [@DiazRock](https://forum.cardano.org/u/DiazRock)\
**Post date:** [2 June 2021 21:24 UTC](https://forum.cardano.org/t/error-when-executing-cardano-cli-over-node-socket/62015/28 "2021-06-02T21:24:56Z")

</div>

If I remove --shelley-mode it works. But I don’t know in what is the current era.

```json
{
    "epoch": null,
    "hash": "9021fc8483e1d5db8b049f9b657b43eb34af1490e672f7fb82322d344a764091",
    "slot": 879280,
    "block": 879182
}

```

And also I’m having the same problem that I discussed with @charismatik1 .

 ![image](https://us1.discourse-cdn.com/flex023/uploads/cardano/original/3X/5/d/5dad24953c9209f5a29ed5bd5c34f2c52edb32a1.png)

---

<div class="post-metadata">

**Author:** ![DiazRock](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/diazrock/32/35026_2.png) [@DiazRock](https://forum.cardano.org/u/DiazRock)\
**Post date:** [3 June 2021 14:27 UTC](https://forum.cardano.org/t/error-when-executing-cardano-cli-over-node-socket/62015/29 "2021-06-03T14:27:43Z")

</div>

![image](https://us1.discourse-cdn.com/flex023/uploads/cardano/original/3X/e/e/ee36238c1306fe50cfebe8ca9c508f47d2a368bf.png)

This is in mainnet. And using shelley mode I’m getting the same.  
Also I run the node the last night in the testnet network. And in the morning, the query tips for the byron era gave me the epoch 135, not null. But the the shelley-mode throws the same exception.

---

<div class="post-metadata">

**Author:** ![DiazRock](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/diazrock/32/35026_2.png) [@DiazRock](https://forum.cardano.org/u/DiazRock)\
**Post date:** [3 June 2021 15:13 UTC](https://forum.cardano.org/t/error-when-executing-cardano-cli-over-node-socket/62015/30 "2021-06-03T15:13:04Z")

</div>

I’m trying to query the node using CARDANO\_NODE\_SOCKET\_PATH variable, but my common user does not have access to the node.socket file. Every time I do it, I use the sudo user. How can I do it with my common user? I tried changin the acces to node.socket using chmod and chown but I didn’t succes. There are some tutorial about it?

---

<div class="post-metadata">

**Author:** ![DiazRock](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/diazrock/32/35026_2.png) [@DiazRock](https://forum.cardano.org/u/DiazRock)\
**Post date:** [3 June 2021 15:30 UTC](https://forum.cardano.org/t/error-when-executing-cardano-cli-over-node-socket/62015/31 "2021-06-03T15:30:05Z")

</div>

Work when I do `./cardano-cli query tip --cardano-mode --testnet-magic 1097911063`. This is the output

```json
{
    "epoch": 83,
    "hash": "5dd93d08553947fb634ab87eaa07ad971013d20c5b8576eae2dd8e5a1493ff5b",
    "slot": 5882828,
    "block": 1808303
}

```

I will try to do all the operation for staking pool using that

---

<div class="post-metadata">

**Author:** ![DiazRock](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/diazrock/32/35026_2.png) [@DiazRock](https://forum.cardano.org/u/DiazRock)\
**Post date:** [3 June 2021 19:09 UTC](https://forum.cardano.org/t/error-when-executing-cardano-cli-over-node-socket/62015/32 "2021-06-03T19:09:45Z")

</div>

I’m stuck. I still having the same problem. I will make a resumé and put it in the github issue.

---

<div class="post-metadata">

**Author:** ![rmourey26](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/rmourey26/32/68623_2.png) [@rmourey26](https://forum.cardano.org/u/rmourey26)\
**Post date:** [7 June 2021 14:11 UTC](https://forum.cardano.org/t/error-when-executing-cardano-cli-over-node-socket/62015/33 "2021-06-07T14:11:36Z")

</div>

Nessusio is using 1.25.1 because of this…[docs-cardano-org/comp-matrix.md at main · cardano-foundation/docs-cardano-org · GitHub](https://github.com/cardano-foundation/docs-cardano-org/blob/main//release-information/comp-matrix.md)

i had the same issue on 1.27 but am going to downgrade to 1.251 per the matrix…

---

<div class="post-metadata">

**Author:** ![DiazRock](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/diazrock/32/35026_2.png) [@DiazRock](https://forum.cardano.org/u/DiazRock)\
**Post date:** [7 June 2021 14:46 UTC](https://forum.cardano.org/t/error-when-executing-cardano-cli-over-node-socket/62015/34 "2021-06-07T14:46:43Z")

</div>

Hi @rmourey26! I got the same issue using the official image in version 1.27, and a different architecture for my machine. The option for me was to wait to node sync, and remove `--shelley-mode` in the instruction. And it works until now.

---

<div class="post-metadata">

**Author:** ![hududed](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/hududed/32/28061_2.png) [@hududed](https://forum.cardano.org/u/hududed)\
**Post date:** [7 June 2021 20:22 UTC](https://forum.cardano.org/t/error-when-executing-cardano-cli-over-node-socket/62015/35 "2021-06-07T20:22:51Z")

</div>

not sure if related. But I am also getting the same error using Daedalus testnet macOS build **18213** , Cardano Node **1.26.2** , Cardano Wallet **2021.5.26**

```auto
❯ cardano-cli query protocol-parameters --shelley-mode --testnet-magic 1097911063

cardano-cli: encodeFailure: local state query: using acquire without a Point must be conditional on negotiating v8 of the node-to-client protocol
CallStack (from HasCallStack):
  error, called at src/Ouroboros/Network/Protocol/LocalStateQuery/Codec.hs:79:7 in rbrs-ntwrk-0.1.0.0-dccc71c4:Ouroboros.Network.Protocol.LocalStateQuery.Codec%

```

Is this a general issue?

---

<div class="post-metadata">

**Author:** ![rmourey26](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/rmourey26/32/68623_2.png) [@rmourey26](https://forum.cardano.org/u/rmourey26)\
**Post date:** [7 June 2021 21:19 UTC](https://forum.cardano.org/t/error-when-executing-cardano-cli-over-node-socket/62015/36 "2021-06-07T21:19:07Z")

</div>

Can you describe your overall “cardano-node environment” at the moment of the error? I was running two separate genesis test nodes to re-create/fork the shelly chain, i started the nodes, they were running fine, then ran the cli-query protocol parameters and received the error…

I think its possibly related to previous node socket configurations/file locations and or the cardano-node version… which I’m considering downgrading to 1.25.1 as it’s the only version that can actually run cardano as intended at this point…

---

<div class="post-metadata">

**Author:** ![rmourey26](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/rmourey26/32/68623_2.png) [@rmourey26](https://forum.cardano.org/u/rmourey26)\
**Post date:** [7 June 2021 21:20 UTC](https://forum.cardano.org/t/error-when-executing-cardano-cli-over-node-socket/62015/37 "2021-06-07T21:20:11Z")

</div>

> [@rmourey26](#):
>
> Can you describe your overall “cardano-node environment” at the moment of the error? I was running two separate genesis test nodes to re-create/fork the shelly chain, i started the nodes, they were running fine, then ran the cli-query protocol parameters and received the error…

Thanks @DiazRock

---

<div class="post-metadata">

**Author:** ![hududed](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/hududed/32/28061_2.png) [@hududed](https://forum.cardano.org/u/hududed)\
**Post date:** [7 June 2021 21:24 UTC](https://forum.cardano.org/t/error-when-executing-cardano-cli-over-node-socket/62015/38 "2021-06-07T21:24:23Z")

</div>

Not sure how to describe “cardano-node environment” - Is there something I can run on terminal?

---

<div class="post-metadata">

**Author:** ![mattedplace](https://avatars.discourse-cdn.com/v4/letter/m/54ee81/32.png) [@mattedplace](https://forum.cardano.org/u/mattedplace)\
**Post date:** [4 July 2021 03:39 UTC](https://forum.cardano.org/t/error-when-executing-cardano-cli-over-node-socket/62015/39 "2021-07-04T03:39:25Z")

</div>

Hello, have you figured out a solution? I have run into the same problem.

---

<div class="post-metadata">

**Author:** ![mattedplace](https://avatars.discourse-cdn.com/v4/letter/m/54ee81/32.png) [@mattedplace](https://forum.cardano.org/u/mattedplace)\
**Post date:** [5 July 2021 16:09 UTC](https://forum.cardano.org/t/error-when-executing-cardano-cli-over-node-socket/62015/40 "2021-07-05T16:09:13Z")

</div>

Turns out I just needed to wait for the node to sync!

[Previous page](https://forum.cardano.org/t/error-when-executing-cardano-cli-over-node-socket/62015.md?page=1)
