All of sudden, the node-red is trying to reboot itself repeatedly. Below is the log:
start
node $NODE_OPTIONS node_modules/node-red/red.js “–settings” “/etc/node-red/config.js”
20 Mar 11:02:51 - [info]
Welcome to Node-RED
===================
20 Mar 11:02:51 - [info] Node-RED version: v2.2.2
20 Mar 11:02:51 - [info] Node.js version: v16.14.0
20 Mar 11:02:51 - [info] Linux 5.10.63-v8 arm64 LE
20 Mar 11:02:53 - [info] Loading palette nodes
20 Mar 11:02:59 - [info] Dashboard version 3.1.6 started at /endpoint/ui
20 Mar 11:03:00 - [info] Settings file : /etc/node-red/config.js
20 Mar 11:03:00 - [info] Context store : ‘default’ [module=memory]
20 Mar 11:03:00 - [info] User directory : /config/node-red/
20 Mar 11:03:00 - [warn] Projects disabled : editorTheme.projects.enabled=false
20 Mar 11:03:01 - [info] Flows file : /config/node-red/flows.json
20 Mar 11:03:01 - [info] Server now running at http://127.0.0.1:46836/
20 Mar 11:03:01 - [info] Starting flows
20 Mar 11:03:01 - [info] [tuya-smart-device:2a76aed2.1c18f2] Recieved the config {“id”:“2a76aed2.1c18f2”,“type”:“tuya-smart-device”,“z”:“b4d37276.3e7ca”,“deviceName”:“Garage_Smart_Plug”,“deviceId”:“eb291755141bbfd3a9bwhr”,“deviceKey”:“XXXXXXXXXX”,“deviceIp”:“”,“retryTimeout”:“999”,“findTimeout”:“999”,“tuyaVersion”:“3.1”,“x”:120,“y”:520,“wires”:[[“f0528bda.f28aa8”,“797f130c.76365c”]]}
20 Mar 11:03:01 - [info] [tuya-smart-device:2a76aed2.1c18f2] Connecting to Tuya with params {“id”:“eb291755141bbfd3a9bwhr”,“key”:“XXXXXXXXXX”,“ip”:“”,“issueGetOnConnect”:false,“nullPayloadOnJSONError”:false,“version”:“3.1”} , findTimeout : 999 , retryTimeout: 999
20 Mar 11:03:01 - [info] [tuya-smart-device:e5aa4b54.0809c8] Recieved the config {“id”:“e5aa4b54.0809c8”,“type”:“tuya-smart-device”,“z”:“fd3d94db.03ad38”,“deviceName”:“Microwave_Smart_Plug”,“deviceId”:“eb119d61af2c2d4817qaqs”,“deviceKey”:“XXXXXXXXXX”,“deviceIp”:“”,“retryTimeout”:“999”,“findTimeout”:“999”,“tuyaVersion”:“3.1”,“x”:150,“y”:40,“wires”:[[“95dd6015.4e963”]]}
20 Mar 11:03:01 - [info] [tuya-smart-device:e5aa4b54.0809c8] Connecting to Tuya with params {“id”:“eb119d61af2c2d4817qaqs”,“key”:“XXXXXXXXXX”,“ip”:“”,“issueGetOnConnect”:false,“nullPayloadOnJSONError”:false,“version”:“3.1”} , findTimeout : 999 , retryTimeout: 999
20 Mar 11:03:01 - [info] Started flows
20 Mar 11:03:02 - [red] Uncaught Exception:
20 Mar 11:03:02 - [error] Error: No connection has been made to the device.
at TuyaDevice._send (/config/node-red/node_modules/tuyapi/index.js:275:13)
at /config/node-red/node_modules/tuyapi/index.js:138:14
at new Promise ()
at TuyaDevice.get (/config/node-red/node_modules/tuyapi/index.js:135:12)
at TuyaSmartDeviceNode._inputCallback (/config/node-red/node_modules/node-red-contrib-tuya-smart-device/src/tuya-smart-device.js:36:32)
at /opt/node_modules/@node-red/runtime/lib/nodes/Node.js:210:26
at Object.trigger (/opt/node_modules/@node-red/util/lib/hooks.js:166:13)
at TuyaSmartDeviceNode.Node._emitInput (/opt/node_modules/@node-red/runtime/lib/nodes/Node.js:202:11)
at TuyaSmartDeviceNode.Node.emit (/opt/node_modules/@node-red/runtime/lib/nodes/Node.js:186:25)
at TuyaSmartDeviceNode.Node.receive (/opt/node_modules/@node-red/runtime/lib/nodes/Node.js:485:10)
[11:03:02] INFO: Starting Node-RED…
start
node $NODE_OPTIONS node_modules/node-red/red.js “–settings” “/etc/node-red/config.js”
20 Mar 11:03:06 - [info]
Welcome to Node-RED
===================
20 Mar 11:03:06 - [info] Node-RED version: v2.2.2
20 Mar 11:03:06 - [info] Node.js version: v16.14.0
20 Mar 11:03:06 - [info] Linux 5.10.63-v8 arm64 LE
20 Mar 11:03:07 - [info] Loading palette nodes
20 Mar 11:03:12 - [info] Dashboard version 3.1.6 started at /endpoint/ui
20 Mar 11:03:13 - [info] Settings file : /etc/node-red/config.js
20 Mar 11:03:13 - [info] Context store : ‘default’ [module=memory]
20 Mar 11:03:13 - [info] User directory : /config/node-red/
20 Mar 11:03:13 - [warn] Projects disabled : editorTheme.projects.enabled=false
20 Mar 11:03:13 - [info] Flows file : /config/node-red/flows.json
20 Mar 11:03:13 - [info] Server now running at http://127.0.0.1:46836/
20 Mar 11:03:13 - [info] Starting flows
20 Mar 11:03:14 - [info] [tuya-smart-device:2a76aed2.1c18f2] Recieved the config {“id”:“2a76aed2.1c18f2”,“type”:“tuya-smart-device”,“z”:“b4d37276.3e7ca”,“deviceName”:“Garage_Smart_Plug”,“deviceId”:“eb291755141bbfd3a9bwhr”,“deviceKey”:“XXXXXXXXXX”,“deviceIp”:“”,“retryTimeout”:“999”,“findTimeout”:“999”,“tuyaVersion”:“3.1”,“x”:120,“y”:520,“wires”:[[“f0528bda.f28aa8”,“797f130c.76365c”]]}
20 Mar 11:03:14 - [info] [tuya-smart-device:2a76aed2.1c18f2] Connecting to Tuya with params {“id”:“eb291755141bbfd3a9bwhr”,“key”:“XXXXXXXXXX”,“ip”:“”,“issueGetOnConnect”:false,“nullPayloadOnJSONError”:false,“version”:“3.1”} , findTimeout : 999 , retryTimeout: 999
20 Mar 11:03:14 - [info] [tuya-smart-device:e5aa4b54.0809c8] Recieved the config {“id”:“e5aa4b54.0809c8”,“type”:“tuya-smart-device”,“z”:“fd3d94db.03ad38”,“deviceName”:“Microwave_Smart_Plug”,“deviceId”:“eb119d61af2c2d4817qaqs”,“deviceKey”:“XXXXXXXXXX”,“deviceIp”:“”,“retryTimeout”:“999”,“findTimeout”:“999”,“tuyaVersion”:“3.1”,“x”:150,“y”:40,“wires”:[[“95dd6015.4e963”]]}
20 Mar 11:03:14 - [info] [tuya-smart-device:e5aa4b54.0809c8] Connecting to Tuya with params {“id”:“eb119d61af2c2d4817qaqs”,“key”:“XXXXXXXXXX”,“ip”:“”,“issueGetOnConnect”:false,“nullPayloadOnJSONError”:false,“version”:“3.1”} , findTimeout : 999 , retryTimeout: 999
20 Mar 11:03:14 - [info] Started flows
20 Mar 11:03:14 - [red] Uncaught Exception:
20 Mar 11:03:14 - [error] Error: No connection has been made to the device.
at TuyaDevice._send (/config/node-red/node_modules/tuyapi/index.js:275:13)
at /config/node-red/node_modules/tuyapi/index.js:138:14
at new Promise ()
at TuyaDevice.get (/config/node-red/node_modules/tuyapi/index.js:135:12)
at TuyaSmartDeviceNode._inputCallback (/config/node-red/node_modules/node-red-contrib-tuya-smart-device/src/tuya-smart-device.js:36:32)
at /opt/node_modules/@node-red/runtime/lib/nodes/Node.js:210:26
at Object.trigger (/opt/node_modules/@node-red/util/lib/hooks.js:166:13)
at TuyaSmartDeviceNode.Node._emitInput (/opt/node_modules/@node-red/runtime/lib/nodes/Node.js:202:11)
at TuyaSmartDeviceNode.Node.emit (/opt/node_modules/@node-red/runtime/lib/nodes/Node.js:186:25)
at TuyaSmartDeviceNode.Node.receive (/opt/node_modules/@node-red/runtime/lib/nodes/Node.js:485:10)
[11:03:15] INFO: Starting Node-RED…
If you go to the node-red panel, it reports “502 Bad Gateway”.
From the log, I can tell that one of my Tuya devices can not be found, and the code through the assert. I think that reinstalling the Node-red might solve the problem. My question is how can I backup the diagrams I already had before the reinstallation since the dashboard is gone. I suppose there are some YAML files somewhere that I can copy, right?
Thanks in advance.
Bowie