Ubuntu 20.04.2 LTS (GNU/Linux 5.4.0-70-generic x86_64) 启动EMQX错误

环境信息

  • EMQX 版本:5.8.4 开源版
  • 操作系统及版本:Ubuntu20.04 arm64
  • 其他 arm64

问题描述

apt-get install emqx完成后直接start错误,然后前台
执行emqx foreground也无法启动

错误信息如下

root@ecs-ed4c:/var/lib/emqx/configs# sudo emqx foreground
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
WARNING: NOTE: Use the same cookie for all nodes in the cluster.
2024-12-30T02:42:37.592067+00:00 [error] event=socket_error_event driver=tcp socket=“#Port<0.5>” event=“ebadf” action=stopping
2024-12-30T02:42:37.592360+00:00 [error] State machine gen_rpc_server_tcp terminating. Reason: {socket_error,ebadf}. Stack: [{gen_statem,loop_state_callback_result,11,[{file,“gen_statem.erl”},{line,1524}]},{proc_lib,init_p_do_apply,3,[{file,“proc_lib.erl”},{line,241}]}]. Last event: {internal,accept}. State: {waiting_for_connection,{state,#Port<0.5>,tcp,gen_rpc_driver_tcp}}.
2024-12-30T02:42:37.593851+00:00 [error] crasher: initial call: gen_rpc_server:init/1, pid: <0.4656.0>, registered_name: gen_rpc_server_tcp, exit: {{socket_error,ebadf},[{gen_statem,loop_state_callback_result,11,[{file,“gen_statem.erl”},{line,1524}]},{proc_lib,init_p_do_apply,3,[{file,“proc_lib.erl”},{line,241}]}]}, ancestors: [gen_rpc_sup,<0.4653.0>], message_queue_len: 0, messages: , links: [<0.4654.0>,#Port<0.5>], dictionary: , trap_exit: false, status: running, heap_size: 2586, stack_size: 28, reductions: 7434; neighbours:
2024-12-30T02:42:37.594611+00:00 [error] Supervisor: {local,gen_rpc_sup}. Context: child_terminated. Reason: {socket_error,ebadf}. Offender: id=gen_rpc_server_tcp,pid=<0.4656.0>.

是不是没开端口权限,4370 5370

还要开这俩端口吗,之前没开运行的好好的,然后这两天就挂了

如果以前是ok 的,那你重启试试试看:eyes:,这个日志是报操作系统不让emqx 使用文件描述符,就是不让开rpc 的端口

直接重装后,并开启这两个端口,还是一样的问题呀

从来没遇到过这个错,你是做了什么额外的设置么,这个 ebadf 就是说的 socket 不能被读取哦。
https://www.erlang.org/docs/17/man/file