启动失败Node 'emqx@127.0.0.1' not responding to pings.

环境信息

  • EMQX 版本:开源版EMQX 4.2.14 for CentOS 7
  • 操作系统及版本:
  • 其他

问题描述

打不开dashboard

配置文件及日志

[root@localhost emqx]# emqx console
Exec: /usr/lib/emqx/erts-10.7/bin/erlexec -boot /usr/lib/emqx/releases/4.2.14/emqx -mode embedded -boot_var ERTS_LIB_DIR /usr/lib/emqx/erts-10.7/../lib -mnesia dir "/var/lib/emqx/mnesia/emqx@127.0.0.1" -config /var/lib/emqx/configs/app.2022.09.24.05.45.56.config -args_file /var/lib/emqx/configs/vm.2022.09.24.05.45.56.args -vm_args /var/lib/emqx/configs/vm.2022.09.24.05.45.56.args -start_epmd false -epmd_module ekka_epmd -proto_dist ekka -- console
Root: /usr/lib/emqx
/usr/lib/emqx
Erlang/OTP 22 [erts-10.7] [source] [64-bit] [smp:1:1] [ds:1:1:8] [async-threads:4] [hipe]

Starting emqx on node emqx@127.0.0.1
2022-09-24 05:46:11.901 [error] Mnesia('emqx@127.0.0.1'): ** ERROR ** (core dumped to file: "/usr/lib/emqx/MnesiaCore.emqx@127.0.0.1_1664_23571_894264")
 ** FATAL ** mnesia_tm crashed: {undef,
                                 [{mnesia_rocksdb,init_backend,[],[]},
                                  {mnesia_schema,init_backend,2,
                                   [{file,"mnesia_schema.erl"},{line,172}]},
                                  {mnesia_schema,
                                   '-init_backends/0-lc$^1/1-0-',1,
                                   [{file,"mnesia_schema.erl"},{line,168}]},
                                  {mnesia_schema,init_backends,0,
                                   [{file,"mnesia_schema.erl"},{line,168}]},
                                  {mnesia_tm,init,1,
                                   [{file,"mnesia_tm.erl"},{line,89}]},
                                  {mnesia_sp,init_proc,4,
                                   [{file,"mnesia_sp.erl"},{line,33}]},
                                  {proc_lib,init_p_do_apply,3,
                                   [{file,"proc_lib.erl"},{line,249}]}]} state: [<0.1436.0>]

2022-09-24 05:46:21.895 [error] Mnesia('emqx@127.0.0.1'): ** ERROR ** mnesia_event got unexpected event: {'EXIT',
                                                                          <0.1438.0>,
                                                                          killed}

2022-09-24 05:46:21.895 [error] ** Generic server mnesia_recover terminating 
** Last message in was {'EXIT',<0.1436.0>,killed}
** When Server state == {state,<0.1436.0>,undefined,undefined,undefined,0,
                               false,false,[]}
** Reason for termination ==
** killed

2022-09-24 05:46:21.895 [error] ** Generic server mnesia_monitor terminating 
** Last message in was {'EXIT',<0.1436.0>,killed}
** When Server state == {state,<0.1436.0>,[],[],false,[],undefined,[],[]}
** Reason for termination ==
** killed

2022-09-24 05:46:21.895 [error] ** Generic server mnesia_ext_sup terminating 
** Last message in was {'EXIT',<0.1433.0>,killed}
** When Server state == {state,{local,mnesia_ext_sup},
                               one_for_all,
                               {[],#{}},
                               undefined,10,60,[],0,mnesia_ext_sup,[]}
** Reason for termination ==
** killed

[os_mon] cpu supervisor port (cpu_sup): Erlang has closed
[os_mon] memory supervisor port (memsup): Erlang has closed
{"Kernel pid terminated",application_controller,"{application_start_failure,emqx,{bad_return,{{emqx_app,start,[normal,[]]},{'EXIT',{{badmatch,{error,{killed,{mnesia_app,start,[normal,[]]}}}},[{ekka_mnesia,start,0,[{file,\"ekka_mnesia.erl\"},{line,62}]},{ekka,start,0,[{file,\"ekka.erl\"},{line,93}]},{emqx_app,start,2,[{file,\"emqx_app.erl\"},{line,33}]},{application_master,start_it_old,4,[{file,\"application_master.erl\"},{line,277}]}]}}}}}"}
Kernel pid terminated (application_controller) ({application_start_failure,emqx,{bad_return,{{emqx_app,start,[normal,[]]},{'EXIT',{{badmatch,{error,{killed,{mnesia_app,start,[normal,[]]}}}},[{ekka_mne

Crash dump is being written to: /var/log/emqx/crash.dump...done
[root@localhost emqx]# 


看这个错误,我猜测是安装了 5.0 但是没有卸载干净,然后在使用 emqx 4.x 启动的时候就会报这个错误的。

** FATAL ** mnesia_tm crashed: {undef,
[{mnesia_rocksdb,init_backend,[],[]},
{mnesia_schema,init_backend,2,

试试看按这里的目录结构说明 目录结构 | EMQX 企业版 4.4 文档 删一下 data 目录,再试试看。

ps: 4.2 已经过了维护期,建议使用最新的 5.x 或者 4.4.x