Initially imported photos still in /photos, while new uploads go to /photos/library/admin ?

Hi all! I have an issue and I'm not sure whether it's a bug or just user error. I initially imported my existing library to a /mnt/user/photos directory (path shortened in title for succinctness). Everything show up fine. However, new uploads from the Immich app are in /mnt/user/photos/library/admin, even after running the Storage Template Migration job, which does nothing. It's my understanding that all photos should be moved to /mnt/user/photos/library/admin when running the job, even the initial import. Did I miss something? Thanks 🙏
6 Replies
outadoc
outadocOP2y ago
[Nest] 7 - 09/02/2023, 4:51:38 PM LOG [StorageTemplateService] Starting storage template migration
[Nest] 7 - 09/02/2023, 4:52:20 PM LOG [StorageTemplateService] Finished storage template migration
[Nest] 7 - 09/02/2023, 4:51:38 PM LOG [StorageTemplateService] Starting storage template migration
[Nest] 7 - 09/02/2023, 4:52:20 PM LOG [StorageTemplateService] Finished storage template migration
I'm running server v1.76.1, by the way.
outadoc
outadocOP2y ago
No description
bo0tzz
bo0tzz2y ago
If you did an existing directory import, the files are internally marked as such and will not be moved by the storage template Only files uploaded via the API will
outadoc
outadocOP2y ago
Okay thank you, that makes more sense! In that case I guess I might be able to clear that flag with some SQL magic and re-run the migration? Or just delete everything and re-import correctly which sounds less fun
bo0tzz
bo0tzz2y ago
Yes, some SQL editing should work. IIRC it's the readOnly column in the asset table
outadoc
outadocOP2y ago
I'll try that, thank you so much :) For posterity - an UPDATE statement did the trick. Thanks again!

Did you find this page helpful?