EMQX重启失败,failed_to_start_child,listener,eaddrinuse
查看/root/emqx/emqx/log/erlang.log.1日志如下:
===== LOGGING STARTED Tue Apr 23 19:41:16 CST 2024
Erlang/OTP 25 [erts-13.2.2] [emqx] [64-bit] [smp:96:96] [ds:96:96:8] [async-threads:4] [jit:ns]
Listener ssl:default on 0.0.0.0:20442 started.
Failed to start listener tcp:default on 0.0.0.0:20442: {{shutdown,{failed_to_start_child,listener,eaddrinuse}},{child,undefined,{listener_sup,{‘tcp:default’,{{0,0,0,0},20442}}},{esockd_listener_sup,start_link,[‘tcp:default’,{{0,0,0,0},20442}]},transient,false,infinity,supervisor,[esockd_listener_sup]}}.
{“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:20442) : {shutdown,\n {failed_to_start_child,listener,eaddrinuse}}"},[{emqx_listeners,‘-foreach_listeners/1-fun-0-’,2,[{file,"emqx_listeners.erl"},{line,807}]},{lists,foreach_1,2,[{file,"lists.erl"},{line,1442}]},{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}]}]}}}}}”}
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:20442) : {shutdown,\n {failed_to_start_child,listener,eaddrinuse}}”},[{emqx_listeners,‘-foreach_listeners/1-fun-0-’,2,[{file,“emqx_listeners.erl”},{line,807}]},{lists,foreach_1,2,[{file,“lists.erl”},{line,1442}]},{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: /root/emqx/emqx/log/erl_crash.dump…done