Hello,<br><br>I am using a persistent queue to store different URL. After a crash of the Rabbitmq server, I tried to restart it but it get stuck on the step of recovering the different exchanges, queues and bindings. I have checked in /msg_store_persistent directory of the node and it seems the data are still here.<br>
<br>So here little information about my configuration:<br>I am using Ubuntu 10.04 64-bit and Rabbitmq 2.7.0<br><br>Here is a copy of the startup_log :<br><div style="margin-left: 40px;">-- rabbit boot start<br>starting file handle cache server ...done<br>
starting worker pool ...done<br>starting database ...done<br>starting codec correctness check ...done<br>
-- external infrastructure ready<br>starting plugin registry ...done<br>starting auth mechanism cr-demo ...done<br>starting auth mechanism amqplain ...done<br>
starting auth mechanism plain ...done<br>starting statistics event manager ...done<br>starting logging server ...done<br>
starting exchange type direct ...done<br>starting exchange type fanout ...done<br>starting exchange type headers ...done<br>
starting exchange type topic ...done<br>-- kernel ready<br>starting alarm handler ...done<br>starting node monitor ...done<br>
starting cluster delegate ...done<br>starting guid generator ...done<br>starting memory monitor ...done<br>
-- core initialized<br>starting empty DB check ...done<br>starting management agent ...done<br>starting exchange, queue and binding recovery ...<br>
</div><br><br>And here is a copy of the crash report on start:<br><div style="margin-left: 40px;">=CRASH REPORT==== 28-Nov-2011::09:09:36 ===<br> crasher:<br> initial call: gen:init_it/6<br> pid: <0.155.0><br>
registered_name: []<br> exception exit: {{badmatch,eof},<br> [{rabbit_queue_index,load_segment,2},<br> {rabbit_queue_index,segment_entries_foldr,3},<br> {rabbit_queue_index,<br>
'-queue_index_walker_reader/2-lc$^0/1-0-',4},<br> {rabbit_queue_index,queue_index_walker_reader,2},<br> {worker_pool_worker,handle_cast,2},<br> {gen_server2,handle_msg,2},<br>
{proc_lib,init_p_do_apply,3}]}<br> in function gen_server2:terminate/3<br> ancestors: [worker_pool_sup,rabbit_sup,<0.136.0>]<br> messages: []<br> links: [#Port<0.4788>,<0.151.0>,#Port<0.4724>]<br>
dictionary: [{{"/var/lib/rabbitmq/mnesia/rabbit@curtiz/queues/67BZ7QWHYIY1S405V2E0881G9/journal.jif",<br> fhc_file},<br> {file,1,true}},<br> {{xtype_to_module,topic},rabbit_exchange_type_topic},<br>
{{#Ref<0.0.0.556>,fhc_handle},<br> {handle,{file_descriptor,prim_file,{#Port<0.4724>,15}},<br> 0,false,0,infinity,[],true,<br> "/var/lib/rabbitmq/mnesia/rabbit@curtiz/queues/67BZ7QWHYIY1S405V2E0881G9/journal.jif",<br>
[write,binary,raw,read],<br> [{write_buffer,infinity}],<br> true,true,<br> {1322,500175,181273}}},<br> {worker_pool_worker,true},<br>
{{#Ref<0.0.0.79730>,fhc_handle},<br> {handle,{file_descriptor,prim_file,{#Port<0.4788>,17}},<br> 0,false,0,0,[],true,<br> "/var/lib/rabbitmq/mnesia/rabbit@curtiz/queues/67BZ7QWHYIY1S405V2E0881G9/37.idx",<br>
[{read_ahead,491520},binary,raw,read],<br> [],false,true,<br> {1322,500176,916570}}},<br> {fhc_age_tree,{2,<br> {{1322,500175,181273},<br>
#Ref<0.0.0.556>,nil,<br> {{1322,500176,916570},<br> #Ref<0.0.0.79730>,nil,nil}}}},<br> {{"/var/lib/rabbitmq/mnesia/rabbit@curtiz/queues/67BZ7QWHYIY1S405V2E0881G9/37.idx",<br>
fhc_file},<br> {file,1,false}}]<br> trap_exit: false<br> status: running<br> heap_size: 514229<br><br><br></div>And finally the crash report itself:<br><div style="margin-left: 40px;">
=SUPERVISOR REPORT==== 23-Nov-2011::17:36:29 ===<br> Supervisor: {<0.1220.149>,<br> rabbit_channel_sup_sup}<br> Context: shutdown_error<br> Reason: shutdown<br>
Offender: [{pid,<0.1222.149>},<br> {name,channel_sup},<br> {mfa,{rabbit_channel_sup,start_link,[]}},<br> {restart_type,temporary},<br> {shutdown,infinity},<br>
{child_type,supervisor}]<br></div><br><div style="margin-left: 40px;"><br></div>Can anyone help me to recover the messages in the queue ?<br><br>Payet P<br><br>