rabbitmq.config file not found

1,797 views
Skip to first unread message

niles...@exioms.com

unread,
Feb 16, 2016, 6:12:44 AM2/16/16
to rabbitmq-users
i am using windows and rabbitmq server is not getting config file (/rabbitmq.config (not found))

please help me to solve this problem

I have create another user named "administrator"

also created the rabbitmq.config file place the below code
[{rabbit, [{loopback_users, []}]}].

dfed...@pivotal.io

unread,
Feb 16, 2016, 6:24:34 AM2/16/16
to rabbitmq-users
Can you tell RMQ version you use, how do you start server (via command line, bat file or windows service), and what env variables are set?

Michael Klishin

unread,
Feb 16, 2016, 6:26:33 AM2/16/16
to rabbitm...@googlegroups.com, niles...@exioms.com
On 16 February 2016 at 14:12:46, niles...@exioms.com (niles...@exioms.com) wrote:
> i am using windows and rabbitmq server is not getting config
> file (/rabbitmq.config (not found))

This means RabbitMQ is configured to load config file from a location where it does not exist
(or cannot be read e.g. due to insufficient permissions). So your config is never applied. 
--
MK

Staff Software Engineer, Pivotal/RabbitMQ


Nilesh Zare

unread,
Feb 16, 2016, 6:41:34 AM2/16/16
to rabbitm...@googlegroups.com
I am using rabbitmq - 3.6.0 version, i am starting service by going to control panel -> administrative tools -> service and selecting the rabbitmq and start / restarting it.

I had install by following steps given in tutorial: https://www.rabbitmq.com/configure.html
  • Start an admin command prompt
  • cd into the sbin folder under RabbitMQ server installation directory (e.g.C:\Program Files (x86)\RabbitMQ Server\rabbitmq_server-3.6.0\sbin)
  • Run rabbitmq-service.bat remove
  • Set environment variables via command line, i.e. run commands like the following:set RABBITMQ_BASE=c:\Data\RabbitMQ
  • Run rabbitmq-service.bat install
Alternative, if new configuration needs to take effect after next broker restart, one step can be skipped:
  • Start an admin command prompt
  • cd into the sbin folder under RabbitMQ server installation directory
  • Set environment variables via command line
  • Run rabbitmq-service.bat install, which will only update service parameters

--
You received this message because you are subscribed to a topic in the Google Groups "rabbitmq-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/rabbitmq-users/x_y1EiVAL8Y/unsubscribe.
To unsubscribe from this group and all its topics, 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.



--

Nilesh Zare | Software Developer
M/+91-8460-276-155 | 0-9555-229-229
niles...@exioms.com | www.exioms.com

dfed...@pivotal.io

unread,
Feb 16, 2016, 6:51:59 AM2/16/16
to rabbitmq-users
If you edit RABBITMQ_BASE or RABBITMQ_CONFIG_FILE it should correspond with rabbitmq.config file location. RABBITMQ_CONFIG_FILE should point to this file (without extension), otherwise RABBITMQ_BASE should point to directory where rabbitmq.config file is located.

Nilesh Zare

unread,
Feb 16, 2016, 7:15:47 AM2/16/16
to rabbitm...@googlegroups.com
i had set env variable in same way, then also it is displaying rabbitmq.config not found.

Michael Klishin

unread,
Feb 16, 2016, 7:19:30 AM2/16/16
to rabbitm...@googlegroups.com
For environment variables to be picked up on Windows you must
reinstall the service.
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-user...@googlegroups.com.

Nilesh Zare

unread,
Feb 16, 2016, 7:39:38 AM2/16/16
to rabbitm...@googlegroups.com
Thanks... Now rabbitmq.config file is found.

but then also error is still there

when i am trying to sethost in connection factory via localhost it is sending the data but if i write IP Address instead of localhost it gives us error

This is the following error :

Exception in thread "main" com.rabbitmq.client.AuthenticationFailureException: ACCESS_REFUSED - Login was refused using authentication mechanism PLAIN. For details see the broker logfile.
at com.rabbitmq.client.impl.AMQConnection.start(AMQConnection.java:338)
at com.rabbitmq.client.ConnectionFactory.newConnection(ConnectionFactory.java:590)
at com.rabbitmq.client.ConnectionFactory.newConnection(ConnectionFactory.java:612)
at rabbitmq_test.Receive.main(Receive.java:16)


I have create another user named "administrator"

also created the rabbitmq.config file place the below code
[{rabbit, [{loopback_users, []}]}].

if it is the problem of config file then can you please send me the rabbitmq.config file for access IP Address and please help in solving this problem


dfed...@pivotal.io

unread,
Feb 16, 2016, 8:02:56 AM2/16/16
to rabbitmq-users
More information should be in broker logs. Can you provide it?

Michael Klishin

unread,
Feb 16, 2016, 8:24:53 AM2/16/16
to rabbitm...@googlegroups.com
Did you grant your user any permissions to the vhost you connect to
("/" by default)?

Nilesh Zare

unread,
Feb 17, 2016, 1:41:22 AM2/17/16
to rabbitm...@googlegroups.com
thanks... now error is solved and it is working.
Reply all
Reply to author
Forward
0 new messages