TrueNAS Community Edition - Cannot Update from v1.9.30 to v1.10.2
- TrueNAS Community Edition - v25.04.2.4
- Immich App Version - v1.143.0
- Immich Version - v1.9.30
I just turned on my TrueNAS server and all of my services needed an update. So I went ahead and updated them all. Unfortunately, Immich was the only one who didn't update properly. I'm not entirely sure what could be the issue so here I am. Before writing this, I went ahead and rebooted and shutdown the system to recreate the problem and it still persists the same. So it's possibly an internal issue with Immich itself. Here are photos of the errors I've gotten, much thanks!




124 Replies
:wave: Hey @NetworkWilbi,
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.
Successfully submitted, a tag has been added to inform contributors. :white_check_mark:You have to use the dataset storage in TrueNAS
Check the pinned message in #truenas maybe
Not for this one, the version is recent there
Hello
But we have to delete the hold folders?
Only when the migration is complete, that everything works, that you've double checked that no data has been lost and that your backups made
ah ok
That appears the same error
i already created the new folders, but always the same error
can you create a new ticket and show your Immich config, and the datasets?
I'll check it out, I'll let you know what I find.
I'd like to keep in mind that when I first installed Immich on TrueNAS the only datasets I used is 'db' for database and 'uploads' for everything else.
Holy
Not again
Still persists as of now as I installed immich about a week ago
Oh
Can you click on edit Immich
and show/share your current setup?
yes
I'm saying that, because it would have been the third time I help someone wis a misconfigured Immich install from older version
But it might not be that

Looking at the link you send me I can see the older version had like 5 or so different Host Paths but luckily I had only 2 needed to be configured.
I'll also include my dataset permissions
Tbh everything looks fine



Here are the permissions for Immich
well owner and owner group of uploads is not what I would recomment, but that is ok
What should it be?
And for which of the datasets?
It's not the source of the issue
for Uploads I've that

and if you wanted to add yourself, you just add a User
db, you don't touch it
and for the Immich parent, not acl is required

but comming back to that
it looks more a TrueNAS issue
I would try things in this order
1) Check if you have any TrueNAS updates (are you on the latest which is 25.04.2.4?) If yes, update
and in both case, restart your NAS
then try again to upgrade and lmk
otherwise solution 2°
2) as you have host dataset, you can delete the Immich app, and reinstall it again, the same way as it is now
1) I'm on the latest, 25.04.2.4
2) I changed the user permissions to yours (I checked Immich to make sure data is not affected and it looks good)
I will restart the truenas. If that doesn't work, then I will uninstall (with my datasets, my data will stay persistent), and reinstall again.
Yes!
Though, if it doesn't work after a restart, Maybe you could report that issue on Truenas apps github also
Once I restart, I will try to update Immich. If it fails I'll reinstall the app
Does the app have a github directory I can quickly go into?
And also mention that issue so that everyone is aware?
Well Immich has its own github repo
but for TrueNAS Immich https://github.com/truenas/apps/issues
Wouldn't hurt to do both right or no?
As your issue is related to only TrueNAS I won't post it on the "official" Immich one
That makes sense to not have any overlapping issues
TrueNAS is in the process of restarting
I'll keep you updated on the progress
And reporting it here, the TrueNAS dev responsible might be able to fix it quickly
I don't know how this fails

Because the file isn't store on a thing you usually access or modify anything
Me neither, I haven't touched that area or any area on Immich for that matter
Yes, so if any of the 2 solution I gave works, I would encourage you to report the issue anyway
Of course
Will I be able to include the pictures as well in the github repo? And what type of request or way I can describe this issue via github. I understand pull requests but not sure if it applies to this issue as I haven't looked at the actual code.
So which category in github should I write the issue?
No need for a pull
I gave you the link straight to the Issue page
I appreciate it!
so create an issue, and there is a template fo r a bug report
The TrueNAS catalogue app version is the Immiche version you mentionned there
and of course you can join a screenshot (I definitely would include it at it shows the problem directly)
Just making my apps appear, excuse the wait
No worries!
Btw you mean the App Version of Immich not the regular version of Immich for the bug report?
Yes?
The Truenas app version
so v1.9.30
Got it
Immich Version - v1.9.30
This guy that I mentioned
Right?
yes
It's the immich version that TrueNAS uses to reference their modifications to it
on Immich side the current version is 1.143.1
Have you been able to update it after the reboot? Or are your apps stil starting?
While waiting for docker to get it together I made the bug report to github
Oh HDDs pool
My apps aren't showing and this happens sometimes and I find ways to fix it be restarting docker and all but sometimes the apps just don't show up on the "Apps" section on TrueNAS for some reason.
I do a mix of
sudo systemctl restart middlewared
and
sudo systemctl restart docker
In the background I see my services working but just not showing up
Yes my pool is an HDD
Running RAIDZ2
That explains why it slows
for apps it'es recommended to have SSDs
Well to have that is expensive for a NAS build
you don't necesasraly need to store the apps on it, like for Immich you could then keep your current setup, but docker itself would live on the SSD pools
and thus start wayyy faster
Right normally SSDs are just faster
wait no
you're OP here
we stay hjere
Yeah
I inverted who was who
More IOPS
so really really faster for small files
I'm just back and forth with my docker containers not showing up on Apps
I really want TrueNAS Community Edition to be production ready but my god is it difficult
Because these apps are awesome and good for my clients
Immich is a godsend for images and DUPLICATE photos is amazing
Machine Learning, like idk how you can get better than that
That's right
So I'm guessing that I need to just wait it out for the docker containers
Yeah
I restarted TrueNAS again, so that all of them can run
Well if after 15 minutes it doesn't work, then try your solution
I'll wait like 5-10 minutes for them to sit nicely in my slow-and-steady NAS solution
Yeah usually it works once the containers persist after a while being on
yeah, that could be your next upgrade
simple mirror SSDs
that would speed up a lot your apps
The thing is I need a lot of storage and SSDs are just mad expensive. Right now I'm using x4 IronWolf 4TB 5400RPM drives running RAIDZ2
That costed me a solid $400+ for just the drives
You don't need to have eveything on SSDs
like a pair of 500gb sata ssd can already be a good start
Well, if we talk about that
come in #off-topic
this is a support ticket after all
Cause if I'm going to add an SSD I need to setup a RAIDZ2 on it
Or because SSDs are more fast and effecient, I can get away with RAIDZ1 because I want redundancy
Yeah sorry, still going through the process of installing immich
No worries, I would just prefer keeping the ticket "clean" and only about the issue
Yes that is fair
Well, I'm looking at my containers and they show unhealthy...jeez I can't catch a break
They are running though
But still not showing up on "Apps," I'm gonna need a few minutes
Mirror SSD"s for the win
still have redundancy and only need two of them
They don't have issues with resilvering do they?
wdym?
And coming back here, has docker started ?
They keep showing as unhealthy and can't get to the Apps interface
This is frustrating
All of your apps show unhealthy? Or is it just Immich?
all

Nice
Well in the meaning that it's not Immich related
otherwise not that nice
They are serving their ports though which is weird
and you can conenct to them?

Yes I can connect to them like normal, just TrueNAS seriously doesn't want to show them up
I'm gonna try and restart truenas while the docker containers are running and see how that will do
Yeah, I can't help you with that
I don't even thing that is caused by HDDs
Yeah, its a thing I unfortunately have to make sure I can deal with
Once I get the apps showing up properly, I can start reinstalling
So this is what I did to fix it, I first have to verify that my docker containers are running. Restart TrueNAS, then go to the terminal and type sudo systemctl restart middlewared (This allows TrueNAS to show the Apps).

Golden
That is weird
I think In the next version (or the version in April) there will be some improvements of the middleware so it might also solve your issue
Hopefully cause its annoying, I can't even have thes containers stop and restart or I will get the same issue
K attempting update
Well I would still expect swicthing to ssd to improve that
K didn't work, Gonna reinstall
It was the case when it was Kubernetes so I support it works the same for docker
Most definitely
Here right?

Yes
Where I choose the pool
But wait for the next TrueNAS version to do the switch
Because now there is no "migrate data" button when you decide to change pool
thus it won't migrate some stuff
gotcha
Btw for deleting the app, uncheck "Remove images"?
or check "remove images?"
you can tick it
tick it as in check it?
y
it will remove the image of Immich (so like the downlaoded "program")
but as you upgrade it, you pull a new image
that is more recennt
yes?
yes
k
Thankfully all of my related passwords are in Bitwarden
You americans lol
you can change it anyway
(Well I'm not English/British either)
So should I have the data base storage type be HDD instead of SSD for now for my setup?
Because I have HDD instead of SSD
Yes
It's a small improvement for Immich, but it's better to set it
And it can be changed later
Automatic Permissions right?
You can yes
I didn't have machine learning cache so I'll leave that alone until the future
It will ensure that they're correctly set for the database dataset
Temporary is fine even in the future
Gotcha
The machine learning is seriously something, you guys are cooking for real
K installing
It's not me, I'm just support crew, which is voluntary work
Will it break, will it fix, find out next time on Dragon Ball Z
Well I wrote some stuff and code, but very small contributions
You contribute to the team so you are a part of the team.
Thats how I see it
Ok Immich is running
lets see if I'm gucci
Version is 1.10.2
And its up?
Users persist, photos persist, WE CHILLLLLLIN
Yeah, that is normal/expected
Nice
Weird issue you had though
Because the restart didn't fix the permissions, right?
It was, I'll mention in the bug that I just had to reinstall immich (with persistent data configured via datasets)
right
It might be just a one time issue related to other issue you had
But i'll keep that in mind if there is another ticket similar to yours
Glad it works and was somewhat easy to fix
and Btw there is a Truenas Discord if you ever want to ask more questions about TrueNAS itself
Not a one time though as Quelhas has the same issue
Well you got one helluva reference for this ticket. Much appreciate on helping me out and giving me some tips on HDD and SSD
So now that the problem has been solved, I close this ticket correct?
No problem! Thank you also for opening the ticket
Here on discord you can with /close yes
btw
https://github.com/truenas/apps/issues/3263
The title of your issue
change it you can just put Immich
instead of TrueNAS Community Edition
Because it's the github for the truenas apps so it's indeed a TrueNAS communty edition
Got it
This thread has been closed. To re-open, use the button below.