Skip to content

Can't change rabbit credentials #1337

Closed

Description

@curious-broccoli

I recently tried to change all of the default credentials in the .env file on my own instance and had some problems so I am trying again. I started by changing the flower credentials and it worked well.
Now I tried to change the credentials for rabbit and it simply did not change anything and the default credentials still worked.

Every time I change the credentials I do docker-compose down --volumes and then docker compose up -d
These are the current variables. the passwords are 20 characters long.

RABBITMQ_HOST=rabbit
RABBITMQ_DEFAULT_USER=rabbit-username
RABBITMQ_DEFAULT_PASS='...REDACTED...'
RABBITMQ_MANAGEMENT_PORT=15672
RABBITMQ_PORT=5672
WORKER_CONNECTION_TIMEOUT=100000000 # milliseconds

FLOWER_PUBLIC_PORT=5555

FLOWER_BASIC_AUTH='root:...REDACTED...'

Here are the rabbit logs, I will add more if you tell me which you need.

rabbit-1          | 2024-02-16 10:59:07.512346+00:00 [info] <0.2095.0> accepting AMQP connection <0.2095.0> (172.24.0.7:37626 -> 172.24.0.4:5672)
rabbit-1          | 2024-02-16 10:59:07.513567+00:00 [error] <0.2095.0> Error on AMQP connection <0.2095.0> (172.24.0.7:37626 -> 172.24.0.4:5672, state: starting):
rabbit-1          | 2024-02-16 10:59:07.513567+00:00 [error] <0.2095.0> AMQPLAIN login refused: user 'rabbit-username' - invalid credentials
rabbit-1          | 2024-02-16 10:59:07.513711+00:00 [info] <0.2095.0> closing AMQP connection <0.2095.0> (172.24.0.7:37626 -> 172.24.0.4:5672)

Activity

  1. Didayolo commented on Feb 19, 2024

    @Didayolo
    Member

    Thank you for reporting this problem. I am wondering where the old rabbit password is stored? Because I think we do not have this problem when setting a different password on a fresh install. I'll have a look at this.

    @ihsaan-ullah Any clue?

  2. Didayolo commented on Feb 19, 2024

    @Didayolo
    Member

    I confirm I could reproduce the problem

  3. ihsaan-ullah commented on Feb 19, 2024

    @ihsaan-ullah
    Collaborator

    There was another user who wanted to use different credentials for db. We need to test and document how people can use their own credentials.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions