RabbitMQ服务器错误

8fsztsew  于 2022-11-08  发布在  RabbitMQ
关注(0)|答案(3)|浏览(293)

已更新的错误消息
每次我尝试启动rabbitmq服务器时,我都会收到一个启动失败的错误。有人知道我该如何修复这个错误吗?我已经附上了错误信息。我已经尝试了一些不同的方法,包括卸载和重新安装它,现在收到一个新的错误信息,但我不知道下一步该怎么做。非常感谢您的任何建议!!

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 ()
n3schb8v

n3schb8v1#

我不知道rabbitmq是如何工作的,但错误信息看起来很清楚:它尝试删除目录/usr/local/var/lib/rabbitmq/mnesia/rabbit@本地主机插件扩展,并且失败,因为该进程没有删除文件/usr/local/var/lib/rabbitmq/mnesia/rabbit@本地主机插件扩展/amqp_client-3.1.3/ebin/amqp_auth_mechanisms. beam的访问权限。
看看谁是这个文件和目录的所有者,对它们有什么访问权限。

ffscu2ro

ffscu2ro2#

这发生在我用brew升级rabbitmq的时候。
对我来说,只需将目录全部删除,然后从头开始安装就更容易了。

sudo rm -rf /usr/local/var/rabbitmq/
brew uninstall rabbitmq; 
brew install rabbitmq
rabbitmq-server
vwkv1x7d

vwkv1x7d3#

让这个工作。只要删除数据库目录并重新启动服务器。注意,如果你安装了brew,数据库可能仍然在Cellar目录之外。所以需要手动删除目录并重新启动。

相关问题