# Node Red lost connection after running properly for more than an hour

**URL:** <https://discourse.nodered.org/t/node-red-lost-connection-after-running-properly-for-more-than-an-hour/50244>\
**Category:** General\
**Created:** [27 August 2021 03:57 UTC](https://discourse.nodered.org/t/node-red-lost-connection-after-running-properly-for-more-than-an-hour/50244 "2021-08-27T03:57:09Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![DipikaSamanta](https://avatars.discourse-cdn.com/v4/letter/d/f4b2a3/32.png) [@DipikaSamanta](https://discourse.nodered.org/u/DipikaSamanta)\
**Post date:** [27 August 2021 03:57 UTC](https://discourse.nodered.org/t/node-red-lost-connection-after-running-properly-for-more-than-an-hour/50244/1 "2021-08-27T03:57:09Z")

</div>

Hello all  
I have deployed the node red and was successfully able to get the desired outcome from the flows.  
Node red runs properly for few hours and then it get crashed, as I get the msg of lost connection.  
This happens frequently, Node red runs properly for more than 3-4 hours and than it get crashed.  
Can someone please help me solve this issue.

---

<div class="post-metadata">

**Author:** ![Gunner](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/gunner/32/43582_2.png) [@Gunner](https://discourse.nodered.org/u/Gunner)\
**Post date:** [27 August 2021 04:47 UTC](https://discourse.nodered.org/t/node-red-lost-connection-after-running-properly-for-more-than-an-hour/50244/2 "2021-08-27T04:47:18Z")

</div>

> [@DipikaSamanta](#):
>
> Can someone please help me solve this issue.

Not without much more information.

Are there any error logs?

What is Node-Red running on?

What versions, etc?

What are you running (flows) that might be a contributing factor?

---

<div class="post-metadata">

**Author:** ![DipikaSamanta](https://avatars.discourse-cdn.com/v4/letter/d/f4b2a3/32.png) [@DipikaSamanta](https://discourse.nodered.org/u/DipikaSamanta)\
**Post date:** [27 August 2021 05:01 UTC](https://discourse.nodered.org/t/node-red-lost-connection-after-running-properly-for-more-than-an-hour/50244/3 "2021-08-27T05:01:12Z")

</div>

Hello  
I am using node red on chrome.  
I have S7 and mindconnect nodes in my flows.

---

<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:** [27 August 2021 06:05 UTC](https://discourse.nodered.org/t/node-red-lost-connection-after-running-properly-for-more-than-an-hour/50244/4 "2021-08-27T06:05:23Z")

</div>

Are you showing charts on the dashboard? If so then what sample rate are you sendng points to the chart at, and what time frame do the charts cover? Work out how many points there are on each line across the chart, if that is a large number then probably you are overloading the browser moving all the points along the chart every time you add a new one.

---

<div class="post-metadata">

**Author:** ![DipikaSamanta](https://avatars.discourse-cdn.com/v4/letter/d/f4b2a3/32.png) [@DipikaSamanta](https://discourse.nodered.org/u/DipikaSamanta)\
**Post date:** [27 August 2021 06:20 UTC](https://discourse.nodered.org/t/node-red-lost-connection-after-running-properly-for-more-than-an-hour/50244/5 "2021-08-27T06:20:49Z")

</div>

Hello  
I am not using node red dashboard.  
I am using node red for communication between s7 PLC and Mindsphere data reading and writing.  
This data is send to Mindsphere on the interval of 1 minute.  
Am I losing the connection due to too much data transferring?

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [27 August 2021 06:37 UTC](https://discourse.nodered.org/t/node-red-lost-connection-after-running-properly-for-more-than-an-hour/50244/6 "2021-08-27T06:37:23Z")

</div>

You haven't stated which contrib node you are using but at a guess, this is related: [ECONNRESET when PLC connection drops · Issue #91 · st-one-io/node-red-contrib-s7 · GitHub](https://github.com/st-one-io/node-red-contrib-s7/issues/91)

---

<div class="post-metadata">

**Author:** ![Gunner](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/gunner/32/43582_2.png) [@Gunner](https://discourse.nodered.org/u/Gunner)\
**Post date:** [27 August 2021 06:37 UTC](https://discourse.nodered.org/t/node-red-lost-connection-after-running-properly-for-more-than-an-hour/50244/7 "2021-08-27T06:37:48Z")

</div>

> [@DipikaSamanta](#):
>
> I am using node red on chrome.

Node-Red doesn't RUN on Chrome, that is just how you connect to it's editor 😛

What is running Node-Red? What version? What error messages (besides Lost Connection)? And so on.

---

<div class="post-metadata">

**Author:** ![DipikaSamanta](https://avatars.discourse-cdn.com/v4/letter/d/f4b2a3/32.png) [@DipikaSamanta](https://discourse.nodered.org/u/DipikaSamanta)\
**Post date:** [27 August 2021 08:39 UTC](https://discourse.nodered.org/t/node-red-lost-connection-after-running-properly-for-more-than-an-hour/50244/8 "2021-08-27T08:39:32Z")

</div>

Node red version v0.20.7

---

<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 August 2021 15:28 UTC](https://discourse.nodered.org/t/node-red-lost-connection-after-running-properly-for-more-than-an-hour/50244/9 "2021-08-28T15:28:33Z")

</div>

That is an extremely old version of node red, and you don't appear to have answered the other questions.

---

<div class="post-metadata">

**Author:** ![DipikaSamanta](https://avatars.discourse-cdn.com/v4/letter/d/f4b2a3/32.png) [@DipikaSamanta](https://discourse.nodered.org/u/DipikaSamanta)\
**Post date:** [6 September 2021 10:05 UTC](https://discourse.nodered.org/t/node-red-lost-connection-after-running-properly-for-more-than-an-hour/50244/10 "2021-09-06T10:05:50Z")

</div>

Hello  
Please find the log file below for when I faced the lost connection issue

```auto
1 Sep 11:58:16 - [info] [mindconnect:11e59b80.be70a5] Posted last message at Wed Sep 01 2021 11:58:11 GMT+0530 (IST)
1 Sep 11:58:16 - [error] [s7 out:8bb38d7c.56964] Failure (Bad values)
1 Sep 11:58:16 - [info] [mindconnect:11e59b80.be70a5] Posted last message at Wed Sep 01 2021 11:58:13 GMT+0530 (IST)
1 Sep 11:58:16 - [error] [s7 out:8bb38d7c.56964] Failure (Bad values)
1 Sep 11:58:16 - [error] [s7 endpoint:46b9478a.e24598] Failure (Bad values)
1 Sep 11:58:27 - [info] [mindconnect:ad63aab3.0c1568] 0 requests, 0 successful w ith 0 errors and 0 still pending
1 Sep 11:58:27 - [info] [mindconnect:ac4a441f.879738] 0 requests, 0 successful w ith 0 errors and 0 still pending
1 Sep 11:58:27 - [info] [mindconnect:247a342.79ab6cc] 0 requests, 0 successful w ith 0 errors and 0 still pending
1 Sep 11:58:27 - [info] [mindconnect:11e59b80.be70a5] 2 requests, 2 successful w ith 0 errors and 0 still pending
1 Sep 11:58:27 - [info] [mindconnect:7e246adb.8e91f4] 0 requests, 0 successful w ith 0 errors and 0 still pending
1 Sep 11:58:27 - [info] [mindconnect:19c91f52.ddb021] 0 requests, 0 successful w ith 0 errors and 0 still pending
1 Sep 11:58:27 - [info] [mindconnect:ef703a64.56a848] 0 requests, 0 successful w ith 0 errors and 0 still pending
1 Sep 11:58:27 - [error] [s7 endpoint:98f8fac5.37e3b8] Failure (Bad values)
1 Sep 11:58:28 - [error] [s7 endpoint:98f8fac5.37e3b8] Failure (Bad values)
1 Sep 11:58:28 - [error] [s7 endpoint:98f8fac5.37e3b8] Failure (Bad values)
1 Sep 11:58:37 - [info] [mindconnect:ad63aab3.0c1568] 0 requests, 0 successful w ith 0 errors and 0 still pending
1 Sep 11:58:37 - [info] [mindconnect:ac4a441f.879738] 0 requests, 0 successful w ith 0 errors and 0 still pending
1 Sep 11:58:37 - [info] [mindconnect:247a342.79ab6cc] 0 requests, 0 successful w ith 0 errors and 0 still pending
1 Sep 11:58:37 - [info] [mindconnect:11e59b80.be70a5] 0 requests, 0 successful w ith 0 errors and 0 still pending
1 Sep 11:58:37 - [info] [mindconnect:7e246adb.8e91f4] 0 requests, 0 successful w ith 0 errors and 0 still pending
1 Sep 11:58:37 - [info] [mindconnect:19c91f52.ddb021] 0 requests, 0 successful w ith 0 errors and 0 still pending
1 Sep 11:58:37 - [info] [mindconnect:ef703a64.56a848] 0 requests, 0 successful w ith 0 errors and 0 still pending
1 Sep 11:58:41 - [info] [mindconnect:11e59b80.be70a5] 1 requests, 0 successful w ith 0 errors and 1 still pending
1 Sep 11:58:44 - [info] [mindconnect:7e246adb.8e91f4] 1 requests, 0 successful w ith 0 errors and 1 still pending
1 Sep 11:58:46 - [error] [s7 endpoint:98f8fac5.37e3b8] Failure (Bad values)
1 Sep 11:58:46 - [error] [s7 endpoint:3f51f305.f1054c] Failure (Bad values)
1 Sep 11:58:47 - [error] [s7 endpoint:98f8fac5.37e3b8] Failure (Bad values)
1 Sep 11:58:47 - [error] [s7 endpoint:98f8fac5.37e3b8] Failure (Bad values)
1 Sep 11:58:47 - [info] [mindconnect:7e246adb.8e91f4] Posted last message at Wed Sep 01 2021 11:58:44 GMT+0530 (IST)
1 Sep 11:58:47 - [info] [mindconnect:11e59b80.be70a5] Posted last message at Wed Sep 01 2021 11:58:41 GMT+0530 (IST)
1 Sep 11:58:47 - [info] [mindconnect:ad63aab3.0c1568] 0 requests, 0 successful w ith 0 errors and 0 still pending
1 Sep 11:58:47 - [info] [mindconnect:ac4a441f.879738] 0 requests, 0 successful w ith 0 errors and 0 still pending
1 Sep 11:58:47 - [info] [mindconnect:247a342.79ab6cc] 0 requests, 0 successful w ith 0 errors and 0 still pending
1 Sep 11:58:47 - [info] [mindconnect:11e59b80.be70a5] 1 requests, 1 successful w ith 0 errors and 0 still pending
1 Sep 11:58:47 - [info] [mindconnect:7e246adb.8e91f4] 1 requests, 1 successful w ith 0 errors and 0 still pending
1 Sep 11:58:47 - [info] [mindconnect:19c91f52.ddb021] 0 requests, 0 successful w ith 0 errors and 0 still pending
1 Sep 11:58:47 - [info] [mindconnect:ef703a64.56a848] 0 requests, 0 successful w ith 0 errors and 0 still pending
1 Sep 11:58:50 - [red] Uncaught Exception:
1 Sep 11:58:50 - Error: read ECONNRESET
at TCP.onread (net.js:622:25)

```

---

<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:** [7 September 2021 08:03 UTC](https://discourse.nodered.org/t/node-red-lost-connection-after-running-properly-for-more-than-an-hour/50244/11 "2021-09-07T08:03:23Z")

</div>

It seems that you have a problem with mindconnect, whatever that is. I would start by addressing that issue.

---

<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:** [6 November 2021 08:04 UTC](https://discourse.nodered.org/t/node-red-lost-connection-after-running-properly-for-more-than-an-hour/50244/12 "2021-11-06T08:04:17Z")

</div>

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