4

更新的错误信息

每次尝试启动 rabbitmq 服务器时,我都会收到 BOOT FAILED 错误。有人知道我该如何解决这个问题吗?我已附上错误消息。我尝试了一些不同的方法,包括卸载和重新安装它,现在收到一条新的错误消息,但不知道接下来要尝试什么。任何建议都非常感谢!谢谢!!

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

Error description:
  {error,
      {schema_integrity_check_failed,
          [{table_missing,rabbit_exchange_serial},
           {table_missing,rabbit_runtime_parameters},
           {table_missing,rabbit_durable_queue},
           {table_missing,rabbit_queue},
           {table_missing,gm_group},
           {table_missing,mirrored_sup_childspec}]}}

Log files (may contain more information):
  /usr/local/var/log/rabbitmq/rabbit@localhost.log
  /usr/local/var/log/rabbitmq/rabbit@localhost-sasl.log

Stack trace:
  [{rabbit_mnesia,ensure_schema_integrity,0,
                  [{file,"src/rabbit_mnesia.erl"},{line,519}]},
   {rabbit_mnesia,init_db,3,[{file,"src/rabbit_mnesia.erl"},{line,450}]},
   {rabbit_mnesia,init_db_and_upgrade,3,
                  [{file,"src/rabbit_mnesia.erl"},{line,458}]},
   {rabbit_mnesia,init,0,[{file,"src/rabbit_mnesia.erl"},{line,99}]},
   {rabbit,'-run_boot_step/1-lc$^1/1-1-',1,
           [{file,"src/rabbit.erl"},{line,488}]},
   {rabbit,run_boot_step,1,[{file,"src/rabbit.erl"},{line,487}]},
   {rabbit,'-start/2-lc$^0/1-0-',1,[{file,"src/rabbit.erl"},{line,453}]},
   {rabbit,start,2,[{file,"src/rabbit.erl"},{line,453}]}]



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

Error description:
  {could_not_start,rabbit,
      {bad_return,
          {{rabbit,start,[normal,[]]},
           {'EXIT',
               {rabbit,failure_during_boot,
                   {error,
                       {schema_integrity_check_failed,
                           [{table_missing,rabbit_exchange_serial},
                            {table_missing,rabbit_runtime_parameters},
                            {table_missing,rabbit_durable_queue},
                            {table_missing,rabbit_queue},
                            {table_missing,gm_group},
                            {table_missing,mirrored_sup_childspec}]}}}}}}}

Log files (may contain more information):
  /usr/local/var/log/rabbitmq/rabbit@localhost.log
  /usr/local/var/log/rabbitmq/rabbit@localhost-sasl.log

{"init terminating in do_boot",{rabbit,failure_during_boot,{could_not_start,rabbit,{bad_return,{{rabbit,start,[normal,[]]},{'EXIT',{rabbit,failure_during_boot,{error,{schema_integrity_check_failed,[{table_missing,rabbit_exchange_serial},{table_missing,rabbit_runtime_parameters},{table_missing,rabbit_durable_queue},{table_missing,rabbit_queue},{table_missing,gm_group},{table_missing,mirrored_sup_childspec}]}}}}}}}}}

Crash dump was written to: erl_crash.dump
init terminating in do_boot ()
4

3 回答 3

9

我不知道rabbitmq是如何工作的,但是错误信息看起来很清楚:它试图删除目录/usr/local/var/lib/rabbitmq/mnesia/rabbit@localhost-plugins-expand,并且由于进程有nt而失败删除文件 /usr/local/var/lib/rabbitmq/mnesia/rabbit@localhost-plugins-expand/amqp_client-3.1.3/ebin/amqp_auth_mechanisms.beam 的访问权限。

看看谁是这个文件和目录的所有者,他们的访问权限是什么。

于 2013-07-02T06:14:02.647 回答
1

这发生在我用 brew 升级 rabbitmq 的过程中。

将目录全部删除并从头开始安装对我来说更容易。

sudo rm -rf /usr/local/var/rabbitmq/
brew uninstall rabbitmq; 
brew install rabbitmq
rabbitmq-server
于 2014-07-31T15:02:22.887 回答
0

得到这个工作。只需删除数据库目录并重新启动服务器。请注意,如果您安装了 brew,则数据库可能仍位于 Cellar 目录之外。所以需要手动删除目录并重启。

于 2014-10-08T13:54:51.833 回答