rabbitmq启动异常table_attributes_mismatch

时间:2023-03-10 03:52:28
rabbitmq启动异常table_attributes_mismatch

rabbitmq启动异常table_attributes_mismatch

2017年01月09日 16:57:50 growithus 阅读数:18
  1. [root@localhost rabbitmq]# rabbitmq-server start
  2. RabbitMQ 3.6.6. Copyright (C) 2007-2016 Pivotal Software, Inc.
  3. ## ## Licensed under the MPL. See http://www.rabbitmq.com/
  4. ## ##
  5. ########## Logs: /var/log/rabbitmq/rabbit@localhost.log
  6. ###### ## /var/log/rabbitmq/rabbit@localhost-sasl.log
  7. ##########
  8. Starting broker...
  9. BOOT FAILED
  10. ===========
  11. Error description:
  12. {could_not_start,rabbit,
  13. {{schema_integrity_check_failed,
  14. [{table_attributes_mismatch,rabbit_queue,
  15. [name,durable,auto_delete,exclusive_owner,arguments,pid,
  16. slave_pids,sync_slave_pids,recoverable_slaves,policy,
  17. gm_pids,decorators,state,policy_version],
  18. [name,durable,auto_delete,exclusive_owner,arguments,pid,
  19. slave_pids,sync_slave_pids,mirror_nodes,policy]}]},
  20. {rabbit,start,[normal,[]]}}}
  21. Log files (may contain more information):
  22. /var/log/rabbitmq/rabbit@localhost.log
  23. /var/log/rabbitmq/rabbit@localhost-sasl.log
  24. {"init terminating in do_boot",{could_not_start,rabbit,{{schema_integrity_check_faileguments,pid,slave_pids,sync_slave_pids,recoverable_slaves,policy,gm_pids,decorators,s,sync_slave_pids,mirror_nodes,policy]}]},{rabbit,start,[normal,[]]}}}}
  25. /usr/lib/rabbitmq/bin/rabbitmq-server: line 246: 1042 User defined signal 2 start_

一直以蓝色部分查找原因,困扰很久,不得解决之法。

之后以红字字体查找,在国外某技术网站找到解决方案。原文链接是:http://rabbitmq.1065348.n5.nabble.com/installation-problem-service-stops-automatically-web-management-console-missing-td29229.html simon给出的答案在5楼,提出问题这哥们也是折腾疯了。

rabbitmq启动异常table_attributes_mismatch

删除/var/lib/rabbitmq/mnesia文件后,重新启动。

rabbitmq启动异常table_attributes_mismatch

启动成功,但程序不是以deamon形式运行。只要执行-detached可执行成功。

  1. [root@localhost rabbitmq]# rabbitmq-server -detached
  2. Warning: PID file not written; -detached was passed.