Closed jamie-s-white closed 1 year ago
Hi Jamie,
Thanks for getting in touch.
recordId
Asset indexing was improved in Craft 4. Under the same scenario, the asset would be reported as skipped, not listed as missing.
As per our chat, my suggestion would be to update the project to Craft 4 to get this and other asset-indexing benefits.
I’m going to go ahead and close it, but please feel free to get in touch if the issue still occurs on Craft 4.
What happened?
Description
When re-indexing assets, if any image re-index fails (in this case because the image is too large and the job runs out of memory), then the asset is erroniously listed for deletion from the index.
Steps to reproduce
Expected behavior
Craft CMS should be clear that not all images were re-indexed, and not then list the images that weren't re-indexed as missing and ask if you want to remove them.
Actual behavior
Lists files as missing and asks if we want to remove them.
Screenshots of behaviour
Server erroring as it reaches images that it tries to process, but runs out of memory whilst doing so:
At the end of the process, for each image that the server failed to process, it then lists it for removal saying they couldn't be found, whilst in reality it did find the image, it is just the process crashed before it was fully processed:
Somewhat related: With Servd, the asset processing is offloaded to a different server, so the "Cache remote images" option doesn't actually do anything. We would like, for our Servd instances, to have this option removed or at least disabled by default, as now we have to remember to manually disable this option before we re-index our assets on Servd (otherwise we run into this bug).
Craft CMS version
3.8.17
PHP version
7.4.33
Operating system and version
servd.host instance
Database type and version
MariaDB 10.1.32
Image driver and version
imagick 3.7.0
Installed plugins and versions