# "node-red-contrib-cip-ethernet-ip" is crashing node-red

**URL:** <https://discourse.nodered.org/t/node-red-contrib-cip-ethernet-ip-is-crashing-node-red/58462>\
**Category:** General\
**Tags:** node-red-dashboard\
**Created:** [16 February 2022 13:07 UTC](https://discourse.nodered.org/t/node-red-contrib-cip-ethernet-ip-is-crashing-node-red/58462 "2022-02-16T13:07:03Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dgillett](https://avatars.discourse-cdn.com/v4/letter/d/e274bd/32.png) [@Dgillett](https://discourse.nodered.org/u/Dgillett)\
**Post date:** [16 February 2022 13:07 UTC](https://discourse.nodered.org/t/node-red-contrib-cip-ethernet-ip-is-crashing-node-red/58462/1 "2022-02-16T13:07:03Z")

</div>

Some background on what I am trying to accomplish. My company is a manufacturing facility, that has automated manufacturing lines. I have used node-red in the past for various projects, for example creating data streams form MQTT to Influx, as well as storing data into google drive and an sql database.

Currently I am trying to send Machine Status to a smartwatch/smartphone using the ethernet-IP node and telegram node. I'm sending data from a allen-bradley plc to telegram application on my smartphone.

This is the basic look of the flow:

 ![SS_6](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/0/b/0b7857186fa4e0bdd5b679bc641e45b472db3715.png)

After set-up and deploying the flow, everything will work fine for awhile and then node-Red will crash and I have to then uninstall everything and reinstall.

I have ran node-red using injects, instead of the Ethernet-IP node and this functions great.

 ![SS_1](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/a/6/a6aab222f24a6572c65594b18c9358341068f53c.png)

Once the Ethernet-IP node is hooked back in the flow it will work for an hour and the crash.  
Below is the error:

 ![SS_4](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/9/6/96455409c15d41b93031e82753a182fc49dc062d.png)  
 ![SS_5](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/0/e/0e4bb6c1af5d038671d4a4208807ee2fe4ff6e95.png)

I have tried with all data types, it does not matter if its Boolean, Int, Dint or Real.  
I am running node-red on my windows 10 machine if anyone is wondering.  
If anyone has any information on this node this would help out a lot.

Here is what's in the function node if anyone is wondering.

 ![SS_2](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/7/6/76a06774ccf691d52aff0f5d43f007406b062e07.png)

Thanks,

---

<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:** [16 February 2022 16:42 UTC](https://discourse.nodered.org/t/node-red-contrib-cip-ethernet-ip-is-crashing-node-red/58462/2 "2022-02-16T16:42:55Z")

</div>

You say it "crashes" node-red but as far as I can see (from your screenshots) node-red is still running.

I guess you mean the connection to PLC does not recover?

Have you tried simply stopping / starting node-red? or modify something in the EIP node & deploy (so it is stopped/started)?

In any case, you should report this as an issue on the nodes repository here: [Issues · st-one-io/node-red-contrib-cip-ethernet-ip · GitHub](https://github.com/st-one-io/node-red-contrib-cip-ethernet-ip/issues?q=)

---

<div class="post-metadata">

**Author:** ![Dgillett](https://avatars.discourse-cdn.com/v4/letter/d/e274bd/32.png) [@Dgillett](https://discourse.nodered.org/u/Dgillett)\
**Post date:** [16 February 2022 17:04 UTC](https://discourse.nodered.org/t/node-red-contrib-cip-ethernet-ip-is-crashing-node-red/58462/3 "2022-02-16T17:04:35Z")

</div>

Once node red is installed and started, i configure my flow to the one shown above. Everything runs great for a few hours and then i get the error shown, like it stops communicating. Once this error is thrown on node red, Node-red completely crashes and I can not get back to my flows. The only way to get back in to the node-Red interface is to uninstall node red and reinstall.

Yes, I have tried starting and stopping, but once this error happens you can not do anything with it.

Thanks for the information, I will report it.

---

<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:** [16 February 2022 17:07 UTC](https://discourse.nodered.org/t/node-red-contrib-cip-ethernet-ip-is-crashing-node-red/58462/4 "2022-02-16T17:07:14Z")

</div>

> [@Dgillett](#):
>
> The only way to get back in to the node-Red interface is to uninstall node red and reinstall.

That is really not necessary (just a really really long and OTT work around)

> [@Dgillett](#):
>
> Once this error is thrown on node red, Node-red completely crashes and I can not get back to my flows

> [@Dgillett](#):
>
> Yes, I have tried starting and stopping, but once this error happens you can not do anything with it

Can you show the logs from node-red starting to node-red stopping & again after trying to restart?  
(PS, copy the log as text not screenshot)

---

<div class="post-metadata">

**Author:** ![Dgillett](https://avatars.discourse-cdn.com/v4/letter/d/e274bd/32.png) [@Dgillett](https://discourse.nodered.org/u/Dgillett)\
**Post date:** [17 February 2022 19:01 UTC](https://discourse.nodered.org/t/node-red-contrib-cip-ethernet-ip-is-crashing-node-red/58462/5 "2022-02-17T19:01:56Z")

</div>

It seems my issue happened to be a timing issue between the plc and the windows machine. I changed the plc from continuous 500ms to periodic 10ms and then changed cycle time on ethernet IP node to 2000 ms. This seems to have worked for now.

---

<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:** [3 March 2022 19:02 UTC](https://discourse.nodered.org/t/node-red-contrib-cip-ethernet-ip-is-crashing-node-red/58462/6 "2022-03-03T19:02:08Z")

</div>

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