服务器运行时显示错误的ejabberd状态

时间:2015-11-18 09:26:13

标签: erlang xmpp yaml ejabberd centos6

我正在尝试在我的服务器上配置 eJabberd

我完成了安装。以下命令序列提供了意外的输出:

$ ejabberd start
$ ejabberd status

按此顺序启动 ejabbed ,我们可以访问网络管理界面。

但是在运行ejabberd status后给出了以下输出:

Failed to create main carrier for temp_alloc
/sbin/ejabberdctl: line 412:  9616 Aborted                 $EXEC_CMD "$ERL       $NAME ${CONN_NAME}       -noinput       -hidden       -pa $EJABBERD_EBIN_PATH       $KERNEL_OPTS       -s ejabberd_ctl -extra $ERLANG_NODE $COMMAND"

更新

执行$ erl给出以下输出:

Crash dump is being written to: erl_crash.dump...done
Failed to create aux thread
Aborted

crash.dump的输出

=erl_crash_dump:0.3
Wed Nov 18 03:16:51 2015
Slogan: Failed to create aux thread
System version: Erlang/OTP 18 [erts-7.1] [source] [64-bit] [smp:85:24] [async-threads:10] [hipe] [kernel-poll:false]
Compiled: Tue Nov 17 05:43:11 2015
Taints:
Atoms: 2005
Calling Thread: beam.smp
=scheduler:1
Scheduler Sleep Info Flags: SLEEPING | TSE_SLEEPING
Scheduler Sleep Info Aux Work: SET_TMO
Current Port:
Run Queue Max Length: 0
Run Queue High Length: 0
Run Queue Normal Length: 1
Run Queue Low Length: 0
Run Queue Port Length: 0
Run Queue Flags: NONEMPTY_NORMAL | NONEMPTY
Current Process:

我无法追踪问题,任何参考都会非常有帮助。

1 个答案:

答案 0 :(得分:3)

在禁用SMP模式的情况下运行erl,即$ erl -smp disable

如果成功运行,请转到/sbin/ejabberdctl文件,第412行并在那里添加选项。

$EXEC_CMD "$ERL       $NAME ${CONN_NAME}   -smp disable    -noinput       -hidden       -pa $EJABBERD_EBIN_PATH       $KERNEL_OPTS       -s ejabberd_ctl -extra $ERLANG_NODE $COMMAND"