gabn88
gabn88

Reputation: 811

RabbitMQ is configured to use a custom epmd port, but the server still starts on the default epmd process

I have rabbitmq versions 3.7.7, with erlang 21.0.

I have started a epmd deamon on, let's say, port 20000.

I have also set the ERL_EPMD_PORT=20000 on the rabbitmq-env.conf.

Now when I start ./rabbitmq-server, it still start a new epmd process on port 4369 (the default) and starts a node under that. So under epmd -port 20000 no rabbitmq node is active.

However, when I try to control the node, rabbitmqctl status DOES look under the epmd process under port 20000, and thus finds nothing.

  1. How can I make sure rabbitmq-server uses the custom epmd port
  2. Why are rabbitmq-server and rabbitmqctl using a different rabbitmq-env.conf file/environment?

Upvotes: 0

Views: 1047

Answers (1)

gabn88
gabn88

Reputation: 811

Well, I ended up writing (after a struggle of one day to get it working the 'nice' way):

export ERL_EPMD_PORT=20000 in sbin/rabbitmq-defaults

Still I find it a lame answer, but is does work! Stored here for future reference and others with the same question

Upvotes: 0

Related Questions