Windows - PLAIN login refused: user 'xxx' - invalid credentials

1,103 views
Skip to first unread message

Keith MacDonald

unread,
Aug 12, 2016, 10:20:58 AM8/12/16
to rabbitmq-users
I had this up and working for a month with no issues. Then I restarted my service that connects to RabbitMQ (using the .Net RabbitMQClient 3.6.2) and I started getting this error.

Error on AMQP connection <0.12732.86> ([::1]:60708 -> [::1]:5672, state: starting):
PLAIN login refused: user 'xxx' - invalid credentials

I verified that the password is correct and verified that it has full permissions.

Virtual Host = /
Configure regexp = .*
Write regexp = .*
Read regexp = .*
tags = administrator

The service is on the same box as rabbitMQ. It cannot connect using this account, but I can connect using guest/guest.
Other applications, running on different machines CAN and do connect to the rabbitMQ instance on this machine using this account and do not get login refused.

I am totally baffled.

Any help is appreciated.


Michael Klishin

unread,
Aug 12, 2016, 10:26:10 AM8/12/16
to rabbitm...@googlegroups.com
"invalid credentials" is unambiguous. The problem is on the client end,
e.g. your client may be connecting to a vhost other than "/".

If an external authn backend was used, it could mean it failed to connect to the external
service but that should affect all clients and all cluster nodes equally.

--
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

Keith MacDonald

unread,
Aug 12, 2016, 1:50:35 PM8/12/16
to rabbitm...@googlegroups.com
I agree the message is unambiguous, but I've checked username, password, host, and virtual host connection settings, and they are all correct. The problem only happens on the local machine.

I am connecting using

host=localhost (i have also tried the machine name)
port=5671
virtual host = /
username = "my username"
password = "my password"




To post to this group, send email to rabbitm...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--
MK

Staff Software Engineer, Pivotal/RabbitMQ

--
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/z7MFY14ow-g/unsubscribe.
To unsubscribe from this group and all its topics, send an email to rabbitmq-users+unsubscribe@googlegroups.com.

Michael Klishin

unread,
Aug 13, 2016, 12:47:18 AM8/13/16
to rabbitm...@googlegroups.com
Collect data, don't guess. Please do post server logs, rabbitmqctl environment output and your code. You connect to the TLS port: was the client configured to use TLS or do you want port 5672 (which is the default)?
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-user...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages