EMQX5.2自启动失败

环境

  • EMQX 版本:5.2
  • 操作系统版本:windwos11
    — 直接执行 emqx start 能运行

2024-11-15T09:08:03.172000+08:00 [error] Generic server emqx_telemetry terminating. Reason: {‘module could not be loaded’,[{memsup,get_system_memory_data,,},{emqx_telemetry,vm_specs,0,[{file,“emqx_telemetry.erl”},{line,419}]},{emqx_telemetry,get_telemetry,1,[{file,“emqx_telemetry.erl”},{line,354}]},{emqx_telemetry,report_telemetry,1,[{file,“emqx_telemetry.erl”},{line,365}]},{emqx_telemetry,handle_info,2,[{file,“emqx_telemetry.erl”},{line,190}]},{gen_server,try_dispatch,4,[{file,“gen_server.erl”},{line,1123}]},{gen_server,handle_msg,6,[{file,“gen_server.erl”},{line,1200}]},{proc_lib,init_p_do_apply,3,[{file,“proc_lib.erl”},{line,240}]}]}. Last message: {timeout,#Ref<0.55557403.671875076.114463>,time_to_report_telemetry_data}. State: {state,<<“7EE676FA-9E09-11EE-851A-671A59013C96”>>,<<“7EE67AF6-9E09-11EE-9F5D-45D73B0103CE”>>,“https://telemetry.emqx.io/api/telemetry”,604800000,#Ref<0.55557403.671875076.114463>,#{}}.
2024-11-15T09:08:03.172000+08:00 [error] crasher: initial call: emqx_telemetry:init/1, pid: <0.3285.0>, registered_name: emqx_telemetry, error: {undef,[{memsup,get_system_memory_data,,},{emqx_telemetry,vm_specs,0,[{file,“emqx_telemetry.erl”},{line,419}]},{emqx_telemetry,get_telemetry,1,[{file,“emqx_telemetry.erl”},{line,354}]},{emqx_telemetry,report_telemetry,1,[{file,“emqx_telemetry.erl”},{line,365}]},{emqx_telemetry,handle_info,2,[{file,“emqx_telemetry.erl”},{line,190}]},{gen_server,try_dispatch,4,[{file,“gen_server.erl”},{line,1123}]},{gen_server,handle_msg,6,[{file,“gen_server.erl”},{line,1200}]},{proc_lib,init_p_do_apply,3,[{file,“proc_lib.erl”},{line,240}]}]}, ancestors: [emqx_telemetry_sup,<0.3038.0>], message_queue_len: 0, messages: , links: [<0.3039.0>], dictionary: , trap_exit: true, status: running, heap_size: 6772, stack_size: 28, reductions: 14892; neighbours:
2024-11-15T09:08:03.172000+08:00 [error] Supervisor: {local,emqx_telemetry_sup}. Context: child_terminated. Reason: {undef,[{memsup,get_system_memory_data,,},{emqx_telemetry,vm_specs,0,[{file,“emqx_telemetry.erl”},{line,419}]},{emqx_telemetry,get_telemetry,1,[{file,“emqx_telemetry.erl”},{line,354}]},{emqx_telemetry,report_telemetry,1,[{file,“emqx_telemetry.erl”},{line,365}]},{emqx_telemetry,handle_info,2,[{file,“emqx_telemetry.erl”},{line,190}]},{gen_server,try_dispatch,4,[{file,“gen_server.erl”},{line,1123}]},{gen_server,handle_msg,6,[{file,“gen_server.erl”},{line,1200}]},{proc_lib,init_p_do_apply,3,[{file,“proc_lib.erl”},{line,240}]}]}. Offender: id=emqx_telemetry,pid=<0.3285.0>.

日志提示是要启动时这个 memsup的模块没加载就挂了,按理说这两种启动方式都是一样的加载模块才对,不知道发生了什么。

不过可以试试在 emqx.conf 加入:
telemetry.enable=false
来跳过这个函数调用。