Closed Ynng closed 6 months ago
Looks like it might be related to #8202
I narrowed the issue down with some debugging:
Android motion photos have videos embedded in the jpg. When a motion photo is uploaded, the video is extracted and added as a separate asset, taking up more space.
This extra usage is not added to quotaUsageInBytes
The erroneously usage is corrected by syncUsage
when the user's quota is updated
The bug
When a user uploads a motion photo in the
MP
orMVIMG
format, and then permanently deletes the photo, the amount of storage space "used" by the user decreases beyond the size of thejpg
. The size of the video portion of the motion photo seems to be double counted.Reproduction steps:
Here's a video demonstrating the reproduction steps:
https://github.com/immich-app/immich/assets/44907675/f1665c6a-7a02-4b6e-9655-571aaa762b36
The "used storage" value goes back to 0 correctly if I change the user account's storage quota.
The OS that Immich Server is running on
Fedora Linux 37
Version of Immich Server
v1.100.0
Version of Immich Mobile App
v1.100.0
Platform with the issue
Your docker-compose.yml content
Your .env content
Reproduction steps
Additional information
No response