craftcms / cms

Build bespoke content experiences with Craft.
https://craftcms.com
Other
3.28k stars 635 forks source link

[5.x]: "Volumes being indexed" stuck in craft CMS #16023

Open matthewstick opened 1 week ago

matthewstick commented 1 week ago

What happened?

Description

In the CP, In utilities -> Asset Indexes, "Volumes being indexed" is stuck in craft CMS. It's stuck on 134/180. The discard button does nothing. I tried every CLI command I could find to delete it. Cleared caches. Nothing kills it. Any idea how I can make it go away? I need to re-index these assets.

There were also a million temp_###### folders, which was kind of annoying. I thought it would use the slug, since I set it to slug. Folders later on use the slug. So I'm not going to sweat that too much, but just fyi.

Also, in utilities -> Asset Indexes, there is an infinite loop in the console. It pings this: https://domain.ddev.site/index.php?p=admin%2Factions%2Fasset-indexes%2Fprocess-indexing-session&v=1730829009658

It just pings forever. Thousands per minute.

Screenshots

Image Image

Craft CMS version

Craft Pro 5.4.9

PHP version

8.2.0

Operating system and version

Linux 5.15.49-linuxkit

Database type and version

MySQL 8.0.26

Image driver and version

Imagick 3.7.0 (ImageMagick 6.9.11-60)

Installed plugins and versions

Plugins CKEditor 4.3.1 Cloner 3.0.1 Feed Me 6.5.0 Field Manager 4.0.3

i-just commented 1 week ago

Hi, thanks for getting in touch! What filesystem type is the “Assets” volume using (local, aws s3, something else)?

matthewstick commented 1 week ago

@i-just Assets volume is local! All seems basic and routine - just can't clear this.

i-just commented 1 week ago

Thanks for confirming!

Do you see any errors in the console or in the logs?

In order to index the assets while that’s stuck, you could run the asset indexing via CLI (e.g. ddev php craft index-assets/all).

To clear this particular stuck session, you could remove it directly from the assetindexingsessions table.

matthewstick commented 1 week ago

No errors. It's just does that infinite loop of posts. About 500 API POST calls per every 10 seconds. API going completely haywire when I'm on that page for this request:

axios.js?v=1730904684:1 XHR finished loading: POST "https://XXX.ddev.site/index.php?p=admin%2Factions%2Fasset-indexes%2Fprocess-indexing-session&v=1730908004717".

Here is a screenshot of the one entry in assetindexingsessions. I am deleting it. Image

matthewstick commented 1 week ago

I am noticing that the images are there, but preview images are not generating. And if I run asset index it says images aren't there.

But I can click on the image and click preview and I can see the image.

I thought it was just the transform indexer being slower, but nothing. Related?

Image

i-just commented 6 days ago

So you removed the asset indexing session and then reindexed the assets again, and it went through without a problem? And now that all images are reindexed, the thumbnails aren’t loading? Is there anything in the console or the logs around referring to those transforms?