NODE RED Error Cannot convert undefined or null to object

I am unable to access NODE RED in Home assistant. I receive 502 Bad Gateway error.

[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] executing...

Add-on: Node-RED

Flow-based programming for the Internet of Things

Add-on version: 11.1.2

You are running the latest version of this add-on.
System: Home Assistant OS 8.1 (aarch64 / odroid-n2)
Home Assistant Core: 2022.5.5
Home Assistant Supervisor: 2022.05.3

Please, share the above information when looking for help

or support in, e.g., GitHub, forums or the Discord chat.

[cont-init.d] exited 0.

[cont-init.d] executing...
[cont-init.d] exited 0.
[cont-init.d] executing...
[cont-init.d] exited 0.
[cont-init.d] executing...
[cont-init.d] exited 0.
[cont-init.d] executing...
patching file nodes/ui_base.html
Hunk #1 succeeded at 1164 (offset 633 lines).
npm ERR! Cannot convert undefined or null to object
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2022-05-27T23_23_17_824Z-debug.log
[16:23:17] FATAL: Failed un-installing conflicting packages
[cont-init.d] exited 1.
[cont-finish.d] executing container finish scripts...
[cont-finish.d] executing...

            Oops! Something went wrong.

We are so sorry, but something went terribly wrong when
starting or running this add-on.

Be sure to check the log above, line by line, for hints.

[cont-finish.d] exited 0.
[cont-finish.d] done.
[s6-finish] waiting for services.
[s6-finish] sending all processes the TERM signal.
[s6-finish] sending all processes the KILL signal and exiting.

Hi, unfortunately this is not something many here will be able to help with. From the look of that info, it is a Home Assistant initialisation problem (nothing at all to do with node-red I'm afraid)

As a courtesy, a quick search of ...

... reveals many results and most answers say "did you set credential secret"

So perhaps you didnt follow the instructions?

e.g: node-red addon won't start · Issue #7 · hassio-addons/addon-node-red · GitHub

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.