Terminator365
IImmich
•Created by Terminator365 on 4/25/2025 in #help-desk-support
FATAL: data directory "/var/lib/postgresql/data" has wrong ownership
thank you, bro!
39 replies
IImmich
•Created by Terminator365 on 4/25/2025 in #help-desk-support
FATAL: data directory "/var/lib/postgresql/data" has wrong ownership
Yeah, final update:
Solved it. I had to specify a new db location (in ext 4). Then restored the db as specified on the website. Since I did not remember the old db password (which the backup was generated from), I had to manually enter the container and reset the password. After doing this, I just had to restart the postgres db container and it works now. Thank you @Zeus .
39 replies
IImmich
•Created by Terminator365 on 4/25/2025 in #help-desk-support
FATAL: data directory "/var/lib/postgresql/data" has wrong ownership
Update: I reset the password and restarted the containers, but immich instance was empty. once it tried to restore data, then I get the above error again.
39 replies
IImmich
•Created by Terminator365 on 4/25/2025 in #help-desk-support
FATAL: data directory "/var/lib/postgresql/data" has wrong ownership
I although still need to lookup at how to reset the password for the user postgres in the db.
39 replies
IImmich
•Created by Terminator365 on 4/25/2025 in #help-desk-support
FATAL: data directory "/var/lib/postgresql/data" has wrong ownership
Update: if I use docker volume instead of bind mount, it works. the postgres server started and I have restored the db backup. But I am facing a password authentication failed in immich_server.
[Nest] 20 - 04/25/2025, 5:16:46 PM LOG [Microservices:EventRepository] Initialized websocket server microservices worker error: PostgresError: password authentication failed for user "postgres", stack: PostgresError: password authentication failed for user "postgres" at ErrorResponse (/usr/src/app/node_modules/postgres/cjs/src/connection.js:790:26) at handle (/usr/src/app/node_modules/postgres/cjs/src/connection.js:476:6) at Socket.data (/usr/src/app/node_modules/postgres/cjs/src/connection.js:315:9) at Socket.emit (node:events:518:28) at addChunk (node:internal/streams/readable:561:12) at readableAddChunkPushByteMode (node:internal/streams/readable:512:3) at Readable.push (node:internal/streams/readable:392:5) at TCP.onStreamRead (node:internal/stream_base_commons:189:23) microservices worker exited with code 1
39 replies
IImmich
•Created by Terminator365 on 4/25/2025 in #help-desk-support
FATAL: data directory "/var/lib/postgresql/data" has wrong ownership
However, it is not working now.
39 replies
IImmich
•Created by Terminator365 on 4/25/2025 in #help-desk-support
FATAL: data directory "/var/lib/postgresql/data" has wrong ownership
I think I followed these instructions last time to make it work on ntfs: https://immich.app/docs/install/requirements#special-requirements-for-windows-users. I found pgdata volume in my docker compose backup file.
39 replies
IImmich
•Created by Terminator365 on 4/25/2025 in #help-desk-support
FATAL: data directory "/var/lib/postgresql/data" has wrong ownership
oh wait, I just realized something. give me a few minutes to try it.
39 replies
IImmich
•Created by Terminator365 on 4/25/2025 in #help-desk-support
FATAL: data directory "/var/lib/postgresql/data" has wrong ownership
okay, so If I move to ext4, then it should work then, right? Do I just move the database to ext4 or the upload files too?
39 replies
IImmich
•Created by Terminator365 on 4/25/2025 in #help-desk-support
FATAL: data directory "/var/lib/postgresql/data" has wrong ownership
do you have any insight into what might be the root cause for this issue?
39 replies
IImmich
•Created by Terminator365 on 4/25/2025 in #help-desk-support
FATAL: data directory "/var/lib/postgresql/data" has wrong ownership
okay, yeah I'll use that.
39 replies
IImmich
•Created by Terminator365 on 4/25/2025 in #help-desk-support
FATAL: data directory "/var/lib/postgresql/data" has wrong ownership
yeah, I have all read/write permissions, I had planned to move it to FAT system in linux. I had extended linux partition specifically for that. But yes, I did not run into any issues.
39 replies
IImmich
•Created by Terminator365 on 4/25/2025 in #help-desk-support
FATAL: data directory "/var/lib/postgresql/data" has wrong ownership
I have an NTFS drive mounted to (/mnt/space) and here is the full path link: /mnt/space/immich-app
39 replies
IImmich
•Created by Terminator365 on 4/25/2025 in #help-desk-support
FATAL: data directory "/var/lib/postgresql/data" has wrong ownership
never had any trouble with docker containers prior to this upgrade.
39 replies
IImmich
•Created by Terminator365 on 4/25/2025 in #help-desk-support
FATAL: data directory "/var/lib/postgresql/data" has wrong ownership
I installed docker via apt.
39 replies
IImmich
•Created by Terminator365 on 4/25/2025 in #help-desk-support
FATAL: data directory "/var/lib/postgresql/data" has wrong ownership
sudo apt list --installed | grep docker
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
docker-buildx-plugin/now 0.23.0-1~ubuntu.20.04~focal amd64 [installed,local]
docker-ce-cli/now 5:28.1.1-1~ubuntu.20.04~focal amd64 [installed,local]
docker-ce-rootless-extras/now 5:28.1.1-1~ubuntu.20.04~focal amd64 [installed,local]
docker-ce/now 5:28.1.1-1~ubuntu.20.04~focal amd64 [installed,local]
docker-compose-plugin/now 2.35.1-1~ubuntu.20.04~focal amd64 [installed,local]
39 replies
IImmich
•Created by Terminator365 on 4/25/2025 in #help-desk-support
FATAL: data directory "/var/lib/postgresql/data" has wrong ownership
I do not fully understand the first question, but I have a folder created for immich and just copied the docker compose and example.env file from the repo.
39 replies
IImmich
•Created by Terminator365 on 4/25/2025 in #help-desk-support
FATAL: data directory "/var/lib/postgresql/data" has wrong ownership
I had docker installed by the instructions mentioned on the officeial website. I have Docker version 28.1.1, build 4eba377
39 replies
IImmich
•Created by Terminator365 on 4/25/2025 in #help-desk-support
FATAL: data directory "/var/lib/postgresql/data" has wrong ownership
and I am on ubuntu 24
39 replies
IImmich
•Created by Terminator365 on 4/25/2025 in #help-desk-support
FATAL: data directory "/var/lib/postgresql/data" has wrong ownership
Hi @Zeus , I am using DB_DATA_LOCATION=./postgres
39 replies