I get "Index … is locked by pid", how do you clear it?

That error comes from a stale lock in the index_indexer_state table after a reindex was interrupted (deploy, killed process, OOM). We confirm no reindex is actually running, then clear the lock for that indexer and rerun the reindex cleanly. We never just delete locks blindly, we first verify nothing is mid-write so we do not corrupt the index.

Kishan Savaliya
Kishan Savaliya
Adobe Certified Magento Commerce Developer
Ahmedabad [IN]working hours, replies within four hours
When do you need it

Read personally. Never shared. Or email the brief.

More on magento cron & indexer bug fixing

Need it fixed, not just explained?

Send the brief with your store URL; the written quote comes back within 24 hours.