VMware Cloud Director fails to connect to RabbitMQ with ACCESS_REFUSED – Login was refused using authentication mechanism PLAIN
book
Article ID: 410212
calendar_today
Updated On:
Products
VMware Cloud Director
Issue/Introduction
VMware Cloud Director logs show repeated AMQP authentication failures when connecting to RabbitMQ.
cell-runtime.log contains entries similar to: org.springframework.amqp.AmqpAuthenticationException: com.rabbitmq.client.AuthenticationFailureException: ACCESS_REFUSED - Login was refused using authentication mechanism PLAIN
AMQP connectivity tests via the UI may succeed.
The RabbitMQ username appears as guest.
Environment
10.3
10.4
10.5
10.6
Cause
This issue occurs when VCD is configured to use invalid or restricted RabbitMQ credentials.
By default RabbitMQ disables or limits access for the guest account unless explicitly configured.
If VMware Cloud Director is still using this account or an incorrect password, authentication will fail.
Resolution
Log in to the RabbitMQ management UI.
Create a dedicated RabbitMQ user with a known password.
Assign the user to the required virtual host (default is '/')
Update the VCD AMQP settings to use the new credentials.
Check the cell-runtime.log to confirm AMQP connections are succeeding.
Additional Information
Default RabbitMQ ports: 5672 (non-SSL) and 5671 (SSL/TLS).
Default virtual host: '/'
Always use a dedicated user rather than the default guest account for production systems.