生产环境 emqx_ctl listeners 无任何返回

image

日志应该有报错的,麻烦提供了下 emqx 的版本和日志。同时看看其它的 cli 是不是一样的情况。

2024-12-11T18:42:01.934414+08:00 [error] line: 129, mfa: emqx_ctl:run_command/2, msg: ctl_command_crashed, reason: not_found, stacktrace: [{esockd,with_listener,3,[{file,“esockd.erl”},{line,353}]},{emqx_mgmt_cli,‘-listeners/1-fun-1-’,1,[{file,“emqx_mgmt_cli.erl”},{line,609}]},{lists,foreach,2,[{file,“lists.erl”},{line,1342}]},{emqx_ctl,run_command,2,[{file,“emqx_ctl.erl”},{line,121}]},{erpc,execute_call,4,[{file,“erpc.erl”},{line,392}]}]
V: 5.0.15

那你得升级啦…推荐直接升级到 5.8.3
2023 年修好了这个 bug https://github.com/emqx/emqx/pull/11086