基于centos8 strem启动emqx5.5.0失败

Linux 环境

  • EMQX 版本:5.5.0
  • 操作系统版本:CentOS Stream8
    安装后使用./emqx start 启动,报一下错误:
    [root@application1 bin]# ./emqx start

ERROR: EMQX 5.5.0 using node name ‘emqxliu@124.220.62.100’ failed 120 probes.

Find more information in the latest log file: /root/emqx/log/erlang.log.*

按照提示查看[root@node1 bin]# cat /root/emqx/log/erlang.log.*
[root@node1 bin]# cat /root/emqx/log/erlang.log.*

=====
===== LOGGING STARTED Wed Oct 16 14:07:48 CST 2024

Kernel pid terminated (application_controller) (“{application_start_failure,kernel,{{shutdown,{failed_to_start_child,on_load,{on_load_function_failed,quicer_nif,{error,{load_failed,"Failed to load NIF library /root/emqx/lib/quicer-0.0.313/priv/libquicer_nif: ‘libatomic.so.1: cannot open shared object file: No such file or directory’"}}}}},{kernel,start,[normal,]}}}”)

Crash dump is being written to: /root/emqx/log/erl_crash.dump…done

=====
===== LOGGING STARTED Wed Oct 16 14:08:03 CST 2024

Kernel pid terminated (application_controller) (“{application_start_failure,kernel,{{shutdown,{failed_to_start_child,on_load,{on_load_function_failed,quicer_nif,{error,{load_failed,"Failed to load NIF library /root/emqx/lib/quicer-0.0.313/priv/libquicer_nif: ‘libatomic.so.1: cannot open shared object file: No such file or directory’"}}}}},{kernel,start,[normal,]}}}”)

Crash dump is being written to: /root/emqx/log/erl_crash.dump…done

=====
===== LOGGING STARTED Wed Oct 16 14:46:48 CST 2024

Kernel pid terminated (application_controller) (“{application_start_failure,kernel,{{shutdown,{failed_to_start_child,on_load,{on_load_function_failed,quicer_nif,{error,{load_failed,"Failed to load NIF library /root/emqx/lib/quicer-0.0.313/priv/libquicer_nif: ‘libatomic.so.1: cannot open shared object file: No such file or directory’"}}}}},{kernel,start,[normal,]}}}”)

Crash dump is being written to: /root/emqx/log/erl_crash.dump…done

=====
===== LOGGING STARTED Wed Oct 16 14:59:53 CST 2024

Erlang/OTP 26 [erts-14.2.1] [emqx] [64-bit] [smp:2:2] [ds:2:2:8] [async-threads:4] [jit:ns]

Listener tcp:default on 0.0.0.0:18880 started.
Failed to start listener tcp:internal on 124.220.62.100:11902: {{shutdown,{failed_to_start_child,listener,eaddrnotavail}},{child,undefined,{listener_sup,{‘tcp:internal’,{{124,220,62,100},11902}}},{esockd_listener_sup,start_link,[‘tcp:internal’,{{124,220,62,100},11902}]},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:internal(124.220.62.100:11902) : {shutdown,\n {failed_to_start_child,listener,\n eaddrnotavail}}"},[{emqx_listeners,‘-foreach_listeners/1-fun-0-’,2,[{file,"emqx_listeners.erl"},{line,790}]},{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: /root/emqx/log/erl_crash.dump…

===== LOGGING STARTED Wed Oct 16 15:11:30 CST 2024

Erlang/OTP 26 [erts-14.2.1] [emqx] [64-bit] [smp:2:2] [ds:2:2:8] [async-threads:4] [jit:ns]

Listener tcp:default on 0.0.0.0:18880 started.
Failed to start listener tcp:internal on 124.220.62.100:11920: {{shutdown,{failed_to_start_child,listener,eaddrnotavail}},{child,undefined,{listener_sup,{‘tcp:internal’,{{124,220,62,100},11920}}},{esockd_listener_sup,start_link,[‘tcp:internal’,{{124,220,62,100},11920}]},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:internal(124.220.62.100:11920) : {shutdown,\n {failed_to_start_child,listener,\n eaddrnotavail}}"},[{emqx_listeners,‘-foreach_listeners/1-fun-0-’,2,[{file,"emqx_listeners.erl"},{line,790}]},{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: /root/emqx/log/erl_crash.dump…

===== LOGGING STARTED Wed Oct 16 16:19:11 CST 2024

Erlang/OTP 26 [erts-14.2.1] [emqx] [64-bit] [smp:2:2] [ds:2:2:8] [async-threads:4] [jit:ns]

Listener tcp:default on 0.0.0.0:18880 started.
Failed to start listener tcp:internal on 124.220.62.100:11902: {{shutdown,{failed_to_start_child,listener,eaddrnotavail}},{child,undefined,{listener_sup,{‘tcp:internal’,{{124,220,62,100},11902}}},{esockd_listener_sup,start_link,[‘tcp:internal’,{{124,220,62,100},11902}]},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:internal(124.220.62.100:11902) : {shutdown,\n {failed_to_start_child,listener,\n eaddrnotavail}}"},[{emqx_listeners,‘-foreach_listeners/1-fun-0-’,2,[{file,"emqx_listeners.erl"},{line,790}]},{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: /root/emqx/log/erl_crash.dump…

===== LOGGING STARTED Wed Oct 16 16:26:02 CST 2024

Erlang/OTP 26 [erts-14.2.1] [emqx] [64-bit] [smp:2:2] [ds:2:2:8] [async-threads:4] [jit:ns]

Listener tcp:default on 0.0.0.0:18880 started.
Failed to start listener tcp:internal on 124.220.62.100:11902: {{shutdown,{failed_to_start_child,listener,eaddrnotavail}},{child,undefined,{listener_sup,{‘tcp:internal’,{{124,220,62,100},11902}}},{esockd_listener_sup,start_link,[‘tcp:internal’,{{124,220,62,100},11902}]},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:internal(124.220.62.100:11902) : {shutdown,\n {failed_to_start_child,listener,\n eaddrnotavail}}"},[{emqx_listeners,‘-foreach_listeners/1-fun-0-’,2,[{file,"emqx_listeners.erl"},{line,790}]},{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: /root/emqx/log/erl_crash.dump…done

=====
===== LOGGING STARTED Wed Oct 16 16:52:58 CST 2024

Erlang/OTP 26 [erts-14.2.1] [emqx] [64-bit] [smp:2:2] [ds:2:2:8] [async-threads:4] [jit:ns]

Listener tcp:default on 0.0.0.0:18880 started.
Failed to start listener tcp:internal on 124.220.62.100:11902: {{shutdown,{failed_to_start_child,listener,eaddrnotavail}},{child,undefined,{listener_sup,{‘tcp:internal’,{{124,220,62,100},11902}}},{esockd_listener_sup,start_link,[‘tcp:internal’,{{124,220,62,100},11902}]},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:internal(124.220.62.100:11902) : {shutdown,\n {failed_to_start_child,listener,\n eaddrnotavail}}"},[{emqx_listeners,‘-foreach_listeners/1-fun-0-’,2,[{file,"emqx_listeners.erl"},{line,790}]},{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: /root/emqx/log/erl_crash.dump…

===== LOGGING STARTED Wed Oct 16 17:13:18 CST 2024

Erlang/OTP 26 [erts-14.2.1] [emqx] [64-bit] [smp:2:2] [ds:2:2:8] [async-threads:4] [jit:ns]

Listener tcp:default on 0.0.0.0:18880 started.
Failed to start listener tcp:internal on 124.220.62.100:11902: {{shutdown,{failed_to_start_child,listener,eaddrnotavail}},{child,undefined,{listener_sup,{‘tcp:internal’,{{124,220,62,100},11902}}},{esockd_listener_sup,start_link,[‘tcp:internal’,{{124,220,62,100},11902}]},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:internal(124.220.62.100:11902) : {shutdown,\n {failed_to_start_child,listener,\n eaddrnotavail}}"},[{emqx_listeners,‘-foreach_listeners/1-fun-0-’,2,[{file,"emqx_listeners.erl"},{line,790}]},{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: /root/emqx/log/erl_crash.dump…done

=====
===== LOGGING STARTED Wed Oct 16 17:24:22 CST 2024

Erlang/OTP 26 [erts-14.2.1] [emqx] [64-bit] [smp:2:2] [ds:2:2:8] [async-threads:4] [jit:ns]

Listener tcp:default on 0.0.0.0:18880 started.
Failed to start listener tcp:internal on 124.220.62.100:11902: {{shutdown,{failed_to_start_child,listener,eaddrnotavail}},{child,undefined,{listener_sup,{‘tcp:internal’,{{124,220,62,100},11902}}},{esockd_listener_sup,start_link,[‘tcp:internal’,{{124,220,62,100},11902}]},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:internal(124.220.62.100:11902) : {shutdown,\n {failed_to_start_child,listener,\n eaddrnotavail}}"},[{emqx_listeners,‘-foreach_listeners/1-fun-0-’,2,[{file,"emqx_listeners.erl"},{line,790}]},{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: /root/emqx/log/erl_crash.dump…done
然后安装libmatomic和openssl1.1.1也没用

大概是少了这个依赖。

找到一篇相关的文章:https://stackoverflow.com/questions/74280824/cannot-find-libatomic-so-1

dnf install gcc
yum install libatomic