RabbitMQ does not work if CiscoVPN client is connected

881 views
Skip to first unread message

coolerma...@gmail.com

unread,
Aug 7, 2015, 5:02:20 AM8/7/15
to rabbitmq-users
I use Windows 8.1, RabbitMQ 3.5.1 with erlang 17.5. I tried to start from sbin\rabbitmq-server.bat, result:

ERROR: epmd error for host ISIlchenko: address (cannot connect to host/port)
 
In RabbitMQ.log file log appears:


=WARNING REPORT==== 7-Aug-2015::10:14:51 ===
Kernel poll (epoll, kqueue, etc) is disabled. Throughput and CPU utilization may worsen.

=INFO REPORT==== 7-Aug-2015::10:14:51 ===
Limiting to approx 8092 file handles (7280 sockets)

=INFO REPORT==== 7-Aug-2015::10:14:51 ===
Priority queues enabled, real BQ is rabbit_variable_queue

=INFO REPORT==== 7-Aug-2015::10:14:51 ===
Error description:
   {could_not_start,rabbit,
       {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]}}}}

Log files (may contain more information):
   C:/RabbitMQBase//log/RabbitMQ.log
   C:/RabbitMQBase//log/RabbitMQ-sasl.log


 
RabbitMQ-sasl.log:

=CRASH REPORT==== 7-Aug-2015::10:14:51 ===
  crasher:
    initial call: application_master:init/4
    pid: <0.137.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.136.0>]
    messages: [{'EXIT',<0.138.0>,normal}]
    links: [<0.136.0>,<0.7.0>]
    dictionary: []
    trap_exit: true
    status: running
    heap_size: 1598
    stack_size: 27
    reductions: 199

All RabbitMQ and epmd.exe ports are free.
Thanks,

Jean-Sébastien Pédron

unread,
Aug 7, 2015, 5:32:23 AM8/7/15
to rabbitm...@googlegroups.com
On 07.08.2015 11:02, coolerma...@gmail.com wrote:
> I use Windows 8.1, RabbitMQ 3.5.1 with erlang 17.5. I tried to start
> from sbin\rabbitmq-server.bat, result:
>
> ERROR: epmd error for host ISIlchenko: address (cannot connect to
> host/port)

Hi!

This error message makes no sense to me; in particular, is "address" an
actual error message? Did you change any names to hide confidential
informations?

--
Jean-Sébastien Pédron
Pivotal / RabbitMQ

coolerma...@gmail.com

unread,
Aug 7, 2015, 5:54:00 AM8/7/15
to rabbitmq-users, jean-se...@rabbitmq.com


пятница, 7 августа 2015 г., 12:32:23 UTC+3 пользователь Jean-Sébastien Pédron написал:

Hi. "address" is actual message, I copied message from cmd as it was. I opened rabbitmq-server.bat and see there:
"!ERLANG_HOME!\bin\erl.exe" ^
        -pa "!RABBITMQ_EBIN_ROOT!" ^
        -noinput -hidden ^
        -s rabbit_prelaunch ^
        !RABBITMQ_NAME_TYPE! rabbitmqprelaunch!RANDOM!!TIME:~9! ^
        -extra "!RABBITMQ_NODENAME!"

if ERRORLEVEL 2 (
    rem dist port mentioned in config, do not attempt to set it
) else if ERRORLEVEL 1 (
    exit /B 1
) else (
    set RABBITMQ_DIST_ARG=-kernel inet_dist_listen_min !RABBITMQ_DIST_PORT! -kernel inet_dist_listen_max !RABBITMQ_DIST_PORT!
)
I commented this code and run rabbitmq-server.bat, I got more informative output:

C:\Program Files (x86)\RabbitMQ Server\rabbitmq_server-3.5.1\sbin>rabbitmq-serve
r.bat

              RabbitMQ 3.5.1. Copyright (C) 2007-2014 GoPivotal, Inc.
  ##  ##      Licensed under the MPL.  See http://www.rabbitmq.com/
  ##  ##
  ##########  Logs: C:/RabbitMQBase//log/RabbitMQ.log
  ######  ##        C:/RabbitMQBase//log/RabbitMQ-sasl.log
  ##########
              Starting broker...

BOOT FAILED
===========


Error description:
   {could_not_start,rabbit,
       {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]}}}}

Log files (may contain more information):
   C:/RabbitMQBase//log/RabbitMQ.log
   C:/RabbitMQBase//log/RabbitMQ-sasl.log

{"init terminating in do_boot",{could_not_start,rabbit,{error,{{shutdown,{failed
_to_start_child,rabbit_epmd_monitor,{{badmatch,noport},[{rabbit_epmd_monitor,ini

t,1,[]},{gen_server,init_it,6,[{file,"gen_server.erl"},{line,306}]},{proc_lib,in
it_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,{ra
bbit_epmd_monitor,start_link,[]},false]},transient,infinity,supervisor,[rabbit_r
estartable_sup]}}}}}
Crash dump was written to: erl_crash.dump
init terminating in do_boot ()

 Exitcode was 1.
 
 

Jean-Sébastien Pédron

unread,
Aug 7, 2015, 6:04:16 AM8/7/15
to rabbitm...@googlegroups.com
On 07.08.2015 11:54, coolerma...@gmail.com wrote:
> пятница, 7 августа 2015 г., 12:32:23 UTC+3 пользователь Jean-Sébastien
> Pédron написал:
> Hi. "address" is actual message, I copied message from cmd as it was. I
> opened rabbitmq-server.bat and see there:

Does your VPN session change network settings such as the hostname or
the DNS configuration?

coolerma...@gmail.com

unread,
Aug 7, 2015, 6:25:06 AM8/7/15
to rabbitmq-users, jean-se...@rabbitmq.com
пятница, 7 августа 2015 г., 13:04:16 UTC+3 пользователь Jean-Sébastien Pédron написал:
It creates new network:

this network has own DNS server address config: 8.8.8.8. But it did not change in existing NetworkConnection.
Auto Generated Inline Image 1

coolerma...@gmail.com

unread,
Aug 7, 2015, 6:54:33 AM8/7/15
to rabbitmq-users, jean-se...@rabbitmq.com

On 07.08.2015 11:54, coolerma...@gmail.com wrote:

Does your VPN session change network settings such as the hostname or
the DNS configuration?

--
Jean-Sébastien Pédron
Pivotal / RabbitMQ
VPN does not change hostname too.

Jean-Sébastien Pédron

unread,
Aug 7, 2015, 7:59:23 AM8/7/15
to rabbitm...@googlegroups.com
On 07.08.2015 12:25, coolerma...@gmail.com wrote:
> It creates new network:
>
> this network has own DNS server address config: 8.8.8.8. But it did not
> change in existing NetworkConnection.

Ok.

I really don't know how to configure the network on Windows, so I'm just
guessing here: could it be possible that the hostname is resolved to an
unroutable address after the VPN session is started? I suppose that it
touches some kind of routing table.

Sorry, I'm not how to help here :(

coolerma...@gmail.com

unread,
Aug 10, 2015, 6:10:17 AM8/10/15
to rabbitmq-users, jean-se...@rabbitmq.com

I really don't know how to configure the network on Windows, so I'm just
guessing here: could it be possible that the hostname is resolved to an
unroutable address after the VPN session is started? I suppose that it
touches some kind of routing table.

Sorry, I'm not how to help here :(


Yes you are right. Cisco adds new network connection to system and after that windows begins resolve <MyComputerName> as cisco network local IP. But unfortunaly I can not use this IP to connect somewhere, when I try to connect to some port of it I get error "An attempt was made to access a socket in a way forbidden by its access permissions"(surprisingly, but I can open socket on that IP without errors). To solve this I tried change hosts file, reset DNS cache and NetBIOS cache, I tried to change network priority - nothing helped. Seems that windows firstly look in "Network connections" before hosts file.

But if I'm not mistaken RabbitMQ fails on connecting to epmd.exe, can I configure RabbitMQ to use specific IP and not hostname for epmd.exe connection or change hostname to localhost(windows resolve it to 127.0.0.1)? And
if I'm not mistaken again, epmd is used for support cluster architecture, but I don't need cluster architecture, I have only one node of RabbitMQ. Can I disable connecting to epmd in RabbitMQ?

Robert Raschke

unread,
Aug 10, 2015, 6:45:11 AM8/10/15
to rabbitm...@googlegroups.com, jean-se...@rabbitmq.com

I remember adding a line for localhost into the hosts file on Windows ages ago to get this to work. Somewhere in the system folders you can find etc/hosts. I don't have a machine to hand, but maybe this gives you enough to go hunting.

Cheers,
Robby

--
You received this message because you are subscribed to the Google Groups "rabbitmq-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-user...@googlegroups.com.
To post to this group, send email to rabbitm...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

coolerma...@gmail.com

unread,
Aug 10, 2015, 7:27:36 AM8/10/15
to rabbitmq-users, jean-se...@rabbitmq.com

I remember adding a line for localhost into the hosts file on Windows ages ago to get this to work. Somewhere in the system folders you can find etc/hosts. I don't have a machine to hand, but maybe this gives you enough to go hunting.

As I writed higher:

 To solve this I tried change hosts file, reset DNS cache and NetBIOS cache, I tried to change network priority - nothing helped.

It seems that there is no resolution.
Thank you for replies.
Reply all
Reply to author
Forward
0 new messages