Closed lexislav closed 3 years ago
Can you check that file’s permissions? PHP could think a file dosen’t exist if it doesn't have permission to read it, or execute its parent folder.
I have checked the file permissions. Was 755. The permissions of /web/assets and all its subfolders and files changed to 777 with no effect on this. Some files still marked by queue job as not found (see the log in previous post) and keep pilling up the queue jobs indefinitely.
Some other environment settings might be related?
Additional question: is there a way to turn off those transforms (temporarily)? They seems to prioritize themselves in the queue and blocking another tasks – like formie's send notification.
Do you know if any other images in the same volume are working as expected? If not, maybe the volume’s File System Path setting is incorrect. (Or if it’s set to a relative path or starts with @webroot
, perhaps it’s only set correctly for web requests, but not CLI commands, or something like that.)
Additional question: is there a way to turn off those transforms (temporarily)? They seems to prioritize themselves in the queue and blocking another tasks – like formie's send notification.
You can disable them altogether from config/app.php
– see https://github.com/craftcms/cms/issues/7360#issuecomment-762410501 – however I wouldn’t recommend it since {% cache %}
tags won’t cache templates that contain ungenerated transform URLs. Better to fix the underlying issue.
Though I agree the jobs shouldn’t get equal priority with other more time-sensitive jobs, so I’ve just deprioritized them for the next release.
Thanks @brandonkelly for pointing out the File system path. It was set two years ago and working just fine, until… some unknown change (in environment or in some of craft's update)
I was using alias '@assetsBasePath' => '/web/assets',
and have changed it to '@assetsBasePath' => dirname(__DIR__) . '/web/assets',
The problem is gone and image transforms in queue now run smoothly. Hopefully this form would be more persistent.
We just released Craft 3.6.12 with the prioritization change.
Generating image transforms are pilling up and can run forever. The queue log show missing file. But the file exists, can be located on ftp and in CP on assets folder, downloaded from CP etc. The name of file varies over the log. FIles permissions seem right. The problem started propably on Mar 24 2021, but not sure about that.
Can't find if this is know issue with solution.
Steps to reproduce
Don't now :-/
Additional info