[rabbitmq-discuss] Internal Server Error message on RabbitMQ 3.0.2

Matt Pietrek mpietrek at skytap.com
Tue Feb 12 18:48:03 GMT 2013


I'm getting error messages like this from the server. Nothing works till I
restart the broker:


Got response code 500 with body
Internal Server ErrorThe server encountered an error while processing this
request:

{error,badarg,
       [{ets,lookup,[rabbit_user,<<"guest">>],[]},
        {rabbit_misc,dirty_read,1,[]},
        {rabbit_auth_backend_internal,internal_check_user_login,2,[]},
        {rabbit_access_control,'-check_user_login/2-fun-0-',4,[]},
        {lists,foldl,3,[{file,"lists.erl"},{line,1197}]},
        {rabbit_mgmt_util,is_authorized,4,[]},
        {webmachine_resource,resource_call,3,[]},
        {webmachine_resource,do,3,[]}]}



The rabbit@<host>.log file from around the time shows:

=ERROR REPORT==== 12-Feb-2013::10:30:08 ===
Mnesia(rabbit at mq1): ** ERROR ** (core dumped to file:
"/home/mpietrek/MnesiaCore.rabbit at mq1_1360_693808_817246")
 ** FATAL ** {error,{"Cannot rename disk_log file",latest_log,
                     "/home/mpietrek/work/var/lib/rabbit at mq1/PREVIOUS.LOG",
                     {log_header,trans_log,"4.3","4.7",rabbit at mq1,
                                 {1360,693808,799354}},

{file_error,"/home/mpietrek/work/var/lib/rabbit at mq1/PREVIOUS.LOG",
                                 enoent}}}

=ERROR REPORT==== 12-Feb-2013::10:30:18 ===
** Generic server mnesia_subscr terminating
** Last message in was {'EXIT',<0.129.0>,killed}
** When Server state == {state,<0.129.0>,131092}
** Reason for termination ==
** killed

=ERROR REPORT==== 12-Feb-2013::10:30:18 ===
** gen_event handler mnesia_event crashed.
** Was installed in mnesia_event
** Last event was: {mnesia_system_event,
                       {mnesia_info,"~p terminated: ~p~n",
                           [mnesia_recover,killed]}}
** When handler state == {state,[],false,[]}
** Reason == {terminated,
                 [{io,format,
                      [<0.125.0>,"Mnesia(~p): ~p terminated: ~p~n",
                       [rabbit at mq1,mnesia_recover,killed]],
                      []},
                  {mnesia_event,handle_system_event,2,
                      [{file,"mnesia_event.erl"},{line,160}]},
                  {mnesia_event,handle_call,2,
                      [{file,"mnesia_event.erl"},{line,77}]},
                  {gen_event,server_call_update,3,
                      [{file,"gen_event.erl"},{line,617}]},
                  {gen_event,server_call,4,
                      [{file,"gen_event.erl"},{line,566}]},
                  {gen_event,handle_msg,5,[{file,"gen_event.erl"},{line,258}]},
                  {proc_lib,init_p_do_apply,3,
                      [{file,"proc_lib.erl"},{line,227}]}]}

=ERROR REPORT==== 12-Feb-2013::10:30:18 ===
** gen_event handler rabbit_error_logger crashed.
** Was installed in error_logger
** Last event was: {error,<0.125.0>,
                       {<0.12681.17>,
                        "** gen_event handler ~p crashed.~n** Was
installed in ~p~n** Last event was: ~p~n** When handler state ==
~p~n** Reason == ~p~n",
                        [mnesia_event,mnesia_event,
                         {mnesia_system_event,
                             {mnesia_info,"~p terminated: ~p~n",
                                 [mnesia_recover,killed]}},
                         {state,[],false,[]},
                         {terminated,
                             [{io,format,
                                  [<0.125.0>,
                                   "Mnesia(~p): ~p terminated: ~p~n",
                                   [rabbit at mq1,mnesia_recover,killed]],
                                  []},
                              {mnesia_event,handle_system_event,2,
                                  [{file,"mnesia_event.erl"},{line,160}]},
                              {mnesia_event,handle_call,2,
                                  [{file,"mnesia_event.erl"},{line,77}]},
                              {gen_event,server_call_update,3,
                                  [{file,"gen_event.erl"},{line,617}]},
                              {gen_event,server_call,4,
                                  [{file,"gen_event.erl"},{line,566}]},
                              {gen_event,handle_msg,5,
                                  [{file,"gen_event.erl"},{line,258}]},
                              {proc_lib,init_p_do_apply,3,
                                  [{file,"proc_lib.erl"},{line,227}]}]}]}}
** When handler state == {resource,<<"/">>,exchange,<<"amq.rabbitmq.log">>}
** Reason == {badarg,[{ets,lookup,
                           [rabbit_exchange,
                            {resource,<<"/">>,exchange,
                                      <<"amq.rabbitmq.log">>}],
                           []},
                      {rabbit_misc,dirty_read,1,[]},
                      {rabbit_basic,publish,1,[]},
                      {rabbit_error_logger,publish1,4,[]},
                      {rabbit_error_logger,handle_event,2,[]},
                      {gen_event,server_update,4,
                                 [{file,"gen_event.erl"},{line,504}]},
                      {gen_event,server_notify,4,
                                 [{file,"gen_event.erl"},{line,486}]},
                      {gen_event,handle_msg,5,
                                 [{file,"gen_event.erl"},{line,248}]}]}

=INFO REPORT==== 12-Feb-2013::10:30:18 ===
    application: mnesia
    exited: shutdown
    type: temporary


=ERROR REPORT==== 12-Feb-2013::10:30:18 ===
** Generic server <0.12822.13> terminating
** Last message in was {'$gen_cast',
                           {method,
                               {'basic.get',0,<<"charon">>,false},
                               none,noflow}}
** When Server state == {ch,running,rabbit_framing_amqp_0_9_1,1,<0.12816.13>,
                            <0.12820.13>,<0.12816.13>,
                            <<"192.168.78.21:38843 -> 192.168.78.16:5672">>,
                            {token,<0.12821.13>,false},
                            in_progress,1,
                            {[],[]},
                            {[],[]},
                            [],[],
                            {user,<<"guest">>,
                                [administrator],
                                rabbit_auth_backend_internal,
                                {internal_user,<<"guest">>,
                                    <<93,38,120,113,16,14,172,225,248,216,74,
                                      218,230,161,150,138,14,49,216,172>>,
                                    [administrator]}},
                            <<"/">>,<<>>,
                            {dict,0,16,16,8,80,48,
                                {[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],
                                 []},
                                {{[],[],[],[],[],[],[],[],[],[],[],[],[],[],
                                  [],[]}}},
                            {dict,0,16,16,8,80,48,
                                {[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],
                                 []},
                                {{[],[],[],[],[],[],[],[],[],[],[],[],[],[],
                                  [],[]}}},
                            {set,0,16,16,8,80,48,
                                {[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],
                                 []},
                                {{[],[],[],[],[],[],[],[],[],[],[],[],[],[],
                                  [],[]}}},
                            {dict,0,16,16,8,80,48,
                                {[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],
                                 []},
                                {{[],[],[],[],[],[],[],[],[],[],[],[],[],[],
                                  [],[]}}},
                            {set,0,16,16,8,80,48,
                                {[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],
                                 []},
                                {{[],[],[],[],[],[],[],[],[],[],[],[],[],[],
                                  [],[]}}},
                            <0.12814.13>,
                            {state,fine,5000,#Ref<0.0.46.55948>},
                            false,1,
                            {{0,nil},{0,nil}},
                            [],
                            [{<<"consumer_cancel_notify">>,bool,true},
                             {<<"publisher_confirms">>,bool,true},
                             {<<"basic.nack">>,bool,true}],
                            none}
** Reason for termination ==
** {badarg,[{ets,lookup,
                 [rabbit_queue,{resource,<<"/">>,queue,<<"charon">>}],
                 []},
            {rabbit_misc,dirty_read,1,[]},
            {rabbit_amqqueue,with,3,[]},
            {rabbit_channel,handle_method,3,[]},
            {rabbit_channel,handle_cast,2,[]},
            {gen_server2,handle_msg,2,[]},
            {proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,227}]}]}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20130212/564742e4/attachment.htm>


More information about the rabbitmq-discuss mailing list