node-red-contrib-balena
node-red-contrib-balena copied to clipboard
[error] [device:device state] An error occurred: null
Hi,
I have a node-red flow using the device state
node. It is triggered once every seconds.
After some time running, i get a [error] [device:device state] An error occurred: null
error:
root@59525b1:~# balena logs -f node-red_6_3
1 Aug 15:09:49 - [info]
Welcome to Node-RED
===================
1 Aug 15:09:49 - [info] Node-RED version: v0.20.7
1 Aug 15:09:49 - [info] Node.js version: v10.16.0
1 Aug 15:09:49 - [info] Linux 4.14.98 arm LE
1 Aug 15:09:53 - [info] Loading palette nodes
1 Aug 15:10:05 - [warn] rpi-gpio : Cannot find Pi RPi.GPIO python library
1 Aug 15:10:06 - [info] Dashboard version 2.15.5 started at /
1 Aug 15:10:09 - [info] Settings file : /usr/src/app/settings.js
1 Aug 15:10:09 - [info] Context store : 'default' [module=memory]
1 Aug 15:10:09 - [info] User directory : /data/node-red/user/
1 Aug 15:10:09 - [warn] Projects disabled : set editorTheme.projects.enabled=true to enable
1 Aug 15:10:09 - [info] Flows file : /usr/src/app/flows/resin.json
1 Aug 15:10:09 - [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.
---------------------------------------------------------------------
1 Aug 15:10:09 - [info] Server now running at http://127.0.0.1:80/admin/
1 Aug 15:10:10 - [info] Starting flows
1 Aug 15:10:10 - [info] Started flows
1 Aug 15:10:10 - [info] [mqtt-broker:bafefc59.01061] Connected to broker: mqtt://<redacted>:1883
1 Aug 17:18:30 - [error] [device:device state] An error occurred: null
1 Aug 17:18:30 - [error] [device:device state] An error occurred: null
1 Aug 17:18:30 - [error] [device:device state] An error occurred: null
1 Aug 17:18:30 - [error] [device:device state] An error occurred: null
1 Aug 17:18:30 - [error] [device:device state] An error occurred: null
1 Aug 17:18:30 - [error] [device:device state] An error occurred: null
1 Aug 17:18:30 - [error] [device:device state] An error occurred: null
I'm not sure if node-red gets restarted, but I see my connection to the node-red-dashboard's interface drop for a few seconds, then reload. I'll try to get more intel the next time this happens.