# Node haven't been producing blocks for a while

**URL:** <https://forum.cardano.org/t/node-havent-been-producing-blocks-for-a-while/110987>\
**Category:** Operate a Stake Pool\
**Created:** [30 November 2022 08:28 UTC](https://forum.cardano.org/t/node-havent-been-producing-blocks-for-a-while/110987 "2022-11-30T08:28:17Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![RVHZF](https://avatars.discourse-cdn.com/v4/letter/r/c89c15/32.png) [@RVHZF](https://forum.cardano.org/u/RVHZF)\
**Post date:** [30 November 2022 08:28 UTC](https://forum.cardano.org/t/node-havent-been-producing-blocks-for-a-while/110987/1 "2022-11-30T08:28:17Z")

</div>

The node hasn’t produced a block for a few hundred minutes, we checked the binary version (pops 1.35.4), log, etc., all metrics seem doing just fine

@Alexd1985

Hey Alex, could you please give some advice on how to troubleshoot? Much appreciated

---

<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:** [30 November 2022 08:29 UTC](https://forum.cardano.org/t/node-havent-been-producing-blocks-for-a-while/110987/2 "2022-11-30T08:29:50Z")

</div>

what is the ticker?  
what is the output for command? ( adapt the path to node.cert/op.cert)

```auto
cardano-cli query kes-period-info --op-cert-file op.cert --mainnet

```

---

<div class="post-metadata">

**Author:** ![RVHZF](https://avatars.discourse-cdn.com/v4/letter/r/c89c15/32.png) [@RVHZF](https://forum.cardano.org/u/RVHZF)\
**Post date:** [1 December 2022 11:33 UTC](https://forum.cardano.org/t/node-havent-been-producing-blocks-for-a-while/110987/3 "2022-12-01T11:33:43Z")

</div>

Much appreciated, the node proposed the block soon after I posted this thread

the output for the posted command = all working fine, including:  
✓ Operational certificate’s KES period is within the correct KES period interval  
✓ The operational certificate counter agrees with the node protocol state counter

---

<div class="post-metadata">

**Author:** ![demetrio](https://avatars.discourse-cdn.com/v4/letter/d/cab0a1/32.png) [@demetrio](https://forum.cardano.org/u/demetrio)\
**Post date:** [19 December 2022 00:39 UTC](https://forum.cardano.org/t/node-havent-been-producing-blocks-for-a-while/110987/4 "2022-12-19T00:39:33Z")

</div>

Hi Alex,  
Can you tell me if this output looks ok to you? I also haven’t minted a block in some time and wondering why. Is it weird that qKesKesKeyExpiry is null?

```auto
{
    "qKesCurrentKesPeriod": 616,
    "qKesEndKesInterval": 653,
    "qKesKesKeyExpiry": null,
    "qKesMaxKESEvolutions": 62,
    "qKesNodeStateOperationalCertificateNumber": 5,
    "qKesOnDiskOperationalCertificateNumber": 5,
    "qKesRemainingSlotsInKesPeriod": 4785575,
    "qKesSlotsPerKesPeriod": 129600,
    "qKesStartKesInterval": 591
}

```

---

<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:** [19 December 2022 05:07 UTC](https://forum.cardano.org/t/node-havent-been-producing-blocks-for-a-while/110987/5 "2022-12-19T05:07:25Z")

</div>

> [@demetrio](#):
>
> `qKesKesKeyExpiry": null,`

Hi,

It is null because u did not make any blocks with this certificate

Cheers,

---

<div class="post-metadata">

**Author:** ![demetrio](https://avatars.discourse-cdn.com/v4/letter/d/cab0a1/32.png) [@demetrio](https://forum.cardano.org/u/demetrio)\
**Post date:** [19 December 2022 05:24 UTC](https://forum.cardano.org/t/node-havent-been-producing-blocks-for-a-while/110987/6 "2022-12-19T05:24:40Z")

</div>

Thanks Alex, but other than that it look ok? It’s not a cause for it not producing any blocks in a while?

---

<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:** [19 December 2022 07:09 UTC](https://forum.cardano.org/t/node-havent-been-producing-blocks-for-a-while/110987/7 "2022-12-19T07:09:18Z")

</div>

> [@demetrio](#):
>
> ```auto
> "qKesNodeStateOperationalCertificateNumber": 5,
> "qKesOnDiskOperationalCertificateNumber": 5,
> 
> ```

I beliebe this is not ok, what is your ticker?  
qKesOnDiskOperationalCertificateNumber should be greater by 1 than qKesNodeStateOperationalCertificateNumber (last one used)

---

<div class="post-metadata">

**Author:** ![demetrio](https://avatars.discourse-cdn.com/v4/letter/d/cab0a1/32.png) [@demetrio](https://forum.cardano.org/u/demetrio)\
**Post date:** [19 December 2022 07:11 UTC](https://forum.cardano.org/t/node-havent-been-producing-blocks-for-a-while/110987/8 "2022-12-19T07:11:38Z")

</div>

Thanks for looking at this, ticker is CTL

---

<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:** [19 December 2022 07:14 UTC](https://forum.cardano.org/t/node-havent-been-producing-blocks-for-a-while/110987/9 "2022-12-19T07:14:31Z")

</div>

your last block was made with op#5

 ![image](https://us1.discourse-cdn.com/flex023/uploads/cardano/original/3X/2/f/2fd4a0da1ffe6fe637bdea0c6ad1550699f16d59.png)  
if u rotated the keys recently (after that period) you must use counter 6

in the end should be something like

```auto
"qKesNodeStateOperationalCertificateNumber": 5,
    "qKesOnDiskOperationalCertificateNumber": 6,

```

> **[Issuing a New Operational Certificate](https://www.coincashew.com/coins/overview-ada/guide-how-to-build-a-haskell-stakepool-node/part-iv-administration/issuing-new-opcert)**

The value of the `qKesNodeStateOperationalCertificateNumber` key indicates the current counter value for your stake pool registered by the blockchain protocol. The value of the `qKesOnDiskOperationalCertificateNumber` key indicates the counter value of the current operational certificate that your stake pool uses.

For a new operational certificate, the counter value must be exactly one (1) greater than the current value of the `qKesNodeStateOperationalCertificateNumber` key.

---

<div class="post-metadata">

**Author:** ![demetrio](https://avatars.discourse-cdn.com/v4/letter/d/cab0a1/32.png) [@demetrio](https://forum.cardano.org/u/demetrio)\
**Post date:** [19 December 2022 07:19 UTC](https://forum.cardano.org/t/node-havent-been-producing-blocks-for-a-while/110987/10 "2022-12-19T07:19:27Z")

</div>

Wow, interesting. I think I restored the certificate from a backup which may have caused the issue. What you you suggest that I do to fix this.

1. I can rotate my Kes Keys again
2. Edit the certificate and change from 5 to 6?
3. Perhaps issue a whole new certificate?

I have never encountered this before.

---

<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:** [19 December 2022 07:24 UTC](https://forum.cardano.org/t/node-havent-been-producing-blocks-for-a-while/110987/11 "2022-12-19T07:24:08Z")

</div>

issue a new certificate with counter 6

Cheers,

---

<div class="post-metadata">

**Author:** ![demetrio](https://avatars.discourse-cdn.com/v4/letter/d/cab0a1/32.png) [@demetrio](https://forum.cardano.org/u/demetrio)\
**Post date:** [19 December 2022 07:36 UTC](https://forum.cardano.org/t/node-havent-been-producing-blocks-for-a-while/110987/12 "2022-12-19T07:36:23Z")

</div>

Thanks Alex, Is this possible via cntools or do I follow the coincashew instructions?

---

<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:** [19 December 2022 07:47 UTC](https://forum.cardano.org/t/node-havent-been-producing-blocks-for-a-while/110987/13 "2022-12-19T07:47:35Z")

</div>

aaa, if you have cntools is fine. is very easy… when you will go to rotate it will ask you for counter number… just type 6 and thats it… check the certificates again (and also restart the BP)

Cheers,

---

<div class="post-metadata">

**Author:** ![demetrio](https://avatars.discourse-cdn.com/v4/letter/d/cab0a1/32.png) [@demetrio](https://forum.cardano.org/u/demetrio)\
**Post date:** [19 December 2022 08:12 UTC](https://forum.cardano.org/t/node-havent-been-producing-blocks-for-a-while/110987/14 "2022-12-19T08:12:13Z")

</div>

Thanks heaps Alex,  
I have rotated my keys (I copied the cold.counter file to the bp node so it didn’t ask me for the counter number). Now the display looks like this:

```auto
✓ Operational certificate's KES period is within the correct KES period interval
✓ The operational certificate counter agrees with the node protocol state counter
{
    "qKesCurrentKesPeriod": 616,
    "qKesEndKesInterval": 678,
    "qKesKesKeyExpiry": null,
    "qKesMaxKESEvolutions": 62,
    "qKesNodeStateOperationalCertificateNumber": 5,
    "qKesOnDiskOperationalCertificateNumber": 6,
    "qKesRemainingSlotsInKesPeriod": 7997651,
    "qKesSlotsPerKesPeriod": 129600,
    "qKesStartKesInterval": 616
}

```
