[rabbitmq-discuss] [rabbitmq-dscuss] Is it possible to recover from crash, "{corrupt_log_file, .}"

Mark Geib mark.geib at echostar.com
Wed Jul 29 17:21:48 BST 2009


I have created durable queues and exchanges, and are publishing 
persistent message to test "robustness". I successufully stopped/started 
rabbitmq a number of times without data loss. Then I pulled power on the 
server and rabbitmq will not start. I get

cat /var/log/rabbitmq/startup_log
Starting all nodes...
Starting node rabbit at bilbo-gr...
RabbitMQ 1.5.5 (AMQP 8-0)
Copyright (C) 2007-2009 LShift Ltd., Cohesive Financial Technologies 
LLC., and Rabbit Technologies Ltd.
Licensed under the MPL.  See http://www.rabbitmq.com/

node        : rabbit at bilbo-gr
log         : /var/log/rabbitmq/rabbit.log
sasl log    : /var/log/rabbitmq/rabbit-sasl.log
database dir: /var/lib/rabbitmq/mnesia/rabbit

starting database             ...done
starting core processes       ...done
starting recovery             ...done
starting persister            ...{"init terminating in 
do_boot",{{nocatch,{error,{cannot_start_application,rabbit,{bad_return,{{rabbit,start,[normal,[]]},{'EXIT',{{badmatch,{error,{{function_clause,[{rabbit_persister,replay,[{corrupt_log_file,"/var/lib/rabbitmq/mnesia/rabbit/rabbit_persister.LOG"},rabbit_persister,error,{psnapshot,1,{dict,0,16,16,8,80,48,{[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[]},{{[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[]}}},249901,253998}]},{rabbit_persister,internal_load_snapshot,2},{rabbit_persister,init,1},{gen_server,init_it,6},{proc_lib,init_p_do_apply,3}]},{child,undefined,rabbit_persister,{rabbit_persister,start_link,[]},transient,100,worker,[rabbit_persister]}}}},[{rabbit,start_child,1},{rabbit,'-start/2-fun-4-',0},{rabbit,'-start/2-fun-0-',1},{lists,foreach,2},{rabbit,start,2},{application_master,start_it_old,4}]}}}}}}},[{init,start_it,1},{init,start_em,1}]}}
geib at bilbo-gr:~$ cat /var/log/rabbitmq/startup_err
Erlang has closed
Error: {node_start_failed,normal}

Is it possible to recover from this state.?? Or, things I can do to make 
recovery from hard crash possible.??

Thanks,
Mark.



-- 
Principal Engineer
Cheyenne Software Engineering
mark.geib at echostar.com / 35-215

PGP fingerprint:6DFC 389D 9796 0188 92E5 58F5 34C5 6B47 D091 76FD




More information about the rabbitmq-discuss mailing list