Antarjot
Antarjot

Reputation: 326

epmd error for host myhost: address (cannot connect to host/port) on windows 10

I am trying to install rabbitmq. The installation of both erlang i.e OTP 18.1 file was done successfulyl and also rabbitmq installation completed successfully. But when I try to connect rabbitmq, I get the following error:

C:\Program Files (x86)\RabbitMQ Server\rabbitmq_server-3.5.6\sbin>rabbitmq-plugins.bat enable rabbitmq_management
Plugin configuration unchanged.
Applying plugin configuration to rabbit@INLN50899724A... failed.
 * Could not contact node rabbit@INLN50899724A.
   Changes will take effect at broker restart.
 * Options: --online  - fail if broker cannot be contacted.
            --offline - do not try to contact broker.
C:\Program Files (x86)\RabbitMQ Server\rabbitmq_server-3.5.6\sbin>rabbitmq-server restart
ERROR: epmd error for host INLN50899724A: address (cannot connect to host/port)

Click below to see the image containing error Error Empd Rabbitmq

Upvotes: 24

Views: 39435

Answers (8)

Pal Je
Pal Je

Reputation: 11

For using rabbit mq on windows 10 for similar error I did below

  1. set RABBITMQ_NODENAME=rabbit@localhost in the path where rabbit MQ is installed i.e for me it was in C:\Program Files\RabbitMQ Server\rabbitmq_server-3.8.5\sbin> and then started .\rabbitmq-server start

Also, I had changed the host to point to my computer name in c:\Windows\System32\Drivers\etc 127.0.0.1 yourhostnamehere

Upvotes: 0

Mateen
Mateen

Reputation: 1671

open C:\Program Files\RabbitMQ Server\rabbitmq_server-3.7.15\sbin\rabbitmq-server.bat

Add the below command as the first line in

set RABBITMQ_NODENAME=rabbit@localhost

refer attached image

enter image description here

Upvotes: 14

user8570961
user8570961

Reputation: 41

in your shell

$ export RABBITMQ_NODENAME=rabbit@localhost
$ /sbin/rabbitmq-server  -detached

Upvotes: 4

Michael Lewis
Michael Lewis

Reputation: 1

Or, edits your hosts file so that INLN50899724A points to 127.0.0.1

Upvotes: 0

Richard Pistole
Richard Pistole

Reputation: 646

Remove the RabbitMQ service. Uninstall RabbitMQ. Kill the epmd.exe process. Delete your c:\users\\AppData\Roaming\RabbitMQ Directory.

Go to Control Panels -> System -> Advanced -> Environment Variables

Add a variable named RABBITMQ_NODENAME and set it to rabbit@localhost

Reinstall RabbitMQ.

Navigate to the RabbitMQ sbin directory (or run the command from the start menu) and run rabbitmqctl status.

You should no longer see the (cannot connect to host/port) error.

And yes, this will fix your Cisco AnyConnect VPN related installation issues.

Upvotes: 27

bulkyPanda
bulkyPanda

Reputation: 161

For Windows Machine:

  • Go in C:\Users\<YourUserName>\AppData\Roaming\RabbitMQ
  • Create a file rabbitmq-env.conf
  • Add the following:

    CONFIG_FILE=C:\Users\<YourUserName>\AppData\Roaming\RabbitMQ\rabbitmq
    NODE_IP_ADDRESS=127.0.0.1
    NODENAME=rabbit@localhost
    
  • The above is my env-config, for this particular issue setting the nodename will be sufficient.

  • Turn off you firewall & start the rabbitmq, it will work. After running it one time, even if you turn on the firewall, it will work.

This works for me in Windows 10 machine.

Upvotes: 13

Ashok Kumar P S
Ashok Kumar P S

Reputation: 283

I may be replying really late, but still I'm facing this issue. So it may help somebody event while installing rabbitmq version 3.6.5. To change the node name, open "rabbitmq-env.bat" under "installation dir\sbin" and change RABBITMQ_NODENAME to "rabbit@localhost" (line number 90 in rabbitmq 3.6.5). But make sure you remove the windows service, do change the nodename, install service and start it. This worked for me. No other options worked for me which were marked as right answer in stackoverflow!

Upvotes: 24

Aditya Chowdhry
Aditya Chowdhry

Reputation: 359

change rabbit@INLN50899724A to rabbit@localhost and try again.

Upvotes: 1

Related Questions