Files Not Moved During "Storage Template Migration"
#### Description of the Issue
I encountered an issue while using the "Storage Template Migration" feature in Immich. Some files were not moved as expected and remain in the temporary upload directory (
#### Observations
While the exact reproduction steps are unclear, the following conditions might have contributed to the issue:
All uploaded files, regardless of the upload time or migration task load, should eventually be processed and moved to the correct directory (
#### Current Workaround
None identified. Manually triggering the "Storage Template Migration" process in the admin panel does not resolve the issue for the affected files.
#### Request for Assistance
I encountered an issue while using the "Storage Template Migration" feature in Immich. Some files were not moved as expected and remain in the temporary upload directory (
upload/upload/{user_id}/) instead of being processed and relocated to the proper destination (upload/library/{user}/) with the correct naming as per the template.#### Observations
- **Normal Process**:
- Uploaded files (images or videos) are first saved in
upload/upload/{user_id}/. - The "Storage Template Migration" feature processes these files and moves them to
upload/library/{user}/, applying the appropriate naming conventions from the template. - This process works correctly for new uploads, and the files are migrated as expected.
- Uploaded files (images or videos) are first saved in
- **Problematic Behavior**:
- Some files uploaded during a specific period were not moved to the
upload/library/{user}/directory and remain inupload/upload/{user_id}/. - Even when manually triggering the migration via Admin Panel > Jobs > Storage Template Migration, these files were not processed or moved.
- Some files uploaded during a specific period were not moved to the
- **Additional Context**:
- During the period when this issue occurred, there was a large backlog of scheduled tasks for the "Storage Template Migration" process.
- Recent uploads are correctly processed, but the previously unmoved files are still not handled.
While the exact reproduction steps are unclear, the following conditions might have contributed to the issue:
- Upload a large number of files to create a significant backlog of migration tasks.
- Observe if any files fail to be processed and remain in the temporary upload directory (
upload/upload/{user_id}/).
- Files uploaded during the problematic period remain unorganized in the temporary directory.
- Users may have difficulty locating or managing these files due to the lack of proper naming and storage organization.
All uploaded files, regardless of the upload time or migration task load, should eventually be processed and moved to the correct directory (
upload/library/{user}/) with the appropriate naming.#### Current Workaround
None identified. Manually triggering the "Storage Template Migration" process in the admin panel does not resolve the issue for the affected files.
#### Request for Assistance
- Can you confirm if there is a way to manually process or reattempt the migration for the affected files?
- Are there any logs or diagnostic steps that can help identify why these files were skipped or not processed?
- Could this issue be related to task backlog or a specific migration task timeout?