Adium连接到OS X Mountain Lion上的本地ejabberd服务器

时间:2013-09-18 23:56:22

标签: macos erlang xmpp ejabberd

我是ejabberd和XMPP的新手。我在运行Mountain Lion的mac上设置了ejabberd。 不幸的是,当我尝试使用Adium客户端连接到本地ejabberd服务器时,它会出现错误“服务器关闭连接”。

编辑:我从installer for OS X provided in process one website安装了ejabberd。

以下是ejabberd日志:

=ERROR REPORT==== 2013-09-19 01:47:35 ===
** State machine <0.2118.0> terminating 
** Last event in was {xmlstreamelement,
                         {xmlelement,"starttls",
                             [{"xmlns","urn:ietf:params:xml:ns:xmpp-tls"}],
                             []}}
** When State == wait_for_feature_request
**      Data  == {state,{socket_state,gen_tcp,#Port<0.15371>,<0.2117.0>},
                        ejabberd_socket,#Ref<0.0.0.48234>,false,"533022348",
                        {sasl_state,"jabber","localhost",[],
                                    #Fun<ejabberd_c2s.1.52538782>,
                                    #Fun<ejabberd_c2s.2.77839348>,
                                    #Fun<ejabberd_c2s.3.97921512>,undefined,
                                    undefined},
                        c2s,c2s_shaper,false,true,false,false,
                        [verify_none,
                         {certfile,"/Applications/ejabberd-2.1.13/conf/server.pem"}],
                        false,undefined,[],"localhost",[],undefined,
                        {pres_t,0},
                        {pres_f,0},
                        {pres_a,0},
                        {pres_i,0},
                        undefined,undefined,undefined,false,
                        {userlist,none,[],false},
                        unknown,unknown,
                        {{127,0,0,1},59697},
                        [],[]}
** Reason for termination = 
** {{case_clause,{error,{open_error,-11}}},
    [{tls,tcp_to_tls,2},
     {ejabberd_socket,starttls,3},
     {ejabberd_c2s,wait_for_feature_request,2},
     {p1_fsm,handle_msg,10},
     {proc_lib,init_p_do_apply,3}]}

=ERROR REPORT==== 2013-09-19 01:47:40 ===
** State machine <0.2120.0> terminating 
** Last event in was {xmlstreamelement,
                         {xmlelement,"starttls",
                             [{"xmlns","urn:ietf:params:xml:ns:xmpp-tls"}],
                             []}}
** When State == wait_for_feature_request
**      Data  == {state,{socket_state,gen_tcp,#Port<0.15373>,<0.2119.0>},
                        ejabberd_socket,#Ref<0.0.0.48243>,false,"89255482",
                        {sasl_state,"jabber","localhost",[],
                                    #Fun<ejabberd_c2s.1.52538782>,
                                    #Fun<ejabberd_c2s.2.77839348>,
                                    #Fun<ejabberd_c2s.3.97921512>,undefined,
                                    undefined},
                        c2s,c2s_shaper,false,true,false,false,
                        [verify_none,
                         {certfile,"/Applications/ejabberd-2.1.13/conf/server.pem"}],
                        false,undefined,[],"localhost",[],undefined,
                        {pres_t,0},
                        {pres_f,0},
                        {pres_a,0},
                        {pres_i,0},
                        undefined,undefined,undefined,false,
                        {userlist,none,[],false},
                        unknown,unknown,
                        {{127,0,0,1},59698},
                        [],[]}
** Reason for termination = 
** {{case_clause,{error,{open_error,-11}}},
    [{tls,tcp_to_tls,2},
     {ejabberd_socket,starttls,3},
     {ejabberd_c2s,wait_for_feature_request,2},
     {p1_fsm,handle_msg,10},
     {proc_lib,init_p_do_apply,3}]}

您能帮助我了解导致此错误的原因吗?

1 个答案:

答案 0 :(得分:1)

经过多次不成功的试验后,我怀疑基于流程一提供的安装程序设置ejabberd可能会遗漏某些内容。所以,我卸载了ejabberd并从mac端口重新安装了它。

sudo port selfupdate
sudo port install ejabberd

完成上述安装后,我注册了一个id为 lefam @ localhost 的管理员。最后,我可以使用Adium成功连接到服务器。