The bug is actually located in erlang itself. epmd fails to bind to any IPv4 address if instructed to do so
[Impact]
Users of RabbitMQ in IPv4 environments are unable to start rabbitmq unless the environment variable ERL_EPMD_ADDRESS is unset. In case of disabled IPv6 support there is no valid setting for ERL_EPMD_ADDRESS as
* IPv4 addresses will be rejected as syntacitcally invalid
* IPv6 addresses will fail to bind
[Test Case]
service rabbitmq-server stop && killall epmd
The bug is actually located in erlang itself. epmd fails to bind to any IPv4 address if instructed to do so
[Impact]
Users of RabbitMQ in IPv4 environments are unable to start rabbitmq unless the environment variable ERL_EPMD_ADDRESS is unset. In case of disabled IPv6 support there is no valid setting for ERL_EPMD_ADDRESS as
* IPv4 addresses will be rejected as syntacitcally invalid
* IPv6 addresses will fail to bind
[Test Case]
service rabbitmq-server stop && killall epmd
ERL_EPMD_ ADDRESS= "127.0. 0.1" epmd
epmd: Thu Sep 25 21:00:16 2014: cannot parse IP address "127.0.0.1"
same could be acieved with the epmd's -address option
In case IPv6 support is disabled: ADDRESS= "::1" epmd
ERL_EPMD_
epmd: Thu Sep 25 21:01:40 2014: failed to bind socket: Cannot assign requested address
-- rabbitmq case: NODENAME= rabbit@ localhost NODE_IP_ ADDRESS= 127.0.0. 1 ADDRESS= 127.0.0. 1
cat rabbitmq-env.conf
export RABBITMQ_
export RABBITMQ_
export ERL_EPMD_
service rabbitmq-server start rabbitmq/ startup_ \{log, _err\} [fail]
* Starting message broker rabbitmq-server
* FAILED - check /var/log/
Commenting/removing the "export ERL_EPMD_ ADDRESS= 127.0.0. 1" line resolves the issue
[Possible cause] /bugs.launchpad .net/ubuntu/ +source/ rabbitmq- server/ +bug/1312507? comments= all
In this bug: https:/
The issue was fixed using -DEPMD6" in CPPFLAGS (https:/ /bugs.launchpad .net/ubuntu/ +source/ rabbitmq- server/ +bug/1312507/ comments/ 5) which perhaps (I speculate only)
There is another complaint regarding the same issue here: https:/ /bugs.launchpad .net/ubuntu/ +source/ rabbitmq- server/ +bug/1312507/ comments/ 14
[System info]
lsb_release -rd
Description: Ubuntu 14.04.1 LTS
Release: 14.04
apt-cache policy rabbitmq-server mirror. hetzner. de/ubuntu/ packages/ trusty/main amd64 Packages de.archive. ubuntu. com/ubuntu/ trusty/main amd64 Packages dpkg/status
rabbitmq-server:
Installed: 3.2.4-1
Candidate: 3.2.4-1
Version table:
*** 3.2.4-1 0
500 http://
500 http://
100 /var/lib/
apt-cache policy erlang-base 3-dfsg- 1ubuntu2. 1 3-dfsg- 1ubuntu2. 1 3-dfsg- 1ubuntu2. 1 0 mirror. hetzner. de/ubuntu/ packages/ trusty-updates/main amd64 Packages de.archive. ubuntu. com/ubuntu/ trusty-updates/main amd64 Packages dpkg/status 16.b.3- dfsg-1ubuntu2 0 mirror. hetzner. de/ubuntu/ packages/ trusty/main amd64 Packages de.archive. ubuntu. com/ubuntu/ trusty/main amd64 Packages
erlang-base:
Installed: 1:16.b.
Candidate: 1:16.b.
Version table:
*** 1:16.b.
500 http://
500 http://
100 /var/lib/
1:
500 http://
500 http://