# The node crashes occasionally after running for a few days

**URL:** <https://forum.autonomys.xyz/t/the-node-crashes-occasionally-after-running-for-a-few-days/2891>\
**Category:** Support\
**Created:** [March 1, 2024, 5:04pm UTC](https://forum.autonomys.xyz/t/the-node-crashes-occasionally-after-running-for-a-few-days/2891 "2024-03-01T17:04:47Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![z\_W](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.autonomys.xyz/z_w/32/1135_2.png) [@z\_W](https://forum.autonomys.xyz/u/z_W)\
**Post date:** [March 1, 2024, 5:04pm UTC](https://forum.autonomys.xyz/t/the-node-crashes-occasionally-after-running-for-a-few-days/2891/1 "2024-03-01T17:04:47Z")

</div>

```auto
#e[1;37m365690e[0m (0xd644…b85d), e[32m⬇ 52.5kiB/se[0m e[31m⬆ 2.0kiB/se[0m    
e[2m2024-03-01T11:51:58.806417Ze[0m e[32m INFOe[0m e[1mConsensuse[0me[2m:e[0m e[2msubstratee[0me[2m:e[0m ⚙️ e[1;37mPreparing 0.0 bpse[0m, target=#439136 (e[1;37m40e[0m peers), best: #e[1;37m439116e[0m (0x69f9…2f7f), finalized #e[1;37m365690e[0m (0xd644…b85d), e[32m⬇ 74.6kiB/se[0m e[31m⬆ 2.5kiB/se[0m    
e[2m2024-03-01T11:52:03.807318Ze[0m e[32m INFOe[0m e[1mConsensuse[0me[2m:e[0m e[2msubstratee[0me[2m:e[0m ⚙️ e[1;37mPreparing 0.0 bpse[0m, target=#439137 (e[1;37m40e[0m peers), best: #e[1;37m439116e[0m (0x69f9…2f7f), finalized #e[1;37m365690e[0m (0xd644…b85d), e[32m⬇ 77.2kiB/se[0m e[31m⬆ 3.3kiB/se[0m    
e[2m2024-03-01T11:52:08.808492Ze[0m e[32m INFOe[0m e[1mConsensuse[0me[2m:e[0m e[2msubstratee[0me[2m:e[0m ⚙️ e[1;37mPreparing 0.0 bpse[0m, target=#439137 (e[1;37m40e[0m peers), best: #e[1;37m439116e[0m (0x69f9…2f7f), finalized #e[1;37m365690e[0m (0xd644…b85d), e[32m⬇ 60.3kiB/se[0m e[31m⬆ 1.9kiB/se[0m    
e[2m2024-03-01T11:52:13.809554Ze[0m e[32m INFOe[0m e[1mConsensuse[0me[2m:e[0m e[2msubstratee[0me[2m:e[0m ⚙️ e[1;37mPreparing 0.0 bpse[0m, target=#439139 (e[1;37m40e[0m peers), best: #e[1;37m439116e[0m (0x69f9…2f7f), finalized #e[1;37m365690e[0m (0xd644…b85d), e[32m⬇ 95.1kiB/se[0m e[31m⬆ 3.3kiB/se[0m    
e[2m2024-03-01T11:52:18.810819Ze[0m e[32m INFOe[0m e[1mConsensuse[0me[2m:e[0m e[2msubstratee[0me[2m:e[0m ⚙️ e[1;37mPreparing 0.0 bpse[0m, target=#439139 (e[1;37m40e[0m peers), best: #e[1;37m439116e[0m (0x69f9…2f7f), finalized #e[1;37m365690e[0m (0xd644…b85d), e[32m⬇ 36.2kiB/se[0m e[31m⬆ 2.5kiB/se[0m    
e[2m2024-03-01T11:52:23.811644Ze[0m e[32m INFOe[0m e[1mConsensuse[0me[2m:e[0m e[2msubstratee[0me[2m:e[0m ⚙️ e[1;37mPreparing 0.0 bpse[0m, target=#439139 (e[1;37m40e[0m peers), best: #e[1;37m439116e[0m (0x69f9…2f7f), finalized #e[1;37m365690e[0m (0xd644…b85d), e[32m⬇ 37.5kiB/se[0m e[31m⬆ 1.7kiB/se[0m    
e[2m2024-03-01T11:52:28.812447Ze[0m e[32m INFOe[0m e[1mConsensuse[0me[2m:e[0m e[2msubstratee[0me[2m:e[0m ⚙️ e[1;37mPreparing 0.0 bpse[0m, target=#439141 (e[1;37m40e[0m peers), best: #e[1;37m439116e[0m (0x69f9…2f7f), finalized #e[1;37m365690e[0m (0xd644…b85d), e[32m⬇ 53.4kiB/se[0m e[31m⬆ 2.2kiB/se[0m    
e[2m2024-03-01T11:52:33.813349Ze[0m e[32m INFOe[0m e[1mConsensuse[0me[2m:e[0m e[2msubstratee[0me[2m:e[0m ⚙️ e[1;37mPreparing 0.0 bpse[0m, target=#439141 (e[1;37m40e[0m peers), best: #e[1;37m439116e[0m (0x69f9…2f7f), finalized #e[1;37m365690e[0m (0xd644…b85d), e[32m⬇ 55.3kiB/se[0m e[31m⬆ 1.8kiB/se[0m    
e[2m2024-03-01T11:52:38.814219Ze[0m e[32m INFOe[0m e[1mConsensuse[0me[2m:e[0m e[2msubstratee[0me[2m:e[0m ⚙️ e[1;37mPreparing 0.0 bpse[0m, target=#439143 (e[1;37m40e[0m peers), best: #e[1;37m439116e[0m (0x69f9…2f7f), finalized #e[1;37m365690e[0m (0xd644…b85d), e[32m⬇ 63.1kiB/se[0m e[31m⬆ 2.6kiB/se[0m    
e[2m2024-03-01T11:52:43.815152Ze[0m e[32m INFOe[0m e[1mConsensuse[0me[2m:e[0m e[2msubstratee[0me[2m:e[0m ⚙️ e[1;37mPreparing 0.0 bpse[0m, target=#439136 (e[1;37m40e[0m peers), best: #e[1;37m439116e[0m (0x69f9…2f7f), finalized #e[1;37m365690e[0m (0xd644…b85d), e[32m⬇ 53.7kiB/se[0m e[31m⬆ 1.6kiB/se[0m    
e[2m2024-03-01T11:52:48.815981Ze[0m e[32m INFOe[0m e[1mConsensuse[0me[2m:e[0m e[2msubstratee[0me[2m:e[0m ⚙️ e[1;37mPreparing 0.0 bpse[0m, target=#439136 (e[1;37m40e[0m peers), best: #e[1;37m439116e[0m (0x69f9…2f7f), finalized #e[1;37m365690e[0m (0xd644…b85d), e[32m⬇ 44.2kiB/se[0m e[31m⬆ 2.2kiB/se[0m    
e[2m2024-03-01T11:52:53.816702Ze[0m e[32m INFOe[0m e[1mConsensuse[0me[2m:e[0m e[2msubstratee[0me[2m:e[0m ⚙️ e[1;37mPreparing 0.0 bpse[0m, target=#439136 (e[1;37m40e[0m peers), best: #e[1;37m439116e[0m (0x69f9…2f7f), finalized #e[1;37m365690e[0m (0xd644…b85d), e[32m⬇ 36.0kiB/se[0m e[31m⬆ 2.5kiB/se[0m    

```

log:[https://raw.githubusercontent.com/qingyuhuaming/log/main/sub1.log](https://raw.githubusercontent.com/qingyuhuaming/log/main/sub1.log)

Is it because the CPU I’m using is too poor?

---

<div class="post-metadata">

**Author:** ![nazar-pc](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.autonomys.xyz/nazar-pc/32/6_2.png) [@nazar-pc](https://forum.autonomys.xyz/u/nazar-pc)\
**Post date:** [March 1, 2024, 5:36pm UTC](https://forum.autonomys.xyz/t/the-node-crashes-occasionally-after-running-for-a-few-days/2891/2 "2024-03-01T17:36:48Z")

</div>

According to logs node simply got stuck and stopped importing blocks. This lasted for some number of minutes, which might be caused by CPU power if you see CPU overloaded otherwise.

---

<div class="post-metadata">

**Author:** ![z\_W](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.autonomys.xyz/z_w/32/1135_2.png) [@z\_W](https://forum.autonomys.xyz/u/z_W)\
**Post date:** [March 1, 2024, 5:40pm UTC](https://forum.autonomys.xyz/t/the-node-crashes-occasionally-after-running-for-a-few-days/2891/3 "2024-03-01T17:40:46Z")

</div>

After the last part of the log, the node process has already exited automatically.

---

<div class="post-metadata">

**Author:** ![z\_W](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.autonomys.xyz/z_w/32/1135_2.png) [@z\_W](https://forum.autonomys.xyz/u/z_W)\
**Post date:** [March 1, 2024, 5:44pm UTC](https://forum.autonomys.xyz/t/the-node-crashes-occasionally-after-running-for-a-few-days/2891/4 "2024-03-01T17:44:22Z")

</div>

What causes the node to get stuck and then crash and exit automatically? Is it because the CPU frequency is too low? Or is it because there are too few cores? Or is it because something went wrong due to farming? Because I have encountered a similar issue before, but at that time, the node was just showing 0bps.

> [@Too many connections to the farm on the node can lead to the BPS dropping to zero, and the node stops syncing](https://forum.autonomys.xyz/t/too-many-connections-to-the-farm-on-the-node-can-lead-to-the-bps-dropping-to-zero-and-the-node-stops-syncing/2282):
>
> When my node connects to around 80 or more farms, the BPS becomes zero. If I turn off all the farms, it returns to normal. Why does this happen?

---

<div class="post-metadata">

**Author:** ![nazar-pc](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.autonomys.xyz/nazar-pc/32/6_2.png) [@nazar-pc](https://forum.autonomys.xyz/u/nazar-pc)\
**Post date:** [March 1, 2024, 6:05pm UTC](https://forum.autonomys.xyz/t/the-node-crashes-occasionally-after-running-for-a-few-days/2891/5 "2024-03-01T18:05:11Z")

</div>

It doesn’t simply exit unexpectedly. Check kernel logs with `dmesg` or similar. It is likely that it was killed or crashed in some way.

---

<div class="post-metadata">

**Author:** ![z\_W](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.autonomys.xyz/z_w/32/1135_2.png) [@z\_W](https://forum.autonomys.xyz/u/z_W)\
**Post date:** [March 1, 2024, 6:59pm UTC](https://forum.autonomys.xyz/t/the-node-crashes-occasionally-after-running-for-a-few-days/2891/6 "2024-03-01T18:59:22Z")

</div>

> [@nazar-pc](#):
>
> dmesg

It seems that the node crash was indeed due to a memory issue, but I also want to note that sometimes it doesn’t crash, but instead remains at a status of 0bps.

---

<div class="post-metadata">

**Author:** ![z\_W](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.autonomys.xyz/z_w/32/1135_2.png) [@z\_W](https://forum.autonomys.xyz/u/z_W)\
**Post date:** [March 1, 2024, 7:01pm UTC](https://forum.autonomys.xyz/t/the-node-crashes-occasionally-after-running-for-a-few-days/2891/7 "2024-03-01T19:01:18Z")

</div>

My farm and node are not on the same network, and there are occasional packet losses and high latency between the two networks. I’m wondering if this could be the reason, but I can’t deploy a node on every one of my computers.

---

<div class="post-metadata">

**Author:** ![nazar-pc](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.autonomys.xyz/nazar-pc/32/6_2.png) [@nazar-pc](https://forum.autonomys.xyz/u/nazar-pc)\
**Post date:** [March 1, 2024, 7:46pm UTC](https://forum.autonomys.xyz/t/the-node-crashes-occasionally-after-running-for-a-few-days/2891/8 "2024-03-01T19:46:17Z")

</div>

Hypothetically that can be related. If there is a networking or other hickup somewhere in software, it can start buffering things in RAM and use much more than it normally does until it crashes. If on Linux, running under Docker or systemd can be helpful to automate restarts.
