gpt4 book ai didi

java - Rabbitmq 服务器启动失败,文件被锁定

转载 作者:搜寻专家 更新时间:2023-10-31 19:32:08 24 4
gpt4 key购买 nike

Rabbitmq 3.6.5 启动失败。如何解决?

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)

最佳答案

您在数据库升级过程中遇到了问题,查看日志会很有趣

顺便说一句,要快速解决问题,只需删除您的 mnesia 目录即可。

该目录通常位于/var/lib/rabbitmq/mnesia ,检查here了解详情。

注意

通过删除 mnesia 目录,您将丢失所有消息

关于java - Rabbitmq 服务器启动失败,文件被锁定,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41294754/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com