You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Database gets corrupted after running for a while
#1158
I try remove all images and containers and start. I try alpine and debian image. It does not run. I remove _pgdata folder and start again I work. But i lost all data. I don't understand what is change after time?
This issue is caused by the incorrect initialization of the Postgres container. By default, the user password is generated using md5, so the password should be updated to support scram-sha-256. To resolve this issue, you can use POSTGRES_INITDB_ARGS="--auth-host=scram-sha-256" in the docker-compose.
But on my end, it didn't work to set a variable to that value for some reason.
I've added this to the config, so it should be ok for the local env
This discussion was converted from issue #1133 on December 05, 2023 00:11.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
I have basic docker compose file. It work 1-2 day after i see my app can't connect to db.
I try remove all images and containers and start. I try alpine and debian image. It does not run. I remove _pgdata folder and start again I work. But i lost all data. I don't understand what is change after time?
Can i use postgresql in production with docker ?
folder permision:
drwx------ 19 999 root 4096 Oct 2 10:43 _pgdata
docker inspect pgdb (borken):
https://hastebin.com/share/xeyadefuve.json
DB container logs here:
All reactions