hassio-addons / addon-emqx

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

Stoped working after updating to HassOS 12.4 #101

Closed superpower10 closed 3 months ago

superpower10 commented 3 months ago

Problem/Motivation

Addon crashes since HassOS 12.4

Actual behavior

Hit Start. Crash and stop after a few seconds

Steps to reproduce

Hit Start Button

s6-rc: info: service base-addon-banner: starting

-----------------------------------------------------------
 Add-on: EMQX
 The most scalable open-source MQTT broker for IoT. An alternative for the Mosquitto add-on
-----------------------------------------------------------
 Add-on version: 0.6.0
 You are running the latest version of this add-on.
 System: Home Assistant OS 12.4  (amd64 / generic-x86-64)
 Home Assistant Core: 2024.6.3
 Home Assistant Supervisor: 2024.06.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
[21:12:39] INFO: Configuring timezone (Europe/Berlin)...
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
[21:12:39] INFO: Starting EMQX...
s6-rc: info: service legacy-services successfully started
EMQX_PLUGINS__INSTALL_DIR [plugins.install_dir]: /data/emqx/plugins
EMQX_RPC__PORT_DISCOVERY [rpc.port_discovery]: manual
EMQX_NODE__DATA_DIR [node.data_dir]: /data/emqx/data
EMQX_NODE__COOKIE [node.cookie]: ******
EMQX_NODE__NAME [node.name]: emqx@nuchomeassistant.local
2024-06-19T21:12:42.983694+02:00 [error] tcp:default failed to listen on 1883 - eaddrinuse (address already in use)
2024-06-19T21:12:42.984225+02:00 [error] crasher: initial call: esockd_listener:init/1, pid: <0.2725.0>, registered_name: [], exit: {eaddrinuse,[{gen_server,init_it,6,[{file,"gen_server.erl"},{line,961}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,241}]}]}, ancestors: [<0.2723.0>,esockd_sup,<0.2440.0>], message_queue_len: 0, messages: [], links: [<0.2723.0>], dictionary: [], trap_exit: true, status: running, heap_size: 1598, stack_size: 28, reductions: 2944; neighbours:
2024-06-19T21:12:42.986000+02:00 [error] Supervisor: {<0.2723.0>,esockd_listener_sup}. Context: start_error. Reason: eaddrinuse. Offender: id=listener,pid=undefined.
Failed to start listener tcp:default on 0.0.0.0:1883: {{shutdown,{failed_to_start_child,listener,eaddrinuse}},{child,undefined,{listener_sup,{'tcp:default',{{0,0,0,0},1883}}},{esockd_listener_sup,start_link,['tcp:default',{{0,0,0,0},1883}]},transient,false,infinity,supervisor,[esockd_listener_sup]}}.
2024-06-19T21:12:42.986866+02:00 [error] crasher: initial call: application_master:init/4, pid: <0.2515.0>, registered_name: [], exit: {{bad_return,{{emqx_app,start,[normal,[]]},{'EXIT',{{failed_to_start,"tcp:default(0.0.0.0:1883) : {shutdown,\n                                {failed_to_start_child,listener,eaddrinuse}}"},[{emqx_listeners,'-foreach_listeners/1-fun-0-',2,[{file,"emqx_listeners.erl"},{line,813}]},{lists,foreach_1,2,[{file,"lists.erl"},{line,1686}]},{emqx_app,maybe_start_listeners,0,[{file,"emqx_app.erl"},{line,93}]},{emqx_app,start,2,[{file,"emqx_app.erl"},{line,46}]},{application_master,start_it_old,4,[{file,"application_master.erl"},{line,293}]}]}}}},[{application_master,init,4,[{file,"application_master.erl"},{line,142}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,241}]}]}, ancestors: [<0.2514.0>], message_queue_len: 1, messages: [{'EXIT',<0.2516.0>,normal}], links: [<0.2514.0>,<0.2139.0>], dictionary: [], trap_exit: true, status: running, heap_size: 987, stack_size: 28, reductions: 201; neighbours:
Kernel pid terminated (application_controller) ("{application_start_failure,emqx,{bad_return,{{emqx_app,start,[normal,[]]},{'EXIT',{{failed_to_start,\"tcp:default(0.0.0.0:1883) : {shutdown,\n                                {failed_to_start_child,listener,eaddrinuse}}\"},[{emqx_listeners,'-foreach_listeners/1-fun-0-',2,[{file,\"emqx_listeners.erl\"},{line,813}]},{lists,foreach_1,2,[{file,\"lists.erl\"},{line,1686}]},{emqx_app,maybe_start_listeners,0,[{file,\"emqx_app.erl\"},{line,93}]},{emqx_app,start,2,[{file,\"emqx_app.erl\"},{line,46}]},{application_master,start_it_old,4,[{file,\"application_master.erl\"},{line,293}]}]}}}}}")

Crash dump is being written to: /opt/emqx/log/erl_crash.dump...done
[21:12:44] INFO: Service EMQX exited with code 1 (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
superpower10 commented 3 months ago

Mosquito Broker was running again since update…