【问题标题】:Adium connect to local ejabberd server on OS X Mountain LionAdium 连接到 OS X Mountain Lion 上的本地 ejabberd 服务器
【发布时间】:2013-09-23 22:07:48
【问题描述】:

总的来说,我是 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}]}

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

【问题讨论】:

    标签: macos erlang xmpp ejabberd


    【解决方案1】:

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

    sudo port selfupdate
    sudo port install ejabberd
    

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

    【讨论】:

    • 我在使用 2.1.8 和 2.1.13 版本时也遇到过同样的问题。读取证书数据或 Dix http_bind 网络服务器在 Mac 的这些版本中看起来像二次行为。虽然 2.1.11 版本对我来说很好用。
    猜你喜欢
    • 2013-01-27
    • 2012-08-02
    • 2013-08-19
    • 2013-02-12
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-10-21
    相关资源
    最近更新 更多