[rabbitmq-discuss] rabbit,failure_during_boot

Tiziana Stoesselli tiziana.stoesselli at gmail.com
Tue Dec 17 11:31:51 GMT 2013


On 09/12/2013 15:50, Tiziana Stoesselli wrote:

>                   [{rabbit_queue_index,parse_pub_record_body,
>                        [<<0,0,0,0,0,0,0,0>>]},
>                    {rabbit_queue_index,load_journal_entries,1},
>

The queue index has ended up with a whole load of zeroes appended to it.

We've seen this happen a few times, usually associated with OS crashes or 
power loss or similar.

We changed the queue index file format to be more resilient to this sort of 
corruption in 3.2.0. I'm not sure if there's anything you can do though if 
you've already got a corrupt file with an older version of RabbitMQ apart 
from reset the node and start again.

Cheers, Simon

Il giorno lunedì 9 dicembre 2013 16:50:04 UTC+1, Tiziana Stoesselli ha 
scritto:
>
> Anyone can help me?
>
> Activating RabbitMQ plugins ...
> 0 plugins activated:
>
>
> +---+   +---+
> |   |   |   |
> |   |   |   |
> |   |   |   |
> |   +---+   +-------+
> |                   |
> | RabbitMQ  +---+   |
> |           |   |   |
> |   v2.8.4  +---+   |
> |                   |
> +-------------------+
> AMQP 0-9-1 / 0-9 / 0-8
> Copyright (C) 2007-2012 VMware, Inc.
> Licensed under the MPL.  See http://www.rabbitmq.com/
>
> node           : Name at zenossoc
> app descriptor : 
> /usr/lib/rabbitmq/lib/rabbitmq_server-2.8.4/sbin/../ebin/rabbit.app
> home dir       : /var/lib/rabbitmq
> config file(s) : (none)
> cookie hash    : otG5wqMg04+qfhmRCVkglQ==
> log            : /var/log/rabbitmq/Name.log
> sasl log       : /var/log/rabbitmq/Name-sasl.log
> database dir   : /var/lib/rabbitmq/mnesia/Name
> erlang version : 5.8.5
>
> -- rabbit boot start
> starting file handle cache server                                     
> ...done
> starting worker pool                                                  
> ...done
> starting database                                                     
> ...done
> starting database sync                                                
> ...done
> starting codec correctness check                                      
> ...done
> -- external infrastructure ready
> starting plugin registry                                              
> ...done
> starting auth mechanism cr-demo                                       
> ...done
> starting auth mechanism amqplain                                      
> ...done
> starting auth mechanism plain                                         
> ...done
> starting statistics event manager                                     
> ...done
> starting logging server                                               
> ...done
> starting exchange type direct                                         
> ...done
> starting exchange type fanout                                         
> ...done
> starting exchange type headers                                        
> ...done
> starting exchange type topic                                          
> ...done
> -- kernel ready
> starting alarm handler                                                
> ...done
> starting node monitor                                                 
> ...done
> starting cluster delegate                                             
> ...done
> starting guid generator                                               
> ...done
> starting memory monitor                                               
> ...done
> -- core initialized
> starting empty DB check                                               
> ...done
> starting exchange, queue and binding recovery                         ...
>
> BOOT FAILED
> ===========
>
> Error description:
>    {badmatch,
>        {error,
>            {{{function_clause,
>                  [{rabbit_queue_index,parse_pub_record_body,
>                       [<<0,0,0,0,0,0,0,0>>]},
>                   {rabbit_queue_index,load_journal_entries,1},
>                   {rabbit_queue_index,recover_journal,1},
>                   {rabbit_queue_index,scan_segments,3},
>                   {rabbit_queue_index,queue_index_walker_reader,2},
>                   {rabbit_queue_index,'-queue_index_walker/1-fun-0-',2},
>                   {worker_pool_worker,handle_cast,2},
>                   {gen_server2,handle_msg,2}]},
>              {gen_server2,call,[<0.184.0>,out,infinity]}},
>             {child,undefined,msg_store_persistent,
>                 {rabbit_msg_store,start_link,
>                     
> [msg_store_persistent,"/var/lib/rabbitmq/mnesia/Name",[],
>                      {#Fun<rabbit_queue_index.2.89252852>,
>                       {start,
>                           [{resource,<<"/zenoss">>,queue,
>                                <<"zenoss.queues.zep.heartbeats">>},
>                            {resource,<<"/zenoss">>,queue,
>                                <<"zenoss.queues.zep.migrated.archive">>},
>                            {resource,<<"/zenoss">>,queue,
>                                <<"zenoss.queues.zep.zenevents">>},
>                            {resource,<<"/zenoss">>,queue,<<"celery">>},
>                            {resource,<<"/zenoss">>,queue,
>                                <<"zenoss.queues.zep.modelchange">>},
>                            {resource,<<"/zenoss">>,queue,
>                                <<"zenoss.queues.zep.rawevents">>},
>                            {resource,<<"/zenoss">>,queue,
>                                <<"zenoss.queues.zep.migrated.summary">>},
>                            {resource,<<"/zenoss">>,queue,
>                                <<"zenoss.queues.zep.signal">>}]}}]},
>                 transient,4294967295,worker,
>                 [rabbit_msg_store]}}}}
>
> Log files (may contain more information):
>    /var/log/rabbitmq/Name.log
>    /var/log/rabbitmq/Name-sasl.log
>
> Stack trace:
>    [{rabbit_variable_queue,start_msg_store,2},
>     {rabbit_amqqueue,start,0},
>     {rabbit,recover,0},
>     {rabbit,'-run_boot_step/1-lc$^1/1-1-',1},
>     {rabbit,run_boot_step,1},
>     {rabbit,'-start/2-lc$^0/1-0-',1},
>     {rabbit,start,2},
>     {application_master,start_it_old,4}]
>
> {"Kernel pid 
> terminated",application_controller,"{application_start_failure,rabbit,{bad_return,{{rabbit,start,[normal,[]]},{'EXIT',{rabbit,failure_during_boot}}}}}"}
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20131217/464dfa9a/attachment.html>


More information about the rabbitmq-discuss mailing list