Quantcast

RabbitMQ crashes stomp connection with sockjs after several hours of success work

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

RabbitMQ crashes stomp connection with sockjs after several hours of success work

sergiipetrenko
This post has NOT been accepted by the mailing list yet.
I am new in configuring RabbitMQ. But the issue looks like there is some kind of timeout after which sockjs session is closed and could not be reconnected again. Does anybody knows the root cause? and how to do the config or the way to make connection reliable? I would appreciate any help from you.

Here are RabbitMQ server crash reports:

=CRASH REPORT==== 20-Mar-2015::09:25:59 ===
crasher:
    initial call: sockjs_session:init/1
    pid: <0.26279.101>
    registered_name: []
    exception exit: {function_clause,
                        [{gen_server,cast,
                             [{},sockjs_closed],
                             [{file,"gen_server.erl"},{line,196}]},
                         {rabbit_ws_sockjs,service_stomp,3,[]},
                         {sockjs_session,emit,2,[]},
                         {sockjs_session,terminate,2,[]},
                         {gen_server,try_terminate,3,
                             [{file,"gen_server.erl"},{line,621}]},
                         {gen_server,terminate,7,
                             [{file,"gen_server.erl"},{line,787}]},
                         {proc_lib,init_p_do_apply,3,
                             [{file,"proc_lib.erl"},{line,237}]}]}
      in function  gen_server:terminate/7 (gen_server.erl, line 792)
    ancestors: [sockjs_session_sup,<0.53.0>]
    messages: []
    links: [<0.54.0>]
    dictionary: []
    trap_exit: true
    status: running
    heap_size: 610
    stack_size: 27
    reductions: 231
  neighbours:

=SUPERVISOR REPORT==== 20-Mar-2015::09:25:59 ===
     Supervisor: {local,sockjs_session_sup}
     Context:    child_terminated
     Reason:     {function_clause,
                     [{gen_server,cast,
                          [{},sockjs_closed],
                          [{file,"gen_server.erl"},{line,196}]},
                      {rabbit_ws_sockjs,service_stomp,3,[]},
                      {sockjs_session,emit,2,[]},
                      {sockjs_session,terminate,2,[]},
                      {gen_server,try_terminate,3,
                          [{file,"gen_server.erl"},{line,621}]},
                      {gen_server,terminate,7,
                          [{file,"gen_server.erl"},{line,787}]},
                      {proc_lib,init_p_do_apply,3,
                          [{file,"proc_lib.erl"},{line,237}]}]}
     Offender:   [{pid,<0.26279.101>},
                  {name,undefined},
                  {mfargs,
                      {sockjs_session,start_link,
                          [undefined,
                           {service,"/stomp",
                               #Fun<rabbit_ws_sockjs.1.120271989>,{},
                               "http://cdn.sockjs.org/sockjs-0.2.js",false,
                               true,300000,25000,131072,
                               #Fun<rabbit_ws_sockjs.0.116551930>,undefined},
                           [{peername,{{106,51,236,146},29274}},
                            {sockname,{{0,0,0,0},0}},
                            {path,"/stomp/048/xxuva65k/websocket"},
                            {headers,[]}]]}},
                  {restart_type,transient},
                  {shutdown,5000},
                  {child_type,worker}]
Loading...