# Node-RED frequent crashing - "Connection Lost X"

**URL:** https://discourse.nodered.org/t/node-red-frequent-crashing-connection-lost-x/27288
**Category:** General
**Created:** [26 May 2020 01:44 UTC](https://discourse.nodered.org/t/node-red-frequent-crashing-connection-lost-x/27288 "2020-05-26T01:44:16Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![Jude.Robise](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/jude.robise/32/13970_2.png) [@Jude.Robise](https://discourse.nodered.org/u/Jude.Robise)
#### Post date: [26 May 2020 01:44 UTC](https://discourse.nodered.org/t/node-red-frequent-crashing-connection-lost-x/27288/1 "2020-05-26T01:44:17Z")

</div>

Dear all,

I have been experiencing **frequent Node-RED crashings** in Industrial Panel PCs (Windows 10 64bit based) that we use to automate different systems. Since Node-RED should be running in the background always, I have added it to the **Task Scheduler** (Windows accessory) to autorun even the PC restarts. I'm using node-red dashboard for the application.

In the same time I'm using multiple **node-red-contrib-s7** nodes to communicate with Siemens PLC S7-1500 that we use to automate industrial applications. I mentioned about the node specially because that node also still has some bugs.

So anyway sometimes node-red showing **Connection Lost** in the dashboard and when I go to the task scheduler, I can see that node red isn't running. Basically the service stops. Then I can manually restart the node-red but even sometimes its not even restarting. This keeps happening since few weeks back, even upgrading firmware did not help so far.

I guess this can happen due to the miss configuration of **node-red-contrib-s7**. But I have no clear idea what's going on.

Any suggestion would be really appreciated. If you want more details I can provide.

Thanks  
Jude

---

<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: [26 May 2020 06:05 UTC](https://discourse.nodered.org/t/node-red-frequent-crashing-connection-lost-x/27288/2 "2020-05-26T06:05:27Z")

</div>

Start by checking the node red log to see what is going wrong.

---

<div class="post-metadata">

### Author: ![machadotiago](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/machadotiago/32/23776_2.png) [@machadotiago](https://discourse.nodered.org/u/machadotiago)
#### Post date: [26 May 2020 19:13 UTC](https://discourse.nodered.org/t/node-red-frequent-crashing-connection-lost-x/27288/3 "2020-05-26T19:13:02Z")

</div>

It's hard to say what is causing the "crash", could you please post here your complete flow plus the node-red version, nodes versions, and node-red logs, so that we can help you.  
We have more than 150 machines running exactly the same setup (NodeRED + S7 node) 24/7 and never heard about frequent crashes.

---

<div class="post-metadata">

### Author: ![Jude.Robise](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/jude.robise/32/13970_2.png) [@Jude.Robise](https://discourse.nodered.org/u/Jude.Robise)
#### Post date: [27 May 2020 02:29 UTC](https://discourse.nodered.org/t/node-red-frequent-crashing-connection-lost-x/27288/4 "2020-05-27T02:29:08Z")

</div>

oh okay. I will share record logs and all the information you asked.

Thanks for the reply.

---

<div class="post-metadata">

### Author: ![Jude.Robise](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/jude.robise/32/13970_2.png) [@Jude.Robise](https://discourse.nodered.org/u/Jude.Robise)
#### Post date: [10 June 2020 01:25 UTC](https://discourse.nodered.org/t/node-red-frequent-crashing-connection-lost-x/27288/5 "2020-06-10T01:25:33Z")

</div>

Quick update about the crash. It happened due to having multiple IP configurations inside S7 node. I used not to delete old configurations, therefore It keeps crashing node red. When I remove all unwanted configurations that problem solved.

Thanks

---

<div class="post-metadata">

### Author: ![machadotiago](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/machadotiago/32/23776_2.png) [@machadotiago](https://discourse.nodered.org/u/machadotiago)
#### Post date: [10 June 2020 13:05 UTC](https://discourse.nodered.org/t/node-red-frequent-crashing-connection-lost-x/27288/6 "2020-06-10T13:05:36Z")

</div>

Great that you fixed the problem and also posted the solution here. Thanks!  
I see this multiple configuration nodes issue happening very often with people that are just starting with node-red.  
Thanks!

---

<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: [24 June 2020 13:17 UTC](https://discourse.nodered.org/t/node-red-frequent-crashing-connection-lost-x/27288/7 "2020-06-24T13:17:51Z")

</div>

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