hassio-addons/addon-node-red

Have"Invalid properties: -server" error for all home assistant nodes #415

jimmypuckett posted onGitHub

Problem/Motivation

I have fresh install of hassio 0.103.5 on a Pie 3 with the following addions...

  • Configurator
  • Grafana
  • Mosquitto broker
  • Node-RED
  • SSH Server
  • Samba share
  • Z-Wave to MQTT

I was going to play with Node RED, but none of the HA Nodes work.

I verified that the Configuration nodes->On all flows->Home Assistant hsa the following checked...

  • I use the Hass.io Add-on
  • Delay connection attempts
  • Cache Autocomplete Results

I have restarted the addon, but still does not work.

Here are my configs...

{
  "credential_secret": "<some password>",
  "dark_mode": false,
  "http_node": {
    "username": "",
    "password": ""
  },
  "http_static": {
    "username": "",
    "password": ""
  },
  "ssl": false,
  "certfile": "fullchain.pem",
  "keyfile": "privkey.pem",
  "require_ssl": false,
  "system_packages": [],
  "npm_packages": [],
  "init_commands": [],
  "leave_front_door_open": true
}

Here is the log on the restart...

[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: 6.0.0
 You are running the latest version of this add-on.
 System: HassOS 3.7  (armv7 / raspberrypi3)
 Home Assistant version: 0.103.5
 Supervisor version: 193
-----------------------------------------------------------
 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... 
[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... 
patching file nodes/ui_base.html
Hunk #1 succeeded at 1243 (offset 712 lines).
up to date in 1.071s
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.
[20:30: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"
5 Jan 20:31:01 - [info] 
Welcome to Node-RED
===================
5 Jan 20:31:01 - [info] Node-RED version: v1.0.3
5 Jan 20:31:01 - [info] Node.js  version: v12.14.0
5 Jan 20:31:01 - [info] Linux 4.19.88-v7 arm LE
5 Jan 20:31:03 - [info] Loading palette nodes
5 Jan 20:31:10 - [info] Dashboard version 2.19.3 started at /endpoint/ui
5 Jan 20:31:12 - [info] Settings file  : /etc/node-red/config.js
5 Jan 20:31:12 - [info] Context store  : 'default' [module=memory]
5 Jan 20:31:12 - [info] User directory : /config/node-red/
5 Jan 20:31:12 - [warn] Projects disabled : editorTheme.projects.enabled=false
5 Jan 20:31:12 - [info] Flows file     : /config/node-red/flows.json
5 Jan 20:31:12 - [info] Starting flows
5 Jan 20:31:12 - [info] Started flows
5 Jan 20:31:12 - [info] Server now running at http://127.0.0.1:46836/
[20:31:13] INFO: Starting NGinx...
nginx: [alert] detected a LuaJIT version which is not OpenResty's; many optimizations will be disabled and performance will be compromised (see https://github.com/openresty/luajit2 for OpenResty's LuaJIT or, even better, consider using the OpenResty releases from https://openresty.org/en/download.html)
5 Jan 20:31:17 - [info] [server:Home Assistant] WebSocket Connected to http://hassio/homeassistant

Expected behavior

Drag node to flow & be able to use it.

Actual behavior

All HA nodes have orange triangle with Invalid properties: -server & will not work.

Steps to reproduce

For me, to reproduce, you have a fresh install with the above addon & try to drag a node to a flow.

Proposed changes

I'm sorry, but I don't have any.


:wave: Thanks for opening your first issue here! If you're reporting a :bug: bug, please make sure you include steps to reproduce it. Also, logs, error messages and information about your hardware might be useful.

posted by addons-assistant[bot] over 5 years ago

This is after deploying the flow?, do the non HA nodes function ok?

posted by sinclairpaul over 5 years ago

Oh, that is odd. I never tried to deploy any flow or do anything with the nodes. When I saw the orange triangle with the error about not knowing the "server", then I "assumed" that the systems could not talk with each other--that is not true.

Once you double click the dropped node & then click the "Done" button, then the error goes away.

Looks like it is working--just an odd UI "feature".

Should this be renamed about nodes initially having the waring or just closed?

posted by jimmypuckett over 5 years ago

Any changes would need to be in the documentation for the actual HA nodes, not the addon. I am not aware if it is listed there or not. Glad you got it resolved.

posted by sinclairpaul over 5 years ago

This thread has been automatically locked because it has not had recent activity. Please open a new issue for related bugs and link to relevant comments in this thread.

posted by addons-assistant[bot] about 5 years ago

Fund this Issue

$0.00
Funded

Pull requests