EMQX基于rpm方式完成安装,无法启动

问题描述

EMQX基于rpm方式完成安装,无法启动,详细日志如下

环境信息

  • EMQ X 版本:emqx-edge-centos7-4.2.8-x86_64.rpm
  • 操作系统及版本:centos7.9
  • 其他

详细日志

# /usr/bin/emqx start
EMQ X Edge 4.2.8 failed to start within 15 seconds,
see the output of '/usr/bin/emqx console' for more information.
If you want to wait longer, set the environment variable
WAIT_FOR_ERLANG to the number of seconds to wait.
# emqx console
Exec: /usr/lib/emqx/erts-10.7/bin/erlexec -boot /usr/lib/emqx/releases/4.2.8/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.2021.03.24.00.52.52.config -args_file /var/lib/emqx/configs/vm.2021.03.24.00.52.52.args -vm_args /var/lib/emqx/configs/vm.2021.03.24.00.52.52.args -start_epmd false -epmd_module ekka_epmd -proto_dist ekka -- console
Root: /usr/lib/emqx
/usr/lib/emqx
heart_beat_kill_pid = 10736
Erlang/OTP 22 [erts-10.7] [source] [64-bit] [smp:1:1] [ds:1:1:1] [async-threads:1] [hipe]

{"Kernel pid terminated",application_controller,"{application_start_failure,kernel,{{shutdown,{failed_to_start_child,kernel_safe_sup,{on_load_function_failed,crypto}}},{kernel,start,[normal,[]]}}}"}
Kernel pid terminated (application_controller) ({application_start_failure,kernel,{{shutdown,{failed_to_start_child,kernel_safe_sup,{on_load_function_failed,crypto}}},{kernel,start,[normal,[]]}}})
heart: Wed Mar 24 00:52:57 2021: Erlang is crashing .. (waiting for crash dump file)
heart: Wed Mar 24 00:52:57 2021: Would reboot. Terminating.

failed_to_start_child,kernel_safe_sup,{on_load_function_failed,crypto}

crypto 启动不起来,一般是由于系统的 openssl 版本和 emqx 要求的不一致

看看这个 常见错误 | EMQX 4.2 文档 检查下