Dark Diviner
IImmich
•Created by Dark Diviner on 11/30/2024 in #help-desk-support
immich docker compose deployment - ERROR: unable to connect to database
Hi I have been trying to get immich installed on an Ubuntu LXC with docker / docker compose. I originally had it installed but was doing some cleanup and decided to remove and redeploy. So I have followed a number of different install guide but everyone gives me the same issue. I have tried installing through portainer (stack) as well as docker cli but same result. I receive no errors on the initial deployment.
immich machine learning container running without error.
immich postgres throws a permission error: initdb: error: could not change permissions of directory "/var/lib/postgresql/data": Operation not permitted Immich redis potentially throwing an error: 1:C 30 Nov 2024 19:20:51.651 # Warning: no config file specified, using the default config. In order to specify a config file use redis-server /path/to/redis.conf ... 1:M 30 Nov 2024 19:20:51.653 # WARNING Memory overcommit must be enabled! Without it, a background save or replication may fail under low memory condition. all 3 of these containers show as running. No the immich server just shows starting but never changes and throws the following error: Initializing Immich v1.121.0 Detected CPU Cores: 8 Starting api worker Starting microservices worker (node:7) [DEP0060] DeprecationWarning: The
immich postgres throws a permission error: initdb: error: could not change permissions of directory "/var/lib/postgresql/data": Operation not permitted Immich redis potentially throwing an error: 1:C 30 Nov 2024 19:20:51.651 # Warning: no config file specified, using the default config. In order to specify a config file use redis-server /path/to/redis.conf ... 1:M 30 Nov 2024 19:20:51.653 # WARNING Memory overcommit must be enabled! Without it, a background save or replication may fail under low memory condition. all 3 of these containers show as running. No the immich server just shows starting but never changes and throws the following error: Initializing Immich v1.121.0 Detected CPU Cores: 8 Starting api worker Starting microservices worker (node:7) [DEP0060] DeprecationWarning: The
util._extend
API is deprecated. Please use Object.assign() instead.
[Nest] 7 - 11/30/2024, 7:40:21 PM ERROR [TypeOrmModule] Unable to connect to the database. Retrying (1)...
microservices worker exited with code 1
Killing api process
I am still relatively new to linux but everything looks like a permission based issue but I had this running previously on the came Proxmox node and docker install. Other docker continers are running without issue. Hope someone can assist with getting this resolved so I can use immich
Thanks22 replies