hassio-addons / addon-emqx

EMQX - Home Assistant Community Add-ons
MIT License
63 stars 13 forks source link

crash after update from 0.6.1 -> 0.6.2 #109

Open diahellfire opened 1 month ago

diahellfire commented 1 month ago

Problem/Motivation

crash after update from 0.6.1 -> 0.6.2

Actual behavior

Crash and stop after a few seconds

Steps to reproduce

Add-on: EMQX The most scalable open-source MQTT broker for IoT. An alternative for the Mosquitto add-on

Add-on version: 0.6.2 You are running the latest version of this add-on. System: null (amd64 / qemux86-64) Home Assistant Core: 2024.8.0 Home Assistant Supervisor: 2024.08.0

s6-rc: info: service base-addon-banner successfully started
s6-rc: info: service fix-attrs: starting
s6-rc: info: service base-addon-timezone: starting
s6-rc: info: service base-addon-log-level: starting
s6-rc: info: service fix-attrs successfully started
[12:03:43] INFO: Configuring timezone (Europe/Moscow)...
s6-rc: info: service base-addon-log-level successfully started
s6-rc: info: service base-addon-timezone successfully started
s6-rc: info: service legacy-cont-init: starting
s6-rc: info: service legacy-cont-init successfully started
s6-rc: info: service init-emqx: starting
s6-rc: info: service init-emqx successfully started
s6-rc: info: service emqx: starting
s6-rc: info: service emqx successfully started
s6-rc: info: service legacy-services: starting
[12:03:43] INFO: Starting EMQX...
s6-rc: info: service legacy-services successfully started
escript: exception throw: {emqx_conf_schema,[#{reason => required_field,
                                      path => "node.cookie",
                                      kind => validation_error}]}
  in function  hocon_tconf:assert/2 (hocon_tconf.erl, line 1227)
  in call from hocon_tconf:map/4 (hocon_tconf.erl, line 303)
  in call from hocon_cli:get_values/3 (hocon_cli.erl, line 194)
  in call from hocon_cli:multi_get/2 (hocon_cli.erl, line 182)
  in call from escript:run/2 (escript.erl, line 750)
  in call from escript:start/1 (escript.erl, line 277)
  in call from init:start_em/1 
  in call from init:do_boot/3 
ERROR: call_hocon_failed: -s emqx_conf_schema -c /opt/emqx/etc/emqx.conf multi_get node.data_dir node.name node.cookie node.db_backend cluster.proto_dist node.dist_net_ticktime(B
[12:03:44] INFO: Service EMQX exited with code 127 (by signal 0)
s6-rc: info: service legacy-services: stopping
s6-rc: info: service legacy-services successfully stopped
s6-rc: info: service emqx: stopping
s6-rc: info: service emqx successfully stopped
s6-rc: info: service init-emqx: stopping
s6-rc: info: service init-emqx successfully stopped
s6-rc: info: service legacy-cont-init: stopping
s6-rc: info: service legacy-cont-init successfully stopped
s6-rc: info: service fix-attrs: stopping
s6-rc: info: service base-addon-timezone: stopping
s6-rc: info: service base-addon-log-level: stopping
s6-rc: info: service fix-attrs successfully stopped
s6-rc: info: service base-addon-timezone successfully stopped
s6-rc: info: service base-addon-log-level successfully stopped
s6-rc: info: service base-addon-banner: stopping
s6-rc: info: service base-addon-banner successfully stopped
s6-rc: info: service s6rc-oneshot-runner: stopping
s6-rc: info: service s6rc-oneshot-runner successfully stopped
thtro commented 1 month ago

Same here, I've only noticed a problem after updating HA to 2024.8.0 0.6.1 doesn't work if restored from backup on 2024.8.0, same error.

` Add-on: EMQX The most scalable open-source MQTT broker for IoT. An alternative for the Mosquitto add-on

Add-on version: 0.6.2 You are running the latest version of this add-on. System: null (amd64 / qemux86-64) Home Assistant Core: 2024.8.0 Home Assistant Supervisor: 2024.08.0

Please, share the above information when looking for help or support in, e.g., GitHub, forums or the Discord chat.

s6-rc: info: service base-addon-banner successfully started s6-rc: info: service fix-attrs: starting s6-rc: info: service base-addon-timezone: starting s6-rc: info: service base-addon-log-level: starting s6-rc: info: service fix-attrs successfully started [16:30:55] INFO: Configuring timezone (Europe/Bucharest)... s6-rc: info: service base-addon-log-level successfully started s6-rc: info: service base-addon-timezone successfully started s6-rc: info: service legacy-cont-init: starting s6-rc: info: service legacy-cont-init successfully started s6-rc: info: service init-emqx: starting s6-rc: info: service init-emqx successfully started s6-rc: info: service emqx: starting s6-rc: info: service emqx successfully started s6-rc: info: service legacy-services: starting [16:30:56] INFO: Starting EMQX... s6-rc: info: service legacy-services successfully started escript: exception throw: {emqx_conf_schema,[#{reason => required_field, path => "node.cookie", kind => validation_error}]} in function hocon_tconf:assert/2 (hocon_tconf.erl, line 1227) in call from hocon_tconf:map/4 (hocon_tconf.erl, line 303) in call from hocon_cli:get_values/3 (hocon_cli.erl, line 194) in call from hocon_cli:multi_get/2 (hocon_cli.erl, line 182) in call from escript:run/2 (escript.erl, line 750) in call from escript:start/1 (escript.erl, line 277) in call from init:start_em/1 in call from init:do_boot/3 ERROR: call_hocon_failed: -s emqx_conf_schema -c /opt/emqx/etc/emqx.conf multi_get node.data_dir node.name node.cookie node.db_backend cluster.proto_dist node.dist_net_ticktime(B [16:30:56] INFO: Service EMQX exited with code 127 (by signal 0) s6-rc: info: service legacy-services: stopping s6-rc: info: service legacy-services successfully stopped s6-rc: info: service emqx: stopping s6-rc: info: service emqx successfully stopped s6-rc: info: service init-emqx: stopping s6-rc: info: service init-emqx successfully stopped s6-rc: info: service legacy-cont-init: stopping s6-rc: info: service legacy-cont-init successfully stopped s6-rc: info: service fix-attrs: stopping s6-rc: info: service base-addon-timezone: stopping s6-rc: info: service base-addon-log-level: stopping s6-rc: info: service fix-attrs successfully stopped s6-rc: info: service base-addon-timezone successfully stopped s6-rc: info: service base-addon-log-level successfully stopped s6-rc: info: service base-addon-banner: stopping s6-rc: info: service base-addon-banner successfully stopped s6-rc: info: service s6rc-oneshot-runner: stopping s6-rc: info: service s6rc-oneshot-runner successfully stopped`

github-actions[bot] commented 1 week ago

There hasn't been any activity on this issue recently, so we clean up some of the older and inactive issues. Please make sure to update to the latest version and check if that solves the issue. Let us know if that works for you by leaving a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thanks!