ImmichI
Immich12mo ago
Torin

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 (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
  1. **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.
  2. **Problematic Behavior**:
    • Some files uploaded during a specific period were not moved to the upload/library/{user}/ directory and remain in upload/upload/{user_id}/.
    • Even when manually triggering the migration via Admin Panel > Jobs > Storage Template Migration, these files were not processed or moved.
  3. **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.
#### Steps to Reproduce
While the exact reproduction steps are unclear, the following conditions might have contributed to the issue:
  1. Upload a large number of files to create a significant backlog of migration tasks.
  2. Observe if any files fail to be processed and remain in the temporary upload directory (upload/upload/{user_id}/).
#### Impact
  • 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.
#### Expected Behavior
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?
Thank you for looking into this issue. Let me know if further details or logs are required to assist with troubleshooting.
Was this page helpful?