Rabbitmq server start failed with file locked

喜你入骨 提交于 2019-12-23 09:04:41

问题


Rabbitmq 3.6.5 start failed with this. How to fix it?

BOOT FAILED
   ===========

   Error description:    "Found lock file at ~s.\n            Either previous upgrade is in progress or has failed.\n            Database
   backup path: ~s"

   Log files (may contain more information):   
   /var/log/rabbitmq/rabbit@vm-10-111-29-211.log   
   /var/log/rabbitmq/rabbit@vm-10-111-29-211-sasl.log

   Stack trace:    [{rabbit_upgrade,ensure_backup_taken,
       ["/var/lib/rabbitmq/mnesia/rabbit@vm-10-111-29-211/schema_upgrade_lock", "/var/lib/rabbitmq/mnesia/rabbit@vm-10-111-29-211-upgrade-backup"],
       [{file,"src/rabbit_upgrade.erl"},{line,101}]},
       {rabbit_upgrade,maybe_upgrade_mnesia,0,
                       [{file,"src/rabbit_upgrade.erl"},{line,144}]},
       {rabbit,'-boot/0-fun-0-',0,[{file,"src/rabbit.erl"},{line,271}]},
       {rabbit,start_it,1,[{file,"src/rabbit.erl"},{line,403}]},
       {init,start_it,1,[]},
       {init,start_em,1,[]}]

   {"init terminating in do_boot","Found lock file at ~s.\n           
   Either previous upgrade is in progress or has failed.\n           
   Database backup path: ~s"}

   Crash dump was written to: erl_crash.dump init terminating in do_boot
   (Found lock file at ~s.
               Either previous upgrade is in progress or has failed.
               Database backup path: ~s)

回答1:


you have had a problem during the database upgrade, it would be interesting see what happened checking the logs

BTW To solve quickly the problem is enough to remove your mnesia directory.

The directory is usually located in /var/lib/rabbitmq/mnesia , check here for detail.

NOTE

By removing the mnesia directory you will lose all your messages



来源:https://stackoverflow.com/questions/41294754/rabbitmq-server-start-failed-with-file-locked

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!