Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Addon fails to start after update to 18.1.x #1962

Open
crasu opened this issue Oct 2, 2024 · 9 comments
Open

Addon fails to start after update to 18.1.x #1962

crasu opened this issue Oct 2, 2024 · 9 comments

Comments

@crasu
Copy link

crasu commented Oct 2, 2024

Problem/Motivation

The addon does no longer start inside of hass os (probably after update to 18.1.x)

Actual behavior

A critical error is logged:

2 Oct 23:33:12 - [debug] [server:Home Assistant] States Loaded
2 Oct 23:33:12 - [debug] [server:Home Assistant] Services Loaded
2 Oct 23:33:12 - [debug] [server:Home Assistant] HA State: running
2 Oct 23:33:12 - [debug] [server:Home Assistant] Integration: notloaded
2 Oct 23:33:12 - [red] Uncaught Exception:
2 Oct 23:33:12 - [error] UnhandledPromiseRejection: This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). The promise rejected with the reason "#<Object>".

Steps to reproduce

I am pretty sure my HA components are not at the current version. Which might cause this issue. Is there anyway to check the component version without the node red gui?

@sinclairpaul
Copy link
Member

The full log would likely be helpful, however you can try starting with the safe mode option set:

https://github.com/hassio-addons/addon-node-red/blob/main/node-red/DOCS.md#option-safe_mode

@crasu
Copy link
Author

crasu commented Oct 2, 2024

Just confirmed 18.0.5 still works

@crasu
Copy link
Author

crasu commented Oct 2, 2024

Still breaks with updated HA components with 18.1.1

@crasu
Copy link
Author

crasu commented Oct 2, 2024

Full log:

s6-rc: info: service legacy-cont-init successfully started
s6-rc: info: service init-nginx: starting
s6-rc: info: service init-customizations: starting
s6-rc: info: service init-customizations successfully started
s6-rc: info: service init-nodered: starting
s6-rc: info: service init-nginx successfully started

up to date, audited 2 packages in 2s

found 0 vulnerabilities
npm notice
npm notice New minor version of npm available! 10.7.0 -> 10.8.3
npm notice Changelog: https://github.com/npm/cli/releases/tag/v10.8.3
npm notice To update run: npm install -g [email protected]
npm notice
s6-rc: info: service init-nodered successfully started
s6-rc: info: service nodered: starting
s6-rc: info: service nodered successfully started
s6-rc: info: service nginx: starting
s6-rc: info: service nginx successfully started
s6-rc: info: service legacy-services: starting
s6-rc: info: service legacy-services successfully started
[01:30:37] INFO: Starting Node-RED...

> start
> node $NODE_OPTIONS node_modules/node-red/red.js --settings /etc/node-red/config.js

3 Oct 01:30:40 - [info] 

Welcome to Node-RED
===================

3 Oct 01:30:40 - [info] Node-RED version: v4.0.3
3 Oct 01:30:40 - [info] Node.js  version: v18.20.4
3 Oct 01:30:40 - [info] Linux 6.1.58-haos-raspi arm64 LE
3 Oct 01:30:40 - [info] Loading palette nodes
3 Oct 01:30:41 - [info] Node-RED Contrib Theme Collection version: v4.0.10
3 Oct 01:30:44 - [info] Dashboard version 3.6.5 started at /endpoint/ui
3 Oct 01:30:46 - [info] node-red-contrib-home-assistant-websocket v0.73.0 nodes initialized
3 Oct 01:30:46 - [info] Settings file  : /etc/node-red/config.js
3 Oct 01:30:46 - [info] Context store  : 'default' [module=memory]
3 Oct 01:30:46 - [info] User directory : /config/
3 Oct 01:30:46 - [warn] Projects disabled : editorTheme.projects.enabled=false
3 Oct 01:30:46 - [info] Flows file     : /config/flows.json
3 Oct 01:30:46 - [info] Server now running at http://127.0.0.1:46836/
3 Oct 01:30:46 - [info] Starting flows
3 Oct 01:30:46 - [info] Started flows
3 Oct 01:30:46 - [warn] [function:Filter by date] mm=,10
3 Oct 01:30:46 - [error] [api-current-state:.................. present for 1min] InputError: Entity could not be found in cache for ..................
3 Oct 01:30:46 - [error] [api-current-state:.................. away for 60 min] InputError: Entity could not be found in cache for entityId: ..................
3 Oct 01:30:46 - [error] [api-current-state:.................. da für mehr als 5 min] InputError: Entity could not be found in cache for entityId: ..................
[01:30:46] INFO: Starting NGinx...
3 Oct 01:30:51 - [info] [server:Home Assistant] Connecting to http://supervisor/core
3 Oct 01:30:51 - [info] [server:Home Assistant] Connected to http://supervisor/core
3 Oct 01:30:51 - [red] Uncaught Exception:
3 Oct 01:30:51 - [error] UnhandledPromiseRejection: This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). The promise rejected with the reason "#<Object>".
[01:30:52] INFO: Service Node-RED exited with code 1 (by signal 0)
s6-rc: info: service legacy-services: stopping
s6-rc: info: service legacy-services successfully stopped
s6-rc: info: service nginx: stopping
[01:30:52] INFO: Service NGINX exited with code 0 (by signal 0)
s6-rc: info: service nginx successfully stopped
s6-rc: info: service init-nginx: stopping
s6-rc: info: service nodered: stopping
s6-rc: info: service nodered successfully stopped
s6-rc: info: service init-nodered: stopping
s6-rc: info: service init-nginx successfully stopped
s6-rc: info: service init-nodered successfully stopped
s6-rc: info: service init-customizations: stopping
s6-rc: info: service init-customizations 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 base-addon-log-level: stopping
s6-rc: info: service fix-attrs successfully stopped
s6-rc: info: service base-addon-log-level successfully stopped
s6-rc: info: service base-addon-banner: stopping
s6-rc: info: service base-addon-banner successfully stopped
s6-rc: info: service s6rc-oneshot-runner: stopping
s6-rc: info: service s6rc-oneshot-runner successfully stopped
s6-rc: info: service s6rc-oneshot-runner: starting
s6-rc: info: service s6rc-oneshot-runner successfully started
s6-rc: info: service base-addon-banner: starting

-----------------------------------------------------------
 Add-on: Node-RED
 Flow-based programming for the Internet of Things
-----------------------------------------------------------
 Add-on version: 18.1.1
 You are running the latest version of this add-on.
 System: Home Assistant OS 11.2  (aarch64 / raspberrypi4-64)
 Home Assistant Core: 2023.12.3
 Home Assistant Supervisor: 2024.09.1
-----------------------------------------------------------
 Please, share the above information when looking for help
 or support in, e.g., GitHub, forums or the Discord chat.
-----------------------------------------------------------
s6-rc: info: service base-addon-banner successfully started
s6-rc: info: service fix-attrs: starting
s6-rc: info: service base-addon-log-level: starting
s6-rc: info: service fix-attrs successfully started

@sinclairpaul
Copy link
Member

Then looking at the changes, it most likely is with the node-red-contrib-home-assistant-websocket which the addon wraps.

@ghost
Copy link

ghost commented Oct 3, 2024

Same errors here:

s6-rc: info: service s6rc-oneshot-runner: stopping
s6-rc: info: service s6rc-oneshot-runner successfully stopped
s6-rc: info: service s6rc-oneshot-runner: starting
s6-rc: info: service s6rc-oneshot-runner successfully started
s6-rc: info: service base-addon-banner: starting

-----------------------------------------------------------
 Add-on: Node-RED
 Flow-based programming for the Internet of Things
-----------------------------------------------------------
 Add-on version: 18.1.1
 You are running the latest version of this add-on.
 System: Home Assistant OS 11.3  (amd64 / generic-x86-64)
 Home Assistant Core: 2024.1.0
 Home Assistant Supervisor: 2024.09.1
-----------------------------------------------------------
 Please, share the above information when looking for help
 or support in, e.g., GitHub, forums or the Discord chat.
-----------------------------------------------------------
s6-rc: info: service base-addon-banner successfully started
s6-rc: info: service fix-attrs: starting
s6-rc: info: service base-addon-log-level: starting
s6-rc: info: service fix-attrs successfully started
s6-rc: info: service base-addon-log-level successfully started
s6-rc: info: service legacy-cont-init: starting
s6-rc: info: service legacy-cont-init successfully started
s6-rc: info: service init-nginx: starting
s6-rc: info: service init-customizations: starting
s6-rc: info: service init-customizations successfully started
s6-rc: info: service init-nodered: starting
s6-rc: info: service init-nginx successfully started

up to date, audited 9 packages in 1s

found 0 vulnerabilities
npm notice
npm notice New minor version of npm available! 10.7.0 -> 10.9.0
npm notice Changelog: https://github.com/npm/cli/releases/tag/v10.9.0
npm notice To update run: npm install -g [email protected]
npm notice
s6-rc: info: service init-nodered successfully started
s6-rc: info: service nodered: starting
s6-rc: info: service nodered successfully started
s6-rc: info: service nginx: starting
s6-rc: info: service nginx successfully started
s6-rc: info: service legacy-services: starting
[20:12:07] INFO: Starting Node-RED...
s6-rc: info: service legacy-services successfully started

> start
> node $NODE_OPTIONS node_modules/node-red/red.js --settings /etc/node-red/config.js

3 Oct 20:12:09 - [info] 

Welcome to Node-RED
===================

3 Oct 20:12:09 - [info] Node-RED version: v4.0.3
3 Oct 20:12:09 - [info] Node.js  version: v18.20.4
3 Oct 20:12:09 - [info] Linux 6.1.70-haos x64 LE
3 Oct 20:12:09 - [info] Loading palette nodes
3 Oct 20:12:09 - [info] Node-RED Contrib Theme Collection version: v4.0.10
3 Oct 20:12:11 - [info] Dashboard version 3.6.5 started at /endpoint/ui
3 Oct 20:12:12 - [info] node-red-contrib-home-assistant-websocket v0.73.0 nodes initialized
3 Oct 20:12:12 - [info] Settings file  : /etc/node-red/config.js
3 Oct 20:12:12 - [info] Context store  : 'default' [module=memory]
3 Oct 20:12:12 - [info] User directory : /config/
3 Oct 20:12:12 - [warn] Projects disabled : editorTheme.projects.enabled=false
3 Oct 20:12:12 - [info] Flows file     : /config/flows.json
3 Oct 20:12:12 - [info] Server now running at http://127.0.0.1:46836/
3 Oct 20:12:12 - [info] Starting flows
3 Oct 20:12:12 - [info] Started flows
3 Oct 20:12:12 - [info] [server:Home Assistant] Connecting to http://supervisor/core
[20:12:12] INFO: Starting NGinx...
3 Oct 20:12:12 - [info] [server:Home Assistant] Connected to http://supervisor/core
3 Oct 20:12:12 - [red] Uncaught Exception:
3 Oct 20:12:12 - [error] UnhandledPromiseRejection: This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). The promise rejected with the reason "#<Object>".
[20:12:12] INFO: Service Node-RED exited with code 1 (by signal 0)
s6-rc: info: service legacy-services: stopping
s6-rc: info: service legacy-services successfully stopped
s6-rc: info: service nginx: stopping
[20:12:12] INFO: Service NGINX exited with code 0 (by signal 0)
s6-rc: info: service nginx successfully stopped
s6-rc: info: service init-nginx: stopping
s6-rc: info: service nodered: stopping
s6-rc: info: service init-nginx successfully stopped
s6-rc: info: service nodered successfully stopped
s6-rc: info: service init-nodered: stopping
s6-rc: info: service init-nodered successfully stopped
s6-rc: info: service init-customizations: stopping
s6-rc: info: service init-customizations 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 base-addon-log-level: stopping
s6-rc: info: service fix-attrs successfully stopped
s6-rc: info: service base-addon-log-level successfully stopped
s6-rc: info: service base-addon-banner: stopping
s6-rc: info: service base-addon-banner successfully stopped
s6-rc: info: service s6rc-oneshot-runner: stopping
s6-rc: info: service s6rc-oneshot-runner successfully stopped

@Yomegaman
Copy link

After updating to 18.1.1 from 18.0.5 - Node-Red won't connect to my MQTT Server. When I go back to 18.0.5 everything connects and works. Is the problem on my end? Can anyone help?

@Marcos-kp
Copy link

Some have the same problem #1964

@Dodoooh
Copy link

Dodoooh commented Oct 8, 2024

i have also noticed a very strange behavior, the flows still work, but an inject, for example, can no longer be clicked on and all debug nodes are “grayed out”.

Bildschirmfoto 2024-10-08 um 23 34 45

so it is no longer possible to test or do anything smart with it, I have now restored the backup back to 18.0.5 here everything still works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants