hassio-addons / addon-zwave-js-ui

Z-Wave JS UI - Home Assistant Community Add-ons
https://addons.community
MIT License
124 stars 35 forks source link

Z-Wave JS UI Stuck in Restart Loop #439

Closed greghesp closed 1 year ago

greghesp commented 1 year ago

Problem/Motivation

Ever since last night (31/10/2022), my ZWave devices stopped working. I see error Retrying setup: Failed to connect: Cannot connect to host a0d7b954-zwavejs2mqtt:3000 ssl:default [Connect call failed ('172.30.33.1', 3000)] on the Integration panel

Not a huge amount of detail in the logs, apart from the following

s6-rc: info: service s6rc-oneshot-runner: starting
s6-rc: info: service s6rc-oneshot-runner successfully started
s6-rc: info: service fix-attrs: starting
s6-rc: info: service fix-attrs successfully started
s6-rc: info: service legacy-cont-init: starting
cont-init: info: running /etc/cont-init.d/00-banner.sh
-----------------------------------------------------------
 Add-on: Z-Wave JS UI
 Fully configurable Z-Wave JS gateway and control panel
-----------------------------------------------------------
 Add-on version: 1.2.1
 You are running the latest version of this add-on.
 System: Home Assistant OS 9.3  (amd64 / generic-x86-64)
 Home Assistant Core: 2022.10.5
 Home Assistant Supervisor: 2022.10.2
-----------------------------------------------------------
 Please, share the above information when looking for help
 or support in, e.g., GitHub, forums or the Discord chat.
-----------------------------------------------------------
cont-init: info: /etc/cont-init.d/00-banner.sh exited 0
cont-init: info: running /etc/cont-init.d/01-log-level.sh
cont-init: info: /etc/cont-init.d/01-log-level.sh exited 0
cont-init: info: running /etc/cont-init.d/configuration.sh
cont-init: info: /etc/cont-init.d/configuration.sh exited 0
cont-init: info: running /etc/cont-init.d/nginx.sh
cont-init: info: /etc/cont-init.d/nginx.sh exited 0
s6-rc: info: service legacy-cont-init successfully started
s6-rc: info: service legacy-services: starting
services-up: info: copying legacy longrun nginx (no readiness notification)
services-up: info: copying legacy longrun zwave-js-ui (no readiness notification)
s6-rc: info: service legacy-services successfully started
[09:57:23] INFO: Starting the Z-Wave JS UI...
[09:57:23] INFO: Z-Wave JS UI stoped, restarting...
[09:57:24] INFO: Starting the Z-Wave JS UI...
[09:57:24] INFO: Z-Wave JS UI stoped, restarting...
[09:57:25] INFO: Starting the Z-Wave JS UI...
[09:57:25] INFO: Z-Wave JS UI stoped, restarting...
[09:57:26] INFO: Starting the Z-Wave JS UI...
[09:57:26] INFO: Z-Wave JS UI stoped, restarting...
[09:57:27] INFO: Starting the Z-Wave JS UI...
[09:57:27] INFO: Z-Wave JS UI stoped, restarting...
[09:57:28] INFO: Starting the Z-Wave JS UI...
[09:57:28] INFO: Z-Wave JS UI stoped, restarting...
............
[09:58:20] INFO: Starting the Z-Wave JS UI...
[09:58:20] INFO: Z-Wave JS UI stoped, restarting...
[09:58:21] INFO: Starting the Z-Wave JS UI...
[09:58:21] INFO: Z-Wave JS UI stoped, restarting...
[09:58:22] INFO: Starting the Z-Wave JS UI...
[09:58:22] INFO: Z-Wave JS UI stoped, restarting...
Terminated
[09:58:23] INFO: Starting NGinx...
[09:58:23] INFO: Starting the Z-Wave JS UI...
[09:58:23] INFO: Z-Wave JS UI stoped, restarting...
[09:58:24] INFO: Starting the Z-Wave JS UI...
[09:58:24] INFO: Z-Wave JS UI stoped, restarting...
[09:58:25] INFO: Starting the Z-Wave JS UI...
[09:58:25] INFO: Z-Wave JS UI stoped, restarting...
and so on..

Trace logs don't give much more

-----------------------------------------------------------
 Add-on version: 1.2.1
 You are running the latest version of this add-on.
 System: Home Assistant OS 9.3  (amd64 / generic-x86-64)
 Home Assistant Core: 2022.10.5
 Home Assistant Supervisor: 2022.10.2
-----------------------------------------------------------
 Please, share the above information when looking for help
 or support in, e.g., GitHub, forums or the Discord chat.
-----------------------------------------------------------
cont-init: info: /etc/cont-init.d/00-banner.sh exited 0
cont-init: info: running /etc/cont-init.d/01-log-level.sh
Log level is set to TRACE
cont-init: info: /etc/cont-init.d/01-log-level.sh exited 0
cont-init: info: running /etc/cont-init.d/configuration.sh
[10:00:15] TRACE: bashio::fs.directory_exists: /data/db
[10:00:15] TRACE: bashio::fs.directory_exists: /data/store
[10:00:15] TRACE: bashio::exit.ok
cont-init: info: /etc/cont-init.d/configuration.sh exited 0
cont-init: info: running /etc/cont-init.d/nginx.sh
[10:00:15] TRACE: bashio::addon.ingress_entry
[10:00:15] TRACE: bashio::addons self addons.self.ingress_entry .ingress_entry // empty
[10:00:15] TRACE: bashio::cache.exists: addons.self.ingress_entry
[10:00:15] TRACE: bashio::fs.file_exists: /tmp/.bashio/addons.self.ingress_entry.cache
[10:00:15] TRACE: bashio::var.false: self
[10:00:15] TRACE: bashio::cache.exists: addons.self.info
[10:00:15] TRACE: bashio::fs.file_exists: /tmp/.bashio/addons.self.info.cache
[10:00:15] TRACE: bashio::cache.get: addons.self.info
[10:00:15] TRACE: bashio::cache.exists: addons.self.info
[10:00:15] TRACE: bashio::fs.file_exists: /tmp/.bashio/addons.self.info.cache
[10:00:15] TRACE: bashio::var.has_value: .ingress_entry // empty
[10:00:15] TRACE: bashio::jq: {"name":"Z-Wave JS UI","slug":"a0d7b954_zwavejs2mqtt","hostname":"a0d7b954-zwavejs2mqtt","dns":["a0d7b954-zwavejs2mqtt.local.hass.io"],"description":"Fully configurable Z-Wave JS gateway and control panel","long_description":"# Home Assistant Community Add-on: Z-Wave JS UI
[![Release][release-shield]][release] ![Project Stage][project-stage-shield] ![Project Maintenance][maintenance-shield]
[![Discord][discord-shield]][discord] [![Community Forum][forum-shield]][forum]
[![Sponsor Frenck via GitHub Sponsors][github-sponsors-shield]][github-sponsors]
[![Support Frenck on Patreon][patreon-shield]][patreon]
Fully configurable Z-Wave JS control panel and MQTT gateway.
![Z-Wave JS UI][logo]
## About
The Z-Wave JS UI add-on provides an additional control panel, allowing you
to configure every aspect of your Z-Wave network. It provides a decouled
gateway which can communicate using Z-Wave JS WebSockets (used by the
Home Assistant Z-Wave JS integration) and MQTT (even simultaneously).
Some advantages and use-cases:
- Compatible with the Home Assistant Z-Wave JS integration.
- Your Z-Wave network will keep running between Home Assistant restarts.
- You can directly use things like Node-RED with your Z-Wave network, while
  it is available for Home Assistant at the same time.
- Allow [ESPHome.io][esphome] based ESP devices to directly respond or work
  with your Z-Wave network.
- Pre-configures itself with the Mosquitto add-on when found.
This add-on uses the [Z-Wave JS UI][zwave-js-ui] software.
[discord-shield]: https://img.shields.io/discord/478094546522079232.svg
[discord]: https://discord.me/hassioaddons
[esphome]: https://esphome.io/components/mqtt.html#on-message-trigger
[forum-shield]: https://img.shields.io/badge/community-forum-brightgreen.svg
[forum]: https://community.home-assistant.io/?u=frenck
[github-sponsors-shield]: https://frenck.dev/wp-content/uploads/2019/12/github_sponsor.png
[github-sponsors]: https://github.com/sponsors/frenck
[logo]: https://github.com/hassio-addons/addon-zwave-js-ui/raw/main/zwave-js-ui/logo.png
[maintenance-shield]: https://img.shields.io/maintenance/yes/2022.svg
[patreon-shield]: https://frenck.dev/wp-content/uploads/2019/12/patreon.png
[patreon]: https://www.patreon.com/frenck
[project-stage-shield]: https://img.shields.io/badge/project%20stage-production%20ready-brightgreen.svg
[release-shield]: https://img.shields.io/badge/version-v1.2.1-blue.svg
[release]: https://github.com/hassio-addons/addon-zwave-js-ui/tree/v1.2.1
[zwave-js-ui]: https://github.com/zwave-js/zwave-js-ui","advanced":false,"stage":"stable","repository":"a0d7b954","version_latest":"1.2.1","protected":true,"rating":8,"boot":"auto","options":{"log_level":"trace"},"schema":[{"name":"log_level","optional":true,"type":"select","options":["trace","debug","info","notice","warning","error","fatal"]}],"arch":["aarch64","amd64","armhf","armv7","i386"],"machine":[],"homeassistant":null,"url":"https://github.com/hassio-addons/addon-zwave-js-ui","detached":false,"available":true,"build":false,"network":{"3000/tcp":null},"network_description":{"3000/tcp":"Z-Wave JS communication"},"host_network":false,"host_pid":false,"host_ipc":false,"host_dbus":false,"privileged":[],"full_access":false,"apparmor":"default","icon":true,"logo":true,"changelog":true,"documentation":true,"stdin":false,"hassio_api":false,"hassio_role":"default","auth_api":false,"homeassistant_api":false,"gpio":false,"usb":false,"uart":true,"kernel_modules":false,"devicetree":false,"udev":true,"docker_api":false,"video":false,"audio":false,"startup":"system","services":["mqtt:want"],"discovery":["zwave_js"],"translations":{"en":{"configuration":{"log_level":{"name":"Log level","description":"Controls the level of log details the add-on provides."}},"network":{"3000/tcp":"Z-Wave JS server port"}}},"ingress":true,"signed":true,"state":"started","webui":null,"ingress_entry":"/api/hassio_ingress/JRLIz5W2AiZmURQn4Oyqi2jGX6KwtdcLC-yFjwX0gO0","ingress_url":"/api/hassio_ingress/JRLIz5W2AiZmURQn4Oyqi2jGX6KwtdcLC-yFjwX0gO0/","ingress_port":8099,"ingress_panel":true,"audio_input":null,"audio_output":null,"auto_update":true,"ip_address":"172.30.33.1","version":"1.2.1","update_available":false,"watchdog":true,"devices":[]} .ingress_entry // empty
[10:00:15] TRACE: bashio::cache.set: addons.self.ingress_entry /api/hassio_ingress/JRLIz5W2AiZmURQn4Oyqi2jGX6KwtdcLC-yFjwX0gO0
[10:00:15] TRACE: bashio::fs.directory_exists: /tmp/.bashio
cont-init: info: /etc/cont-init.d/nginx.sh exited 0
s6-rc: info: service legacy-cont-init successfully started
s6-rc: info: service legacy-services: starting
services-up: info: copying legacy longrun nginx (no readiness notification)
services-up: info: copying legacy longrun zwave-js-ui (no readiness notification)
s6-rc: info: service legacy-services successfully started
[10:00:15] TRACE: bashio::net.wait_for 44920
[10:00:15] INFO: Starting the Z-Wave JS UI...
[10:00:15] TRACE: bashio::net.wait_for 3000 localhost 1800
[10:00:16] INFO: Z-Wave JS UI stoped, restarting...
[10:00:16] INFO: Starting the Z-Wave JS UI...
[10:00:16] TRACE: bashio::net.wait_for 3000 localhost 1800
[10:00:17] INFO: Z-Wave JS UI stoped, restarting...
[10:00:17] INFO: Starting the Z-Wave JS UI...
[10:00:17] TRACE: bashio::net.wait_for 3000 localhost 1800
[10:00:18] INFO: Z-Wave JS UI stoped, restarting...
[10:00:18] INFO: Starting the Z-Wave JS UI...
[10:00:18] TRACE: bashio::net.wait_for 3000 localhost 1800
[10:00:19] INFO: Z-Wave JS UI stoped, restarting...
greghesp commented 1 year ago

Unplugging and replugging the ZWave stick, and then pulling power to the NUC seems to have resolved this