When installing RabbitMQ in server, I got this errors:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | Preparing to unpack …/rabbitmq-server_3.2.4-1_all.deb … Unpacking rabbitmq-server (3.2.4-1) … yProcessing triggers for man-db (2.6.7.1-1) … Processing triggers for ureadahead (0.100.0-16) … Setting up rabbitmq-server (3.2.4-1) … * Starting message broker rabbitmq-server * FAILED – check /var/log/rabbitmq/startup_\{log, _err\} …fail! invoke-rc.d: initscript rabbitmq-server, action "start" failed. dpkg: error processing package rabbitmq-server (–configure): subprocess installed post-installation script returned error exit status 1 Processing triggers for ureadahead (0.100.0-16) … Errors were encountered while processing: rabbitmq-server E: Sub-process /usr/bin/dpkg returned an error code (1) ubuntu@ubuntu:~$ cat /var/log/rabbitmq/startup_ startup_err startup_log ubuntu@ubuntu:~$ cat /var/log/rabbitmq/startup_log ERROR: epmd error for host "ubuntu": address (cannot connect to host/port) ubuntu@ubuntu:~$ cat /var/log/rabbitmq/startup_log ERROR: epmd error for host "ubuntu": address (cannot connect to host/port) |
The solution, set localhost on “/etc/hosts”
1 2 3 4 5 6 7 8 9 | 127.0.0.1 localhost 192.168.0.1 ubuntu.ubuntu ubuntu # The following lines are desirable for IPv6 capable hosts ::1 ip6-localhost ip6-loopback fe00::0 ip6-localnet ff00::0 ip6-mcastprefix ff02::1 ip6-allnodes ff02::2 ip6-allrouters |
Into
1 2 3 4 5 6 7 8 9 10 | 127.0.0.1 localhost 127.0.0.1 ubuntu 192.168.0.1 ubuntu.ubuntu ubuntu # The following lines are desirable for IPv6 capable hosts ::1 ip6-localhost ip6-loopback fe00::0 ip6-localnet ff00::0 ip6-mcastprefix ff02::1 ip6-allnodes ff02::2 ip6-allrouters |
2 responses to “Solve RabbitMQ ERROR: epmd error for host “ubuntu”: address (cannot connect to host/port)”
Thanks…
This worked