© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
ImmichI
Immich•9mo ago•
11 replies
Billy Joel’s Nightmare Explosion

"PostgreSQL Database directory appears to contain a database"

Hi all,

After having WSL issues preventing Docker Desktop from running, I switched the docker from WSL to Hyper-V and updated it to the lastest version, which then got the docker engine running but started this strange boot-looping like error with postgres. in the docker log for
immich_postgres
immich_postgres
, I'm getting this repeated over and over:

PostgreSQL Database directory appears to contain a database; Skipping initialization


2025-06-03 19:49:33.893 UTC [1] FATAL:  data directory "/var/lib/postgresql/data" has invalid permissions

2025-06-03 19:49:33.893 UTC [1] DETAIL:  Permissions should be u=rwx (0700) or u=rwx,g=rx (0750).
PostgreSQL Database directory appears to contain a database; Skipping initialization


2025-06-03 19:49:33.893 UTC [1] FATAL:  data directory "/var/lib/postgresql/data" has invalid permissions

2025-06-03 19:49:33.893 UTC [1] DETAIL:  Permissions should be u=rwx (0700) or u=rwx,g=rx (0750).


I haven't messed with any of the db configuration, and tried to look for some obvious place to force permissions but had no luck. Any ideas? Thanks!
env850B
docker-compose.yml2.8KB
ImmichJoin
A place to hang out, get support, discuss Immich, get announcements about releases and anything else going on.
36,590Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

External PostgreSQL database
ImmichIImmich / help-desk-support
11mo ago
PostgreSQL Database Error
ImmichIImmich / help-desk-support
3y ago
immich backup appears to be accessing live database
ImmichIImmich / help-desk-support
2mo ago
Restore from data directory without database data?
ImmichIImmich / help-desk-support
3y ago