I
Immich•5w ago
wired111

update to latest version issue.

I tried to install the new update and have failed miserably. I have tried to fix it over the last few days but keep getting it wrong. I feel ChatGPT is just taking me around in circles trying to fix it. Please help.
38 Replies
Immich
Immich•5w ago
:wave: Hey @wired111, 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. :blue_square: verified I'm on the latest release(note that mobile app releases may take some time). 2. :blue_square: read applicable release notes. 3. :blue_square: reviewed the FAQs for known issues. 4. :blue_square: reviewed Github for known issues. 5. :blue_square: tried accessing Immich via local ip (without a custom reverse proxy). 6. :blue_square: uploaded the relevant information (see below). 7. :blue_square: 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.
wired111
wired111OP•5w ago
logs. Error message when i try to access web UI. connect ECONNREFUSED 172.25.0.3:3001 (ECONNREFUSED) Stacktrace Error: connect ECONNREFUSED 172.25.0.3:3001 at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1595:16)
Mraedis
Mraedis•5w ago
Why have an env file if you don't use it? 👀 Why are you binding to 3001? YOu should be doing 2283 Please don't ever listen to chatgpt for immich
wired111
wired111OP•5w ago
How can you tell that the env is not being reffered to? Also, I binded to 3001 because chat GPT told me too. I agree that I will not listen to ChatGPT again.
Mraedis
Mraedis•5w ago
Because you do not reference it in your compose and have all variables typed out in environment sections What is the error after you change the 2283 port @wired111 ?
wired111
wired111OP•5w ago
PS C:\Users\dunca\immich-app> docker compose up -d [+] Running 5/6 ✔ Network immich-app_default Created 0.1s ✔ Container immich_machine_learning Started 2.2s ✔ Container immich_postgres Started 2.2s ✔ Container immich_redis Started 2.2s ✔ Container immich_server Started 3.1s - Container immich_web Starting 3.6s Error response from daemon: failed to set up container networking: driver failed programming external connectivity on endpoint immich_web (7e84fbe56c5dc19c64ebb6884bd8ce5728f2c0bcd4bdcceaf3bac3b576ec6901): Bind for 0.0.0.0:2283 failed: port is already allocated. After updating ports to 2283
Mraedis
Mraedis•5w ago
You have two containers that bind to 2283 Do you still have your old compose?
wired111
wired111OP•5w ago
no i saved over it I feel really silly, thank you for helping
Mraedis
Mraedis•5w ago
Let's update the compose to what it should be from the start Give me a minute Is your D: drive an HDD or SSD @wired111 ?
wired111
wired111OP•5w ago
hdd
Mraedis
Mraedis•5w ago
name: immich

services:
immich-server:
container_name: immich_server
image: ghcr.io/immich-app/immich-server:${IMMICH_VERSION:-release}
volumes:
- ${UPLOAD_LOCATION}:/data
- /etc/localtime:/etc/localtime:ro
env_file:
- .env
ports:
- '2283:2283'
depends_on:
- redis
- database
restart: always
healthcheck:
disable: false

immich-machine-learning:
container_name: immich_machine_learning
volumes:
- model-cache:/cache
env_file:
- .env
restart: always
healthcheck:
disable: false

redis:
container_name: immich_redis
image: docker.io/valkey/valkey:8-bookworm@sha256:fec42f399876eb6faf9e008570597741c87ff7662a54185593e74b09ce83d177
healthcheck:
test: redis-cli ping || exit 1
restart: always

database:
container_name: immich_postgres
image: ghcr.io/immich-app/postgres:14-vectorchord0.4.1-pgvectors0.2.0
environment:
POSTGRES_PASSWORD: ${DB_PASSWORD}
POSTGRES_USER: ${DB_USERNAME}
POSTGRES_DB: ${DB_DATABASE_NAME}
POSTGRES_INITDB_ARGS: '--data-checksums'
# Uncomment the DB_STORAGE_TYPE: 'HDD' var if your database isn't stored on SSDs
DB_STORAGE_TYPE: 'HDD'
volumes:
- immich_pgdata:/var/lib/postgresql/data
restart: always

volumes:
immich_pgdata:
model-cache:
name: immich

services:
immich-server:
container_name: immich_server
image: ghcr.io/immich-app/immich-server:${IMMICH_VERSION:-release}
volumes:
- ${UPLOAD_LOCATION}:/data
- /etc/localtime:/etc/localtime:ro
env_file:
- .env
ports:
- '2283:2283'
depends_on:
- redis
- database
restart: always
healthcheck:
disable: false

immich-machine-learning:
container_name: immich_machine_learning
volumes:
- model-cache:/cache
env_file:
- .env
restart: always
healthcheck:
disable: false

redis:
container_name: immich_redis
image: docker.io/valkey/valkey:8-bookworm@sha256:fec42f399876eb6faf9e008570597741c87ff7662a54185593e74b09ce83d177
healthcheck:
test: redis-cli ping || exit 1
restart: always

database:
container_name: immich_postgres
image: ghcr.io/immich-app/postgres:14-vectorchord0.4.1-pgvectors0.2.0
environment:
POSTGRES_PASSWORD: ${DB_PASSWORD}
POSTGRES_USER: ${DB_USERNAME}
POSTGRES_DB: ${DB_DATABASE_NAME}
POSTGRES_INITDB_ARGS: '--data-checksums'
# Uncomment the DB_STORAGE_TYPE: 'HDD' var if your database isn't stored on SSDs
DB_STORAGE_TYPE: 'HDD'
volumes:
- immich_pgdata:/var/lib/postgresql/data
restart: always

volumes:
immich_pgdata:
model-cache:
This should be the right compose
wired111
wired111OP•5w ago
got it and saved.
Mraedis
Mraedis•5w ago
That is assuming you used immich_pgdata like advised for windows users and chatgpt didn't dream that up It could also have been named pgdata instead Are you using docker desktop? I assume so
wired111
wired111OP•5w ago
yes, using docker desktop
Mraedis
Mraedis•5w ago
In the GUI, is there a volumes section? Can you screenshot it
wired111
wired111OP•5w ago
assuming this is what you are looking for. there is also a head of volumes above the screenshotted section with convoluted names as well
No description
wired111
wired111OP•5w ago
heap
Mraedis
Mraedis•5w ago
The convoluted ones are unnamed, disposable volumes It looks like you made a new project called immich-app when before it was just immich?
wired111
wired111OP•5w ago
yes, i have. I created immich, then it broke during an old update so i started fresh with immich app i'm not very good at this
Mraedis
Mraedis•5w ago
JUst come here for help, don't ask chatgpt :p Any error now @wired111 ?
wired111
wired111OP•5w ago
PS C:\Users\dunca\immich-app> docker compose down service "immich-machine-learning" has neither an image nor a build context specified: invalid compose project PS C:\Users\dunca\immich-app>
Mraedis
Mraedis•5w ago
Oops I deleted a line too many @wired111 chaneg the machine learning part from:
immich-machine-learning:
container_name: immich_machine_learning
volumes:
immich-machine-learning:
container_name: immich_machine_learning
volumes:
to:
immich-machine-learning:
container_name: immich_machine_learning
image: ghcr.io/immich-app/immich-machine-learning:${IMMICH_VERSION:-release}
volumes:
immich-machine-learning:
container_name: immich_machine_learning
image: ghcr.io/immich-app/immich-machine-learning:${IMMICH_VERSION:-release}
volumes:
wired111
wired111OP•5w ago
PS C:\Users\dunca\immich-app> docker compose up -d ... - Container immich_postgres Creating 0.1s Error response from daemon: Conflict. The container name "/immich_redis" is already in use by container "5b375d498fbf4b22e50fd431170815d8714b2eb4a5f552fa880bf2d1c51adf18". You have to remove (or rename) that container to be able to reuse that name.
Mraedis
Mraedis•5w ago
Do a compose down first and then docker ps --all
wired111
wired111OP•5w ago
PS C:\Users\dunca\immich-app> docker ps --all CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 17d4587958e2 ghcr.io/immich-app/immich-web:release "tini -- /bin/sh ent…" About an hour ago Created immich_web cd3833d54cd0 ghcr.io/immich-app/immich-server:release "tini -- /bin/bash -…" About an hour ago Up 48 minutes (healthy) 0.0.0.0:2283->2283/tcp, [::]:2283->2283/tcp immich_server 5b375d498fbf redis:6.2-alpine "docker-entrypoint.s…" About an hour ago Up 48 minutes 6379/tcp immich_redis 17f7d40bb12e ghcr.io/immich-app/postgres:14-vectorchord0.3.0-pgvectors0.2.0 "/usr/local/bin/immi…" About an hour ago Up 48 minutes (healthy) 5432/tcp immich_postgres 7077612414b3 ghcr.io/immich-app/immich-machine-learning:release "tini -- start.sh ml" About an hour ago Restarting (127) 6 seconds ago immich_machine_learning d96e203f2e2a ghcr.io/music-assistant/server:latest "mass --config /data" 2 weeks ago Up 10 minutes
Mraedis
Mraedis•5w ago
Is that after a compose down?
wired111
wired111OP•5w ago
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 17d4587958e2 ghcr.io/immich-app/immich-web:release "tini -- /bin/sh ent…" About an hour ago Created immich_web cd3833d54cd0 ghcr.io/immich-app/immich-server:release "tini -- /bin/bash -…" About an hour ago Up 51 minutes (healthy) 0.0.0.0:2283->2283/tcp, [::]:2283->2283/tcp immich_server 5b375d498fbf redis:6.2-alpine "docker-entrypoint.s…" About an hour ago Up 51 minutes 6379/tcp immich_redis 17f7d40bb12e ghcr.io/immich-app/postgres:14-vectorchord0.3.0-pgvectors0.2.0 "/usr/local/bin/immi…" About an hour ago Up 51 minutes (healthy) 5432/tcp immich_postgres 7077612414b3 ghcr.io/immich-app/immich-machine-learning:release "tini -- start.sh ml" About an hour ago Restarting (127) 36 seconds ago immich_machine_learning d96e203f2e2a ghcr.io/music-assistant/server:latest "mass --config /data" 2 weeks ago Up 13 minutes 0.0.0.0:8095->8095/tcp, [::]:8095->8095/tcp, 0.0.0.0:8097-8098->8097-8098/tcp, [::]:8097-8098- >8097-8098/tcp music-assistant 1cda70f7113f caddy:latest "caddy run --config …" 3 weeks ago Exited (255) 51 minutes ago caddy 03f9c98423d1 ghcr.io/paperless-ngx/paperless-ngx:latest "/init" 3 weeks ago Exited (0) 3 weeks ago paperless-webserver-1 2f0569311351 postgres:17 "docker-entrypoint.s…" 3 weeks ago Exited (255) 3 weeks ago 5432/tcp paperless-db-1 1d0f8d75c8d5 ghcr.io/home-assistant/home-assistant:stable "/init" 3 weeks ago Up 51 minutes 0.0.0.0:8123->8123/tcp, [::]:8123->8123/tcp homeassistant 407651de95d4 ghcr.io/steveiliop56/tinyauth:v3 "./tinyauth" 4 weeks ago Exited (1) 3 weeks ago tinyauth be71ee39315d redis:8 "docker-entrypoint.s…" 4 weeks ago Up 51 minutes 6379/tcp paperless-broker-1 yes after docker compose down
Mraedis
Mraedis•5w ago
alright let's just shut them down seperately then
docker stop immich-web
docker stop immich_server
docker stop immich_machine_learning
docker stop immich_postgres
docker stop immich_redis
docker stop immich-web
docker stop immich_server
docker stop immich_machine_learning
docker stop immich_postgres
docker stop immich_redis
I don't see redis in there but that'd be docker stop immich_redis of course ah nevermind found it
wired111
wired111OP•5w ago
i have stopped them all, however i got an error on immich-web Error response from daemon: No such container: immich-web
Mraedis
Mraedis•5w ago
It's immich_web I mistyped there
wired111
wired111OP•5w ago
done, i should have picked that up. sorry. I did a docker compose up -d and got... ✘ Container immich_redis Error response from daemon: Conflict. The contai... 0.1s - Container immich_machine_learning Creating 0.1s Error response from daemon: Conflict. The container name "/immich_redis" is already in use by container "5b375d498fbf4b22e50fd431170815d8714b2eb4a5f552fa880bf2d1c51adf18". You have to remove (or rename) that container to be able to reuse that name. PS C:\Users\dunca\immich-app>
Mraedis
Mraedis•5w ago
I see let's just
docker stop 5b375d498fbf4b22e50fd431170815d8714b2eb4a5f552fa880bf2d1c51adf18
docker rm 5b375d498fbf4b22e50fd431170815d8714b2eb4a5f552fa880bf2d1c51adf18
docker stop 5b375d498fbf4b22e50fd431170815d8714b2eb4a5f552fa880bf2d1c51adf18
docker rm 5b375d498fbf4b22e50fd431170815d8714b2eb4a5f552fa880bf2d1c51adf18
wired111
wired111OP•5w ago
ok that happened a few more times and I removed all the offending containers and now all is up except immich server which keeps restarting. Starting microservices worker logs show [Nest] 7 - 08/01/2025, 7:55:40 PM LOG [Microservices:DatabaseRepository] targetLists=1, current=1 for clip_index of 0 rows [Nest] 7 - 08/01/2025, 7:55:40 PM LOG [Microservices:DatabaseRepository] targetLists=1, current=1 for face_index of 0 rows [Nest] 7 - 08/01/2025, 7:55:40 PM LOG [Microservices:StorageService] Verifying system mount folder checks, current state: {"mountChecks":{"thumbs":true,"upload":true,"backups":true,"library":true,"profile":true,"encoded-video":true}} [Nest] 7 - 08/01/2025, 7:55:40 PM ERROR [Microservices:StorageService] Failed to read (/usr/src/app/upload/encoded-video/.immich): Error: ENOENT: no such file or directory, open '/usr/src/app/upload/encoded-video/.immich' microservices worker error: Error: Failed to read: "<UPLOAD_LOCATION>/encoded-video/.immich (/usr/src/app/upload/encoded-video/.immich) - Please see https://immich.app/docs/administration/system-integrity#folder-checks for more information.", stack: Error: Failed to read: "<UPLOAD_LOCATION>/encoded-video/.immich (/usr/src/app/upload/encoded-video/.immich) - Please see https://immich.app/docs/administration/system-integrity#folder-checks for more information." at StorageService.verifyReadAccess (/usr/src/app/server/dist/services/storage.service.js:124:19) at async /usr/src/app/server/dist/services/storage.service.js:56:21 at async /usr/src/app/server/dist/repositories/database.repository.js:379:27 at async /usr/src/app/server/node_modules/kysely/dist/cjs/kysely.js:535:20 at async DefaultConnectionProvider.provideConnection (/usr/src/app/server/node_modules/kysely/dist/cjs/driver/default-connection-provider.js:12:20) at async /usr/src/app/server/dist/repositories/database.repository.js:376:13 microservices worker exited with code 1 Killing api process
Mraedis
Mraedis•5w ago
That's funky because it says '/usr/src/app/upload while I gave you /data 👀 What's currently in your .env @wired111 ?
wired111
wired111OP•5w ago
Location for uploaded files (host path) UPLOAD_LOCATION=D:/immich/uploads Location for PostgreSQL data (host path) DB_DATA_LOCATION=D:/immich/postgres Timezone TZ=Australia/Sydney Immich version to use IMMICH_VERSION=release Database credentials DB_PASSWORD=postgres DB_USERNAME=postgres DB_DATABASE_NAME=immich DB_HOST=database Container media path (absolute path inside container) IMMICH_MEDIA_LOCATION=/usr/src/app/upload Machine learning service URLs IMMICH_MACHINE_LEARNING_URL=http://immich_machine_learning:3003 ML_SERVER_URL=http://immich_machine_learning:3003
Mraedis
Mraedis•5w ago
Remove all of:
IMMICH_MEDIA_LOCATION=/usr/src/app/upload
IMMICH_MACHINE_LEARNING_URL=http://immich_machine_learning:3003/
ML_SERVER_URL=http://immich_machine_learning:3003/
IMMICH_MEDIA_LOCATION=/usr/src/app/upload
IMMICH_MACHINE_LEARNING_URL=http://immich_machine_learning:3003/
ML_SERVER_URL=http://immich_machine_learning:3003/
Just plain remove it from the env @wired111
wired111
wired111OP•5w ago
@Mraedis you are amazing. I'm in. I've reached the admin registration page. I'm guessing I just need to restore my back up. Thank you, kind Sir
Mraedis
Mraedis•5w ago
Yes, restoring the backup would end things indeed 🙂

Did you find this page helpful?