I
Immich3y ago
vt

When trying to start postgres I get the following error

when I try to start things up I get the following error: immich_postgres | immich_postgres | PostgreSQL Database directory appears to contain a database; Skipping initialization immich_postgres | immich_postgres | 2023-02-27 16:19:55.564 UTC [1] FATAL: could not open directory "pg_notify": No such file or directory immich_postgres | 2023-02-27 16:19:55.572 UTC [1] LOG: database system is shut down my copose entry for postgres:
database:
container_name: immich_postgres
image: postgres:14
env_file:
- .env
environment:
POSTGRES_PASSWORD: ${DB_PASSWORD}
POSTGRES_USER: ${DB_USERNAME}
POSTGRES_DB: ${DB_DATABASE_NAME}
PG_DATA: /var/lib/postgresql/data
volumes:
- ${UPLOAD_LOCATION}/pgdata:/var/lib/postgresql/data
restart: always
networks:
- proxy
database:
container_name: immich_postgres
image: postgres:14
env_file:
- .env
environment:
POSTGRES_PASSWORD: ${DB_PASSWORD}
POSTGRES_USER: ${DB_USERNAME}
POSTGRES_DB: ${DB_DATABASE_NAME}
PG_DATA: /var/lib/postgresql/data
volumes:
- ${UPLOAD_LOCATION}/pgdata:/var/lib/postgresql/data
restart: always
networks:
- proxy
1 Reply
Alex Tran
Alex Tran3y ago
probably related to your custom mounted volume ${UPLOAD_LOCATION}/pgdata is it still there?

Did you find this page helpful?