Hi, I have a problem to start RabbitMQ server with the new configuration format. I have searched issue discussion history here and could not find the post for this issue. I wonder what if I missed or did wrong. Here is the environments I used:
CentOS 7
Following RabbitMQ 3.7 install documentation to install erlang and RabbitMQ using following packages: erlang-20.2.2-1.el7.centos.x86_64.rpm & rabbitmq-server-3.7.4-1.el7.noarch.rpm
after installation, start rabbitmq server successfully before making any configurations (rabbit-env.conf and rabbitmq.config).
Now add new configuration files in /etc/rabbitmq folder, make sure the owner are rabbitmq and it can be read by all users with these files, the rabbitmq.config file is as following
cluster_formation.classic_config.nodes.1 = rabbit@sdt1
cluster_formation.classic_config.nodes.2 = rabbit@sdt1
cluster_formation.node_type = disc
listeners.tcp.default = 5672
loopback_users.guest = false
default_permissions.configure = .*
default_permissions.read = .*
default_permissions.write = .*
default_user_tags.administrator = true
when I start the server, get the following error:
Apr 21 23:24:22
sdt1.corp.com rabbitmq-server[21522]: {"could not start kernel pid",application_controller,"error in config file \"/etc/rabbitmq/rabbitmq.config\" (none): no ending <dot> found"}
Apr 21 23:24:23
sdt1.corp.com rabbitmq-server[21522]: could not start kernel pid (application_controller) (error in config file "/etc/rabbitmq/rabbitmq.config" (none): no ending <dot> found)
I know this is complaining that the rabbitmq.config is not using the old erlang format.
when I change the rabbitmq.config to follwoing for a test, it starts ok without problem.
[{rabbit, [
{cluster_nodes, {['rabbit@sdt1', 'rabbit@sdt1'], disc}},
{default_user,<<"mqtttest">>},
{default_pass,<<"mqtttest">>},
{loopback_users, []},
{tcp_listeners, [5672]}]}
].
Can someone tell me what I could be missing? I thought RabbitMQ 3.7.4 definitely supports the new format. How do I debug to find out what I could do wrong?
BTW: I checked the erlang installed package, I only have the right erlang package installed as below. This is "Zero-dependency Erlang from RabbitMQ" following Michael Klishin's github repository....
[root@sdt1 rabbitmq]# yum list installed | grep erlang
erlang.x86_64 20.2.2-1.el7.centos installed
Thanks in advance for any help!
Harry