pardahlman / docker-rabbitmq-cluster

Cluster RabbitMQ (official docker image)
185 stars 77 forks source link

get error PLAIN login refused: user 'guest' - invalid credentials after customizing .env file #2

Open sadeghmohebbi opened 5 years ago

sadeghmohebbi commented 5 years ago

hello

after editing .env file, I run the commands and I see error logs cause of invalid auth

cleanup docker docker rm -v $(docker ps -a -f status=exited -q) docker rmi $(docker images -f "dangling=true" -q) docker system prune docker volume prune

then running your repo cluster docker-compose up -d

I see logs below (docker-compose logs -f)

rabbitmq3_1  | 2019-02-13 10:50:08.730 [info] <0.823.0> accepting AMQP connection <0.823.0> (172.25.0.5:49252 -> 172.25.0.4:5672)
rabbitmq3_1  | 2019-02-13 10:50:08.774 [error] <0.823.0> Error on AMQP connection <0.823.0> (172.25.0.5:49252 -> 172.25.0.4:5672, state: starting):
rabbitmq3_1  | PLAIN login refused: user 'guest' - invalid credentials
rabbitmq1_1  | 2019-02-13 10:50:08.940 [info] <0.1430.0> accepting AMQP connection <0.1430.0> (172.25.0.5:46062 -> 172.25.0.2:5672)
rabbitmq1_1  | 2019-02-13 10:50:08.952 [error] <0.1430.0> Error on AMQP connection <0.1430.0> (172.25.0.5:46062 -> 172.25.0.2:5672, state: starting):
rabbitmq1_1  | PLAIN login refused: user 'guest' - invalid credentials
rabbitmq2_1  | 2019-02-13 10:50:09.818 [info] <0.875.0> accepting AMQP connection <0.875.0> (172.25.0.5:41130 -> 172.25.0.3:5672)
rabbitmq2_1  | 2019-02-13 10:50:09.826 [error] <0.875.0> Error on AMQP connection <0.875.0> (172.25.0.5:41130 -> 172.25.0.3:5672, state: starting):
rabbitmq2_1  | PLAIN login refused: user 'guest' - invalid credentials
rabbitmq1_1  | 2019-02-13 10:50:10.056 [info] <0.1427.0> closing AMQP connection <0.1427.0> (172.25.0.5:46038 -> 172.25.0.2:5672)
rabbitmq2_1  | 2019-02-13 10:50:11.136 [info] <0.872.0> closing AMQP connection <0.872.0> (172.25.0.5:41106 -> 172.25.0.3:5672)
rabbitmq3_1  | 2019-02-13 10:50:11.775 [info] <0.823.0> closing AMQP connection <0.823.0> (172.25.0.5:49252 -> 172.25.0.4:5672)
rabbitmq1_1  | 2019-02-13 10:50:11.953 [info] <0.1430.0> closing AMQP connection <0.1430.0> (172.25.0.5:46062 -> 172.25.0.2:5672)
rabbitmq3_1  | 2019-02-13 10:50:12.415 [info] <0.827.0> accepting AMQP connection <0.827.0> (172.25.0.5:49282 -> 172.25.0.4:5672)
rabbitmq3_1  | 2019-02-13 10:50:12.424 [error] <0.827.0> Error on AMQP connection <0.827.0> (172.25.0.5:49282 -> 172.25.0.4:5672, state: starting):
rabbitmq3_1  | PLAIN login refused: user 'guest' - invalid credentials
infinite...

how can I solve this

cahitbeyaz commented 4 years ago

Take a look at this similar problem: https://github.com/docker-library/rabbitmq/issues/150