Lemmy: FATAL: password authentication failed

Created on 3 Jul 2020  路  9Comments  路  Source: LemmyNet/lemmy

I am following the install process for docker users. I created a new postgres user named lemmy and set its password. I set its password in the lemmy.hjson file. Now I repeatedly get this error:

lemmy_1 | [2020-07-03T15:19:04Z ERROR r2d2] FATAL: password authentication failed for user "lemmy"

All 9 comments

You set the password in docker-compose.yml, and you did that before running docker-compose up -d for the first time?

Oh no, I didn't! I just fixed that. I already ran docker-compose up -d, what do I do?

Thank you for the help!

Now when I run docker-compose up -d, I simply get this error message when I go to the URL:
502 Bad Gateway

I am using the included nginx conf in the Install with Docker guide with the proper hostname set

Log please.

postgres_1  | 2020-07-03 18:21:58.111 UTC [661] FATAL:  password authentication failed for user "lemmy"
postgres_1  | 2020-07-03 18:21:58.111 UTC [661] DETAIL:  Password does not match for user "lemmy".
postgres_1  |   Connection matched pg_hba.conf line 95: "host all all all md5"

You need to start from scratch again, and set those passwords before you start the services.

I know absolutely nothing about docker or postgres. sorry for bugging you. Should I delete my postgres user and recreate it? Is there a way to uninstall the docker image or can I run the docker-compose up -d command to re-install?

Sorry for being a pain, I appreciate the support

That's okay :)

sudo docker-compose down
sudo rm -rf volumes

And then follow the guide again.

Thank you again @dessalines. I'll close this issue now.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

juliangaal picture juliangaal  路  3Comments

NicolasCARPi picture NicolasCARPi  路  5Comments

Nutomic picture Nutomic  路  4Comments

Nutomic picture Nutomic  路  5Comments

chopin2712 picture chopin2712  路  3Comments