Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unable to get RabbitMQ running on Windows 10

I've run the Erlang and RabbitMQ installers "As Administrator". Both seem to have installed correctly. The RabbitMQ server is running. However, when I run any command line Rabbit commands (rabbitmqctl, rabbitmq-plugins enable rabbitmq_management, etc.), I get the following error message/dump. I obviously cannot access the Management Console or communicate with the service at all.

Any ideas on the below error and what could be causing this? I've installed on other Win10 machines before without any issues.

=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
like image 791
coach_rob Avatar asked Jun 20 '18 16:06

coach_rob


People also ask

Can't connect to RabbitMQ?

Make sure the node is running using rabbitmq-diagnostics status. Verify config file is correctly placed and has correct syntax/structure. Inspect listeners using rabbitmq-diagnostics listeners or the listeners section in rabbitmq-diagnostics status. Inspect effective configuration using rabbitmq-diagnostics environment.


2 Answers

I also encountered this problem yesterday after installing the latest version of RabbitMQ onto a Windows 10 box. Finally found the cause this morning: It's related to the version of the Erlang OTP that I had installed (the latest - 21.0). Apparently the version of Elixir used by RabbitMQ has issues with this version of the Erlang OTP - at least that's the conclusion I came to after reading this thread here.

After uninstalling that erlang version, and installing version 19.3 from this page, I was able to use the RabbitMQ console commands without this error message being thrown every time. (I did however have to fix the ERLANG_HOME environment variable also... the uninstall/reinstall of erlang had for some reason left this pointing at the old (v21) folder which no longer existed.)

like image 53
SWalters Avatar answered Oct 23 '22 01:10

SWalters


I got a bonus error with 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] ]

However the service installed and started successfully with no side effects so far.

like image 35
DeepakMK Avatar answered Oct 23 '22 01:10

DeepakMK