[ejabberd] Ejabberd crashes on as soon as user connects to it

Abhishek Ranjan abhishek at blacklightsw.com
Mon May 8 14:25:07 MSK 2017


The full log is attached with this mail
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.jabber.ru/pipermail/ejabberd/attachments/20170508/ae02f252/attachment.html>
-------------- next part --------------
2017-05-08 10:48:20 =ERROR REPORT====
** Generic server <0.480.0> terminating
** Last message in was {'$gen_event',{xmlstreamelement,{xmlel,<<"iq">>,[{<<"type">>,<<"set">>},{<<"id">>,<<"purpleea23adf5">>}],[{xmlel,<<"bind">>,[{<<"xmlns">>,<<"urn:ietf:params:xml:ns:xmpp-bind">>}],[{xmlel,<<"resource">>,[],[{xmlcdata,<<"-">>}]}]}]}}}
** When Server state == #{auth_module => ejabberd_auth_mnesia,csi_queue => {0,0,#{}},csi_state => active,ip => {{203,92,39,138},63054},lang => <<>>,lserver => <<"bsw.com">>,mgmt_ack_timeout => 60000,mgmt_max_queue => 1000,mgmt_max_timeout => 300,mgmt_resend => false,mgmt_stanzas_in => 0,mgmt_stanzas_out => 0,mgmt_stanzas_req => 0,mgmt_state => inactive,mgmt_timeout => 300,mod => ejabberd_c2s,owner => <0.480.0>,pres_a => {0,nil},pres_t => {0,nil},resource => <<>>,server => <<"bsw.com">>,socket => {socket_state,fast_tls,{tlssock,#Port<0.16030>,#Port<0.16088>},<0.479.0>},socket_monitor => #Ref<0.0.0.11915>,sockmod => ejabberd_socket,stream_authenticated => true,stream_compressed => false,stream_direction => in,stream_encrypted => true,stream_header_sent => true,stream_id => <<"6353065357676519408">>,stream_restarted => true,stream_state => wait_for_bind,stream_timeout => {30000,1494240497693},stream_version => {1,0},tls_enabled => true,tls_required => false,lang => <<"en">>,access => c2s,tls_options => [compression_none,{protocol_options,<<"no_sslv3">>},{certfile,<<"/etc/ejabberd/server.pem">>}],pres_f => {0,nil},tls_verify => false,shaper => c2s_shaper,lserver => <<"bsw.com">>,server => <<"bsw.com">>,user => <<"raghav">>,xmlns => <<"jabber:client">>,zlib => false}
** Reason for termination ==
** {function_clause,[{ejabberd_c2s,bind,[<<"-">>,#{auth_module => ejabberd_auth_mnesia,csi_queue => {0,0,#{}},csi_state => active,ip => {{203,92,39,138},63054},lang => <<>>,lserver => <<"bsw.com">>,mgmt_ack_timeout => 60000,mgmt_max_queue => 1000,mgmt_max_timeout => 300,mgmt_resend => false,mgmt_stanzas_in => 0,mgmt_stanzas_out => 0,mgmt_stanzas_req => 0,mgmt_state => inactive,mgmt_timeout => 300,mod => ejabberd_c2s,owner => <0.480.0>,pres_a => {0,nil},pres_t => {0,nil},resource => <<>>,server => <<"bsw.com">>,socket => {socket_state,fast_tls,{tlssock,#Port<0.16030>,#Port<0.16088>},<0.479.0>},socket_monitor => #Ref<0.0.0.11915>,sockmod => ejabberd_socket,stream_authenticated => true,stream_compressed => false,stream_direction => in,stream_encrypted => true,stream_header_sent => true,stream_id => <<"6353065357676519408">>,stream_restarted => true,stream_state => wait_for_bind,stream_timeout => {30000,1494240497693},stream_version => {1,0},tls_enabled => true,tls_required => false,lang => <<"en">>,access => c2s,tls_options => [compression_none,{protocol_options,<<"no_sslv3">>},{certfile,<<"/etc/ejabberd/server.pem">>}],pres_f => {0,nil},tls_verify => false,shaper => c2s_shaper,lserver => <<"bsw.com">>,server => <<"bsw.com">>,user => <<"raghav">>,xmlns => <<"jabber:client">>,zlib => false}],[{file,"src/ejabberd_c2s.erl"},{line,387}]},{xmpp_stream_in,process_bind,2,[{file,"src/xmpp_stream_in.erl"},{line,605}]},{xmpp_stream_in,handle_info,2,[{file,"src/xmpp_stream_in.erl"},{line,337}]},{p1_server,handle_msg,8,[{file,"src/p1_server.erl"},{line,696}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,239}]}]}
2017-05-08 10:48:20 =CRASH REPORT====
  crasher:
    initial call: gen:init_it/6
    pid: <0.480.0>
    registered_name: []
    exception exit: {{function_clause,[{ejabberd_c2s,bind,[<<"-">>,#{auth_module => ejabberd_auth_mnesia,csi_queue => {0,0,#{}},csi_state => active,ip => {{203,92,39,138},63054},lang => <<>>,lserver => <<"bsw.com">>,mgmt_ack_timeout => 60000,mgmt_max_queue => 1000,mgmt_max_timeout => 300,mgmt_resend => false,mgmt_stanzas_in => 0,mgmt_stanzas_out => 0,mgmt_stanzas_req => 0,mgmt_state => inactive,mgmt_timeout => 300,mod => ejabberd_c2s,owner => <0.480.0>,pres_a => {0,nil},pres_t => {0,nil},resource => <<>>,server => <<"bsw.com">>,socket => {socket_state,fast_tls,{tlssock,#Port<0.16030>,#Port<0.16088>},<0.479.0>},socket_monitor => #Ref<0.0.0..11915>,sockmod => ejabberd_socket,stream_authenticated => true,stream_compressed => false,stream_direction => in,stream_encrypted => true,stream_header_sent => true,stream_id => <<"6353065357676519408">>,stream_restarted => true,stream_state => wait_for_bind,stream_timeout => {30000,1494240497693},stream_version => {1,,0},tls_enabled => true,tls_required => false,lang => <<"en">>,access => c2s,tls_options => [compression_none,{protocol_options,<<"no_sslv3">>},{certfile,<<"/etc/ejabberd/server.pem">>}],pres_f => {0,nil},tls_verify => false,shaper => c2s_shaper,lserver => <<"bsw.com">>,server => <<"bsw.com">>,user => <<"raghav">>,xmlns=> <<"jabber:client">>,zlib => false}],[{file,"src/ejabberd_c2s.erl"},{line,387}]},{xmpp_stream_in,process_bind,2,[{file,"src/xmpp_stream_in.erl"},{line,605}]},{xmpp_stream_in,handle_info,2,[{file,"src/xmpp_stream_in.erl"},{line,337}]},{p1_server,handle_msg,8,[{file,"src/p1_server.erl"},{line,696}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,239}]}]},[{p1_server,terminate,7,[{file,"src/p1_server.erl"},{line,878}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,239}]}]}
 messages: []
    links: [#Port<0.16088>,<0.477.0>]
    dictionary: [{'$internal_queue_len',0},{already_terminated,true}]
    trap_exit: false
    status: running
    heap_size: 4185
    stack_size: 27
    reductions: 10452
  neighbours:
2017-05-08 10:48:20 =SUPERVISOR REPORT====
     Supervisor: {local,ejabberd_c2s_sup}
     Context:    child_terminated
     Reason:     {function_clause,[{ejabberd_c2s,bind,[<<"-">>,#{auth_module => ejabberd_auth_mnesia,csi_queue => {0,0,#{}},csi_state => active,ip => {{203,92,39,138},63054},lang => <<>>,lserver => <<"bsw.com">>,mgmt_ack_timeout => 60000,mgmt_max_queue => 1000,mgmt_max_timeout => 300,mgmt_resend => false,mgmt_stanzas_in => 0,mgmt_stanzas_out => 0,mgmt_stanzas_req => 0,mgmt_state => inactive,mgmt_timeout => 300,mod => ejabberd_c2s,owner => <0.480.0>,pres_a => {0,nil},pres_t => {0,nil},resource => <<>>,server => <<"bsw.com">>,socket => {socket_state,fast_tls,{tlssock,#Port<0.16030>,#Port<0.16088>},<0.479.0>},socket_monitor => #Ref<0.0.0.11915>,sockmod => ejabberd_socket,stream_authenticated => true,stream_compressed => false,stream_direction => in,stream_encrypted => true,stream_header_sent => true,stream_id => <<"6353065357676519408">>,stream_restarted => true,stream_state => wait_for_bind,stream_timeout => {30000,1494240497693},stream_version => {1,0},tls_enabled => true,tls_required => false,lang => <<"en">>,access => c2s,tls_options => [compression_none,{protocol_options,<<"no_sslv3">>},{certfile,<<"/etc/ejabberd/server.pem">>}],pres_f => {0,nil},tls_verify => false,shaper => c2s_shaper,lserver => <<"bsw.com">>,server => <<"bsw.com">>,user => <<"raghav">>,xmlns =>  <<"jabber:client">>,zlib => false}],[{file,"src/ejabberd_c2s.erl"},{line,387}]},{xmpp_stream_in,process_bind,2,[{file,"src/xmpp_stream_in.erl"},{line,605}]},{xmpp_stream_in,handle_info,2,[{file,"src/xmpp_stream_in.erl"},{line,337}]},{p1_server,handle_msg,8,[{file,"src/p1_server.erl"},{line,696}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,239}]}]}
Offender:   [{pid,<0.480.0>},{name,undefined},{mfargs,{ejabberd_c2s,start_link,undefined}},{restart_type,temporary},{shutdown,1000},{child_type,worker}]


More information about the ejabberd mailing list