无法在Windows 10上运行RabbitMQ

时间:2018-06-20 16:15:58

标签: windows rabbitmq erlang

我已经以“以管理员身份”运行Erlang和RabbitMQ安装程序。 两者似乎都已正确安装。 RabbitMQ服务器正在运行。 但是,当我运行任何命令行Rabbit命令(rabbitmqctl,rabbitmq-plugins启用rabbitmq_management等)时,我收到以下错误消息/转储。我显然根本无法访问管理控制台或与该服务进行通信。

有关以下错误的任何想法,可能是什么原因引起的?我之前已经在其他Win10机器上安装了它,没有任何问题。

=SUPERVISOR REPORT==== 20-Jun-2018::10:08:39.865000 ===
supervisor: {local,'Elixir.Logger.Supervisor'}
errorContext: start_error
reason: noproc
offender: [{pid,undefined},
           {id,'Elixir.Logger.ErrorHandler'},
           {mfargs,
               {'Elixir.Logger.Watcher',start_link,
                   [{error_logger,'Elixir.Logger.ErrorHandler',
                        {true,false,500}}]}},
           {restart_type,permanent},
           {shutdown,5000},
           {child_type,worker}]
=CRASH REPORT==== 20-Jun-2018::10:08:39.865000 ===
  crasher:
   initial call: application_master:init/4
   pid: <0.80.0>
    registered_name: []
    exception exit: {{shutdown,
                         {failed_to_start_child,'Elixir.Logger.ErrorHandler',
                             noproc}},
                     {'Elixir.Logger.App',start,[normal,[]]}}
      in function  application_master:init/4 (application_master.erl, line 
138)
    ancestors: [<0.79.0>]
    message_queue_len: 1
    messages: [{'EXIT',<0.81.0>,normal}]
    links: [<0.79.0>,<0.42.0>]
    dictionary: []
   trap_exit: true
    status: running
    heap_size: 376
    stack_size: 27
    reductions: 193
  neighbours:
=CRASH REPORT==== 20-Jun-2018::10:08:39.865000 ===
  crasher:
    initial call: Elixir.Logger.Watcher:init/1
    pid: <0.87.0>
    registered_name: []
    exception exit: noproc
      in function  gen:do_for_proc/2 (gen.erl, line 228)
      in call from gen_event:rpc/2 (gen_event.erl, line 239)
      in call from 'Elixir.Logger.Watcher':init/1 (lib/logger/watcher.ex, 
line 23)
      in call from gen_server:init_it/2 (gen_server.erl, line 374)
      in call from gen_server:init_it/6 (gen_server.erl, line 342)
    ancestors: ['Elixir.Logger.Supervisor',<0.81.0>]
    message_queue_len: 0
    messages: []
    links: [<0.82.0>]
    dictionary: []
    trap_exit: true
    status: running
    heap_size: 376
    stack_size: 27
    reductions: 254
  neighbours:
=INFO REPORT==== 20-Jun-2018::10:08:39.881000 ===
    application: logger
    exited: {{shutdown,

{failed_to_start_child,'Elixir.Logger.ErrorHandler',noproc}},
             {'Elixir.Logger.App',start,[normal,[]]}}
    type: temporary
Could not start application logger: Logger.App.start(:normal, []) returned an 
error: shutdown: failed to start child: Logger.ErrorHandler
    ** (EXIT) no process: the process is not alive or there's no process 
currently associated with the given name, possibly because its application 
isn't started

2 个答案:

答案 0 :(得分:11)

昨天在Windows 10机器上安装了最新版本的RabbitMQ之后,我昨天也遇到了这个问题。终于在今天早上找到了原因:与我安装的Erlang OTP版本有关(最新版本-21.0)。显然,RabbitMQ使用的Elixir版本对此版本的Erlang OTP产生了问题-至少这是我在阅读this thread here之后得出的结论。

在卸载该erlang版本并从this page安装版本19.3之后,我能够使用RabbitMQ控制台命令,而不会每次都抛出此错误消息。 (不过,我确实也必须修复ERLANG_HOME环境变量... erlang的卸载/重新安装出于某种原因使它指向了不再存在的旧(v21)文件夹。)

答案 1 :(得分:1)

我在erlang 19.3上遇到了额外的错误:

λ rabbitmq-service install
C:\Programs\erl8.3\erts-8.3\bin\erlsrv: Service RabbitMQ added to system.
bad "MBa" value: ageffcbf
Usage: beam.smp.dll [flags] [ -- [init_args] ]

但是到目前为止,该服务已成功安装并启动,并且没有任何副作用。