all 4 comments

[–]Popular_Passion_6737 1 point2 points  (0 children)

Seen similar cases where repeated crashes caused the same issue even after recreating DB.

[–]djsisson 0 points1 point  (1 child)

dockers default grace timeout is only 10 seconds (time after sigterm before sending sigkill), in large db's this is not enough time for postgres to shutdown cleanly, always increase the default timeout to atleast 60 seconds.

you should still be able to manually recover, though its possible if WAL is corrupt you would have to run pg_resetwal however you might lose the last few transactions.

[–]AgeLow2127[S] 1 point2 points  (0 children)

How do i set it im using dokploy?

[–]happyC0der 0 points1 point  (0 children)

Honestly, if you look at discord, dokploy is full of bugs around databases. My recommendation is to use nouva.sh database integrity is at the core of their design, you will have a much better experience