Cannot set Management Plugin options in rabbitmq.conf

352 views
Skip to first unread message

BoboPogX13

unread,
Nov 23, 2019, 8:05:01 AM11/23/19
to rabbitmq-users
Hi,

I am trying to follow the instructions on the Management Plugin documentation to configure SSL, but I keep getting errors saying that it doesn't recognise any of the settings. I am running v3.7.8 of RabbitMQ on a Raspberry Pi running Raspbian.

I added a `rabbitmq.conf` file to `/etc/rabbitmq/` as one did not exist, and added the following options to it as per the documentation:

```
management.ssl.port       = 15671
management.ssl.cacertfile = /path/to/ca_certificate.pem
management.ssl.certfile   = /path/to/server_certificate.pem
management.ssl.keyfile    = /path/to/server_key.pem
```

But I get the following error when trying to start the service

```
13:03:04.386 [error] You've tried to set management.ssl.port, but there is no setting with that name.
13:03:04.386 [error]   Did you mean one of these?
13:03:04.619 [error]     management.listener.port
13:03:04.619 [error]     management.listener.ip
13:03:04.619 [error]     management.rates_mode
13:03:04.620 [error] You've tried to set management.ssl.cacertfile, but there is no setting with that name.
13:03:04.620 [error]   Did you mean one of these?
13:03:04.911 [error]     management.listener.ip
13:03:04.911 [error]     management.listener.ssl
13:03:04.911 [error]     management.path_prefix
13:03:04.912 [error] You've tried to set management.ssl.certfile, but there is no setting with that name.
13:03:04.912 [error]   Did you mean one of these?
13:03:05.184 [error]     management.listener.ip
13:03:05.184 [error]     management.listener.ssl
13:03:05.184 [error]     management.path_prefix
13:03:05.186 [error] You've tried to set management.ssl.keyfile, but there is no setting with that name.
13:03:05.186 [error]   Did you mean one of these?
13:03:05.445 [error]     management.listener.ip
13:03:05.445 [error]     management.cors.max_age
13:03:05.445 [error]     management.listener.ssl
13:03:05.446 [error] Error generating configuration in phase transform_datatypes
13:03:05.446 [error] Conf file attempted to set unknown variable: management.ssl.keyfile
13:03:05.446 [error] Conf file attempted to set unknown variable: management.ssl.certfile
13:03:05.446 [error] Conf file attempted to set unknown variable: management.ssl.cacertfile
13:03:05.446 [error] Conf file attempted to set unknown variable: management.ssl.port
```

I'm not sure what I'm doing wrong here. Why is it suggesting to use other ways of setting the SSL config?

Thanks in advance for any help.

Chris

Luke Bakken

unread,
Nov 25, 2019, 12:34:55 PM11/25/19
to rabbitmq-users
Hi Chris,

Could you please attach your complete rabbitmq.conf file? According to the information you've provided it should be working.

Thanks,
Luke

BoboPogX13

unread,
Nov 25, 2019, 1:01:47 PM11/25/19
to rabbitmq-users
Hi Luke,

Thanks for your reply.

My complete rabbitmq.conf file looks like below. It is only very simple. Since the post, I removed the SSL options and just tried to set the TCP port as per the docs, but even that's giving me the same error. All other options above setting the TCP port work fine.

listeners.ssl.default = 5671
ssl_options
.cacertfile = /etc/rabbitmq/ssl/ca_certificate.pem
ssl_options
.certfile   = /etc/rabbitmq/ssl/server_certificate.pem
ssl_options
.keyfile    = /etc/rabbitmq/ssl/private_key.pem
ssl_options
.password   = ******
ssl_options
.verify     = verify_peer
ssl_options
.fail_if_no_peer_cert = true

management
.tcp.port = 15675

And the error on startup is

17:52:20.892 [error] You've tried to set management.tcp.port, but there is no setting with that name.
17:52:20.892 [error]   Did you mean one of these?
17:52:21.157 [error]     management.listener.port
17:52:21.158 [error]     management.rates_mode
17:52:21.158 [error]     management.http_log_dir
17:52:21.158 [error] Error generating configuration in phase transform_datatypes
17:52:21.158 [error] Conf file attempted to set unknown variable: management.tcp.port

The plugin is definitely enabled and working, as I could access it on the default port. Am I missing something else in the config for management settings here?

Thanks,
Chris

Luke Bakken

unread,
Nov 25, 2019, 1:04:39 PM11/25/19
to rabbitmq-users
Hi Chris,

* How did you install RabbitMQ?

* What is the output of rabbitmq-plugins list?

BoboPogX13

unread,
Nov 25, 2019, 1:29:58 PM11/25/19
to rabbitmq-users
- I ran the following commands on a fresh installation of Raspian (as of about a week ago):

> apt-get update
> apt-get install rabbitmq-server
> service rabbitmq-server start
> rabbitmq-plugins enable rabbitmq_management

Output of `rabbitmq-plugins list` is:

[  ] rabbitmq_amqp1_0                  3.7.8
[  ] rabbitmq_auth_backend_cache       3.7.8
[  ] rabbitmq_auth_backend_http        3.7.8
[  ] rabbitmq_auth_backend_ldap        3.7.8
[  ] rabbitmq_auth_mechanism_ssl       3.7.8
[  ] rabbitmq_consistent_hash_exchange 3.7.8
[  ] rabbitmq_event_exchange           3.7.8
[  ] rabbitmq_federation               3.7.8
[  ] rabbitmq_federation_management    3.7.8
[  ] rabbitmq_jms_topic_exchange       3.7.8
[E ] rabbitmq_management               3.7.8
[e ] rabbitmq_management_agent         3.7.8
[  ] rabbitmq_mqtt                     3.7.8
[  ] rabbitmq_peer_discovery_aws       3.7.8
[  ] rabbitmq_peer_discovery_common    3.7.8
[  ] rabbitmq_peer_discovery_consul    3.7.8
[  ] rabbitmq_peer_discovery_etcd      3.7.8
[  ] rabbitmq_peer_discovery_k8s       3.7.8
[  ] rabbitmq_random_exchange          3.7.8
[  ] rabbitmq_recent_history_exchange  3.7.8
[  ] rabbitmq_sharding                 3.7.8
[  ] rabbitmq_shovel                   3.7.8
[  ] rabbitmq_shovel_management        3.7.8
[  ] rabbitmq_stomp                    3.7.8
[  ] rabbitmq_top                      3.7.8
[  ] rabbitmq_tracing                  3.7.8
[  ] rabbitmq_trust_store              3.7.8
[e ] rabbitmq_web_dispatch             3.7.8
[  ] rabbitmq_web_mqtt                 3.7.8
[  ] rabbitmq_web_mqtt_examples        3.7.8
[  ] rabbitmq_web_stomp                3.7.8
[  ] rabbitmq_web_stomp_examples       3.7.8

Wesley Peng

unread,
Nov 25, 2019, 9:01:30 PM11/25/19
to rabbitm...@googlegroups.com
Hi

on 2019/11/26 2:29, BoboPogX13 wrote:
>
> |
>>apt-getupdate
>>apt-getinstall rabbitmq-server
>>service rabbitmq-server start
>>rabbitmq-plugins enable rabbitmq_management
> |

If it's possible, please upgrade both rabbitmq and erlang to the latest
version and give a try on the plugin management.

Regards.

Luke Bakken

unread,
Nov 26, 2019, 11:21:26 AM11/26/19
to rabbitmq-users
Hello,

Thanks for all of that information. It "should" be working, but clearly there is something wrong with the Raspbian RabbitMQ package.

You can use these instructions to install using the RabbitMQ team's package: https://www.rabbitmq.com/install-debian.html

Or, give the generic-unix package a try from here: https://github.com/rabbitmq/rabbitmq-server/releases/tag/v3.8.1

Download, extract, copy your rabbitmq.conf file to ./etc/rabbitmq, and run ./sbin/rabbitmq-server

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