Zuri3l
Zuri3l
IImmich
Created by Zuri3l on 5/22/2025 in #help-desk-support
Can't deploy a fully new instance 1.133.0 or restoring a backup
I've been having issues updating or restoring my instance backup, so I decided to deploy a new instance as a test, but when I tried,
-docker compose pull
-docker compose up -d
-docker compose pull
-docker compose up -d
-redis = ok -machine_learning = ok -database = wrong -immich_server = wrong
logs database
Using SSD storage

chmod: changing permissions of '/var/lib/postgresql/data': Operation not permitted

The files belonging to this database system will be owned by user "postgres".

This user must also own the server process.


The database cluster will be initialized with locale "en_US.utf8".

The default database encoding has accordingly been set to "UTF8".

The default text search configuration will be set to "english".


Data page checksums are enabled.


initdb: error: could not change permissions of directory "/var/lib/postgresql/data": Operation not permitted

fixing permissions on existing directory /var/lib/postgresql/data ... 2025-05-22T17:31:50.928061974Z Using SSD storage

chmod: changing permissions of '/var/lib/postgresql/data': Operation not permitted

The files belonging to this database system will be owned by user "postgres".

This user must also own the server process.
logs database
Using SSD storage

chmod: changing permissions of '/var/lib/postgresql/data': Operation not permitted

The files belonging to this database system will be owned by user "postgres".

This user must also own the server process.


The database cluster will be initialized with locale "en_US.utf8".

The default database encoding has accordingly been set to "UTF8".

The default text search configuration will be set to "english".


Data page checksums are enabled.


initdb: error: could not change permissions of directory "/var/lib/postgresql/data": Operation not permitted

fixing permissions on existing directory /var/lib/postgresql/data ... 2025-05-22T17:31:50.928061974Z Using SSD storage

chmod: changing permissions of '/var/lib/postgresql/data': Operation not permitted

The files belonging to this database system will be owned by user "postgres".

This user must also own the server process.
logs immich_server
Initializing Immich v1.133.0

Detected CPU Cores: 16

Starting api worker

Starting microservices worker

[Nest] 7 - 05/22/2025, 11:44:14 AM LOG [Microservices:EventRepository] Initialized websocket server

[Nest] 19 - 05/22/2025, 11:44:14 AM LOG [Api:EventRepository] Initialized websocket server

microservices worker error: Error: getaddrinfo ENOTFOUND database, stack: Error: getaddrinfo ENOTFOUND database

at GetAddrInfoReqWrap.onlookupall [as oncomplete] (node:dns:120:26)

microservices worker exited with code 1

Killing api process

Initializing Immich v1.133.0

Detected CPU Cores: 16

Starting api worker

Starting microservices worker

[Nest] 7 - 05/22/2025, 11:45:18 AM LOG [Microservices:EventRepository] Initialized websocket server

[Nest] 19 - 05/22/2025, 11:45:18 AM LOG [Api:EventRepository] Initialized websocket server

microservices worker error: Error: getaddrinfo ENOTFOUND database, stack: Error: getaddrinfo ENOTFOUND database

at GetAddrInfoReqWrap.onlookupall [as oncomplete] (node:dns:120:26)

microservices worker exited with code 1

Killing api process
logs immich_server
Initializing Immich v1.133.0

Detected CPU Cores: 16

Starting api worker

Starting microservices worker

[Nest] 7 - 05/22/2025, 11:44:14 AM LOG [Microservices:EventRepository] Initialized websocket server

[Nest] 19 - 05/22/2025, 11:44:14 AM LOG [Api:EventRepository] Initialized websocket server

microservices worker error: Error: getaddrinfo ENOTFOUND database, stack: Error: getaddrinfo ENOTFOUND database

at GetAddrInfoReqWrap.onlookupall [as oncomplete] (node:dns:120:26)

microservices worker exited with code 1

Killing api process

Initializing Immich v1.133.0

Detected CPU Cores: 16

Starting api worker

Starting microservices worker

[Nest] 7 - 05/22/2025, 11:45:18 AM LOG [Microservices:EventRepository] Initialized websocket server

[Nest] 19 - 05/22/2025, 11:45:18 AM LOG [Api:EventRepository] Initialized websocket server

microservices worker error: Error: getaddrinfo ENOTFOUND database, stack: Error: getaddrinfo ENOTFOUND database

at GetAddrInfoReqWrap.onlookupall [as oncomplete] (node:dns:120:26)

microservices worker exited with code 1

Killing api process
If I try to restore a backup, the situation is similar.
-fully new stack
-docker compose pull = ok
-docker compose create = ok
-docker start immich_postgres & sleep 10 = wrong
-fully new stack
-docker compose pull = ok
-docker compose create = ok
-docker start immich_postgres & sleep 10 = wrong
database logs

Using SSD storage

chmod: changing permissions of '/var/lib/postgresql/data': Operation not permitted

The files belonging to this database system will be owned by user "postgres".

This user must also own the server process.


The database cluster will be initialized with locale "en_US.utf8".

The default database encoding has accordingly been set to "UTF8".

The default text search configuration will be set to "english".


Data page checksums are enabled.


initdb: error: could not change permissions of directory "/var/lib/postgresql/data": Operation not permitted

fixing permissions on existing directory /var/lib/postgresql/data ... 2025-05-22T17:56:27.987979427Z Using SSD storage

chmod: changing permissions of '/var/lib/postgresql/data': Operation not permitted

The files belonging to this database system will be owned by user "postgres".

This user must also own the server process.
database logs

Using SSD storage

chmod: changing permissions of '/var/lib/postgresql/data': Operation not permitted

The files belonging to this database system will be owned by user "postgres".

This user must also own the server process.


The database cluster will be initialized with locale "en_US.utf8".

The default database encoding has accordingly been set to "UTF8".

The default text search configuration will be set to "english".


Data page checksums are enabled.


initdb: error: could not change permissions of directory "/var/lib/postgresql/data": Operation not permitted

fixing permissions on existing directory /var/lib/postgresql/data ... 2025-05-22T17:56:27.987979427Z Using SSD storage

chmod: changing permissions of '/var/lib/postgresql/data': Operation not permitted

The files belonging to this database system will be owned by user "postgres".

This user must also own the server process.
and the same thing over and over again, whenever I try to deploy it, even if it's a new instance like at the beginning HELPPPP...
20 replies