Skip to content

Power outage, suddenly my docker postgres is screwed? #1275

@maxiedaniels

Description

@maxiedaniels

I'm using unraid with the docker image of postgres. Here's the errors i'm getting:

2024-08-28 09:47:28.941 PDT [27] LOG:  00000: database system was interrupted while in recovery at 2024-08-28 09:46:23 PDT
2024-08-28 09:47:28.941 PDT [27] HINT:  This probably means that some data is corrupted and you will have to use the last backup for recovery.
2024-08-28 09:47:30.875 PDT [27] LOG:  00000: database system was not properly shut down; automatic recovery in progress
2024-08-28 09:47:30.881 PDT [27] FATAL:  58P01: could not open directory "/var/run/postgresql/13-main.pg_stat_tmp": No such file or directory

My configuration has been working for months and i haven't touched the setup.
My binds:
/mnt/cache/databases/postgresql/13/main -> /var/lib/postgresql/data
/mnt/cache/databases/postgresql -> /postgresdb

The only advice i see for this issue (not docker specific) is to create the 13-main.pg_stat_tmp directory. But as far as i understand it, that folder isn't within a mounted point and is just in the docker postgres image, no? So it feels like the solution can't be to go into an area that's supposed to be static on the image to create a folder.

Any idea why postgres is getting jammed up??

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions