Changing passwords in the .env file produces failure to authenticate with postgres user #1821
-
Hello, I have been trying to change passwords in the production server with the help of the .env file. psql: FATAL: password authentication failed for user "postgres"
FATAL: password authentication failed for user "postgres" Isn't that all I am supposed to do to change passwords ? Thanks in advance. |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments
-
Hello ! I got the same problem and for me it was due to the volume creation of docker you can check that with :
I'm not an expert in Docker but I think if you change the password in the .env it does not create a new volume or use the old one to connect with your new password and that will obviously not work. From this constatation you have 2 solution the first one is more or less "brutforce" and it worked for me the second one is maybe more smart but i didn't test it:
or to delete every single volume
then build your project image again
Hope this will help you :) Do not hesitate to correct me or complete my answer |
Beta Was this translation helpful? Give feedback.
-
Just upvoting that I ran into the same issue today, I think even a simple clarification on the readme would be a nice patch as a troubleshooting step. |
Beta Was this translation helpful? Give feedback.
-
We ran into the same issue. |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
抱歉..剛下班,不太會用,搞了好久才... |
Beta Was this translation helpful? Give feedback.
-
I ran into the same issue after modifying the default password for PG, deleting the db volume manually and rerunning
|
Beta Was this translation helpful? Give feedback.
Hello ! I got the same problem and for me it was due to the volume creation of docker you can check that with :
I'm not an expert in Docker but I think if you change the password in the .env it does not create a new volume or use the old one to connect with your new password and that will obviously not work.
From this constatation you have 2 solution the first one is more or less "brutforce" and it worked for me the second one is maybe more smart but i didn't test it:
or to delete every single volume
then build your project i…