# Node-Red is freezing

**URL:** <https://discourse.nodered.org/t/node-red-is-freezing/47735>\
**Category:** General\
**Created:** [28 June 2021 07:39 UTC](https://discourse.nodered.org/t/node-red-is-freezing/47735 "2021-06-28T07:39:44Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Crashy77](https://avatars.discourse-cdn.com/v4/letter/c/bcef8e/32.png) [@Crashy77](https://discourse.nodered.org/u/Crashy77)\
**Post date:** [28 June 2021 07:39 UTC](https://discourse.nodered.org/t/node-red-is-freezing/47735/1 "2021-06-28T07:39:44Z")

</div>

Hi.

Sometimes Node-Red is stucking, no special intervall.  
Reading and writing via Modbus, MQTT or Beckhoff ADS works for several hours and then the values are not changing anymore. When I´m deploying, reading/writing continues.  
In my opinion it happens since I'm using influxdb and Grafana.  
I can see it on node-red (values) and grafana (diagrams) dashboard.  
On the pictures you can see the jumps after deploying.  
It´s a Raspberry Pi4 with 4GB and it´s a iobroker image.  
Thanks.  
 ![Beckhoff_ADS](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/1/6/16efbfea9640ef25c1992deb52231fe8c0d223f8.jpeg)  
 ![Modbus](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/d/1/d180ffc45f0debd55c19a9a016e17336a9f99a5f.jpeg)  
 ![MQTT](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/0/7/07503e74eb72786c8dd944cdda3b3c11eb1226c2.jpeg)

With kind regards,  
Thorsten

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [28 June 2021 08:29 UTC](https://discourse.nodered.org/t/node-red-is-freezing/47735/2 "2021-06-28T08:29:41Z")

</div>

Add some debug nodes in appropriate places so that when it stops you can see what node is not doing what it should.  
Also start node-red in a terminal and see if anything is noted in the terminal output when it stops (or any errors shown on startup).

---

<div class="post-metadata">

**Author:** ![Crashy77](https://avatars.discourse-cdn.com/v4/letter/c/bcef8e/32.png) [@Crashy77](https://discourse.nodered.org/u/Crashy77)\
**Post date:** [28 June 2021 08:58 UTC](https://discourse.nodered.org/t/node-red-is-freezing/47735/3 "2021-06-28T08:58:11Z")

</div>

Hi.

I'm having values at the debug nodes.  
Node-Red is not really stopping, because some flows are working.  
Could it be the traffic to influxdb?  
Because for current troubleshooting I need 4 variables via Modbus per second.

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [28 June 2021 09:29 UTC](https://discourse.nodered.org/t/node-red-is-freezing/47735/4 "2021-06-28T09:29:32Z")

</div>

> [@Crashy77](#):
>
> I'm having values at the debug nodes

Add debug nodes to the section that is _not_ working and find out which node is the first in the flow that is not sending anything.

> [@Crashy77](#):
>
> Could it be the traffic to influxdb?

No, influx will accept thousands of records a second.

---

<div class="post-metadata">

**Author:** ![Crashy77](https://avatars.discourse-cdn.com/v4/letter/c/bcef8e/32.png) [@Crashy77](https://discourse.nodered.org/u/Crashy77)\
**Post date:** [28 June 2021 10:05 UTC](https://discourse.nodered.org/t/node-red-is-freezing/47735/5 "2021-06-28T10:05:59Z")

</div>

We are talking about 3 different flows with over hundred nodes.  
That's the reason why it seems to be a problem of Node-Red, not of some nodes.  
Before I've installed influxdb and grafana the flows were working.

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [28 June 2021 10:38 UTC](https://discourse.nodered.org/t/node-red-is-freezing/47735/6 "2021-06-28T10:38:15Z")

</div>

> [@Crashy77](#):
>
> it seems to be a problem of Node-Red, not of some nodes.

If some bits of the flow are still working then it is not a fundamental problem with node-red.

Concentrate initially on one of the sections that is not working. It does not matter how many nodes there are. Start at the beginning, presumably something is supposed to start it doing something regularly. Perhaps it is an Inject node or a scheduling node or an MQTT node. So start there. Add a debug node to the scheduler, or mqtt or whatever node it is and make sure that it keeps receiving messages. If it is not then work backwards to work out why. If that is ok then work forwards till you find the problem. Somewhere there must be a node that is not triggering when it should or is not receiving something when it should, or is not passing on a message when it should.

Also you have not responded to my previous advice to start node red in a terminal and see if there is anything in the output to indicate a problem.

---

<div class="post-metadata">

**Author:** ![Crashy77](https://avatars.discourse-cdn.com/v4/letter/c/bcef8e/32.png) [@Crashy77](https://discourse.nodered.org/u/Crashy77)\
**Post date:** [2 July 2021 14:04 UTC](https://discourse.nodered.org/t/node-red-is-freezing/47735/7 "2021-07-02T14:04:36Z")

</div>

I´ve found the fault.  
One Modbus register was empty, don´t know why.  
After deleting it, node-red was running.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [16 July 2021 14:04 UTC](https://discourse.nodered.org/t/node-red-is-freezing/47735/8 "2021-07-16T14:04:47Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
