emqx 服务启动报错

环境

  • EMQX 版本:emqx-5.3.2-windows-amd64
  • 操作系统版本:Windows server 2019

重现此问题的步骤

  1. emqx install
  2. 服务启动后
  3. 报错信息
    2023-12-15T13:05:49.681000+08:00 [error] crasher: initial call: application_master:init/4, pid: <0.442.0>, registered_name: , exit: {{bad_return,{{emqx_conf_app,start,[normal,]},{‘EXIT’,{{case_clause,undefined},[{emqx_config_logger,tr_console_handler,1,[{file,“emqx_config_logger.erl”},{line,131}]},{emqx_config_logger,tr_handlers,1,[{file,“emqx_config_logger.erl”},{line,126}]},{emqx_config_logger,do_refresh_config,1,[{file,“emqx_config_logger.erl”},{line,50}]},{emqx_conf_app,start,2,[{file,“emqx_conf_app.erl”},{line,38}]},{application_master,start_it_old,4,[{file,“application_master.erl”},{line,293}]}]}}}},[{application_master,init,4,[{file,“application_master.erl”},{line,142}]},{proc_lib,init_p_do_apply,3,[{file,“proc_lib.erl”},{line,240}]}]}, ancestors: [<0.441.0>], message_queue_len: 1, messages: [{‘EXIT’,<0.443.0>,normal}], links: [<0.441.0>,<0.44.0>], dictionary: , trap_exit: true, status: running, heap_size: 376, stack_size: 28, reductions: 169; neighbours:
    2023-12-15T13:06:30.945000+08:00 [error] crasher: initial call: application_master:init/4, pid: <0.390.0>, registered_name: , exit: {{bad_return,{{emqx_conf_app,start,[normal,]},{‘EXIT’,{{case_clause,undefined},[{emqx_config_logger,tr_console_handler,1,[{file,“emqx_config_logger.erl”},{line,131}]},{emqx_config_logger,tr_handlers,1,[{file,“emqx_config_logger.erl”},{line,126}]},{emqx_config_logger,do_refresh_config,1,[{file,“emqx_config_logger.erl”},{line,50}]},{emqx_conf_app,start,2,[{file,“emqx_conf_app.erl”},{line,38}]},{application_master,start_it_old,4,[{file,“application_master.erl”},{line,293}]}]}}}},[{application_master,init,4,[{file,“application_master.erl”},{line,142}]},{proc_lib,init_p_do_apply,3,[{file,“proc_lib.erl”},{line,240}]}]}, ancestors: [<0.389.0>], message_queue_len: 1, messages: [{‘EXIT’,<0.391.0>,normal}], links: [<0.389.0>,<0.44.0>], dictionary: , trap_exit: true, status: running, heap_size: 376, stack_size: 28, reductions: 173; neighbours:
    2023-12-15T13:07:10.949000+08:00 [error] crasher: initial call: application_master:init/4, pid: <0.389.0>, registered_name: , exit: {{bad_return,{{emqx_conf_app,start,[normal,]},{‘EXIT’,{{case_clause,undefined},[{emqx_config_logger,tr_console_handler,1,[{file,“emqx_config_logger.erl”},{line,131}]},{emqx_config_logger,tr_handlers,1,[{file,“emqx_config_logger.erl”},{line,126}]},{emqx_config_logger,do_refresh_config,1,[{file,“emqx_config_logger.erl”},{line,50}]},{emqx_conf_app,start,2,[{file,“emqx_conf_app.erl”},{line,38}]},{application_master,start_it_old,4,[{file,“application_master.erl”},{line,293}]}]}}}},[{application_master,init,4,[{file,“application_master.erl”},{line,142}]},{proc_lib,init_p_do_apply,3,[{file,“proc_lib.erl”},{line,240}]}]}, ancestors: [<0.388.0>], message_queue_len: 1, messages: [{‘EXIT’,<0.390.0>,normal}], links: [<0.388.0>,<0.44.0>], dictionary: , trap_exit: true, status: running, heap_size: 376, stack_size: 28, reductions: 173; neighbours:
    2023-12-15T13:07:53.029000+08:00 [error] crasher: initial call: application_master:init/4, pid: <0.389.0>, registered_name: , exit: {{bad_return,{{emqx_conf_app,start,[normal,]},{‘EXIT’,{{case_clause,undefined},[{emqx_config_logger,tr_console_handler,1,[{file,“emqx_config_logger.erl”},{line,131}]},{emqx_config_logger,tr_handlers,1,[{file,“emqx_config_logger.erl”},{line,126}]},{emqx_config_logger,do_refresh_config,1,[{file,“emqx_config_logger.erl”},{line,50}]},{emqx_conf_app,start,2,[{file,“emqx_conf_app.erl”},{line,38}]},{application_master,start_it_old,4,[{file,“application_master.erl”},{line,293}]}]}}}},[{application_master,init,4,[{file,“application_master.erl”},{line,142}]},{proc_lib,init_p_do_apply,3,[{file,“proc_lib.erl”},{line,240}]}]}, ancestors: [<0.388.0>], message_queue_len: 1, messages: [{‘EXIT’,<0.390.0>,normal}], links: [<0.388.0>,<0.44.0>], dictionary: , trap_exit: true, status: running, heap_size: 376, stack_size: 28, reductions: 173; neighbours:
    2023-12-15T13:08:33.678000+08:00 [error] crasher: initial call: application_master:init/4, pid: <0.389.0>, registered_name: , exit: {{bad_return,{{emqx_conf_app,start,[normal,]},{‘EXIT’,{{case_clause,undefined},[{emqx_config_logger,tr_console_handler,1,[{file,“emqx_config_logger.erl”},{line,131}]},{emqx_config_logger,tr_handlers,1,[{file,“emqx_config_logger.erl”},{line,126}]},{emqx_config_logger,do_refresh_config,1,[{file,“emqx_config_logger.erl”},{line,50}]},{emqx_conf_app,start,2,[{file,“emqx_conf_app.erl”},{line,38}]},{application_master,start_it_old,4,[{file,“application_master.erl”},{line,293}]}]}}}},[{application_master,init,4,[{file,“application_master.erl”},{line,142}]},{proc_lib,init_p_do_apply,3,[{file,“proc_lib.erl”},{line,240}]}]}, ancestors: [<0.388.0>], message_queue_len: 1, messages: [{‘EXIT’,<0.390.0>,normal}], links: [<0.388.0>,<0.44.0>], dictionary: , trap_exit: true, status: running, heap_size: 376, stack_size: 28, reductions: 169; neighbours:
    2023-12-15T13:09:12.411000+08:00 [error] crasher: initial call: application_master:init/4, pid: <0.389.0>, registered_name: , exit: {{bad_return,{{emqx_conf_app,start,[normal,]},{‘EXIT’,{{case_clause,undefined},[{emqx_config_logger,tr_console_handler,1,[{file,“emqx_config_logger.erl”},{line,131}]},{emqx_config_logger,tr_handlers,1,[{file,“emqx_config_logger.erl”},{line,126}]},{emqx_config_logger,do_refresh_config,1,[{file,“emqx_config_logger.erl”},{line,50}]},{emqx_conf_app,start,2,[{file,“emqx_conf_app.erl”},{line,38}]},{application_master,start_it_old,4,[{file,“application_master.erl”},{line,293}]}]}}}},[{application_master,init,4,[{file,“application_master.erl”},{line,142}]},{proc_lib,init_p_do_apply,3,[{file,“proc_lib.erl”},{line,240}]}]}, ancestors: [<0.388.0>], message_queue_len: 1, messages: [{‘EXIT’,<0.390.0>,normal}], links: [<0.388.0>,<0.44.0>], dictionary: , trap_exit: true, status: running, heap_size: 376, stack_size: 28, reductions: 169; neighbours:
    2023-12-15T13:09:53.868000+08:00 [error] crasher: initial call: application_master:init/4, pid: <0.389.0>, registered_name: , exit: {{bad_return,{{emqx_conf_app,start,[normal,]},{‘EXIT’,{{case_clause,undefined},[{emqx_config_logger,tr_console_handler,1,[{file,“emqx_config_logger.erl”},{line,131}]},{emqx_config_logger,tr_handlers,1,[{file,“emqx_config_logger.erl”},{line,126}]},{emqx_config_logger,do_refresh_config,1,[{file,“emqx_config_logger.erl”},{line,50}]},{emqx_conf_app,start,2,[{file,“emqx_conf_app.erl”},{line,38}]},{application_master,start_it_old,4,[{file,“application_master.erl”},{line,293}]}]}}}},[{application_master,init,4,[{file,“application_master.erl”},{line,142}]},{proc_lib,init_p_do_apply,3,[{file,“proc_lib.erl”},{line,240}]}]}, ancestors: [<0.388.0>], message_queue_len: 1, messages: [{‘EXIT’,<0.390.0>,normal}], links: [<0.388.0>,<0.44.0>], dictionary: , trap_exit: true, status: running, heap_size: 376, stack_size: 28, reductions: 175; neighbours:
    2023-12-15T13:10:12.649000+08:00 [error] crasher: initial call: application_master:init/4, pid: <0.389.0>, registered_name: , exit: {{bad_return,{{emqx_conf_app,start,[normal,]},{‘EXIT’,{{case_clause,undefined},[{emqx_config_logger,tr_console_handler,1,[{file,“emqx_config_logger.erl”},{line,131}]},{emqx_config_logger,tr_handlers,1,[{file,“emqx_config_logger.erl”},{line,126}]},{emqx_config_logger,do_refresh_config,1,[{file,“emqx_config_logger.erl”},{line,50}]},{emqx_conf_app,start,2,[{file,“emqx_conf_app.erl”},{line,38}]},{application_master,start_it_old,4,[{file,“application_master.erl”},{line,293}]}]}}}},[{application_master,init,4,[{file,“application_master.erl”},{line,142}]},{proc_lib,init_p_do_apply,3,[{file,“proc_lib.erl”},{line,240}]}]}, ancestors: [<0.388.0>], message_queue_len: 1, messages: [{‘EXIT’,<0.390.0>,normal}], links: [<0.388.0>,<0.44.0>], dictionary: , trap_exit: true, status: running, heap_size: 376, stack_size: 28, reductions: 175; neighbours:
    2023-12-15T13:11:05.180000+08:00 [error] crasher: initial call: application_master:init/4, pid: <0.389.0>, registered_name: , exit: {{bad_return,{{emqx_conf_app,start,[normal,]},{‘EXIT’,{{case_clause,undefined},[{emqx_config_logger,tr_console_handler,1,[{file,“emqx_config_logger.erl”},{line,131}]},{emqx_config_logger,tr_handlers,1,[{file,“emqx_config_logger.erl”},{line,126}]},{emqx_config_logger,do_refresh_config,1,[{file,“emqx_config_logger.erl”},{line,50}]},{emqx_conf_app,start,2,[{file,“emqx_conf_app.erl”},{line,38}]},{application_master,start_it_old,4,[{file,“application_master.erl”},{line,293}]}]}}}},[{application_master,init,4,[{file,“application_master.erl”},{line,142}]},{proc_lib,init_p_do_apply,3,[{file,“proc_lib.erl”},{line,240}]}]}, ancestors: [<0.388.0>], message_queue_len: 1, messages: [{‘EXIT’,<0.390.0>,normal}], links: [<0.388.0>,<0.44.0>], dictionary: , trap_exit: true, status: running, heap_size: 376, stack_size: 28, reductions: 171; neighbours:
    2023-12-15T13:11:46.968000+08:00 [error] crasher: initial call: application_master:init/4, pid: <0.389.0>, registered_name: , exit: {{bad_return,{{emqx_conf_app,start,[normal,]},{‘EXIT’,{{case_clause,undefined},[{emqx_config_logger,tr_console_handler,1,[{file,“emqx_config_logger.erl”},{line,131}]},{emqx_config_logger,tr_handlers,1,[{file,“emqx_config_logger.erl”},{line,126}]},{emqx_config_logger,do_refresh_config,1,[{file,“emqx_config_logger.erl”},{line,50}]},{emqx_conf_app,start,2,[{file,“emqx_conf_app.erl”},{line,38}]},{application_master,start_it_old,4,[{file,“application_master.erl”},{line,293}]}]}}}},[{application_master,init,4,[{file,“application_master.erl”},{line,142}]},{proc_lib,init_p_do_apply,3,[{file,“proc_lib.erl”},{line,240}]}]}, ancestors: [<0.388.0>], message_queue_len: 1, messages: [{‘EXIT’,<0.390.0>,normal}], links: [<0.388.0>,<0.44.0>], dictionary: , trap_exit: true, status: running, heap_size: 376, stack_size: 28, reductions: 169; neighbours:
    2023-12-15T13:15:23.343000+08:00 [error] crasher: initial call: application_master:init/4, pid: <0.439.0>, registered_name: , exit: {{bad_return,{{emqx_conf_app,start,[normal,]},{‘EXIT’,{{case_clause,undefined},[{emqx_config_logger,tr_console_handler,1,[{file,“emqx_config_logger.erl”},{line,131}]},{emqx_config_logger,tr_handlers,1,[{file,“emqx_config_logger.erl”},{line,126}]},{emqx_config_logger,do_refresh_config,1,[{file,“emqx_config_logger.erl”},{line,50}]},{emqx_conf_app,start,2,[{file,“emqx_conf_app.erl”},{line,38}]},{application_master,start_it_old,4,[{file,“application_master.erl”},{line,293}]}]}}}},[{application_master,init,4,[{file,“application_master.erl”},{line,142}]},{proc_lib,init_p_do_apply,3,[{file,“proc_lib.erl”},{line,240}]}]}, ancestors: [<0.438.0>], message_queue_len: 1, messages: [{‘EXIT’,<0.440.0>,normal}], links: [<0.438.0>,<0.44.0>], dictionary: , trap_exit: true, status: running, heap_size: 376, stack_size: 28, reductions: 169; neighbours:
    2023-12-15T13:15:58.840000+08:00 [error] crasher: initial call: application_master:init/4, pid: <0.400.0>, registered_name: , exit: {{bad_return,{{emqx_conf_app,start,[normal,]},{‘EXIT’,{{case_clause,undefined},[{emqx_config_logger,tr_console_handler,1,[{file,“emqx_config_logger.erl”},{line,131}]},{emqx_config_logger,tr_handlers,1,[{file,“emqx_config_logger.erl”},{line,126}]},{emqx_config_logger,do_refresh_config,1,[{file,“emqx_config_logger.erl”},{line,50}]},{emqx_conf_app,start,2,[{file,“emqx_conf_app.erl”},{line,38}]},{application_master,start_it_old,4,[{file,“application_master.erl”},{line,293}]}]}}}},[{application_master,init,4,[{file,“application_master.erl”},{line,142}]},{proc_lib,init_p_do_apply,3,[{file,“proc_lib.erl”},{line,240}]}]}, ancestors: [<0.399.0>], message_queue_len: 1, messages: [{‘EXIT’,<0.401.0>,normal}], links: [<0.399.0>,<0.44.0>], dictionary: , trap_exit: true, status: running, heap_size: 376, stack_size: 28, reductions: 169; neighbours:
    2023-12-15T13:16:34.320000+08:00 [error] crasher: initial call: application_master:init/4, pid: <0.400.0>, registered_name: , exit: {{bad_return,{{emqx_conf_app,start,[normal,]},{‘EXIT’,{{case_clause,undefined},[{emqx_config_logger,tr_console_handler,1,[{file,“emqx_config_logger.erl”},{line,131}]},{emqx_config_logger,tr_handlers,1,[{file,“emqx_config_logger.erl”},{line,126}]},{emqx_config_logger,do_refresh_config,1,[{file,“emqx_config_logger.erl”},{line,50}]},{emqx_conf_app,start,2,[{file,“emqx_conf_app.erl”},{line,38}]},{application_master,start_it_old,4,[{file,“application_master.erl”},{line,293}]}]}}}},[{application_master,init,4,[{file,“application_master.erl”},{line,142}]},{proc_lib,init_p_do_apply,3,[{file,“proc_lib.erl”},{line,240}]}]}, ancestors: [<0.399.0>], message_queue_len: 1, messages: [{‘EXIT’,<0.401.0>,normal}], links: [<0.399.0>,<0.44.0>], dictionary: , trap_exit: true, status: running, heap_size: 376, stack_size: 28, reductions: 175; neighbours:
    2023-12-15T13:17:12.154000+08:00 [error] crasher: initial call: application_master:init/4, pid: <0.400.0>, registered_name: , exit: {{bad_return,{{emqx_conf_app,start,[normal,]},{‘EXIT’,{{case_clause,undefined},[{emqx_config_logger,tr_console_handler,1,[{file,“emqx_config_logger.erl”},{line,131}]},{emqx_config_logger,tr_handlers,1,[{file,“emqx_config_logger.erl”},{line,126}]},{emqx_config_logger,do_refresh_config,1,[{file,“emqx_config_logger.erl”},{line,50}]},{emqx_conf_app,start,2,[{file,“emqx_conf_app.erl”},{line,38}]},{application_master,start_it_old,4,[{file,“application_master.erl”},{line,293}]}]}}}},[{application_master,init,4,[{file,“application_master.erl”},{line,142}]},{proc_lib,init_p_do_apply,3,[{file,“proc_lib.erl”},{line,240}]}]}, ancestors: [<0.399.0>], message_queue_len: 1, messages: [{‘EXIT’,<0.401.0>,normal}], links: [<0.399.0>,<0.44.0>], dictionary: , trap_exit: true, status: running, heap_size: 376, stack_size: 28, reductions: 177; neighbours:

默认配置

预期行为

实际行为

  • 可以先尝试使用命令 ./bin/emqx console 启动,看一下输出
  • 推荐使用 docker/WSL 在 linux 环境下运行 EMQX