I
Immich•5mo ago
Zhigang

Storage in Server Stats will not count external libraries?

As I was using Synology Photos in the past and another docker app for managing the photos and videos. I decided to use external libraries, I successfully set the import path and verifed. I can see correct photo and video counts, but the stroage space not count. I have tried to upload two pictures, Immich only count the two I uploaded (1MB). Is there any method to have Immich to count the real space usage for the external libraries? Thanks.
No description
18 Replies
Immich
Immich•5mo ago
:wave: Hey @Zhigang, 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.
Mraedis
Mraedis•5mo ago
Not as of yet 🙂
Zhigang
ZhigangOP•5mo ago
Is there any plan for this in the near future release?
Mraedis
Mraedis•5mo ago
I'm not saying there is, but I don't think anyone is opposed, so who knows
Zhigang
ZhigangOP•5mo ago
Hopefully, this feature will be added in the next update. @Immich
Mraedis
Mraedis•5mo ago
Given the frequency of releases and noone is working on it yet, that seems unlikely
aviv
aviv•5mo ago
In fact, it is deliberately not included in the storage because an external library in any case takes up space on the server/computer on which Immich is running, so there is no reason for you to think that the external library would count because it really does not take up any space. You could say it was even considered a "bug" that was "fixed" https://github.com/immich-app/immich/issues/6534 https://github.com/immich-app/immich/pull/6556
Immich
Immich•5mo ago
[Pull Request] fix(server): only calculate quota usage for internal assets (immich-app/immich#6556)
Mraedis
Mraedis•5mo ago
To be fair I would like a counter that is visible just over at external libs @aviv 👀
aviv
aviv•5mo ago
You mean a button that shows the total storage space a user is using including external libs?
Mraedis
Mraedis•5mo ago
or a button just for the specific lib
aviv
aviv•5mo ago
Ahh I see, I think it might be a good idea for FR From a quick search I found this: https://github.com/immich-app/immich/issues/13152 Maybe you should add the request in addition here ^ Although this indicates requests from #9380 which has been closed
Immich
Immich•5mo ago
[Discussion] (immich-app/immich#9380)
Zhigang
ZhigangOP•5mo ago
I think this a good idea to provide a button in server stats tab, with this button could count include or exclude external libs. Especially for the user who used Synology Photos in the past and plan to try immich, no need to upload again. OR, count internal and external libs individually and list on this server stats page. @aviv
Tempest
Tempest•5mo ago
To get this you'd need to run an exhaustive (think 500k+assets) io on the entire directory periodically as immich has no control of what's in these folders and doesn't necessarily know when a change to them occurs. Does the number really matter? Personally I'd rather not have a periodical io task that I can avoid
Mraedis
Mraedis•5mo ago
But we monitor changes... 👀
Zhigang
ZhigangOP•5mo ago
My understanding is the reason for support external library is to avoid re-upload for the users newly switch to Immich. In Immich already provide the periodic scanning function. I do not think number is really matter, but since there exist storage calculation and periodic scanning. What not consider to calculate the storage during periodic scanning in midnight? If I decided to use Immich only in the future, I definitely hope to see real usage of storage usage, it could be not in the realtime, but should be more or less accurate instead of only count newly upload photos and videos.
Tempest
Tempest•5mo ago
I suppose that's fair. Files are periodically scanned. Guess I'm just worried about increasing IO as generally immich references the same file multiple times for different tasks as it is

Did you find this page helpful?