Start of Rabbitmq launch

My RabbitMQ server has gone down and cannot be restarted. I tried to restart, reinstall it ... I still do not understand the error. This is what I get

BOOT FAILED =========== Error description: {could_not_start,rabbit, {bad_return, {{rabbit,start,[normal,[]]}, {'EXIT', {rabbit,failure_during_boot, {badmatch, {error, {{{function_clause, [{rabbit_queue_index,journal_minus_segment1, [{no_pub,del,no_ack}, {{<<115,254,171,167,171,226,110,171,251,38,217,145,3,12,215,151>>, {message_properties,1409712663123302,false}, true}, del,ack}], [{file,"src/rabbit_queue_index.erl"},{line,989}]}, {rabbit_queue_index,'-journal_minus_segment/2-fun-0-',4, [{file,"src/rabbit_queue_index.erl"},{line,973}]}, {array,sparse_foldl_3,7,[{file,"array.erl"},{line,1675}]}, {array,sparse_foldl_2,9,[{file,"array.erl"},{line,1669}]}, {rabbit_queue_index,'-recover_journal/1-fun-0-',1, [{file,"src/rabbit_queue_index.erl"},{line,701}]}, {lists,map,2,[{file,"lists.erl"},{line,1224}]}, {rabbit_queue_index,segment_map,2, [{file,"src/rabbit_queue_index.erl"},{line,819}]}, {rabbit_queue_index,recover_journal,1, [{file,"src/rabbit_queue_index.erl"},{line,693}]}]}, {gen_server2,call,[<0.186.0>,out,infinity]}}, {child,undefined,msg_store_persistent, {rabbit_msg_store,start_link, [msg_store_persistent, "/var/lib/rabbitmq/mnesia/ rabbit@host ",[], {#Fun<rabbit_queue_index.2.132977059>, {start, [{resource,<<"/">>,queue, <<"photos_to_be_tagged_user_36">>}]}}]}, transient,4294967295,worker, [rabbit_msg_store]}}}}}}}}} 

Can anyone help with this?

Thank you so much

+7
rabbitmq
source share
2 answers

For anyone else looking for this error, rabbit, fail_during_boot,

 {badmatch, {error, {{{function_clause, [{rabbit_queue_index,journal_minus_segment1, ... 

I just looked at the same problem and what helped went to the mnesia directories and deleted the queues and msg_store_transient directories.

From what I understand, what happens is that you end up with a bad db queue (for some reason - for example, a sudden power failure, some other process is affecting the files) that rabbitmq cannot parse, and therefore it crashes. Once you clear the message queue, it works fine.

+12
source share

I ran into the same problem and it helped me.

The Mnesia files in the questions were in /var/lib/rabbitmq/ .

+3
source share

All Articles