Generating a feed returns an error: "Something went wrong: Couldn't lock indexer. Reindex in progress". How to fix?

Generating a feed returns an error: "Something went wrong: Couldn't lock indexer. Reindex in progress". How to fix?

This message indicates that during the generation of the feed, its indexers are currently in progress, in the Processing status.



Before proceeding with the next steps, please make sure to update the extension to version 2.8.0, where we significantly removed the extension's behaviour regarding the indexers. If the issue remains, please check the feed grid and the status of the feeds in the Generated column.



If the status is Processing and the number of products is changing, it means that the feed is being generated at the moment, and manual generation only interrupts that process. The solution is to wait until the generation ends and indexers return to the Ready status.



The status of the feed should go as follows, and it would be possible to manually generate this or any other feed.



In case reindexation process won't finish, it means the indexers could be locked. Please, click on the Force Unlock button on the Feeds page and run reindexation once again.


The Force Unlock action can also be initiated via the console with the following command:

php bin/magento feed:profile:unlock

To make sure the indexers don't get stuck, it's also recommended to switch the extension's indexers to the Update on Save mode, if the instance doesn't contain a large number of products: 



If the recommendations above do not help to resolve the error, please reach out to us for further assistance.