Cryptic AMQP connection error

118 views
Skip to first unread message

jesse

unread,
Nov 10, 2022, 2:32:18 AM11/10/22
to rabbitmq-users
Hey guys, I am getting:
```
2022-11-10 07:21:03.965 [info] <0.3446.0> accepting AMQP connection <0.3446.0> (10.10.140.234:58728 -> 10.10.138.74:5672)
2022-11-10 07:21:03.967 [error] <0.3446.0> Error on AMQP connection <0.3446.0> (10.10.140.234:58728 -> 10.10.138.74:5672, state: starting):
PLAIN login refused: user 'guest' can only connect via localhost
2022-11-10 07:21:03.987 [info] <0.3446.0> closing AMQP connection <0.3446.0> (10.10.140.234:58728 -> 10.10.138.74:5672)
2022-11-10 07:21:03.988 [info] <0.3448.0> Closing all channels from connection '<<"10.10.140.234:58728 -> 10.10.138.74:5672">>' because it has been closed
2022-11-10 07:21:06.349 [info] <0.3452.0> accepting AMQP connection <0.3452.0> (10.10.168.202:37284 -> 10.10.138.74:5672)
2022-11-10 07:21:06.351 [error] <0.3452.0> Error on AMQP connection <0.3452.0> (10.10.168.202:37284 -> 10.10.138.74:5672, state: starting):
PLAIN login refused: user 'guest' can only connect via localhost
2022-11-10 07:21:06.372 [info] <0.3452.0> closing AMQP connection <0.3452.0> (10.10.168.202:37284 -> 10.10.138.74:5672)
2022-11-10 07:21:06.373 [info] <0.3454.0> Closing all channels from connection '<<"10.10.168.202:37284 -> 10.10.138.74:5672">>' because it has been closed
2022-11-10 07:21:06.966 [info] <0.3458.0> accepting AMQP connection <0.3458.0> (10.10.155.151:33906 -> 10.10.138.74:5672)
2022-11-10 07:21:06.968 [error] <0.3458.0> Error on AMQP connection <0.3458.0> (10.10.155.151:33906 -> 10.10.138.74:5672, state: starting):
PLAIN login refused: user 'guest' can only connect via localhost
2022-11-10 07:21:06.988 [info] <0.3458.0> closing AMQP connection <0.3458.0> (10.10.155.151:33906 -> 10.10.138.74:5672)
2022-11-10 07:21:06.989 [info] <0.3460.0> Closing all channels from connection '<<"10.10.155.151:33906 -> 10.10.138.74:5672">>' because it has been closed
2022-11-10 07:21:08.319 [info] <0.3466.0> accepting AMQP connection <0.3466.0> (10.10.186.43:41786 -> 10.10.138.74:5672)
2022-11-10 07:21:08.321 [error] <0.3466.0> Error on AMQP connection <0.3466.0> (10.10.186.43:41786 -> 10.10.138.74:5672, state: starting):
```
I can see that there are 3 replicas spawned up in the UI. The nodes connect just fine, as far as I know everything is running just perfectly. Except I get this error. 

Any idea where to look? 

Thanks,
Ryan

Luke Bakken

unread,
Nov 10, 2022, 11:15:55 AM11/10/22
to rabbitmq-users
Hello -

I'm not sure what "3 replica spawned in the UI" means. Do you have a three node cluster?

What version of RabbitMQ and Erlang are you using?

What is connecting to RabbitMQ? Your web browser, what else?

jo...@cloudamqp.com

unread,
Nov 10, 2022, 11:28:33 AM11/10/22
to rabbitmq-users
Hi,
There are cryptic error messages in RabbitMQ but this is not one of them:
"PLAIN login refused: user 'guest' can only connect via localhost" <- Don't use guest. And especially don't use it over network.

/Johan

jesse

unread,
Nov 10, 2022, 11:56:27 AM11/10/22
to rabbitmq-users
Yes, I have a RabbitMQ cluster with 3 replicas.

Not entirely sure about the Erlang, but I am using 3.8.11 rabbitmq docker image.

I am using k8s here to deploy the RabbitMQ cluster with 3 nodes and there are other k8s pods that may be trying to connect to the RabbitMQ.

Thanks.

Luke Bakken

unread,
Nov 10, 2022, 11:58:57 AM11/10/22
to rabbitmq-users
Well, like Johan said, some AMQP application is trying to connect using the "guest" account, which won't work.

You can see the source IPs in the output, maybe that will be helpful.

jesse

unread,
Nov 10, 2022, 12:20:49 PM11/10/22
to rabbitmq-users
I see. How do I specify the AMQP application to not use the default "guest" account? Should it be specified in that source application?

Luke Bakken

unread,
Nov 10, 2022, 1:04:38 PM11/10/22
to rabbitmq-users
Yes, AMQP applications specify the credentials they use to connect.
Reply all
Reply to author
Forward
0 new messages