启动失败时Rabbitmq崩溃

时间:2016-05-17 04:54:43

标签: rabbitmq

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

ENV:redhat4

erlang版本:从源代码安装R16B03

rabbitmq版本:源代码中的rabbitmq-server-3.6.1

当我跑“兔子 - 服务器开始'命令,它给了我一些错误 信息,然后我再次跑了它显示:

              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启用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 ()

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

2 个答案:

答案 0 :(得分:1)

const functionOne = (name: string, age: number) => ({
    name,
    age
})

const functionTwo = (name: string, sex: string) =>  ({
    name,
    sex
})

const addIndexToReturn = (adaptee: any, index: number) =>
  (...args: any[]) => 
    Object.assign(adaptee(...args), { index })

const functionWithIndex = addIndexToReturn(functionOne, 22)

// I don't get any type checking here
console.log(functionWithIndex('Frank', 32))

表示您需要{could_not_start,rabbit,{undef,[{crypto,module_info,[attributes] Erlang。

选中https://www.rabbitmq.com/which-erlang.html

crypto

您需要版本> = use SSL/TLS reliably 17.0

答案 1 :(得分:0)

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