Skip to content

Crash when trying to reload rabbitmq-management plugin after removing a node #298

Closed
@evanccnyc

Description

@evanccnyc

Hi there,

I ran into a rabbitmq crash after the following scenario:

RabbitMQ 3.5.3
Ubuntu 14.04
3 servers, 1c,1d,1e

There was a network blip and 1e briefly connected/reconnected, at which point the management GUI showed it not connected to the cluster. We drained the queues and then disconnected the 1e node. At which point we lost all information on the management GUI on the remaining two servers. The interface showed lots of ????'s and error messages like "Statistics database could not be contacted.".

At which point we removed the management plugin from one of the servers (1c) via the command line and tried to readd it back with: "rabbitmq-plugins enable rabbitmq_management"

At which point 1c crashed with the following debug message:

=CRASH REPORT==== 4-Sep-2015::14:23:27 ===
  crasher:
    initial call: gen:init_it/6
    pid: <0.12775.6568>
    registered_name: []
    exception exit: {function_clause,
                        [{rabbit_channel,handle_info,2,[]},
                         {gen_server2,handle_msg,2,[]},
                         {rabbit_mgmt_wm_overview,module_info,1,[]}]}
      in function  gen_server2:terminate/3
      in call from rabbit_mgmt_wm_overview:module_info/1
    ancestors: [<0.28642.6557>,<0.3525.6568>,<0.12250.6567>,<0.4055.6567>,
                  rabbit_tcp_client_sup,rabbit_sup,<0.4863.0>]
    messages: []
    links: [<0.28642.6557>]
    dictionary: [{{queue_stats,{resource,<<"/">>,queue,<<"djjob.quick">>}},
                   [{deliver,1},{redeliver,1}]},
                  {credit_blocked,[]},
                  {delegate,delegate_3},
                  {msg_size_for_gc,2077},
                  {process_name,
                      {rabbit_channel,
                          {<<"10.178.189.57:59650 -> 10.0.11.174:5672">>,1}}}]
    trap_exit: true
    status: running
    heap_size: 4185
    stack_size: 27
    reductions: 8423
  neighbours:

=SUPERVISOR REPORT==== 4-Sep-2015::14:23:56 ===
     Supervisor: {<0.29726.6380>,rabbit_channel_sup}
     Context:    child_terminated
     Reason:     {function_clause,
                     [{rabbit_channel,handle_info,2,[]},
                      {gen_server2,handle_msg,2,[]},
                      {rabbit_mgmt_wm_overview,module_info,1,[]}]}
     Offender:   [{pid,<0.22944.6380>},
                  {name,channel},
                  {mfargs,
                      {rabbit_channel,start_link,
                          [1,<0.10639.6372>,<0.8494.6369>,<0.10639.6372>,
                           <<"10.140.163.98:52524 -> 10.0.11.174:5672">>,
                           rabbit_framing_amqp_0_9_1,
                           {user,<<"uberxxx">>,[],
                               [{rabbit_auth_backend_internal,none}]},
                           <<"/">>,
                           [{<<"publisher_confirms">>,bool,true},
                            {<<"consumer_cancel_notify">>,bool,true},
                            {<<"exchange_exchange_bindings">>,bool,true},
                            {<<"basic.nack">>,bool,true},
                            {<<"connection.blocked">>,bool,true},
                            {<<"authentication_failure_close">>,bool,true}],
                           <0.20398.6380>,<0.3201.6381>]}},
                  {restart_type,intrinsic},
                  {shutdown,4294967295},
                  {child_type,worker}]


=SUPERVISOR REPORT==== 4-Sep-2015::14:23:56 ===
     Supervisor: {<0.29726.6380>,rabbit_channel_sup}
     Context:    shutdown
     Reason:     reached_max_restart_intensity
     Offender:   [{pid,<0.22944.6380>},
                  {name,channel},
                  {mfargs,
                      {rabbit_channel,start_link,
                          [1,<0.10639.6372>,<0.8494.6369>,<0.10639.6372>,
                           <<"10.140.163.98:52524 -> 10.0.11.174:5672">>,
                           rabbit_framing_amqp_0_9_1,
                           {user,<<"uberxxx">>,[],
                               [{rabbit_auth_backend_internal,none}]},
                           <<"/">>,
                           [{<<"publisher_confirms">>,bool,true},
                            {<<"consumer_cancel_notify">>,bool,true},
                            {<<"exchange_exchange_bindings">>,bool,true},
                            {<<"basic.nack">>,bool,true},
                            {<<"connection.blocked">>,bool,true},
                            {<<"authentication_failure_close">>,bool,true}],
                           <0.20398.6380>,<0.3201.6381>]}},
                  {restart_type,intrinsic},
                  {shutdown,4294967295},
                  {child_type,worker}]


=CRASH REPORT==== 4-Sep-2015::14:23:56 ===
  crasher:
    initial call: gen:init_it/6
    pid: <0.7322.5965>
    registered_name: []
    exception exit: {function_clause,
                        [{rabbit_channel,handle_info,2,[]},
                         {gen_server2,handle_msg,2,[]},
                         {rabbit_mgmt_wm_overview,module_info,1,[]}]}
      in function  gen_server2:terminate/3
      in call from rabbit_mgmt_wm_overview:module_info/1
    ancestors: [<0.4950.5965>,<0.24355.5952>,<0.7810.5965>,<0.8862.5947>,
                  rabbit_tcp_client_sup,rabbit_sup,<0.4863.0>]
    messages: []
    links: [<0.4950.5965>]
    dictionary: [{delegate,delegate_9},
                  {guid_secure,
                      {{11,'rabbit@rabbitmq-us-east-1c',#Ref<0.0.3333.114301>},
                       0}},
                  {msg_size_for_gc,695},
                  {{credit_from,<9876.5461.0>},196},
                  {process_name,
                      {rabbit_channel,
                          {<<"10.178.189.57:42651 -> 10.0.11.174:5672">>,1}}},
                  {{credit_from,<0.5465.0>},196},
                  {{credit_to,<0.19404.5943>},48},
                  {{xtype_to_module,direct},rabbit_exchange_type_direct},
                  {credit_blocked,[]},
                  {guid,{{829018877,3024599086,2624743100,3587034967},1}},
                  {{exchange_stats,{resource,<<"/">>,exchange,<<"cronx">>}},
                   [{publish,2}]}]
    trap_exit: true
    status: running
    heap_size: 987
    stack_size: 27
    reductions: 5867
  neighbours:

=SUPERVISOR REPORT==== 4-Sep-2015::14:23:56 ===
     Supervisor: {<0.4950.5965>,rabbit_channel_sup}
     Context:    child_terminated
     Reason:     {function_clause,
                     [{rabbit_channel,handle_info,2,[]},
                      {gen_server2,handle_msg,2,[]},
                      {rabbit_mgmt_wm_overview,module_info,1,[]}]}
     Offender:   [{pid,<0.7322.5965>},
                  {name,channel},
                  {mfargs,
                      {rabbit_channel,start_link,
                          [1,<0.19404.5943>,<0.27371.5962>,<0.19404.5943>,
                           <<"10.178.189.57:42651 -> 10.0.11.174:5672">>,
                           rabbit_framing_amqp_0_9_1,
                           {user,<<"cronx">>,[],
                               [{rabbit_auth_backend_internal,none}]},
                           <<"/">>,[],<0.5646.5965>,<0.7247.5965>]}},
                  {restart_type,intrinsic},
                  {shutdown,4294967295},
                  {child_type,worker}]


=SUPERVISOR REPORT==== 4-Sep-2015::14:23:56 ===
     Supervisor: {<0.4950.5965>,rabbit_channel_sup}
     Context:    shutdown
     Reason:     reached_max_restart_intensity
     Offender:   [{pid,<0.7322.5965>},
                  {name,channel},
                  {mfargs,
                      {rabbit_channel,start_link,
                          [1,<0.19404.5943>,<0.27371.5962>,<0.19404.5943>,
                           <<"10.178.189.57:42651 -> 10.0.11.174:5672">>,
                           rabbit_framing_amqp_0_9_1,
                           {user,<<"cronx">>,[],
                               [{rabbit_auth_backend_internal,none}]},
                           <<"/">>,[],<0.5646.5965>,<0.7247.5965>]}},
                  {restart_type,intrinsic},
                  {shutdown,4294967295},
                  {child_type,worker}]

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions