© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
ImmichI
Immich•2mo ago•
11 replies
Let

Postgres startup error during setup

🚧Setup🗄️Server☑️Ready
Hello.
I am attempting to install Immich according to the Docker guide on the website, but I am running into difficulties that do not match any FAQ problems.
I am running mostly stock env and compose files and these are the issues I am getting:
immich_postgres  | Using HDD storage
immich_postgres  | chmod: changing permissions of '/var/lib/postgresql/data': Permission denied
immich_postgres  | find: ‘/var/lib/postgresql/data’: Permission denied
immich_postgres  | chown: changing ownership of '/var/lib/postgresql/data': Permission denied
immich_postgres  | Using HDD storage
immich_postgres  | chmod: changing permissions of '/var/lib/postgresql/data': Permission denied
immich_postgres  | find: ‘/var/lib/postgresql/data’: Permission denied
immich_postgres  | chown: changing ownership of '/var/lib/postgresql/data': Permission denied

Postgres seems to be in a startup loop having difficulties changing ownership in the postgres directory. This is running on my HDD with btrfs.
Filesystem     Type   1K-blocks      Used  Available Use% Mounted on
/dev/sda1      btrfs 1953513472 948085980 1004727076  49% /mnt/games
Filesystem     Type   1K-blocks      Used  Available Use% Mounted on
/dev/sda1      btrfs 1953513472 948085980 1004727076  49% /mnt/games


I am running a new installation of openSUSE Tumbleweed.
This has previously worked on my old root

.env
# You can find documentation for all the supported env variables at https://docs.immich.app/install/environment-variables

# The location where your uploaded files are stored
UPLOAD_LOCATION=/mnt/games/immich/library

# The location where your database files are stored. Network shares are not supported for the database
DB_DATA_LOCATION=/mnt/games/immich/postgres

# To set a timezone, uncomment the next line and change Etc/UTC to a TZ identifier from this list: https://en.wikipedia.org/wiki/List_of_tz_database_time_zones#List
TZ=Europe/Berlin

# The Immich version to use. You can pin this to a specific version like "v2.1.0"
IMMICH_VERSION=v2

# Connection secret for postgres. You should change it to a random password
# Please use only the characters `A-Za-z0-9`, without special characters or spaces
DB_PASSWORD=postgres

DB_USERNAME=postgres
DB_DATABASE_NAME=immich
# You can find documentation for all the supported env variables at https://docs.immich.app/install/environment-variables

# The location where your uploaded files are stored
UPLOAD_LOCATION=/mnt/games/immich/library

# The location where your database files are stored. Network shares are not supported for the database
DB_DATA_LOCATION=/mnt/games/immich/postgres

# To set a timezone, uncomment the next line and change Etc/UTC to a TZ identifier from this list: https://en.wikipedia.org/wiki/List_of_tz_database_time_zones#List
TZ=Europe/Berlin

# The Immich version to use. You can pin this to a specific version like "v2.1.0"
IMMICH_VERSION=v2

# Connection secret for postgres. You should change it to a random password
# Please use only the characters `A-Za-z0-9`, without special characters or spaces
DB_PASSWORD=postgres

DB_USERNAME=postgres
DB_DATABASE_NAME=immich


docker-compose.yml
completetly stock except for uncommenting the HDD line.

I have been stuck on this for a long time.
ImmichJoin
A place to hang out, get support, discuss Immich, get announcements about releases and anything else going on.
36,590Members
Resources
Was this page helpful?

Similar Threads

Recent Announcements

Similar Threads

Postgres error during migrations
ImmichIImmich / help-desk-support
10mo ago
Postgres Setup
ImmichIImmich / help-desk-support
4mo ago
Getting error during setup when opening web interface
ImmichIImmich / help-desk-support
3y ago
Setup Issues, Error:getaddrinfo EAI_AGAIN immich-postgres
ImmichIImmich / help-desk-support
7mo ago