-
-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] Storage template migration ignores specific files #11131
Comments
@zackpollard When you have a chance, can you help taking a look at this issue? |
Hey @PhasecoreX I can reproduce and have fixed the issue of archived photos not being moved after changing the storage template structure, however I can't see the same problem with motion photos. I have tested with both android and iOS live photos and they both move correctly. If you could give me steps to reproduce the live photo problem I would be happy to look into it more 🙂 |
Hello @zackpollard! Thank you so much for the prompt response! The listed steps is what I had done to get it to do that. Of course, the "Upload Live Photo" was actually my app uploading probably 5k of them, and then me manually uploading a bunch of older ones via CLI. But I did notice something (I think). When I looked at the storage, I noticed that there was a The only other thing I can think of is if you are uploading via CLI or via mobile app. Looking at the storage, it seems that the ones I have CLI uploaded do migrate both photo/video successfully, but iOS app uploaded ones only migrate the photo part. Maybe there's a difference between the two ways of uploading? That would be weird though. But it does explain how all the older ones in my library migrate correctly, and all the new app uploaded ones don't. Sorry, I just keep finding more patterns and then keep writing them down before submitting. I looked at my wife's account/storage, and all of hers migrated correctly! The difference is that I have been using the app way longer than her, only just recently having her start using it. It looks like this upload difference between CLI and iOS app stopped being an issue sometime between January 7th 2024 and February 2024, as my library shows all the Hopefully that helps! Let me know if you need anything else! And again, thank you! |
for me the job didn't move (update folder structure) for the deleted files, kept in recycle bin |
This is intentional, we don't move files that are already trashed as they are expected to be deleted in the future. |
Honestly I have no idea what could cause only newer files to move correctly, but it sounds like whatever bug did exist is now fixed as it doesn't occur in newer versions. I'm probably not going to invest time looking into this, if you want to do more digging and can come up with a concrete reproduction case, maybe I could take a look further. Cheers! |
I did some research on this, it was caused by the |
The bug
Modifying the storage template and then running storage template migration seems to not move the video portion of Live Photos nor archived photos. Re-running the migration will not fix it, and the repair section does not list any issues. If I look at the storage folder, I see most of the media in the correct location, but the Live Photo videos and archived media are in their old locations. The frontend still can show the Live Photo video, and still shows the archived photos, so I assume the database still points at the correct (old) location for the file.
The OS that Immich Server is running on
Ubuntu 22.04.4 LTS
Version of Immich Server
v1.108.0
Version of Immich Mobile App
v1.108.0
Platform with the issue
Your docker-compose.yml content
Your .env content
Reproduction steps
Relevant log output
No response
Additional information
I see #6440 had an issue with Live Photo videos not being put in the right spot on initial upload, but that got fixed on its own. This issue is specifically when you try to move/migrate to a new layout.
The text was updated successfully, but these errors were encountered: