After a power outage i have lost the service of node red. if i SSH into the Pi that is running node red and entering:
node red --safe
i can briefly load the UI and deploy a change then the connection fails after a couple of seconds.
Please review what terminal reports each and every time:
pi@raspberrypi:~ $ node-red --safe
12 Oct 18:21:38 - [info]
Welcome to Node-RED
12 Oct 18:21:38 - [info] Node-RED version: v0.20.8
12 Oct 18:21:38 - [info] Node.js version: v10.15.2
12 Oct 18:21:38 - [info] Linux 4.19.66-v7+ arm LE
12 Oct 18:21:43 - [info] Loading palette nodes
12 Oct 18:21:49 - [info] Dashboard version 2.15.5 started at /ui
12 Oct 18:21:51 - [info] Settings file : /home/pi/.node-red/settings.js
12 Oct 18:21:51 - [info] Context store : 'default' [module=memory]
12 Oct 18:21:51 - [info] User directory : /home/pi/.node-red
12 Oct 18:21:51 - [warn] Projects disabled : editorTheme.projects.enabled=false
12 Oct 18:21:51 - [info] Flows file : /home/pi/.node-red/flows_raspberrypi.json
12 Oct 18:21:51 - [info] Server now running at http://127.0.0.1:1880/
12 Oct 18:21:51 - [warn]
Your flow credentials file is encrypted using a system-generated key.
If the system-generated key is lost for any reason, your credentials
file will not be recoverable, you will have to delete it and re-enter
your credentials.
You should set your own key using the 'credentialSecret' option in
your settings file. Node-RED will then re-encrypt your credentials
file using your chosen key the next time you deploy a change.
12 Oct 18:21:51 - [info] *****************************************************************
12 Oct 18:21:51 - [info] Flows stopped in safe mode. Deploy to start.
12 Oct 18:21:51 - [info] *****************************************************************
12 Oct 18:22:57 - [info] Stopping flows
12 Oct 18:22:57 - [info] Stopped flows
12 Oct 18:22:57 - [info] Starting flows
12 Oct 18:22:57 - [info] Started flows
12 Oct 18:22:58 - [info] [udp in:RPi4B+] udp listener at 0.0.0.0:2000
12 Oct 18:22:58 - [info] [mqtt-broker:3f3328d6.a42f38] Connected to broker: mqtt://localhost:1883
12 Oct 18:22:59 - [red] Uncaught Exception:
12 Oct 18:22:59 - RangeError [ERR_OUT_OF_RANGE]: The value of "value" is out of range. It must be >= -32768 and <= 32767. Received 65436
at checkInt (internal/buffer.js:35:11)
at writeU_Int16BE (internal/buffer.js:653:3)
at Buffer.writeInt16BE (internal/buffer.js:715:10)
at bufferizeS7Item (/home/pi/.node-red/node_modules/nodes7/nodeS7.js:1995:25)
at NodeS7.prepareWritePacket (/home/pi/.node-red/node_modules/nodes7/nodeS7.js:671:3)
at NodeS7.writeItems (/home/pi/.node-red/node_modules/nodes7/nodeS7.js:461:7)
at writeNext (/home/pi/.node-red/node_modules/node-red-contrib-s7/red/s7.js:239:28)
at NodeS7.onWritten [as writeDoneCallback] (/home/pi/.node-red/node_modules/node-red-contrib-s7/red/s7.js:223:13)
at NodeS7.writeResponse (/home/pi/.node-red/node_modules/nodes7/nodeS7.js:1291:8)
at NodeS7.onResponse (/home/pi/.node-red/node_modules/nodes7/nodeS7.js:1201:10)
at Socket. (/home/pi/.node-red/node_modules/nodes7/nodeS7.js:396:20)
at Socket.emit (events.js:189:13)
at addChunk (_stream_readable.js:284:12)
at readableAddChunk (_stream_readable.js:265:11)
at Socket.Readable.push (_stream_readable.js:220:10)
at TCP.onStreamRead [as onread] (internal/stream_base_commons.js:94:17)
Is there a way of viewing what is causing my problem?
Matt