Skip to content

Postgresql having trouble with Version 18 #55

@cbxd

Description

@cbxd

I reran the restart.sh script and postgres wouldn't cooperate.

I got the error:
Error response from daemon: failed to create task for container: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: error during container init: error mounting "mstack/appdata/postgresql" to rootfs at "/var/lib/postgresql/data": change mount propagation through procfd: open o_path procfd: open /var/lib/docker/overlay/<hash>/merged/var/lib/postgresql/data: no such file or directory: unknown

I read the docker page for postgres (at https://hub.docker.com/_/postgres#pgdata) and tried updating the volume from:
- ${FOLDER_FOR_DATA:?err}/postgresql:/var/lib/postgresql/data
to
- ${FOLDER_FOR_DATA:?err}/postgresql:/var/lib/postgresql/18/data

But that didn't work and left me with dependency failed to start: container postgresql is unhealthy

Temporary workaround:
Updating the postgresql docker image to:
image: docker.io/library/postgres:17
lets it run, but naturally being stuck at an older version isn't ideal.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions