Yes i understand that, however these errors are not occuring during a restart or an upgrade but during normal use. The second log i posted shows hassio logging:
Home Assistant WebSocket API error: Received message 257:None is not str
followed shortly by:
Watchdog found a problem with Home Assistant Docker!
19-07-29 17:21:17 INFO (SyncWorker_34) [hassio.docker.interface] Start homeassistant/qemux86-64-homeassistant
upon which time home assistant does an unscheduled restart
HA crashes, you have to find out why, but that is not related to the add-on. The add-on just looses connection (because well⌠that) and starts the reconnect procedure.
i think there might still be something going on with node red, this happened during my last crash:
19-08-01 21:15:10 INFO (MainThread) [hassio.api.proxy] Home Assistant WebSocket API request initialize
19-08-01 21:15:10 INFO (MainThread) [hassio.api.proxy] WebSocket access from a0d7b954_nodered
19-08-01 21:15:10 INFO (MainThread) [hassio.homeassistant] Updated Home Assistant API token
19-08-01 21:15:10 INFO (MainThread) [hassio.api.proxy] Home Assistant WebSocket API request running
19-08-01 22:05:21 INFO (MainThread) [hassio.api.proxy] Home Assistant WebSocket API error: Received message 257:None is not str
19-08-01 22:05:21 INFO (MainThread) [hassio.api.proxy] Home Assistant WebSocket API connection is closed
19-08-01 22:05:26 INFO (MainThread) [hassio.api.proxy] Home Assistant WebSocket API request initialize
19-08-01 22:05:26 INFO (MainThread) [hassio.api.proxy] WebSocket access from a0d7b954_nodered
19-08-01 22:05:26 ERROR (MainThread) [hassio.api.proxy] Client error on WebSocket API Cannot connect to host 172.30.32.1:8123 ssl:False [Connection refused].
19-08-01 22:05:30 WARNING (MainThread) [hassio.tasks] Watchdog found a problem with Home Assistant Docker!
19-08-01 22:05:30 INFO (SyncWorker_22) [hassio.docker.interface] Start homeassistant/qemux86-64-homeassistant
19-08-01 22:05:31 INFO (MainThread) [hassio.api.proxy] Home Assistant WebSocket API request initialize
19-08-01 22:05:31 INFO (MainThread) [hassio.api.proxy] WebSocket access from a0d7b954_nodered
i was able to get my system to stop crashing by using a long lived access token instead of hass.io websockets. I went through every node and wasnât able to source the problem other than the issue where the log shows:
Home Assistant WebSocket API error: Received message 257:None is not str
Just throwing a question out there in case anyoneâs tried this.
Iâve gotten the add on to run nicely, but Iâm trying to connect Node Red directly to Deconz running on the same Pi (with a hassio add on as well) using its pallette (node-red-contrib-deconz). Have anyone managed to integrate these?
I managed to get it working! I couldnât get magick to automatically fill in the API key so I retrieved the key manually. Hereâs what I did:
Open SSH terminal (via the SSH & Web Terminal add-on under Hassio)
Open the Phoscon App (open web-ui in the deCONZ add-on under Hassio)
In the Phoscon App goto: Hamburger menu -> Gateway -> Advanced -> Click âAuthenticate appâ (This will open the gateway for 60 seconds)
In the SSH terminal type:
curl -d â{âdevicetypeâ: â[give the application name, for instance Node-RED]â}â -H âContent-Type: application/jsonâ -X POST http://[your local ip address for Hassio / deCONZ]:40850/api
This should result in:
[{âsuccessâ:{âusernameâ:"[this is the api-key]"}}]#
Goto Node-RED and install the ânode-red-contrib-deconzâ pallette
Drag the âdeconz-eventâ node in a flow
Fill in the server details:
Name: Conbee2
IP Adress: [your local ip address for Hassio / deCONZ]
Port: 40850
API key: [the api-key from above]
WebSocket Port: 40860
SSL: not selected
Hi,
Trying to install the addon on latest Hassio .
Any help with the following error will be great:
ERROR (SyncWorker_2) [hassio.docker.interface] Canât install hassioaddons/node-red-armv7:4.0.7 -> 500 Server Error: Internal Server Error (âreadlink /mnt/data/docker/overlay2/l: invalid argumentâ).
I just noticed that running Node Red in a separate tab is not working anymore. I can start Node Red from the sidebar via Ingress without any problem, but running it in a separate tab gives me a 401 Access denied error (when entering my login and password from HA). The port 1880 for the Web interface is correctly configured in the add-on. Any ideas what is going on?
Hi folks
Overnight my automations in Node Red stopped working. In my node red log I see the Websocket connecting and the immediately closing. If I look in the Hassio Log I see the following error with message 258? I have pasted the Node Red startup log below if that also helps. Any ideas? I dont recall changing anything - âIt just happenedâ Today I have removed the add on, deleted the Node-Red folder, Restarted the server and also then reinstalled the addon (without adding any of my nodes back in - and I still see the exact same errorâŚ
Thanks in advance.
Neil
19-08-25 17:41:36 INFO (MainThread) [hassio.api.proxy] Home Assistant WebSocket API connection is closed
19-08-25 17:41:41 INFO (MainThread) [hassio.api.proxy] Home Assistant WebSocket API request initialize
19-08-25 17:41:41 INFO (MainThread) [hassio.api.proxy] WebSocket access from a0d7b954_nodered
19-08-25 17:41:41 INFO (MainThread) [hassio.api.proxy] Home Assistant WebSocket API request running
19-08-25 17:41:41 INFO (MainThread) [hassio.api.proxy] Home Assistant WebSocket API error: Received message 258:WebSocketError(âMessage size 5246459 exceeds limit 4194304â) is not str
[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: 4.1.0
You are running the latest version of this add-on.
System: Ubuntu 18.04.3 LTS (amd64 / intel-nuc)
Home Assistant version: 0.97.2
Supervisor version: 183
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).
npm notice created a lockfile as package-lock.json. You should commit this file.
up to date in 1.184s
found 0 vulnerabilities
25 Aug 18:36:54 - [info] Node-RED version: v0.20.7
25 Aug 18:36:54 - [info] Node.js version: v10.16.0
25 Aug 18:36:54 - [info] Linux 4.15.0-58-generic x64 LE
25 Aug 18:36:54 - [info] Loading palette nodes
25 Aug 18:36:58 - [warn] rpi-gpio : Raspberry Pi specific node set inactive
25 Aug 18:36:59 - [info] Dashboard version 2.16.1 started at /endpoint/ui
25 Aug 18:36:59 - [info] Settings file : /etc/node-red/config.js
25 Aug 18:36:59 - [info] Context store : âdefaultâ [module=memory]
25 Aug 18:36:59 - [info] User directory : /config/node-red/
25 Aug 18:36:59 - [warn] Projects disabled : editorTheme.projects.enabled=false
25 Aug 18:36:59 - [info] Flows file : /config/node-red/flows.json
25 Aug 18:37:00 - [info] Starting flows
25 Aug 18:37:00 - [info] Started flows
25 Aug 18:37:00 - [info] Server now running at http://127.0.0.1:46836/
[18:37:00] 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 GitHub - openresty/luajit2: OpenResty's Branch of LuaJIT 2 for OpenRestyâs LuaJIT or, even better, consider using the OpenResty releases from OpenResty - Download)
25 Aug 18:37:05 - [info] [server:Home Assistant] WebSocket Connected to http://hassio/homeassistant
25 Aug 18:37:05 - [info] [server:Home Assistant] WebSocket Closed http://hassio/homeassistant
25 Aug 18:37:10 - [info] [server:Home Assistant] WebSocket Connected to http://hassio/homeassistant
25 Aug 18:37:10 - [info] [server:Home Assistant] WebSocket Closed http://hassio/homeassistant
25 Aug 18:37:15 - [info] [server:Home Assistant] WebSocket Connected to http://hassio/homeassistant
25 Aug 18:37:16 - [info] [server:Home Assistant] WebSocket Closed http://hassio/homeassistant
Just to close the loop here - I think I figured it out. I had HACS installed with the Unifi Gateway. As soon as I enabled the sensor for it in my config.yaml I started seeing this issue. Once removed, all was working again. So I can only assume the Unifi HACs component was causing the issue? Possible?