Postgres authentication fails upon startup #3273
-
I've set the Postgres environment variables for user access, but outline seems to error out while trying to connect to the database. The POSTGRES_USER and POSTGRES_PASS environment vars match the DB_URL properties Anyone know why this might be happening? This is the error I'm getting:
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 11 replies
-
Since you are using the Docker version of the Outline setup, can you confirm that the Postgres container has been successfully initialised with the desired user/password combination and database? One way to check could be by logging in to the database container directly:
|
Beta Was this translation helpful? Give feedback.
-
I recently had a very similar / identical issue myself. When using the docker postgres container I think it's best to supply the user/pass/dbname in the compose env variables to specify the database that should be created at initial run. Once that's done though, you can't easily change the user/pass/dbname. In my case I changed some of these settings and couldn't log into postgres with the I rm'd both the postgres container and the db volume (contents), then started again with the following docker-compose snippet:
after which the test command which failed previously, worked correctly:
This helped me: https://stackoverflow.com/a/42043642/3093392 |
Beta Was this translation helpful? Give feedback.
Since you are using the Docker version of the Outline setup, can you confirm that the Postgres container has been successfully initialised with the desired user/password combination and database?
One way to check could be by logging in to the database container directly: