# Node-Red stops working and needs to be restarted

**URL:** https://discourse.nodered.org/t/node-red-stops-working-and-needs-to-be-restarted/86866
**Category:** General
**Tags:** node-red-dashboard
**Created:** [30 March 2024 14:52 UTC](https://discourse.nodered.org/t/node-red-stops-working-and-needs-to-be-restarted/86866 "2024-03-30T14:52:50Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![badflash](https://avatars.discourse-cdn.com/v4/letter/b/d6d6ee/32.png) [@badflash](https://discourse.nodered.org/u/badflash)
#### Post date: [30 March 2024 14:52 UTC](https://discourse.nodered.org/t/node-red-stops-working-and-needs-to-be-restarted/86866/1 "2024-03-30T14:52:50Z")

</div>

After a few hours, Node-Red stops communicating, and I need to re-start it. Just re-connecting to the web page doesn't fix it. Is there a setting to keep it running?

When I do restart it, it will often change the setpoint I was running prior to losing touch. It changes it to the minimum value I've allowed for the setpoint. Any ideas of how to get it to pick up where it left off? I'm thinking I may need to set up some sort of wake-up value subscription to have it re-initialize.

Thanks in advance.

---

<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: [30 March 2024 15:08 UTC](https://discourse.nodered.org/t/node-red-stops-working-and-needs-to-be-restarted/86866/2 "2024-03-30T15:08:17Z")

</div>

Tell us more about your system. Hardware, OS, node red version, nodejs version.

What do you mean by 'stops communicating`.

Stop node red and start it again in a command window and post the full startup log here.

---

<div class="post-metadata">

### Author: ![badflash](https://avatars.discourse-cdn.com/v4/letter/b/d6d6ee/32.png) [@badflash](https://discourse.nodered.org/u/badflash)
#### Post date: [30 March 2024 18:07 UTC](https://discourse.nodered.org/t/node-red-stops-working-and-needs-to-be-restarted/86866/3 "2024-03-30T18:07:25Z")

</div>

New Windows 11 computer up to date. Looks like everything you are asking for is in the starup log.

Stops communicating means the Dashboard either stops updating or goes blank and so does the Node-Red Flow page. Sometimes closing the web pages and re-starting them fixes it, other times I need to close the Node-Red command window and restart it.

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/3/2/32ff49d4ebb91171a3b1fc69e7a597c9bb35ff9f.png)

---

<div class="post-metadata">

### Author: ![marcus-j-davies](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/marcus-j-davies/32/103435_2.png) [@marcus-j-davies](https://discourse.nodered.org/u/marcus-j-davies)
#### Post date: [30 March 2024 19:10 UTC](https://discourse.nodered.org/t/node-red-stops-working-and-needs-to-be-restarted/86866/4 "2024-03-30T19:10:28Z")

</div>

Are you using task scheduler to start it?

I ask as scheduled tasks by default are setup to terminate - if they continue to run without an exit code.  
you can change these settings on the task.

may not be your issue - but Just a thought

---

<div class="post-metadata">

### Author: ![badflash](https://avatars.discourse-cdn.com/v4/letter/b/d6d6ee/32.png) [@badflash](https://discourse.nodered.org/u/badflash)
#### Post date: [30 March 2024 19:55 UTC](https://discourse.nodered.org/t/node-red-stops-working-and-needs-to-be-restarted/86866/5 "2024-03-30T19:55:34Z")

</div>

No, I start it manually and just let it run. I am not familiar with task scheduler. I am very new at this.

---

<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: [30 March 2024 21:01 UTC](https://discourse.nodered.org/t/node-red-stops-working-and-needs-to-be-restarted/86866/6 "2024-03-30T21:01:05Z")

</div>

I think there have been other reports of command window processing just stopping like this, under Windows, with no obvious reason. I believe the solution is to set it up to run automatically as described in the docs. [Running on Windows : Node-RED](https://nodered.org/docs/getting-started/windows)

I use Linux so can't help much more.

---

<div class="post-metadata">

### Author: ![badflash](https://avatars.discourse-cdn.com/v4/letter/b/d6d6ee/32.png) [@badflash](https://discourse.nodered.org/u/badflash)
#### Post date: [30 March 2024 21:38 UTC](https://discourse.nodered.org/t/node-red-stops-working-and-needs-to-be-restarted/86866/7 "2024-03-30T21:38:59Z")

</div>

Thanks @Colin ! I set it and, now we will see.

---

<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: [30 March 2024 22:04 UTC](https://discourse.nodered.org/t/node-red-stops-working-and-needs-to-be-restarted/86866/8 "2024-03-30T22:04:17Z")

</div>

If it hangs again, look in System Monitor to see if anything is using up all the processor time.

---

<div class="post-metadata">

### Author: ![badflash](https://avatars.discourse-cdn.com/v4/letter/b/d6d6ee/32.png) [@badflash](https://discourse.nodered.org/u/badflash)
#### Post date: [1 April 2024 12:27 UTC](https://discourse.nodered.org/t/node-red-stops-working-and-needs-to-be-restarted/86866/9 "2024-04-01T12:27:43Z")

</div>

I left it run all night and in the morning both the dashboard and node red had a "Not enough memory" message on both and both pages were blank. This is a Win 11 system.

---

<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: [1 April 2024 12:44 UTC](https://discourse.nodered.org/t/node-red-stops-working-and-needs-to-be-restarted/86866/10 "2024-04-01T12:44:09Z")

</div>

Show us the output in the log when that happens. Include a dozen lines before it fails. Copy/paste the text here please, not screenshot.

Are you using charts on the dashboard? If so then at what rate are you updating them, how many charts and lines, and over what timescale are the charts showing the data?

---

<div class="post-metadata">

### Author: ![badflash](https://avatars.discourse-cdn.com/v4/letter/b/d6d6ee/32.png) [@badflash](https://discourse.nodered.org/u/badflash)
#### Post date: [1 April 2024 14:03 UTC](https://discourse.nodered.org/t/node-red-stops-working-and-needs-to-be-restarted/86866/11 "2024-04-01T14:03:10Z")

</div>

Not sure I have a log file. Nothing showing up in the console. If I shut down Node-Red and start it back up at a later time, everything looks fine.

Where do I find the log, or what do I need to do to configure it so I have one?

Thanks for helping! @Colin

---

<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: [1 April 2024 15:39 UTC](https://discourse.nodered.org/t/node-red-stops-working-and-needs-to-be-restarted/86866/12 "2024-04-01T15:39:01Z")

</div>

Ah, you are using windows so I don't know. I mean the continuation of the image you posted earlier.

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/e/3/e34cce89141507cdbaa9d1cd5ac6af8aa0432ff7.png)

Copy/paste it from the command window when it happens.

---

<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: [1 April 2024 15:56 UTC](https://discourse.nodered.org/t/node-red-stops-working-and-needs-to-be-restarted/86866/13 "2024-04-01T15:56:42Z")

</div>

Also you didn't answer:

> [@Colin](#):
>
> Are you using charts on the dashboard? If so then at what rate are you updating them, how many charts and lines, and over what timescale are the charts showing the data?

---

<div class="post-metadata">

### Author: ![badflash](https://avatars.discourse-cdn.com/v4/letter/b/d6d6ee/32.png) [@badflash](https://discourse.nodered.org/u/badflash)
#### Post date: [1 April 2024 16:14 UTC](https://discourse.nodered.org/t/node-red-stops-working-and-needs-to-be-restarted/86866/14 "2024-04-01T16:14:56Z")

</div>

update once a second, chart for temperature on the incubator was for 2 days. Maybe that would run it out of memory? I also have a temperature gauge.

---

<div class="post-metadata">

### Author: ![badflash](https://avatars.discourse-cdn.com/v4/letter/b/d6d6ee/32.png) [@badflash](https://discourse.nodered.org/u/badflash)
#### Post date: [1 April 2024 16:15 UTC](https://discourse.nodered.org/t/node-red-stops-working-and-needs-to-be-restarted/86866/15 "2024-04-01T16:15:29Z")

</div>

There are no errors posted there.

---

<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: [1 April 2024 18:48 UTC](https://discourse.nodered.org/t/node-red-stops-working-and-needs-to-be-restarted/86866/16 "2024-04-01T18:48:20Z")

</div>

> [@badflash](#):
>
> I left it run all night and in the morning both the dashboard and node red had a "Not enough memory" message on both and both pages were blank. This is a Win 11 system.

There would have been a message in the terminal if node-red had run out of memory, so it isn't node-red that is short of memory.

> [@badflash](#):
>
> update once a second, chart for temperature on the incubator was for 2 days

That is 172800 points on the chart that have to be shuffled down by the browser every second. I suspect it is the browser that is in trouble. There is no point having more than a few hundred points across a chart. I suggest either sampling more slowly (maybe once every 5 minutes) or add a Delay node on the chart input set to Rate Limit to once every 5 minutes and to discard intermediate points.

---

<div class="post-metadata">

### Author: ![badflash](https://avatars.discourse-cdn.com/v4/letter/b/d6d6ee/32.png) [@badflash](https://discourse.nodered.org/u/badflash)
#### Post date: [1 April 2024 19:56 UTC](https://discourse.nodered.org/t/node-red-stops-working-and-needs-to-be-restarted/86866/17 "2024-04-01T19:56:06Z")

</div>

With an incubator is is important to have at least a day of history, but I agree that a sample every few minutes would be enough.

---

<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: [1 April 2024 20:19 UTC](https://discourse.nodered.org/t/node-red-stops-working-and-needs-to-be-restarted/86866/18 "2024-04-01T20:19:24Z")

</div>

If you need a higher sample rate, or need to be able to zoom in and out and look back over days or weeks then I suggest using something like Influxdb for storing the data and Grafana for displaying it.

---

<div class="post-metadata">

### Author: ![badflash](https://avatars.discourse-cdn.com/v4/letter/b/d6d6ee/32.png) [@badflash](https://discourse.nodered.org/u/badflash)
#### Post date: [1 April 2024 21:58 UTC](https://discourse.nodered.org/t/node-red-stops-working-and-needs-to-be-restarted/86866/19 "2024-04-01T21:58:29Z")

</div>

Thanks! I'll check it out.

---

<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: [30 June 2024 21:58 UTC](https://discourse.nodered.org/t/node-red-stops-working-and-needs-to-be-restarted/86866/20 "2024-06-30T21:58:55Z")

</div>

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