I'm using caprover which uses docker to deploy postgresql 12. Right now my postgresql database is constantly restarting and printing this log everytime:
[24] LOG: invalid resource manager ID ...
[24] LOG: invalid primary checkpoint record ...
[24] PANIC: could not locate a valid checkpoint record
The problem is that the container dies immediately so I can't do any docker exec
to try to pg_dump
or in the worst case scenario pg_resetwal
.
Any idea why this is happening? How can I possibly pg_dump
or pg_resetwal
?