我改成listener.ws.external = 8084还是不行,提示 2024-09-25T11:26:34.668134+08:00 [error] Failed to start Ranch listener ‘mqtt:wss:8084’ in ranch_ssl:listen([{cacerts,‘…’},{key,‘…’},{cert,‘…’},{next_protocols_advertised,[<<“h2”>>,<<“http/1.1”>>]},{alpn_preferred_protocols,[<<“h2”>>,<<“http/1.1”>>]},{port,8084},{backlog,1024},{send_timeout,15000},{send_timeout_close,true},{nodelay,true},{ciphers,[“TLS_AES_256_GCM_SHA384”,“TLS_AES_128_GCM_SHA256”,“TLS_CHACHA20_POLY1305_SHA256”,“TLS_AES_128_CCM_SHA256”,“TLS_AES_128_CCM_8_SHA256”,“ECDHE-ECDSA-AES256-GCM-SHA384”,“ECDHE-RSA-AES256-GCM-SHA384”,“ECDHE-ECDSA-AES256-SHA384”,“ECDHE-RSA-AES256-SHA384”,“ECDHE-ECDSA-DES-CBC3-SHA”,“ECDH-ECDSA-AES256-GCM-SHA384”,“ECDH-RSA-AES256-GCM-SHA384”,“ECDH-ECDSA-AES256-SHA384”,“ECDH-RSA-AES256-SHA384”,“DHE-DSS-AES256-GCM-SHA384”,“DHE-DSS-AES256-SHA256”,“AES256-GCM-SHA384”,“AES256-SHA256”,“ECDHE-ECDSA-AES128-GCM-SHA256”,“ECDHE-RSA-AES128-GCM-SHA256”,“ECDHE-ECDSA-AES128-SHA256”,“ECDHE-RSA-AES128-SHA256”,“ECDH-ECDSA-AES128-GCM-SHA256”,“ECDH-RSA-AES128-GCM-SHA256”,“ECDH-ECDSA-AES128-SHA256”,“ECDH-RSA-AES128-SHA256”,“DHE-DSS-AES128-GCM-SHA256”,“DHE-DSS-AES128-SHA256”,“AES128-GCM-SHA256”,“AES128-SHA256”,“ECDHE-ECDSA-AES256-SHA”,“ECDHE-RSA-AES256-SHA”,“DHE-DSS-AES256-SHA”,“ECDH-ECDSA-AES256-SHA”,“ECDH-RSA-AES256-SHA”,“AES256-SHA”,“ECDHE-ECDSA-AES128-SHA”,“ECDHE-RSA-AES128-SHA”,“DHE-DSS-AES128-SHA”,“ECDH-ECDSA-AES128-SHA”,“ECDH-RSA-AES128-SHA”,“AES128-SHA”]},{depth,10},{keyfile,“/etc/emqx/certs/key.pem”},{certfile,“/etc/emqx/certs/cert.pem”},{reuse_sessions,true}]) for reason eaddrinuse (address already in use)
2024-09-25T11:26:34.668829+08:00 [error] Supervisor: {<0.1860.0>,ranch_listener_sup}. Context: start_error. Reason: {listen_error,‘mqtt:wss:8084’,eaddrinuse}. Offender: id=ranch_acceptors_sup,pid=undefined.
Failed to start mqtt listener mqtt:wss:external on 0.0.0.0:8084: eaddrinuse
2024-09-25T11:26:34.669180+08:00 [error] crasher: initial call: supervisor:ranch_acceptors_sup/1, pid: <0.1862.0>, registered_name: , exit: {{listen_error,‘mqtt:wss:8084’,eaddrinuse},[{ranch_acceptors_sup,listen_error,5,[{file,“ranch_acceptors_sup.erl”},{line,66}]},{supervisor,init,1,[{file,“supervisor.erl”},{line,330}]},{gen_server,init_it,2,[{file,“gen_server.erl”},{line,423}]},{gen_server,init_it,6,[{file,“gen_server.erl”},{line,390}]},{proc_lib,init_p_do_apply,3,[{file,“proc_lib.erl”},{line,226}]}]}, ancestors: [<0.1860.0>,ranch_sup,<0.1639.0>], message_queue_len: 0, messages: , links: [<0.1860.0>], dictionary: [{logger,error_logger}], trap_exit: true, status: running, heap_size: 610, stack_size: 28, reductions: 40744; neighbours:
2024-09-25T11:26:34.669937+08:00 [error] crasher: initial call: application_master:init/4, pid: <0.1655.0>, registered_name: , exit: {{bad_return,{{emqx_app,start,[normal,]},{‘EXIT’,{eaddrinuse,[{emqx_listeners,start_listener,1,[{file,“emqx_listeners.erl”},{line,120}]},{lists,foreach,2,[{file,“lists.erl”},{line,1342}]},{emqx_app,start,2,[{file,“emqx_app.erl”},{line,53}]},{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,226}]}]}, ancestors: [<0.1654.0>], message_queue_len: 1, messages: [{‘EXIT’,<0.1656.0>,normal}], links: [<0.1654.0>,<0.1503.0>], dictionary: , trap_exit: true, status: running, heap_size: 610, stack_size: 28, reductions: 333; neighbours:
[os_mon] memory supervisor port (memsup): Erlang has closed
[os_mon] cpu supervisor port (cpu_sup): Erlang has closed
{“Kernel pid terminated”,application_controller,“{application_start_failure,emqx,{bad_return,{{emqx_app,start,[normal,]},{‘EXIT’,{eaddrinuse,[{emqx_listeners,start_listener,1,[{file,"emqx_listeners.erl"},{line,120}]},{lists,foreach,2,[{file,"lists.erl"},{line,1342}]},{emqx_app,start,2,[{file,"emqx_app.erl"},{line,53}]},{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’,{eaddrinuse,[{emqx_listeners,start_listener,1,[{file,“emqx_listeners.erl”},{line,120}]},{lists,foreach,2,[{file,“lists.erl”},{line,1342}]},{emqx_app,start,2,[{file,“emqx_app.erl”},{line,53}]},{application_master,start_it_old,4,[{file,“application_master.erl”},{line,293}]}]}}}}})
Crash dump is being written to: /var/log/emqx/crash.dump…done