not sure why my rabbitmq 3.7.4. does not take new config (non erlang) format.

2,197 views
Skip to first unread message

htang

unread,
Apr 22, 2018, 12:03:27 AM4/22/18
to rabbitmq-users
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

Michael Klishin

unread,
Apr 22, 2018, 12:05:05 AM4/22/18
to rabbitm...@googlegroups.com
The message provides a hint: `rabbitmq.config` must be a valid Erlang terms file which must end with a trailing dot.

The new config format by definition doesn't have a trailing dot. So the file name must be `rabbitmq.conf`, not `rabbitmq.config`.

--
You received this message because you are subscribed to the Google Groups "rabbitmq-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-users+unsubscribe@googlegroups.com.
To post to this group, send email to rabbitmq-users@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
MK

Staff Software Engineer, Pivotal/RabbitMQ

htang

unread,
Apr 22, 2018, 12:11:34 PM4/22/18
to rabbitmq-users
Hi, Mike,
 Thanks for the help, that works, after changing the file name to rabbitmq.conf, it starts fine.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-user...@googlegroups.com.
To post to this group, send email to rabbitm...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.
Message has been deleted

NAVEEN KUMAR

unread,
Jul 12, 2018, 2:26:00 AM7/12/18
to rabbitmq-users
Thanks. its works.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-user...@googlegroups.com.
To post to this group, send email to rabbitm...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages