Silverstripe Version: 4.4.0-rc1
I am working on a migration of a large site to 4.x. We are using 4.4 because we need un-hashed file URLs (although this problem exists for us in 4.3 as well). About 1 out of 3 files ends up with the red “file can not be found” indication in the assets admin, and we cannot find any reason why or pattern. It is extremely difficult to debug because each run of the migration task takes over 15 hours to run (on a server dedicated to the task, with 4 CPUs, 8 GiB of RAM and 10 GiB of swap space). MigrateFileTask runs to completion but fails silently on a large proportion of files.
I’m looking for anyone else who has experienced anything like this for mutual assistance.
My estimate of the failure rate is based on this query:
SELECT COUNT(*) FROM File WHERE ClassName <> 'SilverStripe\\Assets\\Folder' AND (FileFilename IS NULL OR FileFilename NOT LIKE '%/%');