You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In one of my Node-RED flows, I'm utilizing the node-red-contrib-s7 node to connect to a PLC. However, when the PLC goes offline or experiences an error, despite multiple reconnection attempts, the Node-RED application exits. Even though other flows are functioning normally, the entire Node-RED application shuts down. The error message received is as follows:
kotlin
Copy code
[red] Uncaught Exception:
14 May 09:13:35 - [error] Error: read ECONNRESET
at TCP.onStreamRead (internal/stream_base_commons.js:209:20)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! node-red-docker@2.1.4 start: node $NODE_OPTIONS node_modules/node-red/red.js $FLOWS "--userDir" "/data"
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the node-red-docker@2.1.4 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /data/.npm/_logs/2024-05-14T09_13_35_060Z-debug.log
Is there a solution to prevent Node-RED from exiting in this scenario, even if the PLC connection is lost?
Expected Behavior
No response
Steps To Reproduce
No response
Example flow
paste your flow here
Environment
Node-RED version:
Node.js version:
npm version:
Platform/OS:
Browser:
The text was updated successfully, but these errors were encountered:
The only practical fix is for the S7 node to handle it's errors properly. That isn't something the core of Node-RED can do for it.
Uncaught exceptions like this could come from anywhere and the recommended course of action (from node.js) is to restart the runtime as you have no idea what state it is in.
I recommend reporting this against the S7 nodes and see if they are able to provide a fix.
Current Behavior
Problem Description:
In one of my Node-RED flows, I'm utilizing the node-red-contrib-s7 node to connect to a PLC. However, when the PLC goes offline or experiences an error, despite multiple reconnection attempts, the Node-RED application exits. Even though other flows are functioning normally, the entire Node-RED application shuts down. The error message received is as follows:
kotlin
Copy code
[red] Uncaught Exception:
14 May 09:13:35 - [error] Error: read ECONNRESET
at TCP.onStreamRead (internal/stream_base_commons.js:209:20)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! node-red-docker@2.1.4 start:
node $NODE_OPTIONS node_modules/node-red/red.js $FLOWS "--userDir" "/data"
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the node-red-docker@2.1.4 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /data/.npm/_logs/2024-05-14T09_13_35_060Z-debug.log
Is there a solution to prevent Node-RED from exiting in this scenario, even if the PLC connection is lost?
Expected Behavior
No response
Steps To Reproduce
No response
Example flow
Environment
The text was updated successfully, but these errors were encountered: