我在Ejabberd上使用erlang R14B01,当我在狮子座上启动Ejabberd时,显示错误,谁能告诉我原因,谢谢!
我有主机配置{hosts, ["localhost"]}.
=INFO REPORT==== 2012-09-18 23:35:10 ===
application: ejabberd
exited: {bad_return,
{{ejabberd_app,start,[normal,[]]},
{'EXIT',
{badarg,
[{erlang,port_control,
[stringprep_port,2,"localhost"],
[]},
{stringprep,control,2,[]},
{jlib,nodeprep,1,[]},
{ejabberd_config,normalize_hosts,2,[]},
{ejabberd_config,add_hosts_to_option,2,[]},
{lists,foldl,3,[{file,"lists.erl"},{line,1197}]},
{ejabberd_config,load_file,1,[]},
{ejabberd_config,start,0,[]}]}}}}
type: temporary
=ERROR REPORT==== 2012-09-18 23:44:32 ===
Error in process <0.2102.0> on node 'ejabberd@localhost' with exit value: {{case_clause,{error,{open_error,-16}}},[{ejabberd_app,init,0,[]}]}
=INFO REPORT==== 2012-09-18 23:44:32 ===
application: ejabberd
exited: {bad_return,
{{ejabberd_app,start,[normal,[]]},
{'EXIT',
{badarg,
[{erlang,port_control,
[stringprep_port,2,"localhost"],
[]},
{stringprep,control,2,[]},
{jlib,nodeprep,1,[]},
{ejabberd_config,normalize_hosts,2,[]},
{ejabberd_config,add_hosts_to_option,2,[]},
{lists,foldl,3,[{file,"lists.erl"},{line,1197}]},
{ejabberd_config,load_file,1,[]},
{ejabberd_config,start,0,[]}]}}}}
type: temporary
答案 0 :(得分:1)
从崩溃报告中,问题似乎是在stringprep上,这是一个驱动程序(用C语言编写,链接到ejabberd VM)。根据我的经验,大多数情况下,当ejabberd使用一个erlang版本编译时会出现这种错误,但是尝试使用另一个版本运行。尝试使用R14B01进行干净的重新编译