I
Immich5mo ago
oneabe

immich server fails as non-root

Hello, I'm trying to set up Immich in a Docker-Container on openMediaVault but i can't access the Web GUI if the Immich-server container runs as non-root. It seems that the connection between the Immich-Container and the redis-Container/immich-postgres fails.
28 Replies
Immich
Immich5mo ago
:wave: Hey @oneabe, Thanks for reaching out to us. Please carefully read this message and follow the recommended actions. This will help us be more effective in our support effort and leave more time for building Immich :immich:. References - Container Logs: docker compose logs docs - Container Status: docker ps -a docs - Reverse Proxy: https://immich.app/docs/administration/reverse-proxy - Code Formatting https://support.discord.com/hc/en-us/articles/210298617-Markdown-Text-101-Chat-Formatting-Bold-Italic-Underline#h_01GY0DAKGXDEHE263BCAYEGFJA Checklist I have... 1. :ballot_box_with_check: verified I'm on the latest release(note that mobile app releases may take some time). 2. :ballot_box_with_check: read applicable release notes. 3. :ballot_box_with_check: reviewed the FAQs for known issues. 4. :ballot_box_with_check: reviewed Github for known issues. 5. :ballot_box_with_check: tried accessing Immich via local ip (without a custom reverse proxy). 6. :blue_square: uploaded the relevant information (see below). 7. :ballot_box_with_check: tried an incognito window, disabled extensions, cleared mobile app cache, logged out and back in, different browsers, etc. as applicable (an item can be marked as "complete" by reacting with the appropriate number) Information In order to be able to effectively help you, we need you to provide clear information to show what the problem is. The exact details needed vary per case, but here is a list of things to consider: - Your docker-compose.yml and .env files. - Logs from all the containers and their status (see above). - All the troubleshooting steps you've tried so far. - Any recent changes you've made to Immich or your system. - Details about your system (both software/OS and hardware). - Details about your storage (filesystems, type of disks, output of commands like fdisk -l and df -h). - The version of the Immich server, mobile app, and other relevant pieces. - Any other information that you think might be relevant. Please paste files and logs with proper code formatting, and especially avoid blurry screenshots. Without the right information we can't work out what the problem is. Help us help you ;) If this ticket can be closed you can use the /close command, and re-open it later if needed.
oneabe
oneabeOP5mo ago
# You can find documentation for all the supported env variables at https://immich.app/docs/install/environment-variables

PUID=1000
PGID=100

REDIS_HOSTNAME=immich_redis

# The location where your uploaded files are stored
UPLOAD_LOCATION=./srv/dev-disk-by-uuid-31960994-5977-4708-8e5b-e5bd0818359a/immich/uploadLocation
# The location where your database files are stored
DB_DATA_LOCATION=/srv/dev-disk-by-uuid-31960994-5977-4708-8e5b-e5bd0818359a/immich/postgresDatabase

# 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 "v1.71.0"
IMMICH_VERSION=release

# 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

# The values below this line do not need to be changed
###################################################################################
DB_USERNAME=postgres
DB_DATABASE_NAME=immich
# You can find documentation for all the supported env variables at https://immich.app/docs/install/environment-variables

PUID=1000
PGID=100

REDIS_HOSTNAME=immich_redis

# The location where your uploaded files are stored
UPLOAD_LOCATION=./srv/dev-disk-by-uuid-31960994-5977-4708-8e5b-e5bd0818359a/immich/uploadLocation
# The location where your database files are stored
DB_DATA_LOCATION=/srv/dev-disk-by-uuid-31960994-5977-4708-8e5b-e5bd0818359a/immich/postgresDatabase

# 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 "v1.71.0"
IMMICH_VERSION=release

# 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

# The values below this line do not need to be changed
###################################################################################
DB_USERNAME=postgres
DB_DATABASE_NAME=immich
#
# WARNING: Make sure to use the docker-compose.yml of the current release:
#
# https://github.com/immich-app/immich/releases/latest/download/docker-compose.yml
#
# The compose file on main may not be compatible with the latest release.
#

name: immich

services:
immich-server:
container_name: immich_server
image: ghcr.io/immich-app/immich-server:${IMMICH_VERSION:-release}
# extends:
# file: hwaccel.transcoding.yml
# service: cpu # set to one of [nvenc, quicksync, rkmpp, vaapi, vaapi-wsl] for accelerated transcoding
user: "${PUID}:${PGID}"
volumes:
# Do not edit the next line. If you want to change the media storage location on your system, edit the value of UPLOAD_LOCATION in the .env file
- ${UPLOAD_LOCATION}:/usr/src/app/upload
- /etc/localtime:/etc/localtime:ro
env_file:
- /srv/dev-disk-by-uuid-31960994-5977-4708-8e5b-e5bd0818359a/Docker-Appdata/immich/immich.env
ports:
- '2283:2283'
depends_on:
- redis
- database
restart: always
healthcheck:
disable: false
#
# WARNING: Make sure to use the docker-compose.yml of the current release:
#
# https://github.com/immich-app/immich/releases/latest/download/docker-compose.yml
#
# The compose file on main may not be compatible with the latest release.
#

name: immich

services:
immich-server:
container_name: immich_server
image: ghcr.io/immich-app/immich-server:${IMMICH_VERSION:-release}
# extends:
# file: hwaccel.transcoding.yml
# service: cpu # set to one of [nvenc, quicksync, rkmpp, vaapi, vaapi-wsl] for accelerated transcoding
user: "${PUID}:${PGID}"
volumes:
# Do not edit the next line. If you want to change the media storage location on your system, edit the value of UPLOAD_LOCATION in the .env file
- ${UPLOAD_LOCATION}:/usr/src/app/upload
- /etc/localtime:/etc/localtime:ro
env_file:
- /srv/dev-disk-by-uuid-31960994-5977-4708-8e5b-e5bd0818359a/Docker-Appdata/immich/immich.env
ports:
- '2283:2283'
depends_on:
- redis
- database
restart: always
healthcheck:
disable: false
immich-machine-learning:
container_name: immich_machine_learning
# For hardware acceleration, add one of -[armnn, cuda, openvino] to the image tag.
# Example tag: ${IMMICH_VERSION:-release}-cuda
image: ghcr.io/immich-app/immich-machine-learning:${IMMICH_VERSION:-release}
# extends: # uncomment this section for hardware acceleration - see https://immich.app/docs/features/ml-hardware-acceleration
# file: hwaccel.ml.yml
# service: cpu # set to one of [armnn, cuda, openvino, openvino-wsl] for accelerated inference - use the `-wsl` version for WSL2 where applicable
user: "${PUID}:${PGID}"
volumes:
- /srv/dev-disk-by-uuid-31960994-5977-4708-8e5b-e5bd0818359a/immich/machineLearning/cache:/.cache
- /srv/dev-disk-by-uuid-31960994-5977-4708-8e5b-e5bd0818359a/immich/machineLearning/config:/.config
env_file:
- /srv/dev-disk-by-uuid-31960994-5977-4708-8e5b-e5bd0818359a/Docker-Appdata/immich/immich.env
restart: always
healthcheck:
disable: false

redis:
container_name: immich_redis
image: docker.io/redis:6.2-alpine@sha256:eaba718fecd1196d88533de7ba49bf903ad33664a92debb24660a922ecd9cac8
user: "${PUID}:${PGID}"
volumes:
- /srv/dev-disk-by-uuid-31960994-5977-4708-8e5b-e5bd0818359a/immich/redis:/data
healthcheck:
test: redis-cli ping || exit 1
restart: always

immich-machine-learning:
container_name: immich_machine_learning
# For hardware acceleration, add one of -[armnn, cuda, openvino] to the image tag.
# Example tag: ${IMMICH_VERSION:-release}-cuda
image: ghcr.io/immich-app/immich-machine-learning:${IMMICH_VERSION:-release}
# extends: # uncomment this section for hardware acceleration - see https://immich.app/docs/features/ml-hardware-acceleration
# file: hwaccel.ml.yml
# service: cpu # set to one of [armnn, cuda, openvino, openvino-wsl] for accelerated inference - use the `-wsl` version for WSL2 where applicable
user: "${PUID}:${PGID}"
volumes:
- /srv/dev-disk-by-uuid-31960994-5977-4708-8e5b-e5bd0818359a/immich/machineLearning/cache:/.cache
- /srv/dev-disk-by-uuid-31960994-5977-4708-8e5b-e5bd0818359a/immich/machineLearning/config:/.config
env_file:
- /srv/dev-disk-by-uuid-31960994-5977-4708-8e5b-e5bd0818359a/Docker-Appdata/immich/immich.env
restart: always
healthcheck:
disable: false

redis:
container_name: immich_redis
image: docker.io/redis:6.2-alpine@sha256:eaba718fecd1196d88533de7ba49bf903ad33664a92debb24660a922ecd9cac8
user: "${PUID}:${PGID}"
volumes:
- /srv/dev-disk-by-uuid-31960994-5977-4708-8e5b-e5bd0818359a/immich/redis:/data
healthcheck:
test: redis-cli ping || exit 1
restart: always

database:
container_name: immich_postgres
image: docker.io/tensorchord/pgvecto-rs:pg14-v0.2.0@sha256:90724186f0a3517cf6914295b5ab410db9ce23190a2d9d0b9dd6463e3fa298f0
environment:
POSTGRES_PASSWORD: ${DB_PASSWORD}
POSTGRES_USER: ${DB_USERNAME}
POSTGRES_DB: ${DB_DATABASE_NAME}
POSTGRES_INITDB_ARGS: '--data-checksums'
user: "${PUID}:${PGID}"
volumes:
# Do not edit the next line. If you want to change the database storage location on your system, edit the value of DB_DATA_LOCATION in the .env file
- ${DB_DATA_LOCATION}:/var/lib/postgresql/data
- /srv/dev-disk-by-uuid-31960994-5977-4708-8e5b-e5bd0818359a/immich/var/run/postgresql:/var/run/postgresql
healthcheck:
test: >-
pg_isready --dbname="$${POSTGRES_DB}" --username="$${POSTGRES_USER}" || exit 1;
Chksum="$$(psql --dbname="$${POSTGRES_DB}" --username="$${POSTGRES_USER}" --tuples-only --no-align
--command='SELECT COALESCE(SUM(checksum_failures), 0) FROM pg_stat_database')";
echo "checksum failure count is $$Chksum";
[ "$$Chksum" = '0' ] || exit 1
interval: 5m
start_interval: 30s
start_period: 5m
command: >-
postgres
-c shared_preload_libraries=vectors.so
-c 'search_path="$$user", public, vectors'
-c logging_collector=on
-c max_wal_size=2GB
-c shared_buffers=512MB
-c wal_compression=on
restart: always

volumes:
model-cache:
database:
container_name: immich_postgres
image: docker.io/tensorchord/pgvecto-rs:pg14-v0.2.0@sha256:90724186f0a3517cf6914295b5ab410db9ce23190a2d9d0b9dd6463e3fa298f0
environment:
POSTGRES_PASSWORD: ${DB_PASSWORD}
POSTGRES_USER: ${DB_USERNAME}
POSTGRES_DB: ${DB_DATABASE_NAME}
POSTGRES_INITDB_ARGS: '--data-checksums'
user: "${PUID}:${PGID}"
volumes:
# Do not edit the next line. If you want to change the database storage location on your system, edit the value of DB_DATA_LOCATION in the .env file
- ${DB_DATA_LOCATION}:/var/lib/postgresql/data
- /srv/dev-disk-by-uuid-31960994-5977-4708-8e5b-e5bd0818359a/immich/var/run/postgresql:/var/run/postgresql
healthcheck:
test: >-
pg_isready --dbname="$${POSTGRES_DB}" --username="$${POSTGRES_USER}" || exit 1;
Chksum="$$(psql --dbname="$${POSTGRES_DB}" --username="$${POSTGRES_USER}" --tuples-only --no-align
--command='SELECT COALESCE(SUM(checksum_failures), 0) FROM pg_stat_database')";
echo "checksum failure count is $$Chksum";
[ "$$Chksum" = '0' ] || exit 1
interval: 5m
start_interval: 30s
start_period: 5m
command: >-
postgres
-c shared_preload_libraries=vectors.so
-c 'search_path="$$user", public, vectors'
-c logging_collector=on
-c max_wal_size=2GB
-c shared_buffers=512MB
-c wal_compression=on
restart: always

volumes:
model-cache:
immich_postgres |
immich_postgres | PostgreSQL Database directory appears to contain a database; Skipping initialization
immich_postgres |
immich_postgres | 2024-12-25 18:27:19.139 UTC [1] LOG: redirecting log output to logging collector process
immich_postgres | 2024-12-25 18:27:19.139 UTC [1] HINT: Future log output will appear in directory "log".
immich_postgres |
immich_postgres | PostgreSQL Database directory appears to contain a database; Skipping initialization
immich_postgres |
immich_postgres | 2024-12-25 18:27:19.139 UTC [1] LOG: redirecting log output to logging collector process
immich_postgres | 2024-12-25 18:27:19.139 UTC [1] HINT: Future log output will appear in directory "log".
immich_redis | 1:C 25 Dec 2024 18:27:19.146 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
immich_redis | 1:C 25 Dec 2024 18:27:19.146 # Redis version=6.2.16, bits=64, commit=00000000, modified=0, pid=1, just started
immich_redis | 1:C 25 Dec 2024 18:27:19.146 # Warning: no config file specified, using the default config. In order to specify a config file use redis-server /path/to/redis.conf
immich_redis | 1:M 25 Dec 2024 18:27:19.149 * monotonic clock: POSIX clock_gettime
immich_redis | 1:M 25 Dec 2024 18:27:19.150 * Running mode=standalone, port=6379.
immich_redis | 1:M 25 Dec 2024 18:27:19.150 # Server initialized
immich_redis | 1:M 25 Dec 2024 18:27:19.150 # WARNING Memory overcommit must be enabled! Without it, a background save or replication may fail under low memory condition. Being disabled, it can can also cause failures without low memory condition, see https://github.com/jemalloc/jemalloc/issues/1328. To fix this issue add 'vm.overcommit_memory = 1' to /etc/sysctl.conf and then reboot or run the command 'sysctl vm.overcommit_memory=1' for this to take effect.
immich_redis | 1:M 25 Dec 2024 18:27:19.150 * Loading RDB produced by version 6.2.16
immich_redis | 1:M 25 Dec 2024 18:27:19.150 * RDB age 507 seconds
immich_redis | 1:M 25 Dec 2024 18:27:19.150 * RDB memory usage when created 0.78 Mb
immich_redis | 1:M 25 Dec 2024 18:27:19.150 # Done loading RDB, keys loaded: 16, keys expired: 0.
immich_redis | 1:M 25 Dec 2024 18:27:19.150 * DB loaded from disk: 0.000 seconds
immich_redis | 1:M 25 Dec 2024 18:27:19.150 * Ready to accept connections
immich_redis | 1:C 25 Dec 2024 18:27:19.146 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
immich_redis | 1:C 25 Dec 2024 18:27:19.146 # Redis version=6.2.16, bits=64, commit=00000000, modified=0, pid=1, just started
immich_redis | 1:C 25 Dec 2024 18:27:19.146 # Warning: no config file specified, using the default config. In order to specify a config file use redis-server /path/to/redis.conf
immich_redis | 1:M 25 Dec 2024 18:27:19.149 * monotonic clock: POSIX clock_gettime
immich_redis | 1:M 25 Dec 2024 18:27:19.150 * Running mode=standalone, port=6379.
immich_redis | 1:M 25 Dec 2024 18:27:19.150 # Server initialized
immich_redis | 1:M 25 Dec 2024 18:27:19.150 # WARNING Memory overcommit must be enabled! Without it, a background save or replication may fail under low memory condition. Being disabled, it can can also cause failures without low memory condition, see https://github.com/jemalloc/jemalloc/issues/1328. To fix this issue add 'vm.overcommit_memory = 1' to /etc/sysctl.conf and then reboot or run the command 'sysctl vm.overcommit_memory=1' for this to take effect.
immich_redis | 1:M 25 Dec 2024 18:27:19.150 * Loading RDB produced by version 6.2.16
immich_redis | 1:M 25 Dec 2024 18:27:19.150 * RDB age 507 seconds
immich_redis | 1:M 25 Dec 2024 18:27:19.150 * RDB memory usage when created 0.78 Mb
immich_redis | 1:M 25 Dec 2024 18:27:19.150 # Done loading RDB, keys loaded: 16, keys expired: 0.
immich_redis | 1:M 25 Dec 2024 18:27:19.150 * DB loaded from disk: 0.000 seconds
immich_redis | 1:M 25 Dec 2024 18:27:19.150 * Ready to accept connections
Zeus
Zeus5mo ago
There’s no problems with these logs
oneabe
oneabeOP5mo ago
thought i would send all logs in, problem is seen in immich_server logs
Zeus
Zeus5mo ago
Ok but why haven’t your shared those then?
oneabe
oneabeOP5mo ago
```immich_server | Error: getaddrinfo EAI_AGAIN immich_redis
immich_server | at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:109:26) {
immich_server | errno: -3001,
immich_server | code: 'EAI_AGAIN',
immich_server | syscall: 'getaddrinfo',
immich_server | hostname: 'immich_redis'
immich_server | }
immich_server | [Nest] 17 - 12/25/2024, 7:29:52 PM LOG [NestFactory] Starting Nest application...
immich_server | [Nest] 17 - 12/25/2024, 7:29:52 PM LOG [InstanceLoader] BullModule dependencies initialized +1ms
immich_server | [Nest] 17 - 12/25/2024, 7:29:52 PM LOG [InstanceLoader] OpenTelemetryModule dependencies initialized +1ms
immich_server | [Nest] 17 - 12/25/2024, 7:29:52 PM LOG [InstanceLoader] TypeOrmModule dependencies initialized +0ms
immich_server | [Nest] 17 - 12/25/2024, 7:29:52 PM LOG [InstanceLoader] OpenTelemetryCoreModule dependencies initialized +0ms
immich_server | [Nest] 17 - 12/25/2024, 7:29:52 PM LOG [InstanceLoader] DiscoveryModule dependencies initialized +0ms
immich_server | [Nest] 17 - 12/25/2024, 7:29:52 PM LOG [InstanceLoader] ClsModule dependencies initialized +1ms
```immich_server | Error: getaddrinfo EAI_AGAIN immich_redis
immich_server | at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:109:26) {
immich_server | errno: -3001,
immich_server | code: 'EAI_AGAIN',
immich_server | syscall: 'getaddrinfo',
immich_server | hostname: 'immich_redis'
immich_server | }
immich_server | [Nest] 17 - 12/25/2024, 7:29:52 PM LOG [NestFactory] Starting Nest application...
immich_server | [Nest] 17 - 12/25/2024, 7:29:52 PM LOG [InstanceLoader] BullModule dependencies initialized +1ms
immich_server | [Nest] 17 - 12/25/2024, 7:29:52 PM LOG [InstanceLoader] OpenTelemetryModule dependencies initialized +1ms
immich_server | [Nest] 17 - 12/25/2024, 7:29:52 PM LOG [InstanceLoader] TypeOrmModule dependencies initialized +0ms
immich_server | [Nest] 17 - 12/25/2024, 7:29:52 PM LOG [InstanceLoader] OpenTelemetryCoreModule dependencies initialized +0ms
immich_server | [Nest] 17 - 12/25/2024, 7:29:52 PM LOG [InstanceLoader] DiscoveryModule dependencies initialized +0ms
immich_server | [Nest] 17 - 12/25/2024, 7:29:52 PM LOG [InstanceLoader] ClsModule dependencies initialized +1ms
had a little problem with discord
Zeus
Zeus5mo ago
Try setting REDIS_HOSTNAME=redis As an env
oneabe
oneabeOP5mo ago
changed it to redis
```immich_server | Error: getaddrinfo EAI_AGAIN redis
immich_server | at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:109:26) {
immich_server | errno: -3001,
immich_server | code: 'EAI_AGAIN',
immich_server | syscall: 'getaddrinfo',
immich_server | hostname: 'redis'
immich_server | }
```immich_server | Error: getaddrinfo EAI_AGAIN redis
immich_server | at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:109:26) {
immich_server | errno: -3001,
immich_server | code: 'EAI_AGAIN',
immich_server | syscall: 'getaddrinfo',
immich_server | hostname: 'redis'
immich_server | }
Zeus
Zeus5mo ago
And that error keeps coming? Multiple. Times?
oneabe
oneabeOP5mo ago
yes
Zeus
Zeus5mo ago
you didn’t mount a volume for Redis Oh wait I see it now Do you have any weird network stuff setup? This looks like a DNS issue You can try assigning an IP to the Redis container and connect in that way
oneabe
oneabeOP5mo ago
how can i do that
Zeus
Zeus5mo ago
You can Google how to assign docker container IP It shouldn’t be needed but you seem to have a nonstandard setup
oneabe
oneabeOP5mo ago
ok, will try then.Thank you Immich is now running with the assigned ip adresses but machine learning Container stays unhealthy,will that be a problem?
docker inspect --format "{{json .State.Health }}" immich_machine_learning | jq
{
"Status": "unhealthy",
"FailingStreak": 7,
"Log": [
{
"Start": "2024-12-25T21:44:40.297003316+01:00",
"End": "2024-12-25T21:44:40.933033119+01:00",
"ExitCode": 1,
"Output": ""
},
{
"Start": "2024-12-25T21:45:10.933544312+01:00",
"End": "2024-12-25T21:45:11.547075184+01:00",
"ExitCode": 1,
"Output": ""
},
{
"Start": "2024-12-25T21:45:41.547638281+01:00",
"End": "2024-12-25T21:45:42.181339734+01:00",
"ExitCode": 1,
"Output": ""
},
{
"Start": "2024-12-25T21:46:12.181963511+01:00",
"End": "2024-12-25T21:46:12.776580142+01:00",
"ExitCode": 1,
"Output": ""
},
{
"Start": "2024-12-25T21:46:42.77709577+01:00",
"End": "2024-12-25T21:46:43.392345668+01:00",
"ExitCode": 1,
"Output": ""
}
]
}
docker inspect --format "{{json .State.Health }}" immich_machine_learning | jq
{
"Status": "unhealthy",
"FailingStreak": 7,
"Log": [
{
"Start": "2024-12-25T21:44:40.297003316+01:00",
"End": "2024-12-25T21:44:40.933033119+01:00",
"ExitCode": 1,
"Output": ""
},
{
"Start": "2024-12-25T21:45:10.933544312+01:00",
"End": "2024-12-25T21:45:11.547075184+01:00",
"ExitCode": 1,
"Output": ""
},
{
"Start": "2024-12-25T21:45:41.547638281+01:00",
"End": "2024-12-25T21:45:42.181339734+01:00",
"ExitCode": 1,
"Output": ""
},
{
"Start": "2024-12-25T21:46:12.181963511+01:00",
"End": "2024-12-25T21:46:12.776580142+01:00",
"ExitCode": 1,
"Output": ""
},
{
"Start": "2024-12-25T21:46:42.77709577+01:00",
"End": "2024-12-25T21:46:43.392345668+01:00",
"ExitCode": 1,
"Output": ""
}
]
}
immich_machine_learning | [12/25/24 22:06:04] INFO Starting gunicorn 23.0.0
immich_machine_learning | [12/25/24 22:06:04] INFO Listening at: http://[::]:3003 (9)
immich_machine_learning | [12/25/24 22:06:04] INFO Using worker: app.config.CustomUvicornWorker
immich_machine_learning | [12/25/24 22:06:04] INFO Booting worker with pid: 10
immich_machine_learning | [12/25/24 22:06:10] INFO Started server process [10]
immich_machine_learning | [12/25/24 22:06:10] INFO Waiting for application startup.
immich_machine_learning | [12/25/24 22:06:10] INFO Created in-memory cache with unloading after 300s
immich_machine_learning | of inactivity.
immich_machine_learning | [12/25/24 22:06:10] INFO Initialized request thread pool with 2 threads.
immich_machine_learning | [12/25/24 22:06:10] INFO Application startup complete.
immich_machine_learning | [12/25/24 22:06:04] INFO Starting gunicorn 23.0.0
immich_machine_learning | [12/25/24 22:06:04] INFO Listening at: http://[::]:3003 (9)
immich_machine_learning | [12/25/24 22:06:04] INFO Using worker: app.config.CustomUvicornWorker
immich_machine_learning | [12/25/24 22:06:04] INFO Booting worker with pid: 10
immich_machine_learning | [12/25/24 22:06:10] INFO Started server process [10]
immich_machine_learning | [12/25/24 22:06:10] INFO Waiting for application startup.
immich_machine_learning | [12/25/24 22:06:10] INFO Created in-memory cache with unloading after 300s
immich_machine_learning | of inactivity.
immich_machine_learning | [12/25/24 22:06:10] INFO Initialized request thread pool with 2 threads.
immich_machine_learning | [12/25/24 22:06:10] INFO Application startup complete.
# # You can find documentation for all the supported env variables at https://immich.app/docs/install/environment-variables

PUID=1000
PGID=100

DB_HOSTNAME=172.19.0.5
REDIS_HOSTNAME=172.19.0.4


# The location where your uploaded files are stored
UPLOAD_LOCATION=./srv/dev-disk-by-uuid-31960994-5977-4708-8e5b-e5bd0818359a/immich/uploadLocation
# The location where your database files are stored
DB_DATA_LOCATION=/srv/dev-disk-by-uuid-31960994-5977-4708-8e5b-e5bd0818359a/immich/postgresDatabase

# 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 "v1.71.0"
IMMICH_VERSION=release

# 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

# The values below this line do not need to be changed
###################################################################################
DB_USERNAME=postgres
DB_DATABASE_NAME=immich
# # You can find documentation for all the supported env variables at https://immich.app/docs/install/environment-variables

PUID=1000
PGID=100

DB_HOSTNAME=172.19.0.5
REDIS_HOSTNAME=172.19.0.4


# The location where your uploaded files are stored
UPLOAD_LOCATION=./srv/dev-disk-by-uuid-31960994-5977-4708-8e5b-e5bd0818359a/immich/uploadLocation
# The location where your database files are stored
DB_DATA_LOCATION=/srv/dev-disk-by-uuid-31960994-5977-4708-8e5b-e5bd0818359a/immich/postgresDatabase

# 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 "v1.71.0"
IMMICH_VERSION=release

# 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

# The values below this line do not need to be changed
###################################################################################
DB_USERNAME=postgres
DB_DATABASE_NAME=immich
immich-machine-learning:
container_name: immich_machine_learning
# For hardware acceleration, add one of -[armnn, cuda, openvino] to the image tag.
# Example tag: ${IMMICH_VERSION:-release}-cuda
image: ghcr.io/immich-app/immich-machine-learning:${IMMICH_VERSION:-release}
# extends: # uncomment this section for hardware acceleration - see https://immich.app/docs/features/ml-hardware-acceleration
# file: hwaccel.ml.yml
# service: cpu # set to one of [armnn, cuda, openvino, openvino-wsl] for accelerated inference - use the `-wsl` version for WSL2 where applicable
user: "${PUID}:${PGID}"
volumes:
- /srv/dev-disk-by-uuid-31960994-5977-4708-8e5b-e5bd0818359a/immich/machineLearning/cache:/.cache
- /srv/dev-disk-by-uuid-31960994-5977-4708-8e5b-e5bd0818359a/immich/machineLearning/config:/.config
env_file:
- /srv/dev-disk-by-uuid-31960994-5977-4708-8e5b-e5bd0818359a/Docker-Appdata/immich/immich.env
restart: always
networks:
immich_network:
ipv4_address: 172.19.0.3
healthcheck:
disable: false
immich-machine-learning:
container_name: immich_machine_learning
# For hardware acceleration, add one of -[armnn, cuda, openvino] to the image tag.
# Example tag: ${IMMICH_VERSION:-release}-cuda
image: ghcr.io/immich-app/immich-machine-learning:${IMMICH_VERSION:-release}
# extends: # uncomment this section for hardware acceleration - see https://immich.app/docs/features/ml-hardware-acceleration
# file: hwaccel.ml.yml
# service: cpu # set to one of [armnn, cuda, openvino, openvino-wsl] for accelerated inference - use the `-wsl` version for WSL2 where applicable
user: "${PUID}:${PGID}"
volumes:
- /srv/dev-disk-by-uuid-31960994-5977-4708-8e5b-e5bd0818359a/immich/machineLearning/cache:/.cache
- /srv/dev-disk-by-uuid-31960994-5977-4708-8e5b-e5bd0818359a/immich/machineLearning/config:/.config
env_file:
- /srv/dev-disk-by-uuid-31960994-5977-4708-8e5b-e5bd0818359a/Docker-Appdata/immich/immich.env
restart: always
networks:
immich_network:
ipv4_address: 172.19.0.3
healthcheck:
disable: false
Greg
Greg5mo ago
hi
oneabe
oneabeOP5mo ago
hi
Greg
Greg5mo ago
captcha is broken, it is so hard to accces here as human probably easier for robots I started my immmich server on ubuntu using docker It works well on web locally
Daniel
Daniel5mo ago
Are you aware that you're in someone else's help desk thread?
Greg
Greg5mo ago
But when I expose it using npm proxy (nginx) i have 504 error Can I have any help here?
Daniel
Daniel5mo ago
?
Greg
Greg5mo ago
yes
Daniel
Daniel5mo ago
:HUH:
Greg
Greg5mo ago
I am not able to write even on welcome chat why?
Daniel
Daniel5mo ago
You should be able to write in #immich and you should also be allowed to create a new help desk thread
Greg
Greg5mo ago
thanks
oneabe
oneabeOP5mo ago
Found the solution for both problems. The docker user did not have acees to /etc/hosts and /etc/resolv.conf .By mounting and creating them, all Container stay healthy and i don't need the second Docker-Network with the assigned ip adresses anymore.
Immich
Immich5mo ago
This thread has been closed. To re-open, use the button below.

Did you find this page helpful?