<div dir="ltr"><p>I'm getting error messages like this from the server. Nothing works till I restart the broker:</p><p><br></p><p>Got response code 500 with body </p><h1>Internal Server Error</h1>The server encountered an error while processing this request:<br>
<pre>{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,[]}]}<br><br><br><br></pre><pre><span style="font-family:arial,helvetica,sans-serif">The rabbit@<host>.log file from around the time shows:</span><br><br>=ERROR REPORT==== 12-Feb-2013::10:30:08 ===<br>
Mnesia(rabbit@mq1): ** ERROR ** (core dumped to file: "/home/mpietrek/MnesiaCore.rabbit@mq1_1360_693808_817246")<br> ** FATAL ** {error,{"Cannot rename disk_log file",latest_log,<br> "/home/mpietrek/work/var/lib/rabbit@mq1/PREVIOUS.LOG",<br>
{log_header,trans_log,"4.3","4.7",rabbit@mq1,<br> {1360,693808,799354}},<br> {file_error,"/home/mpietrek/work/var/lib/rabbit@mq1/PREVIOUS.LOG",<br>
enoent}}}<br><br>=ERROR REPORT==== 12-Feb-2013::10:30:18 ===<br>** Generic server mnesia_subscr terminating <br>** Last message in was {'EXIT',<0.129.0>,killed}<br>** When Server state == {state,<0.129.0>,131092}<br>
** Reason for termination == <br>** killed<br><br>=ERROR REPORT==== 12-Feb-2013::10:30:18 ===<br>** gen_event handler mnesia_event crashed.<br>** Was installed in mnesia_event<br>** Last event was: {mnesia_system_event,<br>
{mnesia_info,"~p terminated: ~p~n",<br> [mnesia_recover,killed]}}<br>** When handler state == {state,[],false,[]}<br>** Reason == {terminated,<br> [{io,format,<br>
[<0.125.0>,"Mnesia(~p): ~p terminated: ~p~n",<br> [rabbit@mq1,mnesia_recover,killed]],<br> []},<br> {mnesia_event,handle_system_event,2,<br>
[{file,"mnesia_event.erl"},{line,160}]},<br> {mnesia_event,handle_call,2,<br> [{file,"mnesia_event.erl"},{line,77}]},<br> {gen_event,server_call_update,3,<br>
[{file,"gen_event.erl"},{line,617}]},<br> {gen_event,server_call,4,<br> [{file,"gen_event.erl"},{line,566}]},<br> {gen_event,handle_msg,5,[{file,"gen_event.erl"},{line,258}]},<br>
{proc_lib,init_p_do_apply,3,<br> [{file,"proc_lib.erl"},{line,227}]}]}<br><br>=ERROR REPORT==== 12-Feb-2013::10:30:18 ===<br>** gen_event handler rabbit_error_logger crashed.<br>
** Was installed in error_logger<br>** Last event was: {error,<0.125.0>,<br> {<0.12681.17>,<br> "** gen_event handler ~p crashed.~n** Was installed in ~p~n** Last event was: ~p~n** When handler state == ~p~n** Reason == ~p~n",<br>
[mnesia_event,mnesia_event,<br> {mnesia_system_event,<br> {mnesia_info,"~p terminated: ~p~n",<br> [mnesia_recover,killed]}},<br>
{state,[],false,[]},<br> {terminated,<br> [{io,format,<br> [<0.125.0>,<br> "Mnesia(~p): ~p terminated: ~p~n",<br>
[rabbit@mq1,mnesia_recover,killed]],<br> []},<br> {mnesia_event,handle_system_event,2,<br> [{file,"mnesia_event.erl"},{line,160}]},<br>
{mnesia_event,handle_call,2,<br> [{file,"mnesia_event.erl"},{line,77}]},<br> {gen_event,server_call_update,3,<br> [{file,"gen_event.erl"},{line,617}]},<br>
{gen_event,server_call,4,<br> [{file,"gen_event.erl"},{line,566}]},<br> {gen_event,handle_msg,5,<br> [{file,"gen_event.erl"},{line,258}]},<br>
{proc_lib,init_p_do_apply,3,<br> [{file,"proc_lib.erl"},{line,227}]}]}]}}<br>** When handler state == {resource,<<"/">>,exchange,<<"amq.rabbitmq.log">>}<br>
** Reason == {badarg,[{ets,lookup,<br> [rabbit_exchange,<br> {resource,<<"/">>,exchange,<br> <<"amq.rabbitmq.log">>}],<br>
[]},<br> {rabbit_misc,dirty_read,1,[]},<br> {rabbit_basic,publish,1,[]},<br> {rabbit_error_logger,publish1,4,[]},<br> {rabbit_error_logger,handle_event,2,[]},<br>
{gen_event,server_update,4,<br> [{file,"gen_event.erl"},{line,504}]},<br> {gen_event,server_notify,4,<br> [{file,"gen_event.erl"},{line,486}]},<br>
{gen_event,handle_msg,5,<br> [{file,"gen_event.erl"},{line,248}]}]}<br><br>=INFO REPORT==== 12-Feb-2013::10:30:18 ===<br> application: mnesia<br> exited: shutdown<br>
type: temporary<br><br><br>=ERROR REPORT==== 12-Feb-2013::10:30:18 ===<br>** Generic server <0.12822.13> terminating<br>** Last message in was {'$gen_cast',<br> {method,<br> {'basic.get',0,<<"charon">>,false},<br>
none,noflow}}<br>** When Server state == {ch,running,rabbit_framing_amqp_0_9_1,1,<0.12816.13>,<br> <0.12820.13>,<0.12816.13>,<br> <<"<a href="http://192.168.78.21:38843">192.168.78.21:38843</a> -> <a href="http://192.168.78.16:5672">192.168.78.16:5672</a>">>,<br>
{token,<0.12821.13>,false},<br> in_progress,1,<br> {[],[]},<br> {[],[]},<br> [],[],<br>
{user,<<"guest">>,<br> [administrator],<br> rabbit_auth_backend_internal,<br> {internal_user,<<"guest">>,<br>
<<93,38,120,113,16,14,172,225,248,216,74,<br> 218,230,161,150,138,14,49,216,172>>,<br> [administrator]}},<br>
<<"/">>,<<>>,<br> {dict,0,16,16,8,80,48,<br> {[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],<br> []},<br>
{{[],[],[],[],[],[],[],[],[],[],[],[],[],[],<br> [],[]}}},<br> {dict,0,16,16,8,80,48,<br> {[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],<br>
[]},<br> {{[],[],[],[],[],[],[],[],[],[],[],[],[],[],<br> [],[]}}},<br> {set,0,16,16,8,80,48,<br>
{[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],<br> []},<br> {{[],[],[],[],[],[],[],[],[],[],[],[],[],[],<br> [],[]}}},<br>
{dict,0,16,16,8,80,48,<br> {[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],<br> []},<br> {{[],[],[],[],[],[],[],[],[],[],[],[],[],[],<br>
[],[]}}},<br> {set,0,16,16,8,80,48,<br> {[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],<br> []},<br>
{{[],[],[],[],[],[],[],[],[],[],[],[],[],[],<br> [],[]}}},<br> <0.12814.13>,<br> {state,fine,5000,#Ref<0.0.46.55948>},<br>
false,1,<br> {{0,nil},{0,nil}},<br> [],<br> [{<<"consumer_cancel_notify">>,bool,true},<br>
{<<"publisher_confirms">>,bool,true},<br> {<<"basic.nack">>,bool,true}],<br> none}<br>** Reason for termination == <br>
** {badarg,[{ets,lookup,<br> [rabbit_queue,{resource,<<"/">>,queue,<<"charon">>}],<br> []},<br> {rabbit_misc,dirty_read,1,[]},<br> {rabbit_amqqueue,with,3,[]},<br>
{rabbit_channel,handle_method,3,[]},<br> {rabbit_channel,handle_cast,2,[]},<br> {gen_server2,handle_msg,2,[]},<br> {proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,227}]}]}<br>
<br><br></pre><pre><br></pre></div>