RabbitMQ on WindowsServer 2012 R2 crash on startup

I am trying to start RabbitMQ on a Windows Server 2012 R2 machine but it keeps crashing. This is what I see when running "rabbitmqctl status":

C:\Program Files (x86)\RabbitMQ Server\rabbitmq_server-3.5.1\sbin>rabbitmqctl status
Status of node 'rabbit@MYMACHINENAME' ...
Error: unable to connect to node 'rabbit@MYMACHINENAME': nodedown

DIAGNOSTICS
===========

attempted to contact: ['rabbit@MYMACHINENAME']

rabbit@MYMACHINENAME:
  * unable to connect to epmd (port 4369) on MYMACHINENAME: address (cannot connect to host/port)


current node details:
- node name: 'rabbitmq-cli-6880@MYMACHINENAME'
- home dir: C:\Users\myname
- cookie hash: L9D52tPzwbCgggPY6qPS3g==


C:\Program Files (x86)\RabbitMQ Server\rabbitmq_server-3.5.1\sbin>

      

Here's what I see in the logs (after a long series of apparently successful "PROGRESS-REPORT" entries):

=CRASH REPORT==== 22-Apr-2015::11:57:24 ===
  crasher:
    initial call: rabbit_epmd_monitor:init/1
    pid: <0.165.0>
    registered_name: []
    exception exit: {{badmatch,noport},
                     [{rabbit_epmd_monitor,init,1,[]},
                      {gen_server,init_it,6,
                                  [{file,"gen_server.erl"},{line,306}]},
                      {proc_lib,init_p_do_apply,3,
                                [{file,"proc_lib.erl"},{line,237}]}]}
      in function  gen_server:init_it/6 (gen_server.erl, line 330)
    ancestors: [rabbit_epmd_monitor_sup,rabbit_sup,<0.140.0>]
    messages: []
    links: [<0.164.0>]
    dictionary: []
    trap_exit: false
    status: running
    heap_size: 376
    stack_size: 27
    reductions: 463
  neighbours:

=SUPERVISOR REPORT==== 22-Apr-2015::11:57:24 ===
     Supervisor: {local,rabbit_epmd_monitor_sup}
     Context:    start_error
     Reason:     {{badmatch,noport},
                  [{rabbit_epmd_monitor,init,1,[]},
                   {gen_server,init_it,6,[{file,"gen_server.erl"},{line,306}]},
                   {proc_lib,init_p_do_apply,3,
                             [{file,"proc_lib.erl"},{line,237}]}]}
     Offender:   [{pid,undefined},
                  {name,rabbit_epmd_monitor},
                  {mfargs,{rabbit_epmd_monitor,start_link,[]}},
                  {restart_type,transient},
                  {shutdown,4294967295},
                  {child_type,worker}]


=CRASH REPORT==== 22-Apr-2015::11:57:24 ===
  crasher:
    initial call: application_master:init/4
    pid: <0.139.0>
    registered_name: []
    exception exit: {bad_return,
                     {{rabbit,start,[normal,[]]},
                      {'EXIT',
                       {error,
                        {{shutdown,
                          {failed_to_start_child,rabbit_epmd_monitor,
                           {{badmatch,noport},
                            [{rabbit_epmd_monitor,init,1,[]},
                             {gen_server,init_it,6,
                              [{file,"gen_server.erl"},{line,306}]},
                             {proc_lib,init_p_do_apply,3,
                              [{file,"proc_lib.erl"},{line,237}]}]}}},
                         {child,undefined,rabbit_epmd_monitor_sup,
                          {rabbit_restartable_sup,start_link,
                           [rabbit_epmd_monitor_sup,
                            {rabbit_epmd_monitor,start_link,[]},
                            false]},
                          transient,infinity,supervisor,
                          [rabbit_restartable_sup]}}}}}}
      in function  application_master:init/4 (application_master.erl, line 133)
    ancestors: [<0.138.0>]
    messages: [{'EXIT',<0.140.0>,normal}]
    links: [<0.138.0>,<0.7.0>]
    dictionary: []
    trap_exit: true
    status: running
    heap_size: 1598
    stack_size: 27
    reductions: 212
  neighbours:

      

I have enabled port 4369 in Windows Firewall and this port appears to be "listening":

netstat -an

Proto  Local Address          Foreign Address        State           PID
TCP    0.0.0.0:4369           0.0.0.0:0              LISTENING       6496

      

process 6469:

C:\Program Files (x86)\RabbitMQ Server\rabbitmq_server-3.5.1\sbin>tasklist /svc /FI "PID eq 6496"

Image Name                     PID Services
========================= ======== ============================================
epmd.exe                      6496 N/A

      

Any ideas for other directions / configuration / troubleshooting that I can follow?

+3


source to share


2 answers


This was ultimately due to the fact that I am connected to a VPN. When not on the VPN, I can view the management console, view the status on the command line, etc.



+1


source


The {badmatch, noport} error suggests that perhaps RabbitMQ was unable to access the EPMD port.

If you still want to use a VPN with RabbitMQ, be sure to open the ports required by RabbitMQ.



See What ports does RabbitMQ use? and read about inet_dist_listen_{min,max}

here: http://www.rabbitmq.com/configure.html

0


source







All Articles