TrueNas space reporting doesn't work.
I followed the official guide for installing immich on truenas scale (https://immich.app/docs/install/truenas/) and overall it works, but the space reporting just doesn't for some reason. I have set up a parent "Immich" dataset and created child datasets for the different directories immich needs , like it says in the guide , but the storage used doesn't show in the statistic.
Thanks in advance for any help 😄

17 Replies
:wave: Hey @Palomar,
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.It's showing the disk usage of the library root which in the default setup would be UPLOAD_LOCATION. On the truenas setup nothing is mounted there so it measures an empty mount
ie this is working as expected
I don't quite understand. In the zfs dataset overview it says there is data there.

each one of those is mounted in the container at
/usr/src/app/upload/{library,profile,thumbs,...}
But it's reading the storage usage of /usr/src/app/upload
which is empty, because it doesn't measure usage across mount boundariesah okay, ty. Is there a way to change my setup to make it work though?
Depends on what you're expecting to see exactly. If you want the
17.1/182.9
off the top, no. If you want one of the entries from the rest of the list, yes
Well, that no comes with a caveat
You could just get rid of this whole multi dataset thingIs there a way I could make it show the usage of the upload dataset for example?
Yeah, just mount it to the root folder
/usr/src/app/upload
rather than to the subfolder
If you're using storage template, it's recommended to do that for upload/library togetherWould I just use folders then? I tried following the guide
Also see the note at the bottom of https://immich.app/docs/guides/custom-locations
huh okay , I will read through that. ty 😄
@Palomar have you solved this issue? I'm having the same problem. So should I just get rid of both library and uploads and have them in one dataset to report the usage correctly?
How can I mount it? In the application setup here?

Yeah , the docs are just wrong. If you create one "Immich" datasets and create the substructures like upload, libraray etc as normal folders i.e with "mkdir" within that one dataset it works just fine
seems the best way is to create two datasets, one Immich dataset for everything pretty much and sub directories instead of sub datasets. Maybe only create another dataset with different block size for the DB
i created my initial setup with all different datasets as well. Tonight I'm going to migrate /library to be a subdirectory in the top level immich dataset so storage shows correctly.
actually, we are doing it live right now. Moved all my child datasets(ie uploads,library,backup,thumb,etc) to just a child folder of immich top level dataset(/mnt/fastpool/apps/immich)
so dataset /mnt/fastpool/apps/immich/uploads moved to folder /mnt/fastpool/apps/immich/uploads_migration
moved over all data(dont forget .immich at root of each it seems)
repointed all my hostpaths to new locations, reporting correctly now

I feel better.
I’ll see if I can make a doc on this if the kids sleep tonight. I know a lot of scale users followed the immich doc. I actually did this on my own not knowing.
For at least the people that already have a somewhat “production” environment and want to fix it. Even though immich isn’t production ready 😉