EMQX 提示node_is_not_running ,如何查找问题,谢谢!

我的emqx,用客户端访问正常,但访问18083端口,无法打开。端口在服务器也是listen的,也开放访问,之前也正常。命令 emqx stop,或者 start,都是提示 [node_is_not_running ,
请教如何查找问题,和修复,谢谢!

你的截图好像跟描述不太相符?

哪里不相符,emqx是能访问和发送,接信息。刚刚也测试了。

elang日志:

=====
===== LOGGING STARTED Mon Nov 28 18:48:33 CST 2022

Starting emqx on node emqx@127.0.0.1
Start mqtt:tcp:internal listener on 127.0.0.1:11883 successfully.
Start mqtt:tcp:external listener on 0.0.0.0:1883 successfully.
Start mqtt:ws:external listener on 0.0.0.0:8083 successfully.
Start mqtt:ssl:external listener on 0.0.0.0:8883 successfully.
Start mqtt:wss:external listener on 0.0.0.0:8084 successfully.
Start http:management listener on 8081 successfully.
Start http:dashboard listener on 18083 successfully.
EMQ X Broker 4.4.11 is running now!
Eshell V12.3.2.2 (abort with ^G)
(emqx@127.0.0.1)1>
===== ALIVE Mon Nov 28 19:03:43 CST 2022

===== ALIVE Mon Nov 28 19:18:43 CST 2022

===== ALIVE Mon Nov 28 19:33:43 CST 2022

但,emqt 命令行,执行就出错 提示 node is not running, 并且 18083后台无法打开。

你截图里面不是 emqt 然后报错是 command not found 吗?命令应该是 emqx start | stop 才对

谢谢,敲错命令,这个图,是正确的,麻烦帮忙看看。

看下不同命令的变化

你把 emqx 进程直接杀掉再启动也还是一样的现象吗?

你好,是的,重启服务器,也还是上面问题。 麻烦看下怎么查找问题,谢谢!.

重启后的日志,看不懂,请教:

2022-12-19T20:39:22.376853+08:00 [error] Generic server emqx_telemetry terminating. Reason: {{badmatch,{aborted,{bad_type,{telemetry,‘emqx@127.0.0.1’,<<“2ACA7FB4-7F9A-11ED-86AE-D1530CE3A32D”>>}}}},[{emqx_telemetry,ensure_uuids,0,[{file,“emqx_telemetry.erl”},{line,538}]},{emqx_telemetry,handle_continue,2,[{file,“emqx_telemetry.erl”},{line,150}]},{gen_server,try_dispatch,4,[{file,“gen_server.erl”},{line,695}]},{gen_server,loop,7,[{file,“gen_server.erl”},{line,437}]},{proc_lib,init_p_do_apply,3,[{file,“proc_lib.erl”},{line,226}]}]}. Last message: {continue,init}. State: undefined.
2022-12-19T20:39:22.377732+08:00 [error] crasher: initial call: emqx_telemetry:init/1, pid: <0.2292.0>, registered_name: emqx_telemetry, error: {{badmatch,{aborted,{bad_type,{telemetry,‘emqx@127.0.0.1’,<<“2ACA7FB4-7F9A-11ED-86AE-D1530CE3A32D”>>}}}},[{emqx_telemetry,ensure_uuids,0,[{file,“emqx_telemetry.erl”},{line,538}]},{emqx_telemetry,handle_continue,2,[{file,“emqx_telemetry.erl”},{line,150}]},{gen_server,try_dispatch,4,[{file,“gen_server.erl”},{line,695}]},{gen_server,loop,7,[{file,“gen_server.erl”},{line,437}]},{proc_lib,init_p_do_apply,3,[{file,“proc_lib.erl”},{line,226}]}]}, ancestors: [emqx_modules_sup,<0.2290.0>], message_queue_len: 0, messages: [], links: [<0.2291.0>], dictionary: [], trap_exit: false, status: running, heap_size: 6772, stack_size: 29, reductions: 11373; neighbours:
2022-12-19T20:39:22.389221+08:00 [error] Supervisor: {local,emqx_modules_sup}. Context: child_terminated. Reason: {{badmatch,{aborted,{bad_type,{telemetry,‘emqx@127.0.0.1’,<<“2ACA7FB4-7F9A-11ED-86AE-D1530CE3A32D”>>}}}},[{emqx_telemetry,ensure_uuids,0,[{file,“emqx_telemetry.erl”},{line,538}]},{emqx_telemetry,handle_continue,2,[{file,“emqx_telemetry.erl”},{line,150}]},{gen_server,try_dispatch,4,[{file,“gen_server.erl”},{line,695}]},{gen_server,loop,7,[{file,“gen_server.erl”},{line,437}]},{proc_lib,init_p_do_apply,3,[{file,“proc_lib.erl”},{line,226}]}]}. Offender: id=emqx_telemetry,pid=<0.2292.0>.
2022-12-19T20:39:22.390140+08:00 [error] Generic server emqx_telemetry terminating. Reason: {{badmatch,{aborted,{bad_type,{telemetry,‘emqx@127.0.0.1’,<<“2ACC8E26-7F9A-11ED-9FF5-53E6E4E1509”>>}}}},[{emqx_telemetry,ensure_uuids,0,[{file,“emqx_telemetry.erl”},{line,538}]},{emqx_telemetry,handle_continue,2,[{file,“emqx_telemetry.erl”},{line,150}]},{gen_server,try_dispatch,4,[{file,“gen_server.erl”},{line,695}]},{gen_server,loop,7,[{file,“gen_server.erl”},{line,437}]},{proc_lib,init_p_do_apply,3,[{file,“proc_lib.erl”},{line,226}]}]}. Last message: {continue,init}. State: undefined.
2022-12-19T20:39:22.390325+08:00 [error] crasher: initial call: emqx_telemetry:init/1, pid: <0.2315.0>, registered_name: emqx_telemetry, error: {{badmatch,{aborted,{bad_type,{telemetry,‘emqx@127.0.0.1’,<<“2ACC8E26-7F9A-11ED-9FF5-53E6E4E1509”>>}}}},[{emqx_telemetry,ensure_uuids,0,[{file,“emqx_telemetry.erl”},{line,538}]},{emqx_telemetry,handle_continue,2,[{file,“emqx_telemetry.erl”},{line,150}]},{gen_server,try_dispatch,4,[{file,“gen_server.erl”},{line,695}]},{gen_server,loop,7,[{file,“gen_server.erl”},{line,437}]},{proc_lib,init_p_do_apply,3,[{file,“proc_lib.erl”},{line,226}]}]}, ancestors: [emqx_modules_sup,<0.2290.0>], message_queue_len: 1, messages: [{‘$gen_call’,{<0.2290.0>,[alias|#Ref<0.81946383.2801598465.236132>]},enable}], links: [<0.2291.0>], dictionary: [], trap_exit: false, status: running, heap_size: 6772, stack_size: 29, reductions: 11149; neighbours:
2022-12-19T20:39:22.390656+08:00 [error] Supervisor: {local,emqx_modules_sup}. Context: child_terminated. Reason: {{badmatch,{aborted,{bad_type,{telemetry,‘emqx@127.0.0.1’,<<“2ACC8E26-7F9A-11ED-9FF5-53E6E4E1509”>>}}}},[{emqx_telemetry,ensure_uuids,0,[{file,“emqx_telemetry.erl”},{line,538}]},{emqx_telemetry,handle_continue,2,[{file,“emqx_telemetry.erl”},{line,150}]},{gen_server,try_dispatch,4,[{file,“gen_server.erl”},{line,695}]},{gen_server,loop,7,[{file,“gen_server.erl”},{line,437}]},{proc_lib,init_p_do_apply,3,[{file,“proc_lib.erl”},{line,226}]}]}. Offender: id=emqx_telemetry,pid=<0.2315.0>.
2022-12-19T20:39:22.390899+08:00 [error] crasher: initial call: application_master:init/4, pid: <0.2289.0>, registered_name: [], exit: {{bad_return,{{emqx_modules_app,start,[normal,[]]},{‘EXIT’,{{{badmatch,{aborted,{bad_type,{telemetry,‘emqx@127.0.0.1’,<<“2ACC8E26-7F9A-11ED-9FF5-53E6E4E1509”>>}}}},[{emqx_telemetry,ensure_uuids,0,[{file,“emqx_telemetry.erl”},{line,538}]},{emqx_telemetry,handle_continue,2,[{file,“emqx_telemetry.erl”},{line,150}]},{gen_server,try_dispatch,4,[{file,“gen_server.erl”},{line,695}]},{gen_server,loop,7,[{file,“gen_server.erl”},{line,437}]},{proc_lib,init_p_do_apply,3,[{file,“proc_lib.erl”},{line,226}]}]},{gen_server,call,[emqx_telemetry,enable,15000]}}}}},[{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.2288.0>], message_queue_len: 1, messages: [{‘EXIT’,<0.2290.0>,normal}], links: [<0.2288.0>,<0.1701.0>], dictionary: [], trap_exit: true, status: running, heap_size: 610, stack_size: 29, reductions: 197; neighbours:
2022-12-19T20:39:22.391624+08:00 [critical] app: emqx_modules, line: 88, mfa: emqx_machine_boot:start_one_app/1, msg: failed_to_start_app, reason: {emqx_modules,{bad_return,{{emqx_modules_app,start,[normal,[]]},{‘EXIT’,{{{badmatch,{aborted,{bad_type,{telemetry,‘emqx@127.0.0.1’,<<“2ACC8E26-7F9A-11ED-9FF5-53E6E4E1509”>>}}}},[{emqx_telemetry,ensure_uuids,0,[{file,“emqx_telemetry.erl”},{line,538}]},{emqx_telemetry,handle_continue,2,[{file,“emqx_telemetry.erl”},{line,150}]},{gen_server,try_dispatch,4,[{file,“gen_server.erl”},{line,695}]},{gen_server,loop,7,[{file,“gen_server.erl”},{line,437}]},{proc_lib,init_p_do_apply,3,[{file,“proc_lib.erl”},{line,226}]}]},{gen_server,call,[emqx_telemetry,enable,15000]}}}}}}
2022-12-19T20:39:22.392164+08:00 [error] Supervisor: {local,emqx_machine_sup}. Context: start_error. Reason: {‘EXIT’,{{failed_to_start_app,emqx_modules,{emqx_modules,{bad_return,{{emqx_modules_app,start,[normal,[]]},{‘EXIT’,{{{badmatch,{aborted,{bad_type,{telemetry,‘emqx@127.0.0.1’,<<“2ACC8E26-7F9A-11ED-9FF5-53E6E4E1509”>>}}}},[{emqx_telemetry,ensure_uuids,0,[{file,“emqx_telemetry.erl”},{line,538}]},{emqx_telemetry,handle_continue,2,[{file,“emqx_telemetry.erl”},{line,150}]},{gen_server,try_dispatch,4,[{file,“gen_server.erl”},{line,695}]},{gen_server,loop,7,[{file,“gen_server.erl”},{line,437}]},{proc_lib,init_p_do_apply,3,[{file,“proc_lib.erl”},{line,226}]}]},{gen_server,call,[emqx_telemetry,enable,15000]}}}}}}},[{emqx_machine_boot,start_one_app,1,[{file,“emqx_machine_boot.erl”},{line,89}]},{lists,foreach,2,[{file,“lists.erl”},{line,1342}]},{emqx_machine_boot,post_boot,0,[{file,“emqx_machine_boot.erl”},{line,38}]},{supervisor,do_start_child_i,3,[{file,“supervisor.erl”},{line,414}]},{supervisor,do_start_child,2,[{file,“supervisor.erl”},{line,400}]},{supervisor,‘-start_children/2-fun-0-’,3,[{file,“supervisor.erl”},{line,384}]},{supervisor,children_map,4,[{file,“supervisor.erl”},{line,1250}]},{supervisor,init_children,2,[{file,“supervisor.erl”},{line,350}]},{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}]}]}}. Offender: id=emqx_machine_boot,pid=undefined.
2022-12-19T20:39:22.392763+08:00 [error] crasher: initial call: application_master:init/4, pid: <0.1949.0>, registered_name: [], exit: {{{shutdown,{failed_to_start_child,emqx_machine_boot,{‘EXIT’,{{failed_to_start_app,emqx_modules,{emqx_modules,{bad_return,{{emqx_modules_app,start,[normal,[]]},{‘EXIT’,{{{badmatch,{aborted,{bad_type,{telemetry,‘emqx@127.0.0.1’,<<“2ACC8E26-7F9A-11ED-9FF5-53E6E4E1509”>>}}}},[{emqx_telemetry,ensure_uuids,0,[{file,“emqx_telemetry.erl”},{line,538}]},{emqx_telemetry,handle_continue,2,[{file,“emqx_telemetry.erl”},{line,150}]},{gen_server,try_dispatch,4,[{file,“gen_server.erl”},{line,695}]},{gen_server,loop,7,[{file,“gen_server.erl”},{line,437}]},{proc_lib,init_p_do_apply,3,[{file,“proc_lib.erl”},{line,226}]}]},{gen_server,call,[emqx_telemetry,enable,15000]}}}}}}},[{emqx_machine_boot,start_one_app,1,[{file,“emqx_machine_boot.erl”},{line,89}]},{lists,foreach,2,[{file,“lists.erl”},{line,1342}]},{emqx_machine_boot,post_boot,0,[{file,“emqx_machine_boot.erl”},{line,38}]},{supervisor,do_start_child_i,3,[{file,“supervisor.erl”},{line,414}]},{supervisor,do_start_child,2,[{file,“supervisor.erl”},{line,400}]},{supervisor,‘-start_children/2-fun-0-’,3,[{file,“supervisor.erl”},{line,384}]},{supervisor,children_map,4,[{file,“supervisor.erl”},{line,1250}]},{supervisor,init_children,2,[{file,“supervisor.erl”},{line,350}]},{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}]}]}}}},{emqx_machine_app,start,[normal,[]]}},[{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.1948.0>], message_queue_len: 1, messages: [{‘EXIT’,<0.1950.0>,normal}], links: [<0.1948.0>,<0.1701.0>], dictionary: [], trap_exit: true, status: running, heap_size: 1598, stack_size: 29, reductions: 252; neighbours:
2022-12-19T20:41:27.990881+08:00 [error] Generic server emqx_telemetry terminating. Reason: {{badmatch,{aborted,{bad_type,{telemetry,‘emqx@127.0.0.1’,<<“74D124DC-7F9A-11ED-B2C7-E9801552F405”>>}}}},[{emqx_telemetry,ensure_uuids,0,[{file,“emqx_telemetry.erl”},{line,538}]},{emqx_telemetry,handle_continue,2,[{file,“emqx_telemetry.erl”},{line,150}]},{gen_server,try_dispatch,4,[{file,“gen_server.erl”},{line,695}]},{gen_server,loop,7,[{file,“gen_server.erl”},{line,437}]},{proc_lib,init_p_do_apply,3,[{file,“proc_lib.erl”},{line,226}]}]}. Last message: {continue,init}. State: undefined.
2022-12-19T20:41:27.991094+08:00 [error] crasher: initial call: emqx_telemetry:init/1, pid: <0.2263.0>, registered_name: emqx_telemetry, error: {{badmatch,{aborted,{bad_type,{telemetry,‘emqx@127.0.0.1’,<<“74D124DC-7F9A-11ED-B2C7-E9801552F405”>>}}}},[{emqx_telemetry,ensure_uuids,0,[{file,“emqx_telemetry.erl”},{line,538}]},{emqx_telemetry,handle_continue,2,[{file,“emqx_telemetry.erl”},{line,150}]},{gen_server,try_dispatch,4,[{file,“gen_server.erl”},{line,695}]},{gen_server,loop,7,[{file,“gen_server.erl”},{line,437}]},{proc_lib,init_p_do_apply,3,[{file,“proc_lib.erl”},{line,226}]}]}, ancestors: [emqx_modules_sup,<0.2261.0>], message_queue_len: 0, messages: [], links: [<0.2262.0>], dictionary: [], trap_exit: false, status: running, heap_size: 6772, stack_size: 29, reductions: 11395; neighbours:
2022-12-19T20:41:27.991357+08:00 [error] Supervisor: {local,emqx_modules_sup}. Context: child_terminated. Reason: {{badmatch,{aborted,{bad_type,{telemetry,‘emqx@127.0.0.1’,<<“74D124DC-7F9A-11ED-B2C7-E9801552F405”>>}}}},[{emqx_telemetry,ensure_uuids,0,[{file,“emqx_telemetry.erl”},{line,538}]},{emqx_telemetry,handle_continue,2,[{file,“emqx_telemetry.erl”},{line,150}]},{gen_server,try_dispatch,4,[{file,“gen_server.erl”},{line,695}]},{gen_server,loop,7,[{file,“gen_server.erl”},{line,437}]},{proc_lib,init_p_do_apply,3,[{file,“proc_lib.erl”},{line,226}]}]}. Offender: id=emqx_telemetry,pid=<0.2263.0>.
2022-12-19T20:41:27.991509+08:00 [error] crasher: initial call: application_master:init/4, pid: <0.2260.0>, registered_name: [], exit: {{bad_return,{{emqx_modules_app,start,[normal,[]]},{‘EXIT’,{{{badmatch,{aborted,{bad_type,{telemetry,‘emqx@127.0.0.1’,<<“74D124DC-7F9A-11ED-B2C7-E9801552F405”>>}}}},[{emqx_telemetry,ensure_uuids,0,[{file,“emqx_telemetry.erl”},{line,538}]},{emqx_telemetry,handle_continue,2,[{file,“emqx_telemetry.erl”},{line,150}]},{gen_server,try_dispatch,4,[{file,“gen_server.erl”},{line,695}]},{gen_server,loop,7,[{file,“gen_server.erl”},{line,437}]},{proc_lib,init_p_do_apply,3,[{file,“proc_lib.erl”},{line,226}]}]},{gen_server,call,[emqx_telemetry,enable,15000]}}}}},[{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.2259.0>], message_queue_len: 1, messages: [{‘EXIT’,<0.2261.0>,normal}], links: [<0.2259.0>,<0.1701.0>], dictionary: [], trap_exit: true, status: running, heap_size: 610, stack_size: 29, reductions: 197; neighbours:
2022-12-19T20:41:27.992104+08:00 [critical] app: emqx_modules, line: 88, mfa: emqx_machine_boot:start_one_app/1, msg: failed_to_start_app, reason: {emqx_modules,{bad_return,{{emqx_modules_app,start,[normal,[]]},{‘EXIT’,{{{badmatch,{aborted,{bad_type,{telemetry,‘emqx@127.0.0.1’,<<“74D124DC-7F9A-11ED-B2C7-E9801552F405”>>}}}},[{emqx_telemetry,ensure_uuids,0,[{file,“emqx_telemetry.erl”},{line,538}]},{emqx_telemetry,handle_continue,2,[{file,“emqx_telemetry.erl”},{line,150}]},{gen_server,try_dispatch,4,[{file,“gen_server.erl”},{line,695}]},{gen_server,loop,7,[{file,“gen_server.erl”},{line,437}]},{proc_lib,init_p_do_apply,3,[{file,“proc_lib.erl”},{line,226}]}]},{gen_server,call,[emqx_telemetry,enable,15000]}}}}}}
2022-12-19T20:41:27.992608+08:00 [error] Supervisor: {local,emqx_machine_sup}. Context: start_error. Reason: {‘EXIT’,{{failed_to_start_app,emqx_modules,{emqx_modules,{bad_return,{{emqx_modules_app,start,[normal,[]]},{‘EXIT’,{{{badmatch,{aborted,{bad_type,{telemetry,‘emqx@127.0.0.1’,<<“74D124DC-7F9A-11ED-B2C7-E9801552F405”>>}}}},[{emqx_telemetry,ensure_uuids,0,[{file,“emqx_telemetry.erl”},{line,538}]},{emqx_telemetry,handle_continue,2,[{file,“emqx_telemetry.erl”},{line,150}]},{gen_server,try_dispatch,4,[{file,“gen_server.erl”},{line,695}]},{gen_server,loop,7,[{file,“gen_server.erl”},{line,437}]},{proc_lib,init_p_do_apply,3,[{file,“proc_lib.erl”},{line,226}]}]},{gen_server,call,[emqx_telemetry,enable,15000]}}}}}}},[{emqx_machine_boot,start_one_app,1,[{file,“emqx_machine_boot.erl”},{line,89}]},{lists,foreach,2,[{file,“lists.erl”},{line,1342}]},{emqx_machine_boot,post_boot,0,[{file,“emqx_machine_boot.erl”},{line,38}]},{supervisor,do_start_child_i,3,[{file,“supervisor.erl”},{line,414}]},{supervisor,do_start_child,2,[{file,“supervisor.erl”},{line,400}]},{supervisor,‘-start_children/2-fun-0-’,3,[{file,“supervisor.erl”},{line,384}]},{supervisor,children_map,4,[{file,“supervisor.erl”},{line,1250}]},{supervisor,init_children,2,[{file,“supervisor.erl”},{line,350}]},{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}]}]}}. Offender: id=emqx_machine_boot,pid=undefined.
2022-12-19T20:41:27.993099+08:00 [error] crasher: initial call: application_master:init/4, pid: <0.2017.0>, registered_name: [], exit: {{{shutdown,{failed_to_start_child,emqx_machine_boot,{‘EXIT’,{{failed_to_start_app,emqx_modules,{emqx_modules,{bad_return,{{emqx_modules_app,start,[normal,[]]},{‘EXIT’,{{{badmatch,{aborted,{bad_type,{telemetry,‘emqx@127.0.0.1’,<<“74D124DC-7F9A-11ED-B2C7-E9801552F405”>>}}}},[{emqx_telemetry,ensure_uuids,0,[{file,“emqx_telemetry.erl”},{line,538}]},{emqx_telemetry,handle_continue,2,[{file,“emqx_telemetry.erl”},{line,150}]},{gen_server,try_dispatch,4,[{file,“gen_server.erl”},{line,695}]},{gen_server,loop,7,[{file,“gen_server.erl”},{line,437}]},{proc_lib,init_p_do_apply,3,[{file,“proc_lib.erl”},{line,226}]}]},{gen_server,call,[emqx_telemetry,enable,15000]}}}}}}},[{emqx_machine_boot,start_one_app,1,[{file,“emqx_machine_boot.erl”},{line,89}]},{lists,foreach,2,[{file,“lists.erl”},{line,1342}]},{emqx_machine_boot,post_boot,0,[{file,“emqx_machine_boot.erl”},{line,38}]},{supervisor,do_start_child_i,3,[{file,“supervisor.erl”},{line,414}]},{supervisor,do_start_child,2,[{file,“supervisor.erl”},{line,400}]},{supervisor,‘-start_children/2-fun-0-’,3,[{file,“supervisor.erl”},{line,384}]},{supervisor,children_map,4,[{file,“supervisor.erl”},{line,1250}]},{supervisor,init_children,2,[{file,“supervisor.erl”},{line,350}]},{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}]}]}}}},{emqx_machine_app,start,[normal,[]]}},[{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.2016.0>], message_queue_len: 1, messages: [{‘EXIT’,<0.2018.0>,normal}], links: [<0.2016.0>,<0.1701.0>], dictionary: [], trap_exit: true, status: running, heap_size: 1598, stack_size: 29, reductions: 250; neighbours:
2022-12-19T20:43:33.631763+08:00 [error] Generic server emqx_telemetry terminating. Reason: {{badmatch,{aborted,{bad_type,{telemetry,‘emqx@127.0.0.1’,<<“BFB46B3A-7F9A-11ED-ADCF-194D3332D513”>>}}}},[{emqx_telemetry,ensure_uuids,0,[{file,“emqx_telemetry.erl”},{line,538}]},{emqx_telemetry,handle_continue,2,[{file,“emqx_telemetry.erl”},{line,150}]},{gen_server,try_dispatch,4,[{file,“gen_server.erl”},{line,695}]},{gen_server,loop,7,[{file,“gen_server.erl”},{line,437}]},{proc_lib,init_p_do_apply,3,[{file,“proc_lib.erl”},{line,226}]}]}. Last message: {continue,init}. State: undefined.
2022-12-19T20:43:33.632056+08:00 [error] crasher: initial call: emqx_telemetry:init/1, pid: <0.2254.0>, registered_name: emqx_telemetry, error: {{badmatch,{aborted,{bad_type,{telemetry,‘emqx@127.0.0.1’,<<“BFB46B3A-7F9A-11ED-ADCF-194D3332D513”>>}}}},[{emqx_telemetry,ensure_uuids,0,[{file,“emqx_telemetry.erl”},{line,538}]},{emqx_telemetry,handle_continue,2,[{file,“emqx_telemetry.erl”},{line,150}]},{gen_server,try_dispatch,4,[{file,“gen_server.erl”},{line,695}]},{gen_server,loop,7,[{file,“gen_server.erl”},{line,437}]},{proc_lib,init_p_do_apply,3,[{file,“proc_lib.erl”},{line,226}]}]}, ancestors: [emqx_modules_sup,<0.2252.0>], message_queue_len: 0, messages: [], links: [<0.2253.0>], dictionary: [], trap_exit: false, status: running, heap_size: 6772, stack_size: 29, reductions: 11395; neighbours:
2022-12-19T20:43:33.632371+08:00 [error] Supervisor: {local,emqx_modules_sup}. Context: child_terminated. Reason: {{badmatch,{aborted,{bad_type,{telemetry,‘emqx@127.0.0.1’,<<“BFB46B3A-7F9A-11ED-ADCF-194D3332D513”>>}}}},[{emqx_telemetry,ensure_uuids,0,[{file,“emqx_telemetry.erl”},{line,538}]},{emqx_telemetry,handle_continue,2,[{file,“emqx_telemetry.erl”},{line,150}]},{gen_server,try_dispatch,4,[{file,“gen_server.erl”},{line,695}]},{gen_server,loop,7,[{file,“gen_server.erl”},{line,437}]},{proc_lib,init_p_do_apply,3,[{file,“proc_lib.erl”},{line,226}]}]}. Offender: id=emqx_telemetry,pid=<0.2254.0>.
2022-12-19T20:43:33.632564+08:00 [error] crasher: initial call: application_master:init/4, pid: <0.2251.0>, registered_name: [], exit: {{bad_return,{{emqx_modules_app,start,[normal,[]]},{‘EXIT’,{{{badmatch,{aborted,{bad_type,{telemetry,‘emqx@127.0.0.1’,<<“BFB46B3A-7F9A-11ED-ADCF-194D3332D513”>>}}}},[{emqx_telemetry,ensure_uuids,0,[{file,“emqx_telemetry.erl”},{line,538}]},{emqx_telemetry,handle_continue,2,[{file,“emqx_telemetry.erl”},{line,150}]},{gen_server,try_dispatch,4,[{file,“gen_server.erl”},{line,695}]},{gen_server,loop,7,[{file,“gen_server.erl”},{line,437}]},{proc_lib,init_p_do_apply,3,[{file,“proc_lib.erl”},{line,226}]}]},{gen_server,call,[emqx_telemetry,enable,15000]}}}}},[{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.2250.0>], message_queue_len: 1, messages: [{‘EXIT’,<0.2252.0>,normal}], links: [<0.2250.0>,<0.1701.0>], dictionary: [], trap_exit: true, status: running, heap_size: 610, stack_size: 29, reductions: 197; neighbours:
2022-12-19T20:43:33.633195+08:00 [critical] app: emqx_modules, line: 88, mfa: emqx_machine_boot:start_one_app/1, msg: failed_to_start_app, reason: {emqx_modules,{bad_return,{{emqx_modules_app,start,[normal,[]]},{‘EXIT’,{{{badmatch,{aborted,{bad_type,{telemetry,‘emqx@127.0.0.1’,<<“BFB46B3A-7F9A-11ED-ADCF-194D3332D513”>>}}}},[{emqx_telemetry,ensure_uuids,0,[{file,“emqx_telemetry.erl”},{line,538}]},{emqx_telemetry,handle_continue,2,[{file,“emqx_telemetry.erl”},{line,150}]},{gen_server,try_dispatch,4,[{file,“gen_server.erl”},{line,695}]},{gen_server,loop,7,[{file,“gen_server.erl”},{line,437}]},{proc_lib,init_p_do_apply,3,[{file,“proc_lib.erl”},{line,226}]}]},{gen_server,call,[emqx_telemetry,enable,15000]}}}}}}
2022-12-19T20:43:33.633719+08:00 [error] Supervisor: {local,emqx_machine_sup}. Context: start_error. Reason: {‘EXIT’,{{failed_to_start_app,emqx_modules,{emqx_modules,{bad_return,{{emqx_modules_app,start,[normal,[]]},{‘EXIT’,{{{badmatch,{aborted,{bad_type,{telemetry,‘emqx@127.0.0.1’,<<“BFB46B3A-7F9A-11ED-ADCF-194D3332D513”>>}}}},[{emqx_telemetry,ensure_uuids,0,[{file,“emqx_telemetry.erl”},{line,538}]},{emqx_telemetry,handle_continue,2,[{file,“emqx_telemetry.erl”},{line,150}]},{gen_server,try_dispatch,4,[{file,“gen_server.erl”},{line,695}]},{gen_server,loop,7,[{file,“gen_server.erl”},{line,437}]},{proc_lib,init_p_do_apply,3,[{file,“proc_lib.erl”},{line,226}]}]},{gen_server,call,[emqx_telemetry,enable,15000]}}}}}}},[{emqx_machine_boot,start_one_app,1,[{file,“emqx_machine_boot.erl”},{line,89}]},{lists,foreach,2,[{file,“lists.erl”},{line,1342}]},{emqx_machine_boot,post_boot,0,[{file,“emqx_machine_boot.erl”},{line,38}]},{supervisor,do_start_child_i,3,[{file,“supervisor.erl”},{line,414}]},{supervisor,do_start_child,2,[{file,“supervisor.erl”},{line,400}]},{supervisor,‘-start_children/2-fun-0-’,3,[{file,“supervisor.erl”},{line,384}]},{supervisor,children_map,4,[{file,“supervisor.erl”},{line,1250}]},{supervisor,init_children,2,[{file,“supervisor.erl”},{line,350}]},{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}]}]}}. Offender: id=emqx_machine_boot,pid=undefined.
2022-12-19T20:43:33.634180+08:00 [error] crasher: initial call: application_master:init/4, pid: <0.1950.0>, registered_name: [], exit: {{{shutdown,{failed_to_start_child,emqx_machine_boot,{‘EXIT’,{{failed_to_start_app,emqx_modules,{emqx_modules,{bad_return,{{emqx_modules_app,start,[normal,[]]},{‘EXIT’,{{{badmatch,{aborted,{bad_type,{telemetry,‘emqx@127.0.0.1’,<<“BFB46B3A-7F9A-11ED-ADCF-194D3332D513”>>}}}},[{emqx_telemetry,ensure_uuids,0,[{file,“emqx_telemetry.erl”},{line,538}]},{emqx_telemetry,handle_continue,2,[{file,“emqx_telemetry.erl”},{line,150}]},{gen_server,try_dispatch,4,[{file,“gen_server.erl”},{line,695}]},{gen_server,loop,7,[{file,“gen_server.erl”},{line,437}]},{proc_lib,init_p_do_apply,3,[{file,“proc_lib.erl”},{line,226}]}]},{gen_server,call,[emqx_telemetry,enable,15000]}}}}}}},[{emqx_machine_boot,start_one_app,1,[{file,“emqx_machine_boot.erl”},{line,89}]},{lists,foreach,2,[{file,“lists.erl”},{line,1342}]},{emqx_machine_boot,post_boot,0,[{file,“emqx_machine_boot.erl”},{line,38}]},{supervisor,do_start_child_i,3,[{file,“supervisor.erl”},{line,414}]},{supervisor,do_start_child,2,[{file,“supervisor.erl”},{line,400}]},{supervisor,‘-start_children/2-fun-0-’,3,[{file,“supervisor.erl”},{line,384}]},{supervisor,children_map,4,[{file,“supervisor.erl”},{line,1250}]},{supervisor,init_children,2,[{file,“supervisor.erl”},{line,350}]},{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}]}]}}}},{emqx_machine_app,start,[normal,[]]}},[{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.1949.0>], message_queue_len: 1, messages: [{‘EXIT’,<0.1951.0>,normal}], links: [<0.1949.0>,<0.1701.0>], dictionary: [], trap_exit: true, status: running, heap_size: 1598, stack_size: 29, reductions: 250; neighbours:

####################
erlang 的 log:
!!!
WARNING: Default (insecure) Erlang cookie is in use.
WARNING: Configure node.cookie in /etc/emqx/emqx.conf or override from environment variable EMQX_NODE__COOKIE
NOTE: Use the same config value for all nodes in the cluster.
!!!
Erlang/OTP 24 [erts-12.3.2.2] [emqx] [64-bit] [smp:1:1] [ds:1:1:8] [async-threads:4] [jit]

Listener ssl:default on 0.0.0.0:8883 started.
Listener tcp:default on 0.0.0.0:1883 started.
Listener ws:default on 0.0.0.0:8083 started.
Listener wss:default on 0.0.0.0:8084 started.
Listener ssl:default on 0.0.0.0:8883 stopped.
Listener tcp:default on 0.0.0.0:1883 stopped.
Listener ws:default on 0.0.0.0:8083 stopped.
Listener wss:default on 0.0.0.0:8084 stopped.
[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_machine,{{shutdown,{failed_to_start_child,emqx_machine_boot,{‘EXIT’,{{failed_to_start_app,emqx_modules,{emqx_modules,{bad_return,{{emqx_modules_app,start,[normal,[]]},{‘EXIT’,{{{badmatch,{aborted,{bad_type,{telemetry,‘emqx@127.0.0.1’,<<"FFDDED74-7F9C-11ED-85F4-7DF7336B659D">>}}}},[{emqx_telemetry,ensure_uuids,0,[{file,"emqx_telemetry.erl"},{line,538}]},{emqx_telemetry,handle_continue,2,[{file,"emqx_telemetry.erl"},{line,150}]},{gen_server,try_dispatch,4,[{file,"gen_server.erl"},{line,695}]},{gen_server,loop,7,[{file,"gen_server.erl"},{line,437}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,226}]}]},{gen_server,call,[emqx_telemetry,enable,15000]}}}}}}},[{emqx_machine_boot,start_one_app,1,[{file,"emqx_machine_boot.erl"},{line,89}]},{lists,foreach,2,[{file,"lists.erl"},{line,1342}]},{emqx_machine_boot,post_boot,0,[{file,"emqx_machine_boot.erl"},{line,38}]},{supervisor,do_start_child_i,3,[{file,"supervisor.erl"},{line,414}]},{supervisor,do_start_child,2,[{file,"supervisor.erl"},{line,400}]},{supervisor,‘-start_children/2-fun-0-’,3,[{file,"supervisor.erl"},{line,384}]},{supervisor,children_map,4,[{file,"supervisor.erl"},{line,1250}]},{supervisor,init_children,2,[{file,"supervisor.erl"},{line,350}]},{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}]}]}}}},{emqx_machine_app,start,[normal,[]]}}}”}

Kernel pid terminated (application_controller) ({application_start_failure,emqx_machine,{{shutdown,{failed_to_start_child,emqx_machine_boot,{‘EXIT’,{{failed_to_start_app,emqx_modules,{emqx_modules,{bad_return,{{emqx_modules_app,start,[normal,[]]},{‘EXIT’,{{{badmatch,{aborted,{bad_type,{telemetry,‘emqx@127.0.0.1’,<<“FFDDED74-7F9C-11ED-85F4-7DF7336B659D”>>}}}},[{emqx_telemetry,ensure_uuids,0,[{file,“emqx_telemetry.erl”},{line,538}]},{emqx_telemetry,handle_continue,2,[{file,“emqx_telemetry.erl”},{line,150}]},{gen_server,try_dispatch,4,[{file,“gen_server.erl”},{line,695}]},{gen_server,loop,7,[{file,“gen_server.erl”},{line,437}]},{proc_lib,init_p_do_apply,3,[{file,“proc_lib.erl”},{line,226}]}]},{gen_server,call,[emqx_telemetry,enable,15000]}}}}}}},[{emqx_machine_boot,start_one_app,1,[{file,“emqx_machine_boot.erl”},{line,89}]},{lists,foreach,2,[{file,“lists.erl”},{line,1342}]},{emqx_machine_boot,post_boot,0,[{file,“emqx_machine_boot.erl”},{line,38}]},{supervisor,do_start_child_i,3,[{file,“supervisor.erl”},{line,41

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

你是不是之前安装过 EMQX 然后没有卸载干净?

我之前是4.4版本,昨天用了一个升级指令,sudo apt udate upgrade -y,发现系统自动升级到5.0, 应该是这个问题造成,应该怎么处理,并确保之前数据和配置,谢谢!

你可以备份一下 data/mnesia 目录,以及 etc/emqx.conf.backup 配置文件(这里是你以前的配置),然后卸载当前版本再安装 4.4 版本,最后把备份文件目录再放回去就好了(emqx.conf.backup 要改回 emqx.conf

好的,谢谢。