Files not being moved to library folder (TrueNAS scale app).

when I try to run the storage template migration task, i get an error for all my assets: (log from the microservices pod)

[Nest] 8  - 03/02/2024, 11:24:44 AM     LOG [StorageCore] Attempting to finish incomplete move: upload/upload/238a11ec-75fd-401d-b022-3f78ad510d13/65/43/6543679a-15ff-435a-a496-4f93b444a614.jpg => upload/library/Richard/2024/02/IMG_20240229_160325.jpg
[Nest] 8  - 03/02/2024, 11:24:44 AM     LOG [StorageCore] Found file at old location
[Nest] 8  - 03/02/2024, 11:24:44 AM   ERROR [StorageTemplateService] Problem applying storage template
[Nest] 8  - 03/02/2024, 11:24:44 AM   ERROR [StorageTemplateService] Error: EPERM: operation not permitted, copyfile 'upload/upload/238a11ec-75fd-401d-b022-3f78ad510d13/65/43/6543679a-15ff-435a-a496-4f93b444a614.jpg' -> 'upload/library/Richard/2024/02/IMG_20240229_160325.jpg'
[Nest] 8  - 03/02/2024, 11:24:44 AM   ERROR [StorageTemplateService] Object:
{
  "id": "8990138d-ddee-4ab7-8b29-21332a8c7e51",
  "oldPath": "upload/upload/238a11ec-75fd-401d-b022-3f78ad510d13/65/43/6543679a-15ff-435a-a496-4f93b444a614.jpg",
  "newPath": "upload/library/Richard/2024/02/IMG_20240229_160325.jpg"
}

Folders are being created in the /library/ folder over time, but assets are not being moved. But when i run the storage template migration job all folders are being deleted from the library folder.
i noticed that the destination folder in the logs is upload/library/xxxxx and not library/xxxxxx Is that correct? I tried checking and changing permissions, but that didnt change a thing.
Was this page helpful?