# Node-red stops working

**URL:** <https://discourse.nodered.org/t/node-red-stops-working/12416>\
**Category:** General\
**Created:** [20 June 2019 06:37 UTC](https://discourse.nodered.org/t/node-red-stops-working/12416 "2019-06-20T06:37:16Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![trinitry](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trinitry/32/9652_2.png) [@trinitry](https://discourse.nodered.org/u/trinitry)\
**Post date:** [20 June 2019 06:37 UTC](https://discourse.nodered.org/t/node-red-stops-working/12416/1 "2019-06-20T06:37:16Z")

</div>

Dear all,  
i have the bellow configuration...

[info] Node-RED version: v0.18.4  
20 Jun 09:31:46 - [info] Node.js version: v6.12.3  
20 Jun 09:31:46 - [info] Linux 4.4.105-cip15 ia32 LE  
20 Jun 09:32:00 - [info] Loading palette nodes  
20 Jun 09:33:03 - [info] Dashboard version 2.9.1 started at /edge  
i have noticed that node-red stops working after some hours, i set up in the settings the trace option for the logging but there is nothing significant there that explains me this behaviour.  
What should i do to solve this issuue??  
every suggestion is more than welcome  
Have a nice day to all

---

<div class="post-metadata">

**Author:** ![ukmoose](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ukmoose/32/13_2.png) [@ukmoose](https://discourse.nodered.org/u/ukmoose)\
**Post date:** [20 June 2019 07:09 UTC](https://discourse.nodered.org/t/node-red-stops-working/12416/2 "2019-06-20T07:09:10Z")

</div>

What machine are you running Node-RED on?  
The version of nodejs you are using is no longer supported and your version of Node-RED is also very old.

If you are able to, it would be worth upgrading onto versions that are current and see if that fixes the problem.

(if you are running this on a plc check their website to see the latest version of nodejs and node-red you can use)

---

<div class="post-metadata">

**Author:** ![trinitry](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trinitry/32/9652_2.png) [@trinitry](https://discourse.nodered.org/u/trinitry)\
**Post date:** [20 June 2019 07:13 UTC](https://discourse.nodered.org/t/node-red-stops-working/12416/3 "2019-06-20T07:13:40Z")

</div>

hello ukmoose,

i am running it on the IOT2040 by siemens, i will try to perform an upgrade to see if this is solving the issue, but do you know any procedure i should follow to tackle the issue? i thought that throught the logging with the trace option i should see why this is happenning, but there is nothing 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:** [20 June 2019 07:37 UTC](https://discourse.nodered.org/t/node-red-stops-working/12416/4 "2019-06-20T07:37:55Z")

</div>

> [@trinitry](#):
>
> i have noticed that node-red stops working after some hours,

1. What do you mean by 'stops working'?
2. Is there anything in the log at all at that time?
3. What about the system log, anything there?
4. Is the rest of the device still working ok?

---

<div class="post-metadata">

**Author:** ![trinitry](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trinitry/32/9652_2.png) [@trinitry](https://discourse.nodered.org/u/trinitry)\
**Post date:** [20 June 2019 07:57 UTC](https://discourse.nodered.org/t/node-red-stops-working/12416/5 "2019-06-20T07:57:49Z")

</div>

hello Colin,

1. it stops as a service, ps aux | grep node-red , shows is not running
2. there is nothing at the log besides [audit] events
3. how i could check the system log?
4. The rest of the device is still working, actually i am relaunching node-red and everything is back to normal

thank you

---

<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:** [20 June 2019 08:05 UTC](https://discourse.nodered.org/t/node-red-stops-working/12416/6 "2019-06-20T08:05:53Z")

</div>

> [@trinitry](#):
>
> how i could check the system log?

On most Linux systems it is /var/log/syslog. I don't know about your device though.  
How are you running node-red?

---

<div class="post-metadata">

**Author:** ![trinitry](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trinitry/32/9652_2.png) [@trinitry](https://discourse.nodered.org/u/trinitry)\
**Post date:** [20 June 2019 08:10 UTC](https://discourse.nodered.org/t/node-red-stops-working/12416/7 "2019-06-20T08:10:24Z")

</div>

> [@Colin](#):
>
> var/log/syslog

i am running it on boot using shel script, at /etc/init.d/. I will look into the syslog (thank for that),  
right now i am updating it to the latest node-red (i hope) to check if this solves it

---

<div class="post-metadata">

**Author:** ![ukmoose](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ukmoose/32/13_2.png) [@ukmoose](https://discourse.nodered.org/u/ukmoose)\
**Post date:** [20 June 2019 08:15 UTC](https://discourse.nodered.org/t/node-red-stops-working/12416/8 "2019-06-20T08:15:01Z")

</div>

What is the latest version of nodejs that is supported on the IOT2040 by siemens?

---

<div class="post-metadata">

**Author:** ![trinitry](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trinitry/32/9652_2.png) [@trinitry](https://discourse.nodered.org/u/trinitry)\
**Post date:** [20 June 2019 08:43 UTC](https://discourse.nodered.org/t/node-red-stops-working/12416/9 "2019-06-20T08:43:51Z")

</div>

that is an interesting question, as i know they support the

> [@trinitry](#):
>
> Node.js version: v6.12.3

but they are saying that we could upgrade by building the image ourself, i have just download the latest image from siemens (released last week), to try out, it has  
NodeJS v6.14.3

---

<div class="post-metadata">

**Author:** ![ukmoose](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ukmoose/32/13_2.png) [@ukmoose](https://discourse.nodered.org/u/ukmoose)\
**Post date:** [20 June 2019 08:46 UTC](https://discourse.nodered.org/t/node-red-stops-working/12416/10 "2019-06-20T08:46:05Z")

</div>

Then you won't be able to use Node-RED v0.20.x as it requires nodejs v8 see [https://nodered.org/blog/2019/03/12/version-0-20-released#nodejs-version-support](https://nodered.org/blog/2019/03/12/version-0-20-released#nodejs-version-support)

---

<div class="post-metadata">

**Author:** ![trinitry](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trinitry/32/9652_2.png) [@trinitry](https://discourse.nodered.org/u/trinitry)\
**Post date:** [20 June 2019 08:50 UTC](https://discourse.nodered.org/t/node-red-stops-working/12416/11 "2019-06-20T08:50:43Z")

</div>

> [@ukmoose](#):
>
> Node-RED v0.20.

xmm, then i need to install the proper node-red version... thanks for that....

---

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [20 June 2019 09:02 UTC](https://discourse.nodered.org/t/node-red-stops-working/12416/12 "2019-06-20T09:02:50Z")

</div>

Be aware that you may find nodes that will not work on an old version of NR. If you want to be current it sounds like you will have to build the image yourself

---

<div class="post-metadata">

**Author:** ![trinitry](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trinitry/32/9652_2.png) [@trinitry](https://discourse.nodered.org/u/trinitry)\
**Post date:** [20 June 2019 09:05 UTC](https://discourse.nodered.org/t/node-red-stops-working/12416/13 "2019-06-20T09:05:34Z")

</div>

You are right, besides that i need to build my image myself, i am just seeing that NR 0.20 still work with my old node js except one node that needs version \>=8.

I will try the latest image from simens and start from there.

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [20 June 2019 15:46 UTC](https://discourse.nodered.org/t/node-red-stops-working/12416/14 "2019-06-20T15:46:25Z")

</div>

You should be able to install the current LTS version of Node.JS by following the standard install instructions from the Node.js website. Is the CIP version of Linux based on Debian? If so, you should be able to add the appropriate repo. You might even be able to run Dave's excellent Pi script - though you may wish to ensure you can restore your device before you try.

---

<div class="post-metadata">

**Author:** ![trinitry](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trinitry/32/9652_2.png) [@trinitry](https://discourse.nodered.org/u/trinitry)\
**Post date:** [26 June 2019 08:44 UTC](https://discourse.nodered.org/t/node-red-stops-working/12416/15 "2019-06-26T08:44:37Z")

</div>

Dear all,

we managed to find the cause that crashes node-red (after the suggestion to look system logs, thanks for that). We are using the node-red-contrib-rdkafka node to publish data to a kafka cluster. We see in the logs that

> Blockquote user.info kernel: rdk:broker-1[437]: segfault at b2aeab9b ip b28f0b80 sp b0 2ff01c error ffff0004 in librdkafka.so.1[b28e9000+10b000]

We post the issue, but do you have any suggestion on this issue and how we could overcome it??

Thank you for your support
