Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
matthewstick opened this issue Nov 5, 2024 · 6 comments
Open

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

matthewstick opened this issue Nov 5, 2024 · 6 comments
Labels

Comments

@matthewstick
Copy link

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
Copy link
Contributor

i-just commented Nov 6, 2024

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

@matthewstick
Copy link
Author

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

@i-just
Copy link
Contributor

i-just commented Nov 6, 2024

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
Copy link
Author

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
Copy link
Author

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
Copy link
Contributor

i-just commented Nov 6, 2024

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants