We are currently having the problem that the indexer_update_all_views
cron job seemingly runs forever – even though there aren't that many entries in the backlog of the indexer.
Last time we let the cron process run for almost 24 hours before killing it manually. For comparison: doing a complete manual indexer:reset
and indexer:reindex
only takes about 60 to 90 minutes.
Could it be that the indexer_update_all_views
somehow gets stuck or deadlocked? There aren't any errors in the logs – and the process simply "never" finishes (which it would if there was an error).
Any ideas?
Magento version: 2.3.2
Best Answer
I was able to - at least temporarily - fix the problem by doing a complete, manual reset of the indexing process.
First disable the cronjob. Make sure no job will be running anymore (
ps aux | grep bin/magento
).Then execute the following SQL statements:
Then do a complete re-index:
After the re-indexing is finished, enable the cron again.
See also https://magento.stackexchange.com/a/164321/37461