# Block producer crashes every ~24hours status=137

**URL:** https://forum.cardano.org/t/block-producer-crashes-every-24hours-status-137/90422
**Category:** Operate a Stake Pool
**Created:** [30 December 2021 16:15 UTC](https://forum.cardano.org/t/block-producer-crashes-every-24hours-status-137/90422 "2021-12-30T16:15:15Z")
**Posts on this page:** 13
**Page:** 1

<div class="post-metadata">

### Author: ![chrknv](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/chrknv/32/67402_2.png) [@chrknv](https://forum.cardano.org/u/chrknv)
#### Post date: [30 December 2021 16:15 UTC](https://forum.cardano.org/t/block-producer-crashes-every-24hours-status-137/90422/1 "2021-12-30T16:15:15Z")

</div>

My block producer crashes every 24 hours since I run a stake pool (since about 6 months). Both relay nodes don’t show this problem. Any idea if this is a known issue or how to fix it? Would be greatly appreciated.

Dec 30 15:16:02 server2 systemd[1]: **cardano-node.service: Main process exited, code=exited, status=137/n/a**  
Dec 30 15:16:02 server2 systemd[1]: **cardano-node.service: Failed with result ‘exit-code’.**  
Dec 30 15:16:07 server2 systemd[1]: cardano-node.service: Scheduled restart job, restart counter is at 1.  
Dec 30 15:16:07 server2 systemd[1]: Stopped Cardano node service.  
Dec 30 15:16:07 server2 systemd[1]: Started Cardano node service.

---

<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 December 2021 16:18 UTC](https://forum.cardano.org/t/block-producer-crashes-every-24hours-status-137/90422/2 "2021-12-30T16:18:59Z")

</div>

Hi,

journalctl -e -f -u cardano-node and check if u see the killing message or any other errors

Cheers,

---

<div class="post-metadata">

### Author: ![chrknv](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/chrknv/32/67402_2.png) [@chrknv](https://forum.cardano.org/u/chrknv)
#### Post date: [30 December 2021 16:24 UTC](https://forum.cardano.org/t/block-producer-crashes-every-24hours-status-137/90422/3 "2021-12-30T16:24:58Z")

</div>

> [@Alexd1985](#):
>
> journalctl -e -f -u cardano-node

This is the killing message:  
Dec 30 15:16:02 server2 cardano-node[2750627]: /home/xxx/cardano-my-node/startBlockProducingNode.sh: line 11: 2750636 Killed

---

<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 December 2021 16:25 UTC](https://forum.cardano.org/t/block-producer-crashes-every-24hours-status-137/90422/4 "2021-12-30T16:25:28Z")

</div>

ok, now type to check how much RAM has the server

free -m

---

<div class="post-metadata">

### Author: ![chrknv](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/chrknv/32/67402_2.png) [@chrknv](https://forum.cardano.org/u/chrknv)
#### Post date: [30 December 2021 16:25 UTC](https://forum.cardano.org/t/block-producer-crashes-every-24hours-status-137/90422/5 "2021-12-30T16:25:43Z")

</div>

> [@Alexd1985](#):
>
> free -m

```
          total used free shared buff/cache available

```

Mem: 15998 8953 148 0 6896 6742  
Swap: 4095 48 4047

---

<div class="post-metadata">

### Author: ![chrknv](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/chrknv/32/67402_2.png) [@chrknv](https://forum.cardano.org/u/chrknv)
#### Post date: [30 December 2021 16:28 UTC](https://forum.cardano.org/t/block-producer-crashes-every-24hours-status-137/90422/6 "2021-12-30T16:28:46Z")

</div>

You suggested to another user having status=137 a while ago to set TraceMempool=false. I just changed this and will upgrade to 32GB tomorrow to see if the problem persists. Or do you have any other ideas?

---

<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 December 2021 16:30 UTC](https://forum.cardano.org/t/block-producer-crashes-every-24hours-status-137/90422/7 "2021-12-30T16:30:54Z")

</div>

The RAM should be enough… can u check if u have something added in crontab which is restarting the node each 24 hours?

---

<div class="post-metadata">

### Author: ![chrknv](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/chrknv/32/67402_2.png) [@chrknv](https://forum.cardano.org/u/chrknv)
#### Post date: [30 December 2021 16:33 UTC](https://forum.cardano.org/t/block-producer-crashes-every-24hours-status-137/90422/8 "2021-12-30T16:33:41Z")

</div>

# calculate slots assignment for the next epoch

15 21 \* \* \* /home/xxx/cardano-my-node/scripts/cncli-fivedays.sh && /home/xxx/cardano-my-node/scripts/cncli-leaderlog.sh

# send previous and current epochs slots to pooltool

15 22 \* \* \* /home/xxx/cardano-my-node/scripts/cncli-fivedays.sh && /home/xxx/cardano-my-node/scripts/cncli-sendslots.sh

# query ledger-state and dump to /home/xxx/cardano-my-node/scripts/ledger-state.json

15 15 \* \* \* /home/xxx/cardano-my-node/scripts/ledger-dump.sh

---

<div class="post-metadata">

### Author: ![chrknv](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/chrknv/32/67402_2.png) [@chrknv](https://forum.cardano.org/u/chrknv)
#### Post date: [30 December 2021 16:35 UTC](https://forum.cardano.org/t/block-producer-crashes-every-24hours-status-137/90422/9 "2021-12-30T16:35:23Z")

</div>

I could remove those and see if it helps?

---

<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 December 2021 16:35 UTC](https://forum.cardano.org/t/block-producer-crashes-every-24hours-status-137/90422/10 "2021-12-30T16:35:30Z")

</div>

Yeah, those scripts which are running daily are crashing the node (due to insufficient RAM)… try to increase the SWAP FILE to 8G and keep it under monitoring

PS: the scripts should run only once with 1,5 days before the next epoch start

---

<div class="post-metadata">

### Author: ![chrknv](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/chrknv/32/67402_2.png) [@chrknv](https://forum.cardano.org/u/chrknv)
#### Post date: [30 December 2021 16:37 UTC](https://forum.cardano.org/t/block-producer-crashes-every-24hours-status-137/90422/11 "2021-12-30T16:37:09Z")

</div>

Ok thanks a lot!!

---

<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 December 2021 16:47 UTC](https://forum.cardano.org/t/block-producer-crashes-every-24hours-status-137/90422/12 "2021-12-30T16:47:20Z")

</div>

To increase the SWAP file

```auto
sudo swapoff /swapfile
sudo fallocate -l 8G /swapfile
sudo chmod 600 /swapfile
sudo mkswap /swapfile
sudo swapon /swapfile

```

free -m and now u should see 8G

---

<div class="post-metadata">

### Author: ![QCPOLstakepool](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/qcpolstakepool/32/36545_2.png) [@QCPOLstakepool](https://forum.cardano.org/u/QCPOLstakepool)
#### Post date: [2 January 2022 16:45 UTC](https://forum.cardano.org/t/block-producer-crashes-every-24hours-status-137/90422/13 "2022-01-02T16:45:52Z")

</div>

You should stop doing a ledger dump and use cncli “active-stake” method. It uses a lot less resources and is faster.
