Recently upgraded my immich versions - immich now thinks it's a fresh install
1. I edited the
DB_DATA_LOCATION
and moved from /opt/docker/immich_postgres
to opt/docker/appdata/immich_postgres
2. Done a docker pull to get the latest version
52 Replies
:wave: Hey @Ray,
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.1. I edited the DB_DATA_LOCATION and moved from /opt/docker/immich_postgres to opt/docker/appdata/immich_postgresSo you set up a completely new database and then you are suprised your database is new?
Was your old version pre 132? I think thats the error here
THat too đ
Looking at the screenshots the previous version was from februari
no?
mv /opt/docker/immich_postgres /opt/docker/appdata/immich_postgres
lolYeah also you can't do that
But you need to downgrade to
v1.136.0
firstOh ok
See https://immich.app/errors/#typeorm-upgrade
Did you follow all other breaking changes too?
Specifically https://github.com/immich-app/immich/discussions/18429
I accidentally updated immich. I ran docker-compose pull and it fetched the latest version
I didn't mean for it to do that
Was an accident
My docker-compose is quite confusing
Pastebin
immich-server: container_name: immich_server image: ghcr.io...
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
And my env variables
If you're using latest version all you need to do is change
IMMICH_VERSION=v1.136.0
at the bottom, do a compose pull, wait for the migration to finish after startup and then change back to releaseThanks brother
I'll give that a shot now
WHAT?
It says your disk is full
Disk is full
For which disk the mount or the immich_database files?
df -hT
and you'll see
Thank you
It looks like the immich-postgres folder (db location) is gigantic. Is it possible for me to migrate
immich_postgres
to my mount without anything breaking?Define "gigantic"?
Sounds more to me like you need to do a proper
docker image prune
2.3G /opt/docker/appdata/immich-postgres/
Seems normal to me
But how is a shitty little debian server using 32GB? It only uses docker?!
.
Total reclaimed space: 2.886GB
yay space
Guys I really appreciate your help here, even though this isn't specifically an immich problem
I really really appreciate it
â¤ď¸
I will return the favour one day
You should probably give your root more space fwiw
There is none to give

It's maxed out at 32GB
oh it's a VM
I thought that would be enough
yeah add more
Just a quick question
Shall i put database files and stuff on my mount server generally?
And keep my docker server as just bare minimal
No don't put those over the network
Oh ok
I think this VM needs to be recreated. I created this debian server without an LVM
So increasing disk space seems tricky
Would my best bet here be to create another debian server with LVM?
And migrate everything over to that?
Nah growing a part isn't too hard
Pretty sure you can just yeet it to 64 and then grow2fs
10GB for docker images, 5GB for ML cache, 4GB for the database
Give or take
I wrote these notes last time I increased it from 16GB
Disk /dev/sda: 32 GiB, 34359738368 bytes, 67108864 sectors
Disk model: QEMU HARDDISK
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0xe455747f
Device Boot Start End Sectors Size Id Type
/dev/sda1 2048 31553535 31551488 15G 83 Linux
/dev/sda2 31555582 33552383 1996802 975M 5 Extended
/dev/sda5 31555584 33552383 1996800 975M 82 Linux swap / Solaris
is this pretty much what i need to do again?
or is there a simpler way/?
I did chatgpt that a few months ago, and it did work
But if there's a simpler way I would really prefer doing that
that sounds about right except for I don't see what dev sda 2 is doing there?
nevermind me :p
Shall I just make another VM with an LVM?
Would migrating over cause any issues?
No, migrating is easy
Literally this
I did prune and free up the space
Another error this time
https://github.com/immich-app/immich/issues/20167#issuecomment-3139853878 step by step guide to fix this
[Issue] DB migration failing: multiple primary keys for table "geodata_places" are not allowed (immich-app/immich#20167)
I have the same problem, i changed the database but because i change from root user to a new non-root user, how can i recover ?
Well first off, make your own topic, secondly restore from backup