[ejabberd] mod_multicast could not work on ejabberd 2.1.11

Rex Shi shirui at gmail.com
Fri Sep 13 11:17:04 MSK 2013


I am running ejabberd 2.1.11 on CentOS 5.4. I have compile mod_multicast
and create 5 beam files:

mod_muc_room.beam
mod_multicast.beam
ejabberd_c2s.beam
ejabberd_router_multicast.beam
ejabberd_sup.beam

BUT, If I copy ejabberd_c2s.beam to ejabberd's ebin directory, I could
never connect server with xmpp client after serverrestarted. The erlang.log
show the error:

==> /usr/local/ejabberd-2.1.11/logs/ejabberd.log <==

=INFO REPORT==== 2013-09-13 14:31:27 ===
I(<0.470.0>:ejabberd_listener:281) : (#Port<0.4234>) Accepted connection
{{36,40,63,157},53449} -> {{42,96,170,200},5222}

=ERROR REPORT==== 2013-09-13 14:31:28 ===
** State machine <0.549.0> terminating
** Last event in was {xmlstreamstart,"stream:stream",
                                     [{"xmlns","jabber:client"},
                                      {"xmlns:stream",
                                       "http://etherx.jabber.org/streams"},

                                      {"version","1.0"},
                                      {"to","chatapp.yunhuiju.com"}]}
** When State == wait_for_stream
**      Data  == {state,{socket_state,gen_tcp,#Port<0.4234>,<0.548.0>},
                        ejabberd_socket,#Ref<0.0.0.11421>,"291991729",
                        undefined,c2s,c2s_shaper,false,true,false,false,

[{certfile,"/usr/local/ejabberd-2.1.11/conf/server.pem"}],
                        false,undefined,[],"yunxin.yunhuiju.com",[],undefined,

                        {0,nil},
                        {0,nil},
                        {0,nil},
                        {0,nil},
                        undefined,undefined,undefined,false,none,
                        {{36,40,63,157},53449},
                        undefined}
** Reason for termination =
** {'function not exported',[{cyrsasl,server_new,
                                      ["jabber","chatapp.yunhuiju.com",[],[],

                                       #Fun<ejabberd_c2s.1.34232338>,
                                       #Fun<ejabberd_c2s.2.77548378>]},
                             {ejabberd_c2s,wait_for_stream,2},
                             {gen_fsm,handle_msg,7},
                             {proc_lib,init_p_do_apply,3}]}

==> /usr/local/ejabberd-2.1.11/logs/erlang.log <==

=CRASH REPORT==== 13-Sep-2013::14:31:28 ===
  crasher:
    initial call: ejabberd_c2s:init/1
    pid: <0.549.0>
    registered_name: []
    exception exit: {undef,[{cyrsasl,server_new,
                                     ["jabber","chatapp.yunhuiju.com",[],[],

                                      #Fun<ejabberd_c2s.1.34232338>,
                                      #Fun<ejabberd_c2s.2.77548378>]},
                            {ejabberd_c2s,wait_for_stream,2},
                            {gen_fsm,handle_msg,7},
                            {proc_lib,init_p_do_apply,3}]}
      in function  gen_fsm:terminate/7
    ancestors: [ejabberd_c2s_sup,ejabberd_sup,<0.37.0>]
    messages: [{'$gen_event',closed},
                  {'DOWN',#Ref<0.0.0.11421>,process,<0.548.0>,normal}]
    links: [<0.266.0>]
    dictionary: []
    trap_exit: false
    status: running
    heap_size: 987
    stack_size: 24
    reductions: 1119
  neighbours:

=SUPERVISOR REPORT==== 13-Sep-2013::14:31:28 ===
     Supervisor: {local,ejabberd_c2s_sup}
     Context:    child_terminated
     Reason:     {undef,[{cyrsasl,server_new,
                                  ["jabber","chatapp.yunhuiju.com",[],[],

                                   #Fun<ejabberd_c2s.1.34232338>,
                                   #Fun<ejabberd_c2s.2.77548378>]},
                         {ejabberd_c2s,wait_for_stream,2},
                         {gen_fsm,handle_msg,7},
                         {proc_lib,init_p_do_apply,3}]}
     Offender:   [{pid,<0.549.0>},
                  {name,undefined},
                  {mfargs,{ejabberd_c2s,start_link,undefined}},
                  {restart_type,temporary},
                  {shutdown,brutal_kill},
                  {child_type,worker}]


==> /usr/local/ejabberd-2.1.11/logs/ejabberd.log <==

=INFO REPORT==== 2013-09-13 14:31:29 ===
I(<0.470.0>:ejabberd_listener:281) : (#Port<0.4236>) Accepted connection
{{36,40,63,157},53450} -> {{42,96,170,200},5222}

=ERROR REPORT==== 2013-09-13 14:31:29 ===
** State machine <0.551.0> terminating
** Last event in was {xmlstreamstart,"stream:stream",
                                     [{"xmlns","jabber:client"},
                                      {"xmlns:stream",
                                       "http://etherx.jabber.org/streams"},

                                      {"version","1.0"},
                                      {"to","chatapp.yunhuiju.com"}]}
** When State == wait_for_stream
**      Data  == {state,{socket_state,gen_tcp,#Port<0.4236>,<0.550.0>},
                        ejabberd_socket,#Ref<0.0.0.11430>,"1978753236",
                        undefined,c2s,c2s_shaper,false,true,false,false,

[{certfile,"/usr/local/ejabberd-2.1.11/conf/server.pem"}],
                        false,undefined,[],"yunxin.yunhuiju.com",[],undefined,

                        {0,nil},
                        {0,nil},
                        {0,nil},
                        {0,nil},
                        undefined,undefined,undefined,false,none,
                        {{36,40,63,157},53450},
                        undefined}
** Reason for termination =
** {'function not exported',[{cyrsasl,server_new,
                                      ["jabber","chatapp.yunhuiju.com",[],[],

                                       #Fun<ejabberd_c2s.1.34232338>,
                                       #Fun<ejabberd_c2s.2.77548378>]},
                             {ejabberd_c2s,wait_for_stream,2},
                             {gen_fsm,handle_msg,7},
                             {proc_lib,init_p_do_apply,3}]}

==> /usr/local/ejabberd-2.1.11/logs/erlang.log <==

=CRASH REPORT==== 13-Sep-2013::14:31:29 ===
  crasher:
    initial call: ejabberd_c2s:init/1
    pid: <0.551.0>
    registered_name: []
    exception exit: {undef,[{cyrsasl,server_new,
                                     ["jabber","chatapp.yunhuiju.com",[],[],

                                      #Fun<ejabberd_c2s.1.34232338>,
                                      #Fun<ejabberd_c2s.2.77548378>]},
                            {ejabberd_c2s,wait_for_stream,2},
                            {gen_fsm,handle_msg,7},
                            {proc_lib,init_p_do_apply,3}]}
      in function  gen_fsm:terminate/7
    ancestors: [ejabberd_c2s_sup,ejabberd_sup,<0.37.0>]
    messages: [{'$gen_event',closed},
                  {'DOWN',#Ref<0.0.0.11430>,process,<0.550.0>,normal}]
    links: [<0.266.0>]
    dictionary: []
    trap_exit: false
    status: running
    heap_size: 987
    stack_size: 24
    reductions: 1133
  neighbours:

=SUPERVISOR REPORT==== 13-Sep-2013::14:31:29 ===
     Supervisor: {local,ejabberd_c2s_sup}
     Context:    child_terminated
     Reason:     {undef,[{cyrsasl,server_new,
                                  ["jabber","chatapp.yunhuiju.com",[],[],

                                   #Fun<ejabberd_c2s.1.34232338>,
                                   #Fun<ejabberd_c2s.2.77548378>]},
                         {ejabberd_c2s,wait_for_stream,2},
                         {gen_fsm,handle_msg,7},
                         {proc_lib,init_p_do_apply,3}]}
     Offender:   [{pid,<0.551.0>},
                  {name,undefined},
                  {mfargs,{ejabberd_c2s,start_link,undefined}},
                  {restart_type,temporary},
                  {shutdown,brutal_kill},
                  {child_type,worker}]

please help me, what's the problem, and how can i make it works?

my mod_multicast is checked out from:
https://github.com/processone/ejabberd-contrib/tree/master/mod_multicast

Thanks!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.jabber.ru/pipermail/ejabberd/attachments/20130913/85070f78/attachment.html>


More information about the ejabberd mailing list