In Magento 2, Sometimes an issue comes like the indexing process gets locked at the time of reindexing. When the process or the index type is locked then you cannot reindex that specific locked index type. The reindex will always skip that index type and you will get an error as below.

“Index is locked by another reindex process. Skipping”

So in this case, To Unlock Reindex Process you need reset index status and then try to run a new reindex process.

To reset index status, use below command

Example:

If you want to reset all the indexes, use below command

If you don’t know the index identifier, use below command

Output:

If you want to know the status of the all indexes, use below command

Related Read:  How to change emails logo in Magento 2?

Thats it. Enjoy Magento 2!!