【问题标题】:Rabbitmq crash when boot failed启动失败时 Rabbitmq 崩溃
【发布时间】:2017-09-25 19:15:59
【问题描述】:

我在启动rabbitmq时遇到了一个让我发疯的问题......

环境:redhat4

erlang 版本:R16B03 从源代码安装

rabbitmq 版本:来自源代码的rabbitmq-server-3.6.1

当我运行“rabbitmq-server start”命令时,它给了我一些错误 信息,然后我再次运行它显示:

              RabbitMQ 3.6.1. Copyright (C) 2007-2016 Pivotal Software, Inc.
  ##  ##      Licensed under the MPL.  See http://www.rabbitmq.com/
  ##  ##
  ##########  Logs: /var/log/rabbitmq/rabbit@bogon.log
  ######  ##        /var/log/rabbitmq/rabbit@bogon-sasl.log
  ##########
              Starting broker...

它卡在那里,我想可能是它已经启动了,所以我运行'./rabbitmq-plugins enable rabbitmq_management'来启用网络插件,但我得到了:

The following plugins have been enabled:
  mochiweb
  webmachine
  rabbitmq_web_dispatch
  amqp_client
  rabbitmq_management_agent
  rabbitmq_management

Applying plugin configuration to rabbit@bogon... failed.
Error: {undef,[{crypto,module_info,[attributes],[]},
               {rabbit_misc,module_attributes,1,
                            [{file,"src/rabbit_misc.erl"},{line,805}]},
               {rabbit_misc,'-all_module_attributes/1-fun-0-',3,
                            [{file,"src/rabbit_misc.erl"},{line,825}]},
               {lists,foldl,3,[{file,"lists.erl"},{line,1248}]},
               {rabbit_boot_steps,find_steps,1,
                                  [{file,"src/rabbit_boot_steps.erl"},
                                   {line,40}]},
               {rabbit_boot_steps,run_boot_steps,1,
                                  [{file,"src/rabbit_boot_steps.erl"},
                                   {line,26}]},
               {rabbit,start_apps,1,[{file,"src/rabbit.erl"},{line,343}]},
               {rabbit_plugins,ensure,1,
                               [{file,"src/rabbit_plugins.erl"},{line,52}]}]}

我不知道为什么......所以我停止了rabbitmq服务器并重新启动它,它给了我这个:

              RabbitMQ 3.6.1. Copyright (C) 2007-2016 Pivotal Software, Inc.
  ##  ##      Licensed under the MPL.  See http://www.rabbitmq.com/
  ##  ##
  ##########  Logs: /var/log/rabbitmq/rabbit@bogon.log
  ######  ##        /var/log/rabbitmq/rabbit@bogon-sasl.log
  ##########
              Starting broker...

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

Error description:
   {could_not_start,rabbit,
       {undef,
           [{crypto,module_info,[attributes],[]},
            {rabbit_misc,module_attributes,1,
                [{file,"src/rabbit_misc.erl"},{line,805}]},
            {rabbit_misc,'-all_module_attributes/1-fun-0-',3,
                [{file,"src/rabbit_misc.erl"},{line,825}]},
            {lists,foldl,3,[{file,"lists.erl"},{line,1248}]},
            {rabbit_boot_steps,find_steps,1,
                [{file,"src/rabbit_boot_steps.erl"},{line,40}]},
            {rabbit_boot_steps,run_boot_steps,1,
                [{file,"src/rabbit_boot_steps.erl"},{line,26}]},
            {rabbit,start,2,[{file,"src/rabbit.erl"},{line,477}]},
            {application_master,start_it_old,4,
                [{file,"application_master.erl"},{line,269}]}]}}

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

{"init terminating in do_boot",{could_not_start,rabbit,{undef,[{crypto,module_info,[attributes],[]},{rabbit_misc,module_attributes,1,[{file,"src/rabbit_misc.erl"},{line,805}]},{rabbit_misc,'-all_module_attributes/1-fun-0-',3,[{file,"src/rabbit_misc.erl"},{line,825}]},{lists,foldl,3,[{file,"lists.erl"},{line,1248}]},{rabbit_boot_steps,find_steps,1,[{file,"src/rabbit_boot_steps.erl"},{line,40}]},{rabbit_boot_steps,run_boot_steps,1,[{file,"src/rabbit_boot_steps.erl"},{line,26}]},{rabbit,start,2,[{file,"src/rabbit.erl"},{line,477}]},{application_master,start_it_old,4,[{file,"application_master.erl"},{line,269}]}]}}}

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

我不明白...为什么会有很多问题?有什么不正确的程序吗?

【问题讨论】:

  • 提供安装rabbitmq的步骤

标签: rabbitmq


【解决方案1】:
{could_not_start,rabbit,{undef,[{crypto,module_info,[attributes]

表示你需要crypto Erlang。

检查这个https://www.rabbitmq.com/which-erlang.html

use SSL/TLS reliably    17.0

您需要版本 >= 17.0

【讨论】:

  • 非常感谢...确实有效...一开始我用的是最新的erlang,但总是有core dumps,但这次没关系,我想可能是因为这个是时候使用erlang&rabbitmq的源码版本了...
【解决方案2】:

由于安装在除两个节点之外的第三个节点上的 RabbitMQ 版本不匹配,我遇到了同样的问题。在集群的所有节点上安装相同的版本。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2019-05-08
    • 2021-01-13
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多