[rabbitmq-discuss] Diagnosing a problem
Matthias Radestock
matthias at lshift.net
Wed Jul 29 02:18:56 BST 2009
Bryan,
Bryan Murphy wrote:
> This was in my rabbitmq startup error log: [...] 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,{[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[]},{{[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[]}}},192,193}]},{rabbit_persister,internal_load_snapshot,2},{rabbit_persister,init,1},{gen_server,init_it,6},{proc_lib,init_p,5}]},{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}]}}
Interesting! A corrupted persister log file. I don't think we've seen
that particular error before.
Do you still have that file? Also, is there a .previous file in the same
dir? If so, replacing the corrupted file with the .previous file would
probably allow you to recover the messages.
The replacing really should happen automatically. This has been
discussed as a possible enhancement on the mailing list before, but the
new persister is going to be ready soon, so we are not planning any
enhancements to the old one.
Regards,
Matthias
More information about the rabbitmq-discuss
mailing list