I
Immich•3w ago
athornfam2

Immich broken after latest update

I belive I was working just fine on version 1.40 until the latest upgrade and replacement of the docker-compose.yml file.
43 Replies
Immich
Immich•3w ago
:wave: Hey @athornfam2, 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. :ballot_box_with_check: 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.
athornfam2
athornfam2OP•3w ago
docker ps -a de798688897d ghcr.io/immich-app/postgres:14-vectorchord0.4.3-pgvectors0.2.0 "/usr/local/bin/immi…" 9 minutes ago Up 9 minutes (healthy) 5432/tcp immich_postgres 6b5bbbd123fa ghcr.io/immich-app/immich-server:release "tini -- /bin/bash -…" 13 minutes ago Up 2 seconds (health: starting) 0.0.0.0:2283->2283/tcp, [::]:2283->2283/tcp immich_server 3123e3cdd6ec valkey/valkey:8-bookworm "docker-entrypoint.s…" 13 minutes ago Up 9 minutes (healthy) 6379/tcp immich_redis e7fe44402c6d ghcr.io/immich-app/immich-machine-learning:release "tini -- python -m i…" 13 minutes ago Up 9 minutes (healthy) immich_machine_learning
Alex Tran
Alex Tran•3w ago
Try run docker compose up without -d to see what is in the log
athornfam2
athornfam2OP•3w ago
Mraedis
Mraedis•3w ago
You've probably made a typo @athornfam2 and it's trying to find a variable that doesn't exist. Could you post your full compose?
athornfam2
athornfam2OP•3w ago
athornfam2
athornfam2OP•3w ago
That would be great if it was just a typo.
Mraedis
Mraedis•3w ago
It's not in there, maybe your .env file?
athornfam2
athornfam2OP•3w ago
root@Immich#6341:/immich-app# cat .env
# You can find documentation for all the supported env variables at https://immich.app/docs/install/environment-variables

# The location where your uploaded files are stored
UPLOAD_LOCATION=/immich-storage
# The location where your database files are stored
DB_DATA_LOCATION=/var/lib/postgresql/data

# 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=Etc/UTC

# The Immich version to use. You can pin this to a specific version like "v1.71.0"
IMMICH_VERSION=release
#immich_VERSION="v1.37.0"

# 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=###

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

# The location where your uploaded files are stored
UPLOAD_LOCATION=/immich-storage
# The location where your database files are stored
DB_DATA_LOCATION=/var/lib/postgresql/data

# 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=Etc/UTC

# The Immich version to use. You can pin this to a specific version like "v1.71.0"
IMMICH_VERSION=release
#immich_VERSION="v1.37.0"

# 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=###

# The values below this line do not need to be changed
###################################################################################
DB_USERNAME=##
DB_DATABASE_NAME=##
Mraedis
Mraedis•3w ago
Does anything in your env/compose have the string zCK ? Specifically the password you've removed for instance
athornfam2
athornfam2OP•3w ago
it does
Mraedis
Mraedis•3w ago
I'm guessing there's a $ in front of there
athornfam2
athornfam2OP•3w ago
Wow yes. That .env must have changed because it has been working with that password since 0.30 of immich How would I go about updating the DB password?
Mraedis
Mraedis•3w ago
Not too sure if it will work but start off by putting it in quotes if it isn't already
athornfam2
athornfam2OP•3w ago
Still now working after doing the docker down/up stuff
Mraedis
Mraedis•3w ago
what about DB_PASSWORD="blabla\$zCKblabla" adding the \
athornfam2
athornfam2OP•3w ago
That didn't work either. If I can just change the password with no problems. I can do that and get rid of any special characters Well just changed the password to try it out and still a no go
Mraedis
Mraedis•3w ago
It doesn't just change the password like that
athornfam2
athornfam2OP•3w ago
Hmm.. So what would be the process to fix this up?
Mraedis
Mraedis•3w ago
docker exec -it immich_postgres /bin/bash psql postgres -U postgres ALTER USER postgres WITH PASSWORD 'new_password'; I think this should cover it Changed the psql part ^
athornfam2
athornfam2OP•3w ago
Think I'm back to where I started minus the string issue
immich_server | [Nest] 7 - 09/15/2025, 5:05:19 PM LOG [Microservices:EventRepository] Initialized websocket server
immich_server | [Nest] 7 - 09/15/2025, 5:05:19 PM LOG [Microservices:DatabaseRepository] targetLists=1, current=1 for clip_index of 0 rows
immich_server | [Nest] 7 - 09/15/2025, 5:05:19 PM LOG [Microservices:DatabaseRepository] targetLists=1, current=1 for face_index of 0 rows
immich_server | [Nest] 7 - 09/15/2025, 5:05:19 PM WARN [Microservices:DatabaseRepository] Migration "1744910873969-InitialMigration" failed
immich_server | [Nest] 7 - 09/15/2025, 5:05:19 PM ERROR [Microservices:DatabaseRepository] Migrations failed: Error: Invalid upgrade path. For more information, see https://immich.app/errors#typeorm-upgrade
immich_server | [Nest] 7 - 09/15/2025, 5:05:19 PM LOG [Microservices:EventRepository] Initialized websocket server
immich_server | [Nest] 7 - 09/15/2025, 5:05:19 PM LOG [Microservices:DatabaseRepository] targetLists=1, current=1 for clip_index of 0 rows
immich_server | [Nest] 7 - 09/15/2025, 5:05:19 PM LOG [Microservices:DatabaseRepository] targetLists=1, current=1 for face_index of 0 rows
immich_server | [Nest] 7 - 09/15/2025, 5:05:19 PM WARN [Microservices:DatabaseRepository] Migration "1744910873969-InitialMigration" failed
immich_server | [Nest] 7 - 09/15/2025, 5:05:19 PM ERROR [Microservices:DatabaseRepository] Migrations failed: Error: Invalid upgrade path. For more information, see https://immich.app/errors#typeorm-upgrade
Mraedis
Mraedis•3w ago
Did you skip versions 1.133 to 1.136?
athornfam2
athornfam2OP•3w ago
I can't exactly remember but based on the error and what it says it sounds like I may have.
Mraedis
Mraedis•3w ago
But you're certain 1.140 worked?
athornfam2
athornfam2OP•3w ago
I more than likely had "update fatigue"
Mraedis
Mraedis•3w ago
It doesn't matter to me how often you update, just what the versions were before this 😛
athornfam2
athornfam2OP•3w ago
I'm very certain I was on 1.140
Mraedis
Mraedis•3w ago
You could try specifying IMMICH_VERSION=v.1.136.0 in your env file But I'm guessing this might involve a db restore to get going properly
athornfam2
athornfam2OP•3w ago
root@immich:/immich-app# docker compose stop && docker compose pull && docker compose up -d
[+] Stopping 4/4
✔ Container immich_machine_learning Stopped 0.6s
✔ Container immich_server Stopped 0.6s
✔ Container immich_postgres Stopped 0.5s
✔ Container immich_redis Stopped 0.5s
[+] Pulling 4/4
✔ redis Pulled 0.1s
! immich-server I... 0.3s
✔ database Pulled 0.2s
✘ immich-machine-learning Error manifest unknown 0.3s
Error response from daemon: manifest unknown
root@immich:/immich-app# docker compose stop && docker compose pull && docker compose up -d
[+] Stopping 4/4
✔ Container immich_machine_learning Stopped 0.6s
✔ Container immich_server Stopped 0.6s
✔ Container immich_postgres Stopped 0.5s
✔ Container immich_redis Stopped 0.5s
[+] Pulling 4/4
✔ redis Pulled 0.1s
! immich-server I... 0.3s
✔ database Pulled 0.2s
✘ immich-machine-learning Error manifest unknown 0.3s
Error response from daemon: manifest unknown
I would be totally fine redoing all of immich as long as I don't lose my photos under immich-storage which is a separate storage mount.
Alex Tran
Alex Tran•3w ago
instead of do docker compose stop can you try docker compose down? it is a proper shutdown then stop
athornfam2
athornfam2OP•3w ago
still the same issue
Mraedis
Mraedis•3w ago
I put a . too many in my version IMMICH_VERSION=v1.136.0 no dot between v and 1
athornfam2
athornfam2OP•3w ago
# The Immich version to use. You can pin this to a specific version like "v1.71.0"
#immich_VERSION=release
IMMICH_VERSION=v1.36.0
# The Immich version to use. You can pin this to a specific version like "v1.71.0"
#immich_VERSION=release
IMMICH_VERSION=v1.36.0
That's what I have in the .env
Mraedis
Mraedis•3w ago
it's 136 not 36
athornfam2
athornfam2OP•3w ago
whoops
athornfam2
athornfam2OP•3w ago
I'm getting a different type of error now but still no interface
Mraedis
Mraedis•3w ago
What hardware are you running this on @athornfam2 ?
athornfam2
athornfam2OP•3w ago
I'm running this on VMware with Ubuntu 24 LTS
Mraedis
Mraedis•3w ago
Ah this is what I was looking for, try: docker exec immich_postgres psql -U postgres -d immich -c 'select version, "createdAt" from version_history'
athornfam2
athornfam2OP•3w ago
version | createdAt
---------+------------------------------- 1.117.0 | 2024-10-09 14:09:36.970941+00 1.121.0 | 2024-11-27 00:57:12.093278+00
Mraedis
Mraedis•3w ago
aha I would revert to your latest backup https://immich.app/docs/administration/backup-and-restore/ with the env set at v1.121.0 And then upgrade to 1.133 And after that straight to latest release*
athornfam2
athornfam2OP•3w ago
Well that was a pain in the *** but I'm "up and running" on v1.133.0 now. Going to do a new snap on this since its working. I'm up and running on v1.142.0 now. Thanks!

Did you find this page helpful?