我已经使用 erlang:v24 基础镜像构建了一个 Ejabberd:v24 docker 镜像,并部署在 kubernetes 集群 (k8s v1.26.2) 中。除了“sbin/ejabberctl --node[电子邮件保护]start”命令,所有其他命令如“sbin/ejabberctl --node[电子邮件保护]状态”,“sbin/ejabberctl --node[电子邮件保护]stop”等会抛出“无法设置长节点名称!”错误并在日志文件夹中生成一个崩溃转储文件。
如果有人遇到过这个问题,请帮助解决。
提前致谢。
Erlang_版本: v24,Ejabberd_版本: v24,Kubernetes 版本:v1.26.2
错误信息:
user@ejabberd:/# sbin/ejabberdctl --node [email protected] stop
=INFO REPORT==== 21-Mar-2024::10:05:33.064535 ===
Can't set long node name!
Please check your configuration
=SUPERVISOR REPORT==== 21-Mar-2024::10:05:33.064570 ===
supervisor: {local,net_sup}
errorContext: start_error
reason: {'EXIT',nodistribution}
offender: [{pid,undefined},
{id,net_kernel},
{mfargs,{net_kernel,start_link,
[#{clean_halt => true,name => undefined,
name_domain => longnames,
supervisor => net_sup}]}},
{restart_type,permanent},
{significant,false},
{shutdown,2000},
{child_type,worker}]
{"Kernel pid terminated",application_controller,"{application_start_failure,kernel,{{shutdown,{failed_to_start_child,net_sup,{shutdown,{failed_to_start_child,net_kernel,{'EXIT',nodistribution}}}}},{kernel,start,[normal,[]]}}}"}
Kernel pid terminated (application_controller) ({application_start_failure,kernel,{{shutdown,{failed_to_start_child,net_sup,{shutdown,{failed_to_start_child,net_kernel,{'EXIT',nodistribution}}}}},{kernel,start,[normal,[]]}}})
Crash dump is being written to: var/log/ejabberd/erl_crash.dump...done