You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We have just launched a client site using DO Spaces and Imager X and auto-generation of transforms is failing and blocking the queue (therefore preventing other jobs from executing such as email delivery, etc).
It looks like the job is trying to read from/write to a file path but is not specifying the URL for this, just the path so is throwing a "Failed to open stream: No such file or directory". Obviously we can set optimizeType to runtime to avoid this blocking the queue but wondering if you had some insight on why this is happening.
Craft CMS v4.9.4
Imager X v4.4.0
Digital Ocean Spaces v2.0.0
Imager X for Digital Ocean Spaces v3.0.0
2024-05-31 10:33:06 [queue.ERROR] [spacecatninja\imagerx\optimizers\JpegtranOptimizer::optimize] Optimizer spacecatninja\imagerx\optimizers\JpegtranOptimizer could not be found in path /usr/bin/jpegtran {"memory":3823888}
2024-05-31 10:33:06 [queue.ERROR] [craft\queue\QueueLogBehavior::afterError] [11727] Optimizing images (jpegtran) (attempt: 1, pid: 3354) - Error (time: 0.007s): fopen(transforms/uploads/Partners/4821/Philippa-Headshot_ce20755dda590f729c05aedf39db1575.jpg): Failed to open stream: No such file or directory {"memory":3874864}
2024-05-31 10:33:06 [queue.ERROR] [yii\base\ErrorException:2] yii\base\ErrorException: fopen(transforms/uploads/Partners/4821/Philippa-Headshot_ce20755dda590f729c05aedf39db1575.jpg): Failed to open stream: No such file or directory in /var/www/html/deploy/vendor/spacecatninja/imager-x-do-spaces-driver/src/externalstorage/DOSpacesStorage.php:73
The initial error, JpegtranOptimizer could not be found in path /usr/bin/jpegtran, indicates that Imager can't find jpegtran at the given path, or that PHP can't see it (due to permissions). Have you checked that it's actually installed on the server? If yes, you can try setting the skipExecutableExistCheck config setting to true, which will just bypass the file_exists() check and try to run the command anyway.
We have just launched a client site using DO Spaces and Imager X and auto-generation of transforms is failing and blocking the queue (therefore preventing other jobs from executing such as email delivery, etc).
It looks like the job is trying to read from/write to a file path but is not specifying the URL for this, just the path so is throwing a "Failed to open stream: No such file or directory". Obviously we can set
optimizeType
toruntime
to avoid this blocking the queue but wondering if you had some insight on why this is happening.Craft CMS v4.9.4
Imager X v4.4.0
Digital Ocean Spaces v2.0.0
Imager X for Digital Ocean Spaces v3.0.0
PHP v8.3.7
Relevant Config
Error:
Stack Trace:
The text was updated successfully, but these errors were encountered: