EMQ 问答社区

无法启动

环境信息

  • EMQ X 版本:4.3.4
  • 操作系统及版本:
  • 其他

问题描述

执行 emqx console,显示:

log.to = "console"
Exec: /usr/lib/emqx/erts-11.1.8/bin/erlexec -boot /usr/lib/emqx/releases/4.3.4/start -mode embedded -boot_var ERTS_LIB_DIR /usr/lib/emqx/erts-11.1.8/../lib -mnesia dir "/var/lib/emqx/mnesia/emqx129@192.168.17.129" -config /var/lib/emqx/configs/app.2021.06.29.03.29.56.config -args_file /var/lib/emqx/configs/vm.2021.06.29.03.29.56.args -vm_args /var/lib/emqx/configs/vm.2021.06.29.03.29.56.args -start_epmd false -epmd_module ekka_epmd -proto_dist ekka -- console
Root: /usr/lib/emqx
/usr/lib/emqx
Erlang/OTP 23 [erts-11.1.8] [emqx] [64-bit] [smp:2:2] [ds:2:2:8] [async-threads:4]

Starting emqx on node emqx129@192.168.17.129
2021-06-29T03:29:58.732632-04:00 [error] Supervisor: {local,emqx_router_sup}. Context: start_error. Reason: {{badmatch,{error,{not_active_local,emqx_routing_node}}},[{emqx_router_helper,init,1,[{file,"emqx_router_helper.erl"},{line,99}]},{gen_server,init_it,2,[{file,"gen_server.erl"},{line,417}]},{gen_server,init_it,6,[{file,"gen_server.erl"},{line,385}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,226}]}]}. Offender: id=helper,pid=undefined.
2021-06-29T03:29:58.733159-04:00 [error] Supervisor: {local,emqx_sup}. Context: start_error. Reason: {shutdown,{failed_to_start_child,helper,{{badmatch,{error,{not_active_local,emqx_routing_node}}},[{emqx_router_helper,init,1,[{file,"emqx_router_helper.erl"},{line,99}]},{gen_server,init_it,2,[{file,"gen_server.erl"},{line,417}]},{gen_server,init_it,6,[{file,"gen_server.erl"},{line,385}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,226}]}]}}}. Offender: id=emqx_router_sup,pid=undefined.
2021-06-29T03:29:58.733605-04:00 [error] crasher: initial call: application_master:init/4, pid: <0.1571.0>, registered_name: [], exit: {{bad_return,{{emqx_app,start,[normal,[]]},{'EXIT',{{badmatch,{error,{shutdown,{failed_to_start_child,emqx_router_sup,{shutdown,{...}}}}}},[{emqx_app,start,2,[{file,"emqx_app.erl"},{line,42}]},{application_master,start_it_old,4,[{file,"application_master.erl"},{line,277}]}]}}}},[{application_master,init,4,[{file,"application_master.erl"},{line,138}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,226}]}]}, ancestors: [<0.1570.0>], message_queue_len: 1, messages: [{'EXIT',<0.1572.0>,normal}], links: [<0.1570.0>,<0.1431.0>], dictionary: [], trap_exit: true, status: running, heap_size: 987, stack_size: 28, reductions: 304; 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',{{badmatch,{error,{shutdown,{failed_to_start_child,emqx_router_sup,{shutdown,{failed_to_start_child,helper,{{badmatch,{error,{not_active_local,emqx_routing_node}}},[{emqx_router_helper,init,1,[{file,\"emqx_router_helper.erl\"},{line,99}]},{gen_server,init_it,2,[{file,\"gen_server.erl\"},{line,417}]},{gen_server,init_it,6,[{file,\"gen_server.erl\"},{line,385}]},{proc_lib,init_p_do_apply,3,[{file,\"proc_lib.erl\"},{line,226}]}]}}}}}}},[{emqx_app,start,2,[{file,\"emqx_app.erl\"},{line,42}]},{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,{shutdown,{failed_to_start_child,emqx_router_sup,{sh

Crash dump is being written to: /var/log/emqx/crash.dump...done

路由信息报错。在此之前你有执行过什么操作吗?如果你的节点只是用来测试,可以删除 data/mensia 目录然后尝试重启