NR addon crashes on every launch
See original GitHub issueNode Red addon 13.3.1 running on HA 2022.8.1 (HAOS) crashes on every launch.
I haven’t been able to run it at all.
up to date, audited 117 packages in 11s
3 packages are looking for funding
run `npm fund` for details
15 vulnerabilities (3 low, 3 moderate, 6 high, 3 critical)
To address issues that do not require attention, run:
npm audit fix
To address all issues (including breaking changes), run:
npm audit fix --force
Run `npm audit` for details.
cont-init: info: /etc/cont-init.d/node-red.sh exited 0
s6-rc: info: service legacy-cont-init successfully started
s6-rc: info: service legacy-services: starting
services-up: info: copying legacy longrun nginx (no readiness notification)
services-up: info: copying legacy longrun nodered (no readiness notification)
s6-rc: info: service legacy-services successfully started
[23:49:36] INFO: Starting Node-RED...
> start
> node $NODE_OPTIONS node_modules/node-red/red.js "--settings" "/etc/node-red/config.js"
6 Aug 23:49:40 - [info]
Welcome to Node-RED
===================
6 Aug 23:49:40 - [info] Node-RED version: v3.0.2
6 Aug 23:49:40 - [info] Node.js version: v16.16.0
6 Aug 23:49:40 - [info] Linux 5.15.32-v8 arm64 LE
6 Aug 23:49:42 - [info] Loading palette nodes
6 Aug 23:49:49 - [info] Dashboard version 3.1.7 started at /endpoint/ui
6 Aug 23:49:50 - [warn] ------------------------------------------------------
6 Aug 23:49:50 - [warn] [node-red-contrib-mi-devices/xiaomi-yeelight] Error: Cannot find module '/config/node-red/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
6 Aug 23:49:50 - [warn] [node-red-contrib-mi-sensors/xiaomi-ht] 'xiaomi-ht' already registered by module node-red-contrib-mi-devices
6 Aug 23:49:50 - [warn] [node-red-contrib-mi-sensors/xiaomi-magnet] 'xiaomi-magnet' already registered by module node-red-contrib-mi-devices
6 Aug 23:49:50 - [warn] [node-red-contrib-mi-sensors/xiaomi-motion] 'xiaomi-motion' already registered by module node-red-contrib-mi-devices
6 Aug 23:49:50 - [warn] [node-red-contrib-mi-sensors/xiaomi-switch] 'xiaomi-switch' already registered by module node-red-contrib-mi-devices
6 Aug 23:49:50 - [warn] [node-red-contrib-mi-sensors/xiaomi-socket] 'xiaomi-plug' already registered by module node-red-contrib-mi-devices
6 Aug 23:49:50 - [warn] [node-red-contrib-mi-sensors/xiaomi-socket-wifi] 'xiaomi-plug-wifi' already registered by module node-red-contrib-mi-devices
6 Aug 23:49:50 - [warn] [node-red-contrib-mi-sensors/xiaomi-all] 'xiaomi-all' already registered by module node-red-contrib-mi-devices
6 Aug 23:49:50 - [warn] [node-red-contrib-mi-sensors/xiaomi-configurator] 'xiaomi-configurator' already registered by module node-red-contrib-mi-devices
6 Aug 23:49:50 - [warn] [node-red-contrib-mi-sensors/xiaomi-gateway] 'xiaomi-gateway out' already registered by module node-red-contrib-mi-devices
6 Aug 23:49:50 - [warn] [node-red-contrib-mi-sensors/xiaomi-actions] 'xiaomi-actions toggle' already registered by module node-red-contrib-mi-devices
6 Aug 23:49:50 - [warn] ------------------------------------------------------
6 Aug 23:49:50 - [warn] Missing node modules:
6 Aug 23:49:50 - [warn] - node-red-contrib-timecheck (1.1.0): timecheck
6 Aug 23:49:50 - [warn] - node-red-contrib-actionflows (2.0.4): actionflows, actionflows_in, actionflows_out
6 Aug 23:49:50 - [warn] - node-red-contrib-http-request (0.1.14): www-request
6 Aug 23:49:50 - [warn] - node-red-contrib-looptimer (0.0.8): looptimer
6 Aug 23:49:50 - [warn] - node-red-contrib-statistics (2.2.2): statistics
6 Aug 23:49:50 - [warn] - node-red-contrib-stoptimer (0.0.7): stoptimer
6 Aug 23:49:50 - [warn] - node-red-contrib-alexa-home-skill (0.1.19): alexa-home-conf, alexa-home, alexa-home-resp
6 Aug 23:49:50 - [warn] - node-red-contrib-traffic (0.2.1): traffic
6 Aug 23:49:50 - [warn] - node-red-node-geofence (0.3.0): geofence
6 Aug 23:49:50 - [warn] - node-red-node-msgpack (1.2.1): msgpack
6 Aug 23:49:50 - [warn] - node-red-node-sentiment (0.1.6): sentiment
6 Aug 23:49:50 - [warn] - node-red-node-pi-gpio (1.2.3): rpi-gpio in, rpi-gpio out, rpi-mouse, rpi-keyboard
6 Aug 23:49:50 - [info] Removing modules from config
6 Aug 23:49:50 - [info] Settings file : /etc/node-red/config.js
6 Aug 23:49:50 - [info] Context store : 'default' [module=memory]
6 Aug 23:49:50 - [info] User directory : /config/node-red/
6 Aug 23:49:50 - [warn] Projects disabled : editorTheme.projects.enabled=false
6 Aug 23:49:50 - [info] Flows file : /config/node-red/flows.json
6 Aug 23:49:50 - [red] Uncaught Exception:
6 Aug 23:49:50 - [error] TypeError: Cannot read properties of null (reading 'allNodes')
at Object.eachNode (/opt/node_modules/@node-red/runtime/lib/flows/index.js:261:37)
at YeelightSearch.<anonymous> (/config/node-red/node_modules/node-red-contrib-mi-sensors/dist/nodes/yeelight/Searcher.js:15:27)
at YeelightSearch.emit (node:events:527:28)
at YeelightSearch.addLight (/config/node-red/node_modules/yeelight-wifi/build/index.js:69:14)
at SsdpClient.<anonymous> (/config/node-red/node_modules/yeelight-wifi/build/index.js:44:20)
at SsdpClient.emit (node:events:527:28)
at SsdpClient.parseResponse [as _parseResponse] (/config/node-red/node_modules/node-ssdp/lib/index.js:448:8)
at SsdpClient.SSDP._parseMessage (/config/node-red/node_modules/node-ssdp/lib/index.js:289:10)
at Socket.onSocketMessage (/config/node-red/node_modules/node-ssdp/lib/index.js:241:12)
at Socket.emit (node:events:527:28)
at UDP.onMessage (node:dgram:922:8)
[23:49:50] WARNING: Node-RED crashed, halting add-on
s6-rc: info: service legacy-services: stopping
[23:49:50] INFO: Node-RED stoped, restarting...
[23:49:50] INFO: Node-RED stoped, restarting...
[23:49:50] INFO: nginx stoped, restarting...
s6-svwait: fatal: supervisor died
s6-rc: info: service legacy-services successfully stopped
s6-rc: info: service legacy-cont-init: stopping
s6-rc: info: service legacy-cont-init successfully stopped
s6-rc: info: service fix-attrs: stopping
s6-rc: info: service fix-attrs successfully stopped
s6-rc: info: service s6rc-oneshot-runner: stopping
s6-rc: info: service s6rc-oneshot-runner successfully stopped
Issue Analytics
- State:
- Created a year ago
- Comments:10
Top Results From Across the Web
App crash on launch · Issue #1372 · software-mansion/react ...
Description App is crashing on android after upgrade to latest react-native-screens Screenshots Steps To Reproduce Upgrade react native ...
Read more >Addon causes game to crash; no way to remove addon
Every time I launch the game, the same thing happens: The addon attempts to install, but halfway through the process, it crashes my...
Read more >Reaper Crashing for specific projects - Reddit
There's many possible reasons for a plugin suddenly crashing. It might be changes in reaper, it might be changes in the OS etc....
Read more >How to Fix Monster Hunter Rise: Sunbreak Crashing on Startup
1. Remove REFramework, Mods, and ReShade. The main culprit of Monster Hunter Rise: Sunbreak crashing on startup seems to be REFrameworks.
Read more >Kodi not working? How to fix Kodi problems (Updated for 2022)
If Kodi is consistently crashing or freezing, it's a sure sign that something has gone wrong. First, consider when this problem began and...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
This has hit me pretty hard as I have lots of flows in NR.
Deleted the config folder completely after taking a backup, removed and reinstalled NR addon and the logs run clean but when HA never recognises it as started. If you browse to https://Your_HA_IP/1800 then the NR dashboard comes up fine.
This looks like a permissions error in either HA or HACS, not a NR issue.
@frenck How do we get this escalated to the correct people?
Add-on: Node-RED Flow-based programming for the Internet of Things
Add-on version: 13.3.1 You are running the latest version of this add-on. System: Home Assistant OS 8.4 (armv7 / raspberrypi3) Home Assistant Core: 2022.8.4 Home Assistant Supervisor: 2022.08.3
There hasn’t been any activity on this issue recently, so we clean up some of the older and inactive issues. Please make sure to update to the latest version and check if that solves the issue. Let us know if that works for you by leaving a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thanks!