Node-red cant start

Hello,

after i deployed one of the nodes, my node-red stopped and cant start anymore.
I have rebooted the HA, reinstalled NR, but nothing helps.

the error during start of the NR is:

28 Apr 14:20:34 - [red] Uncaught Exception:
28 Apr 14:20:34 - [error] TypeError: Cannot read properties of null (reading 'status')
    at /config/node_modules/node-red-contrib-mi-devices/node-red-contrib-xiaomi-gateway/xiaomi-gateway.js:103:41
    at Object.eachNode (/opt/node_modules/@node-red/runtime/lib/flows/index.js:263:13)
    at Socket.<anonymous> (/config/node_modules/node-red-contrib-mi-devices/node-red-contrib-xiaomi-gateway/xiaomi-gateway.js:97:31)
    at Socket.emit (node:events:517:28)
    at UDP.onMessage (node:dgram:942:8)
[14:20:34] INFO: Service Node-RED exited with code 1 (by signal 0)

Where are the flows stored? can I delete the flow in the text file? If not, what else should I do?

Thanks,
Michal

Go to the add on, configuration tab. There is an option for safe mode, turn it on. restart NR. Remove those nodes mentioned in the error. Turn off safe mode, restart NR.

2 Likes

Thanks,
I am a newbie in HA, did not know about it

Now I have different warning message and NR don’t start anyway.

28 Apr 18:39:41 - [warn] ------------------------------------------------------
28 Apr 18:39:41 - [warn] [node-red-contrib-mi-devices/xiaomi-yeelight] Error: Cannot find module '/config/node_modules/node-red-contrib-mi-devices/dist/nodes/yeelight/index.js'
Require stack:
- /opt/node_modules/@node-red/registry/lib/loader.js
- /opt/node_modules/@node-red/registry/lib/index.js
- /opt/node_modules/@node-red/runtime/lib/nodes/index.js
- /opt/node_modules/@node-red/runtime/lib/index.js
- /opt/node_modules/node-red/lib/red.js
- /opt/node_modules/node-red/red.js
28 Apr 18:39:41 - [warn] ------------------------------------------------------

What I am doing wrong?

Edit:
It’s running now. So the second part - deleting the problematic node.

Thank you!

Michal