Home Assistant Community Add-on: Node-RED

Same here as well… at least using chrome. Using the WebGui link opens the “embeded” version but still does not login, showing an empty page with just the nodered logo on top.

Shift+F5 end up showing:

image

Update: Using Firefox the external site is working including login

In case it wasn’t clear for hass.io, to add a button in the sidebar, add something like this to configuration.yaml:

	panel_custom:
	- name: hassio-main
		sidebar_title: Node-RED
		sidebar_icon: mdi:wrench
		js_url: /api/hassio/app/entrypoint.js
		url_path: nodered
		embed_iframe: true
		require_admin: true
		config:
			ingress: a0d7b954_nodered

The ingress value may differ; when you click on the add-on in Hass.io, look at the end of the URL and use that.

2 Likes

While I am using the ingress for the web UI, I use direct access for a web socket connection from my smart meter box. I have a POST node:

	[
	{
		"id": "f75b678a.15f718", 
		"method": "post", 
		"name": "", 
		"swaggerDoc": "", 
		"type": "http in", 
		"upload": false, 
		"url": "/eagleenergy", 
		"wires": [
			[
				"14341499.f6b37b", 
				"685b7d4e.bbd174", 
				"a50a796.8193688"
			]
		], 
		"x": 130, 
		"y": 100, 
		"z": "7765c2a1.8ef4ac"
	}
]

Which listens on /eagleentery on port 1880. Is there a way to disable authentication or use some type of token that I can append to the URL that I add to my smart meter?

Thanks!

Replying to my own post, adding leave_front_door_open to the config and removing the username/password is letting my POST get through. I wish there was a way to secure the web UI, but allow other access. Maybe in a future version.

STATUS: The port method doesn’t let me login. On the Ingress method, I’m seeing webpage loading errors. This happens when accessing it the second time on the http load not on the https(works fine on https)…

Clearing cache helps load once again on http(local ip) and when i try to load page the second time it fails again to load and then i see the below page errors.

1 Like

Https (port 1880) login is possible for me but only using firefox, chome is not working. (ssl enabled via addon config/ ssl is not enabled for HA itself). The Ingress method is not working for me at all.

Looking to get a different adress to use with panel_iframe. When I take the url when using the web_ui from the add_on page and try to use it with panel_iframe I get the panel doubled. I had the same problem with configurator but was able to find another url following the instructions from this page:

When I look at the adress I have for node_red it is:

https://redacted.duckdns.org:8123/hassio/ingress/a0d7b954_nodered

The adress I got for the configurator is:

https://redacted.duckdns.org:8123/api/hassio_ingress/partiallyredactedp_bozBtcSU_QOroLZMqE6ZjcE/

It is interesting to se the different structure

hassio/ingress/…

vs.

api/hassio_ingress/…

Anyone who knows how to find the corresponding adress for node red?

I’ve been having a lot of trouble accessing Node-RED after 3.0. To access via ingress I seem to have to force refresh every single time in order to get it to load at all. Otherwise it just loads the basic frame but no content. When it does load, many of the icons for nodes are broken images. Which ones seem to vary. In addition, sometimes I have to force reload several times to get it to load. This is in Chrome.

After first enabling the port method again, I had the issue where it asked for credentials over and over and never loaded. But after clearing all my browser data, port method seems to be working and reliably loading.

1 Like

Hi,

Any way to enable access via up address and port number again?

Regards

WD

Accessing node red via the 1880 port seems to work in chrome incognito mode.
Might be a cache issue when the login pops up all the time?

1 Like

Any advice on how to troubleshoot please. NodeRed has been running fine but when i tried to upgrade yesterday to 3.0 using the Hassio webinterface i get the following error message.

  • 19-04-15 22:16:28 INFO (SyncWorker_17) [hassio.docker.interface] Pull image hassioaddons/node-red-armv7 tag 3.0.0.
  • 19-04-15 22:16:29 ERROR (SyncWorker_17) [hassio.docker.interface] Can’t install hassioaddons/node-red-armv7:3.0.0 -> 500 Server Error: Internal Server Error (“readlink /mnt/data/docker/overlay2/l: invalid argument”).

I tried uninstalling NodeRed in the addons and rebooting, and then trying to install from scratch but same issue.

Running

  • HassOS 2.11
  • Hass.io supervisor 160
  • Home Assistant 0.91.3

Plenty of disk space.

After upgrade to 3.0.0 and setting network port running in to issues accessing Node Red instance via reverse proxy. Monitoring tools like uptimerobot and freshping do not see Node Red as up while it’s running just fine if accessing directly. Also log now shows all web activity which didn’t show before?

I wish I could have a choice to use Ingress or not. This is a major breaking change.

This is an unfortunate docker issue that points to some corruption in the filesystem. It’s been coming up a lot lately but I think the common factor is a pi and SD ? I may be wrong.

The best thing to do is reflash and restore from snapshot, since the fix involves removing everything anyway.

1 Like

Thanks. Reflashed the sd card from the RPI, Grabbed last nights snapshot, Wipe and Restore and it now allows me to upgrade.

For people who opened direct access by enabling and setting the port to 1880 and experiencing repeated login cycles. This might be a solution to resolve it:

It seems like node-red stored a piece of information about the login system used in versions of the node-red add-on before v3.0.0 (e.g., v2.0.2).

This authentication method does not exist anymore but nevertheless, throws off Node-RED so it seems.
Removing this manually helps in all the tests I’ve done tonight.

6 Likes

Hi,

I found the underlying adress. I found it under (in this case Safari) developer/web inspector/network/documents

The adress is in the format:

https://redacted.duckdns.org:8123/api/hassio_ingress/“longstring”

I pasted this as my node red url for panel iframe and it worked as before. No need to enable any ports.

I reached it immediately from my iMac. I initially had problems with my iPad (unauthorized 401). But if I first entered either add-on (I also have configurator) from the web ui link on the I could access it directly from the panel.

I’m seeing some broken images in the nodered UI after upgrading. Other than that ingress seems to be working great

Deleting the cookies for this specific page solved the issue for me … ingress and using the port is working for me now:

image

Local storage is the issue, not cookies. See:

Encountering an issue when trying to use the Ingress method… When I click on the image button, the page blanks for a minute or so and then says:
image

I was able to get port 1880 to work by following the instructions to clear the local storage so I am able to access Node-RED that way but I would like Ingress to work so I can access it it remotely through the new remote UI.

Node-RED is running:

[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] 00-banner.sh: executing... 

-----------------------------------------------------------
 Hass.io Add-on: Node-RED
 Flow-based programming for the Internet of Things
-----------------------------------------------------------
 Add-on version: 3.0.0
 You are running the latest version of this add-on.
 System: Debian GNU/Linux 9 (stretch)  (amd64 / qemux86-64)
 Home Assistant version: 0.91.3
 Supervisor version: 160
-----------------------------------------------------------
 Please, share the above information when looking for help
 or support in, e.g., GitHub, forums or the Discord chat.
-----------------------------------------------------------
[cont-init.d] 00-banner.sh: exited 0.
[cont-init.d] 01-log-level.sh: executing... 
Log level is set to INFO
[cont-init.d] 01-log-level.sh: exited 0.
[cont-init.d] nginx.sh: executing... 
[cont-init.d] nginx.sh: exited 0.
[cont-init.d] node-red.sh: executing... 
up to date in 0.781s
found 0 vulnerabilities

[cont-init.d] node-red.sh: exited 0.
[cont-init.d] user.sh: executing... 
[cont-init.d] user.sh: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.
[09:01:57] INFO: Starting Node-RED...

> hassio-addon-node-red@ start /opt
> node $NODE_OPTIONS node_modules/node-red/red.js "--settings" "/etc/node-red/config.js"

16 Apr 09:01:59 - [info] 

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

16 Apr 09:01:59 - [info] Node-RED version: v0.20.5
16 Apr 09:01:59 - [info] Node.js  version: v10.14.2
16 Apr 09:01:59 - [info] Linux 4.9.0-8-amd64 x64 LE
16 Apr 09:01:59 - [info] Loading palette nodes
16 Apr 09:02:01 - [warn] rpi-gpio : Raspberry Pi specific node set inactive
16 Apr 09:02:01 - [info] Settings file  : /etc/node-red/config.js
16 Apr 09:02:01 - [info] Context store  : 'default' [module=memory]
16 Apr 09:02:01 - [info] User directory : /config/node-red/
16 Apr 09:02:01 - [warn] Projects disabled : editorTheme.projects.enabled=false
16 Apr 09:02:01 - [info] Flows file     : /config/node-red/flows.json
16 Apr 09:02:01 - [info] Starting flows
16 Apr 09:02:01 - [info] Started flows
16 Apr 09:02:01 - [info] Server now running at http://127.0.0.1:46836/
[09:02:01] INFO: Starting NGinx...
16 Apr 09:02:06 - [info] [server:Home Assistant] WebSocket Connected to http://hassio/homeassistant