Continuous File Growth

I have installed Immich few days ago, and only since then backed up my phone, which in total took 3gb, but usage in stats tab went from 20gb to 40gb now, and it keeps growing??
No description
No description
131 Replies
Digital
DigitalOP2y ago
ping me if someone replies i dont see any errors in any container, i originally thought thumbnails, but like 20gb for 500 files?? and i turned off machine learning features and map & gps
martabal
martabal2y ago
Is there only your pictures on your drive ?
Digital
DigitalOP2y ago
you mean like only me as a user? yes
Digital
DigitalOP2y ago
No description
Digital
DigitalOP2y ago
and in meantime it went to 42gb noone even uploaded anything, no jobs are running
Digital
DigitalOP2y ago
i have this in env, is that directory in container or on machine?
No description
martabal
martabal2y ago
on your machine
Digital
DigitalOP2y ago
cant find it
martabal
martabal2y ago
Do you know where are stored on your machine the assets you uploaded with immich ?
Digital
DigitalOP2y ago
uh no, that's kinda what i just asked
martabal
martabal2y ago
you can find your folder with find / -name library
Digital
DigitalOP2y ago
found it, what am i looking for now
martabal
martabal2y ago
Where is it stored, on what disk ?
Digital
DigitalOP2y ago
there's only 1 disk
Digital
DigitalOP2y ago
No description
martabal
martabal2y ago
40.7 GiB is the size used on your disk; 467 is the size available
Digital
DigitalOP2y ago
yes, but my disk was on 20gb last 20 days, since i installed immich, and uploaded 3gb of images, it jumped to 40gb and it still grows for some reason and noone is uploading anything
martabal
martabal2y ago
Immich creates thumbnails, and encode videos, so even if you upload 3GiB of assets, Immich will store more than 3GiB of files
Digital
DigitalOP2y ago
but 23gb??
martabal
martabal2y ago
du -shc library to know what size Immich uses
Digital
DigitalOP2y ago
shouldn't thumbnails be less size than file itself? it would be logical that it's like 6gb, but 23 more lol
Digital
DigitalOP2y ago
No description
martabal
martabal2y ago
thumbnails are light, but videos encoded with h264 can quickly fill your disk
Digital
DigitalOP2y ago
No description
Digital
DigitalOP2y ago
upload dir has 24? also i noticed that on mobile app, upload bugs out and its stuck on videos often
martabal
martabal2y ago
Do you have jobs running ?
Digital
DigitalOP2y ago
nop it uses ~30% cpu somehow
Digital
DigitalOP2y ago
No description
Daniel
Daniel2y ago
Has upload/ thumbs/, encoded-video/, ... within?
Digital
DigitalOP2y ago
No description
Daniel
Daniel2y ago
Oh I see, so in upload are just files?
Digital
DigitalOP2y ago
also on phone
No description
No description
Digital
DigitalOP2y ago
yeah video files
Daniel
Daniel2y ago
The -8 is just a cosmetic bug, we know about that. Could you open a random one and see if it's in immich already?
Digital
DigitalOP2y ago
i mean by my logic i see some connectivity in video's having hard time uploading from phone and there randomly being 24gb upload folder with just videos one sec none is in immich
Digital
DigitalOP2y ago
No description
Digital
DigitalOP2y ago
and they are all random
Daniel
Daniel2y ago
Hm, those appear to be generated by immich... Are there files in your encoded video folder?
Digital
DigitalOP2y ago
all empty folders
Digital
DigitalOP2y ago
Digital
DigitalOP2y ago
while we talk it increased for another 1gb lol
Daniel
Daniel2y ago
thumbs is simillar? Folder structure but no files?
Digital
DigitalOP2y ago
thumbs has image files and simillar structure
Daniel
Daniel2y ago
Which version are you on?
Digital
DigitalOP2y ago
1.18.1 whats most stable one
Daniel
Daniel2y ago
Can you verify that all original assets are in your library?
Digital
DigitalOP2y ago
um yeah, all 50X files is there except few videos on phone that are still failing to upload
Daniel
Daniel2y ago
Ok. I'm assuming that the files in upload are the generated encoded video files (idk how they ended up there lol). I think you should be able to just delete all of them and then run transcode video for all assets again In order to remove some empty folders you could run the migration job after that's done
Digital
DigitalOP2y ago
i mean they are still continuously generating
Daniel
Daniel2y ago
Oh, but there are no jobs running?
Digital
DigitalOP2y ago
no
Daniel
Daniel2y ago
Do you have access to the immich_microservice logs? And maybe immich_server as well while we're at it
Digital
DigitalOP2y ago
yeah
Digital
DigitalOP2y ago
Digital
DigitalOP2y ago
server
No description
Digital
DigitalOP2y ago
microservices
No description
Digital
DigitalOP2y ago
and my and server time rn is 17:04 or 5pm
Daniel
Daniel2y ago
Ok, so microservices had no activity in the last time?
Digital
DigitalOP2y ago
seems like, yeah
Daniel
Daniel2y ago
Just to check the obvious: You don't have multiple instances of immich or the microservices running, right? xD
Digital
DigitalOP2y ago
nah
Digital
DigitalOP2y ago
No description
Daniel
Daniel2y ago
Could you stop the backup on your phone and check if there are still files being added?
Digital
DigitalOP2y ago
i stopped it, now ig just wait and see if that 44gb changes? ill let you know in few min
Daniel
Daniel2y ago
Either that or check if there occur any more files
Digital
DigitalOP2y ago
ill be checking folder size of uploads and library
Daniel
Daniel2y ago
Btw in the meantime could you look into the app's logs?
Digital
DigitalOP2y ago
which one, there are many for some reason server is 2h behind
martabal
martabal2y ago
The size reported on the bottom left in Immich is the available and total size on your disk, not the size used by immich
Digital
DigitalOP2y ago
i know, im also checking in terminal
martabal
martabal2y ago
Nice
Digital
DigitalOP2y ago
nothing on whole server makes any disk activity except immich atm
Daniel
Daniel2y ago
Either stuff that you think could be related or just a lot and we try sieve through it together
Digital
DigitalOP2y ago
all just seem to be idle
Daniel
Daniel2y ago
Even during the (failed) backup?
Digital
DigitalOP2y ago
they were idle too at the time of disk expanding yes
Daniel
Daniel2y ago
wtf.
Digital
DigitalOP2y ago
i had random cpu spikes and i checked if there are jobs each time, there weren't i think its mobile app causing issues(?) and somehow sending broken videos and then server just fails to process yeah logs are quiet like on graveyard my phone tried to upload those videos since 11am as in logs, and it was just sending failed videos whole this time?
Daniel
Daniel2y ago
That's my best guessed currently as well. That somehow the app really is screwed up. But no logs?!
Digital
DigitalOP2y ago
nop
Daniel
Daniel2y ago
Is your app on the latest version as well?
Digital
DigitalOP2y ago
yep 1.81.0
Daniel
Daniel2y ago
Hmm
Digital
DigitalOP2y ago
1.81.0 build.104 says both are up to date
Daniel
Daniel2y ago
Yep, that sounds good!
Digital
DigitalOP2y ago
yeah nothing changes with files on server when backup is stopped
Daniel
Daniel2y ago
So the app seems to be the issue, sending (really) broken files to the server
Digital
DigitalOP2y ago
seems so
Daniel
Daniel2y ago
I mean it's a long shot but could you try to just re-install the app? lol
Digital
DigitalOP2y ago
lets see reinstalled, turned on background upload and now at the bottom of backup page, i see 1 video uploading so slowwww and whole server and phone are literally on same network what exactly "delay new assets backup" does
Daniel
Daniel2y ago
Btw which operating system are you on? Not that that would help me personally, but maybe mobile devs would like to know that
Digital
DigitalOP2y ago
android, one ui 5.1 samsung a32 5g
Daniel
Daniel2y ago
K, thanks! Do you watch the file system again?
Digital
DigitalOP2y ago
yeah 1 video got uploaded, now second one is, 7%, server storage is same 24gb upload, 2.7 library and also there's a bug with that "start backup" button if you swipe to notifications, its state resets and then again sets and upload process resets?
Digital
DigitalOP2y ago
Daniel
Daniel2y ago
Funny lol. Maybe you could open an issue for that (if there is none already)? That would be easiest for the mobile devs
Digital
DigitalOP2y ago
dont they look here ig
Daniel
Daniel2y ago
Yes, but it's easier to keep track of it, mention it in the resolving PR, ask questions specific to that. Here it might get more mixed up and maybe lost However they may help to figure out the actual issue with the upload * hint hint * :)
Digital
DigitalOP2y ago
yeah
Daniel
Daniel2y ago
This indicates that the upload is working though, right? And also the server hasn't done anything stupid just yet
Digital
DigitalOP2y ago
upload works for images perfectly, it breaks on videos
Daniel
Daniel2y ago
Yes, you mentioned that 1 video got uploaded, right?
Digital
DigitalOP2y ago
i sow it flash from 1 to 100, im not sure it was like 1 second
Daniel
Daniel2y ago
Oh, that may indicate that I figured out the asset is already on the server
Digital
DigitalOP2y ago
https://github.com/immich-app/immich/issues/4420 there i did nothing and it again upped by 1gb rip will just turn off backup
Daniel
Daniel2y ago
Hm, sorry I feel like I don't have anything else... Maybe @shenlong-tanwen can help? (sorry for the ping)
Digital
DigitalOP2y ago
welp its fine we found the cause pretty sure
shenlong-tanwen
Just when I caught up with the thread lol
Digital
DigitalOP2y ago
its not 100% sure but lol i run immich via argo tunnels which have 100mb file limit i mean button bug is still there so its not for nothing afterall
martabal
martabal2y ago
Ahah it’s often a network issue
Daniel
Daniel2y ago
The bot should have a networking command... This way we (I) might think of it more often... :P
martabal
martabal2y ago
Just to be sure you can connect to your immich instance with the ip/port of the server
Digital
DigitalOP2y ago
No description
martabal
martabal2y ago
I mean on your phone Without using your argo tunnel
Digital
DigitalOP2y ago
yes i can while im here, any proxy y'all recommend? no apache or nginx
schuhbacca
schuhbacca2y ago
I like traefik, no issues so far
martabal
martabal2y ago
I like nginx a lot but traefik and caddy are good too
Digital
DigitalOP2y ago
yeah i just got reminded why i didnt use proxy in the first place dynamic ip and server is in local network im curious can immich just slice videos into smaller parts when sending them over network? it would be slow, but at least safer and less headache
schuhbacca
schuhbacca2y ago
You can just use dynamic dns and a reverse proxy inside your local network. Even if you public IP changes the web address will still point to the correct public IP.
Digital
DigitalOP2y ago
i have ddns and proxy, but i'd like to point it to cloudflare so i can just use it with dns, and i cant do that since A record requires ipv4, and proxying breaks it too
martabal
martabal2y ago
Not yet
Digital
DigitalOP2y ago
rip eta?
martabal
martabal2y ago
No This project has no eta for features
Digital
DigitalOP2y ago
that was sarcasm because yeah i know giving eta's suck
martabal
martabal2y ago
It’s great for entreprises not for foss 😄
Digital
DigitalOP2y ago
true
martabal
martabal2y ago
But you can track GitHub discussions and PRs
Digital
DigitalOP2y ago
i do that already 🫠
martabal
martabal2y ago
I see only two options Wait or contribute 😜
Digital
DigitalOP2y ago
i mean i might if i actually knew how to do that thing but yeah not an expert in such stuff with media more just general stuff
martabal
martabal2y ago
At least, reporting issue like you did is really great

Did you find this page helpful?