{"id":11748,"date":"2020-06-18T10:19:56","date_gmt":"2020-06-18T04:49:56","guid":{"rendered":"https:\/\/www.hiddentechies.com\/blog\/?p=11748"},"modified":"2020-10-09T18:59:54","modified_gmt":"2020-10-09T13:29:54","slug":"magento-2-unlock-reindex-process","status":"publish","type":"post","link":"https:\/\/www.hiddentechies.com\/blog\/magento-2\/magento-2-unlock-reindex-process\/","title":{"rendered":"Magento 2 &#8211; How to Unlock Reindex Process | HiddenTechies"},"content":{"rendered":"<p>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.<\/p>\n<p><strong>&#8220;Index is locked by another reindex process. Skipping&#8221;<\/strong><\/p>\n<p>So in this case, To Unlock Reindex Process you need reset index status and then try to run a new reindex process.<\/p>\n<p>To reset index status, use below command<\/p>\n<pre class=\"lang:default decode:true\">php bin\/magento indexer:reset &lt;index identifier&gt;<\/pre>\n<p><strong>Example:<\/strong><\/p>\n<pre class=\"lang:default decode:true \">php bin\/magento indexer:reset cataloginventory_stock<\/pre>\n<p>If you want to reset all the indexes, use below command<\/p>\n<pre class=\"lang:default decode:true \">php bin\/magento indexer:reset<\/pre>\n<p>If you don&#8217;t know the index identifier, use below command<\/p>\n<pre class=\"lang:default decode:true\">php bin\/magento indexer:info<\/pre>\n<p><strong>Output:<\/strong><\/p>\n<pre class=\"lang:default decode:true \">design_config_grid Design Config Grid\r\ncustomer_grid Customer Grid\r\ncatalog_category_product Category Products\r\ncatalog_product_category Product Categories\r\ncatalogrule_rule Catalog Rule Product\r\ncatalog_product_attribute Product EAV\r\ncataloginventory_stock Stock\r\ninventory Inventory\r\ncatalogrule_product Catalog Product Rule\r\ncatalog_product_price Product Price\r\nscconnector_google_remove Google Product Removal Feed\r\nscconnector_google_feed Google Product Feed\r\ncatalogsearch_fulltext Catalog Search<\/pre>\n<p>If you want to know the status of the all indexes, use below command<\/p>\n<pre class=\"lang:default decode:true \">php bin\/magento indexer:status<\/pre>\n<p>Thats it. Enjoy Magento 2!!<\/p>\n<div class=\"angwp_12010 _ning_cont _ning_hidden _ning_outer _align_center responsive\" data-size=\"custom\" data-bid=\"12010\" data-aid=\"0\" style=\"max-width:800px; width:100%;height:inherit;\"><div class=\"_ning_label _left\" style=\"\"><\/div><div class=\"_ning_inner\" style=\"\"><a href=\"https:\/\/www.hiddentechies.com\/blog?_dnlink=12010&t=1779425253\" class=\"strack_cli _ning_link\" target=\"_blank\">&nbsp;<\/a><div class=\"_ning_elmt\"><img decoding=\"async\" src=\"https:\/\/www.hiddentechies.com\/blog\/wp-content\/uploads\/angwp\/items\/12010\/Banner-2.png\" \/><\/div><\/div><\/div><div class=\"clear\"><\/div>","protected":false},"excerpt":{"rendered":"<p>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. &#8220;Index is locked&#8230; <\/p>\n<div class=\"actions\"><a href=\"https:\/\/www.hiddentechies.com\/blog\/magento-2\/magento-2-unlock-reindex-process\/\">Continue Reading<\/a><\/div>\n","protected":false},"author":1,"featured_media":11818,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[181,59,2138],"tags":[10,27],"_links":{"self":[{"href":"https:\/\/www.hiddentechies.com\/blog\/wp-json\/wp\/v2\/posts\/11748"}],"collection":[{"href":"https:\/\/www.hiddentechies.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hiddentechies.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hiddentechies.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hiddentechies.com\/blog\/wp-json\/wp\/v2\/comments?post=11748"}],"version-history":[{"count":3,"href":"https:\/\/www.hiddentechies.com\/blog\/wp-json\/wp\/v2\/posts\/11748\/revisions"}],"predecessor-version":[{"id":11767,"href":"https:\/\/www.hiddentechies.com\/blog\/wp-json\/wp\/v2\/posts\/11748\/revisions\/11767"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.hiddentechies.com\/blog\/wp-json\/wp\/v2\/media\/11818"}],"wp:attachment":[{"href":"https:\/\/www.hiddentechies.com\/blog\/wp-json\/wp\/v2\/media?parent=11748"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hiddentechies.com\/blog\/wp-json\/wp\/v2\/categories?post=11748"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hiddentechies.com\/blog\/wp-json\/wp\/v2\/tags?post=11748"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}