unable to connect to epmd (port 4369) - address (cannot connect to host/port) on Windows 10

5,742 views
Skip to first unread message

Matt Hogan-Jones

unread,
Oct 23, 2019, 6:59:42 AM10/23/19
to rabbitmq-users
Hi,

I've installed RabbitMQ 3.8.0 and Erlang 22.1 (64-bit for both) on 64-bit Windows 10. Both were installed as admin.

I'm able to run rabbitmq-service.bat start successfully and the service appears to be running.

When I try and call rabbitmqctl.bat with anything (e.g. rabbitmqctl.bat status) I get the following:

attempted to contact: [rabbit@mymachine]


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




Current node details:
 
* node name: 'rabbitmqcli-14768-rabbit@mymachine'
 
* effective user's home directory: C:\Users\myname
 * Erlang cookie hash: hXRZg8Foj+FXs7DwcLF6cg==

I've checked the .erlang.cookie in both the C:\Windows\System32\config\systemprofile location and my user location and they are the same.

Port 4369 is open and listening and I can telnet to it.

We've had no issue installing RabbitMQ to other machines, so I'm hoping this is just some environment issue specific to my machine.

This is really my first time using RMQ so I'm a bit stuck about next steps to take to investigate further.

Wesley Peng

unread,
Oct 23, 2019, 7:25:45 AM10/23/19
to rabbitm...@googlegroups.com
This seems the name resolution problem. All the node names should be resolvable by dns or via hosts file.

Regards 

Matt Hogan-Jones <onetru...@gmail.com>于2019年10月23日 周三下午6:59写道:
--
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 view this discussion on the web, visit https://groups.google.com/d/msgid/rabbitmq-users/51d79307-fabc-47e1-ac29-60f6ff824488%40googlegroups.com.

Matt Hogan-Jones

unread,
Oct 23, 2019, 8:06:57 AM10/23/19
to rabbitmq-users
Hi Wesley,

This is on my local machine, so I'm not sure what the node name should be.
localhost is resolved to `::1` when doing `ping localhost` - how should I deal with name resolution on my local machine?

Thanks,
Matt


On Wednesday, October 23, 2019 at 12:25:45 PM UTC+1, Wesley Peng wrote:
This seems the name resolution problem. All the node names should be resolvable by dns or via hosts file.

Regards 
Matt Hogan-Jones <onetru...@gmail.com>于2019年10月23日 周三下午6:59写道:
Hi,

I've installed RabbitMQ 3.8.0 and Erlang 22.1 (64-bit for both) on 64-bit Windows 10. Both were installed as admin.

I'm able to run rabbitmq-service.bat start successfully and the service appears to be running.

When I try and call rabbitmqctl.bat with anything (e.g. rabbitmqctl.bat status) I get the following:

attempted to contact: [rabbit@mymachine]


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




Current node details:
 
* node name: 'rabbitmqcli-14768-rabbit@mymachine'
 
* effective user's home directory: C:\Users\myname
 * Erlang cookie hash: hXRZg8Foj+FXs7DwcLF6cg==

I've checked the .erlang.cookie in both the C:\Windows\System32\config\systemprofile location and my user location and they are the same.

Port 4369 is open and listening and I can telnet to it.

We've had no issue installing RabbitMQ to other machines, so I'm hoping this is just some environment issue specific to my machine.

This is really my first time using RMQ so I'm a bit stuck about next steps to take to investigate further.

--
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 rabbitm...@googlegroups.com.

Matt Hogan-Jones

unread,
Oct 23, 2019, 8:09:57 AM10/23/19
to rabbitmq-users
If I run this:

.\rabbitmqctl.bat status -n rabbit@localhost

I get the following:

attempted to contact: [rabbit@localhost]

rabbit@localhost:
 
* connected to epmd (port 4369) on localhost
 
* epmd reports: node 'rabbit' not running at all
                  other nodes on localhost
: ['RabbitMQ',
                                             
'rabbitmqcli-17848-rabbit']
 
* suggestion: start the node


Current node details:
 
* node name: 'rabbitmqcli-17848-rabbit@myhostname'
 
* effective user's home directory: C:\Users\myusername

 * Erlang cookie hash: hXRZg8Foj+FXs7DwcLF6cg==

Does that mean anything significant?

On Wednesday, October 23, 2019 at 12:25:45 PM UTC+1, Wesley Peng wrote:
This seems the name resolution problem. All the node names should be resolvable by dns or via hosts file.

Regards 
Matt Hogan-Jones <onetru...@gmail.com>于2019年10月23日 周三下午6:59写道:
Hi,

I've installed RabbitMQ 3.8.0 and Erlang 22.1 (64-bit for both) on 64-bit Windows 10. Both were installed as admin.

I'm able to run rabbitmq-service.bat start successfully and the service appears to be running.

When I try and call rabbitmqctl.bat with anything (e.g. rabbitmqctl.bat status) I get the following:

attempted to contact: [rabbit@mymachine]


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




Current node details:
 
* node name: 'rabbitmqcli-14768-rabbit@mymachine'
 
* effective user's home directory: C:\Users\myname
 * Erlang cookie hash: hXRZg8Foj+FXs7DwcLF6cg==

I've checked the .erlang.cookie in both the C:\Windows\System32\config\systemprofile location and my user location and they are the same.

Port 4369 is open and listening and I can telnet to it.

We've had no issue installing RabbitMQ to other machines, so I'm hoping this is just some environment issue specific to my machine.

This is really my first time using RMQ so I'm a bit stuck about next steps to take to investigate further.

--
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 rabbitm...@googlegroups.com.

Wesley Peng

unread,
Oct 23, 2019, 8:11:58 AM10/23/19
to rabbitm...@googlegroups.com
rabbitmqctl status will show that node name.

Regards 

Matt Hogan-Jones <onetru...@gmail.com>于2019年10月23日 周三下午8:07写道:
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-user...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/rabbitmq-users/92dd52ac-b824-4fb7-92ae-c1566a9f744a%40googlegroups.com.

Matt Hogan-Jones

unread,
Oct 23, 2019, 8:18:32 AM10/23/19
to rabbitmq-users
How do you mean? I have put the error message from rabbitmqctl status in the first message. It's not working, hence this question.

Wesley Peng

unread,
Oct 23, 2019, 8:38:06 AM10/23/19
to rabbitm...@googlegroups.com
Hi

For example your node name is rabbit, you should put this short hostname into system hosts file to resolve it to local address.

Regards 

Matt Hogan-Jones <onetru...@gmail.com>于2019年10月23日 周三下午8:18写道:
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-user...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/rabbitmq-users/56ff3676-c5d3-4942-b2b3-f48cdd72734f%40googlegroups.com.

Matt Hogan-Jones

unread,
Oct 23, 2019, 9:03:23 AM10/23/19
to rabbitmq-users
So effectively add this to the hosts file?

127.0.0.1     rabbit

Do I need to restart the rabbitmq service after doing this?

Luke Bakken

unread,
Oct 23, 2019, 10:32:21 AM10/23/19
to rabbitmq-users
Hi Matt,

Yes, this means that localhost can resolve in DNS or via C:\Windows\System32\drivers\etc\hosts. It also shows that epmd.exe is running as expected.

Your other errors using mymachine mean that mymachine doesn't resolve in DNS.

What is the output of these commands?

hostname
ping mymachine
nslookup mymachine

The fact that this worked last week suggests that something changed on your machine, like a Windows patch perhaps? I don't use my Win 10 environment every day so I haven't noticed this.


Thanks,
Luke

Matt Hogan-Jones

unread,
Oct 23, 2019, 11:48:21 AM10/23/19
to rabbitmq-users
Hi Luke,

the result of hostname is my machine name (sorry for not actually including it, company policy I'm afraid).

Pinging my hostname from my machine returns "General failure".

nslookup returns two server addresses.

Now, discussing with a colleague reveals that he does not get a general failure from pinging his own hostname, so we're now investigating whether there's an application on my machine that is causing this.

Luke Bakken

unread,
Oct 23, 2019, 12:23:40 PM10/23/19
to rabbitmq-users
Hi Matt,

That's promising!

In an elevated shell on both machines run ipconfig /all and compare differences, especially in the "DNS Servers" area.

ipconfig /release & ipconfig /renew might fix it.

Luke

Matt Hogan-Jones

unread,
Oct 24, 2019, 4:51:11 AM10/24/19
to rabbitmq-users
Hi Luke,

My colleague has installed RMQ and Erlang on their machine and it worked first time for them. We thought it may have been a Windows Defender issue, but I've got the same set up in WD as my colleague and I still get the same issue.

I will follow your suggestions and see what we can find.

Thanks,
Matt
Reply all
Reply to author
Forward
0 new messages