I am new in ejabberd and XMPP in general. I have setup ejabberd on a mac running Mountain Lion.
Unfortunately when I try to connect to the local ejabberd server using Adium client, it gives the error "**Server closed the connection**".
Below is the ejabberd log:
=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, #Fun, #Fun,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, #Fun, #Fun,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}]}
Can you help me to understand what is causing this error?
Thanks in advance!
we too have same problem so
we too have same problem so developer kindly give us the solution
=ERROR REPORT==== 2013-10-03
=ERROR REPORT==== 2013-10-03 18:23:09 ===
** State machine <0.631.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.4063>,<0.630.0>},
ejabberd_socket,#Ref<0.0.0.12297>,false,"3498264893",
{sasl_state,"jabber","localhost",[],
#Fun,
#Fun,
#Fun,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},52940},
[],[]}
** 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-10-03 18:23:14 ===
** State machine <0.633.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.4065>,<0.632.0>},
ejabberd_socket,#Ref<0.0.0.12306>,false,"456431461",
{sasl_state,"jabber","localhost",[],
#Fun,
#Fun,
#Fun,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},52941},
[],[]}
** 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-10-03 18:23:19 ===
** State machine <0.635.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.4067>,<0.634.0>},
ejabberd_socket,#Ref<0.0.0.12315>,false,"2831742591",
{sasl_state,"jabber","localhost",[],
#Fun,
#Fun,
#Fun,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},52942},
[],[]}
** 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-10-03 18:23:25 ===
** State machine <0.637.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.4069>,<0.636.0>},
ejabberd_socket,#Ref<0.0.0.12324>,false,"3510045394",
{sasl_state,"jabber","localhost",[],
#Fun,
#Fun,
#Fun,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},52943},
[],[]}
** 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}]}
kindly give us the solution