cancel
Showing results for 
Search instead for 
Did you mean: 

Help for Magento 2 Reindex Error

Help for Magento 2 Reindex Error

I have tried reading a much as I can on how to reindex my new magento 2.0 install. And the more I read the more confused and frustrated I get. I am not a developer so have a limited knowledge of coding. I have also tried Youtube and have yet to find something that helps me do what I need to. 

 

I currently get this error - 

  • One or more indexers are invalid. Make sure your Magento cron job is running.

When I go to Index Management I have the option to Update on Save or Update on Schedule. When I do either it does not reindex. 

I need very basic step by step help. 

 

Thanks

3 REPLIES 3

Re: Help for Magento 2 Reindex Error

Hi @JustPeachyIC

 

To re index Magento 2 run the following command in magento root directory.

 

php bin/magento indexer:reindex [indexer]

 

php bin/magento indexer:reindex catalog_product_attribute

 

To find the indexes name run the following command

 

php bin/magento indexer:info

customer_grid                    Customer Grid
catalog_category_product         Category Products
catalog_product_category         Product Categories
catalog_product_price            Product Price
catalog_product_attribute        Product EAV
cataloginventory_stock           Stock
catalogsearch_fulltext           Catalog Search
catalogrule_rule                 Catalog Rule Product
catalogrule_product              Catalog Product Rule

Please refer following documentation Indexing

 

 

---
Problem Solved Click Accept as Solution!:Magento Community India Forum

Re: Help for Magento 2 Reindex Error

Where do I find the Root directory? this is where I'm running into problems. I know what I need to add, just don't fully understand how to find where I add it. 

Re: Help for Magento 2 Reindex Error

Hi @JustPeachyIC

 

Suppose you installed Magento in side var/www/html directory as following

 

var/www/htm/magento2

 

Then on your console you have to go to magento2 directory and run the command.

 

 

---
Problem Solved Click Accept as Solution!:Magento Community India Forum