2016-05-17 234 views
2

我启动的RabbitMQ这是推动我疯狂的时候遇到的问题...RabbitMQ的崩溃时启动失败

ENV:redhat4

二郎版本:从源代码安装R16B03

RabbitMQ的版本:RabbitMQ的从源代码

-server-3.6.1,当我跑“的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/[email protected] 
    ###### ##  /var/log/rabbitmq/[email protected] 
    ########## 
       Starting broker... 

它stucked那里,我想到的可能是它已经开始了,所以我跑了“./rabbitmq-plugins使rabbitmq_management”来启用Web插件,但我得到:

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

Applying plugin configuration to [email protected] 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/[email protected] 
    ###### ##  /var/log/rabbitmq/[email protected] 
    ########## 
       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/[email protected] 
    /var/log/rabbitmq/[email protected] 

{"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() 

我不明白...为什么有很多的问题是什么?有没有任何程序不正确?

+1

提供用于安装'rabbitmq'的步骤 – piyushj

回答

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 

需要,因为安装了两个以上的节点其他3节点上的RabbitMQ版本不匹配的版本> = 17.0

+0

非常感谢......它真的起作用了......起初我使用了最新的erlang,但总是存在核心转储,但这一次没问题,我认为可能是因为这次我使用erlang&rabbitmq的源代码版本... –

+1

@ZEd欢迎您。请接受答案。 – Gabriele

0

我有同样的问题。在群集的所有节点上安装相同的版本。