cancel
Showing results for 
Search instead for 
Did you mean: 

Problem reindexing through Magento CLI

Problem reindexing through Magento CLI

Hi, guys,


I am a beginner in using Magento. Our shop runs on Magento CE 2.3.4 and I have problems reindexing through CLI.

 

All are reindexed fine, except one: Smart Category Product Rule.

 

I tried to reindex it individually, by running indexer:reindex smartcategory_product, but nothing happens. No error, nothing. I tried it several times and the same result.

 

In admin I receive the same warning that the indexer needs to be reindexed.

What could be the cause of this? 

Many thanks,

Robert.

 

3 REPLIES 3

Re: Problem reindexing through Magento CLI

@robertsandcca6Not sure how your command are working and you do not have php specified in your command. Possibly you have 'PHP' setup in your path/environment variable.

 

Did you try updating your indexer to run by schedule. If your cron is working then it will take care of indexing by itself.

- Tarandeep
Problem solved?Please give 'Kudos' and accept 'Answer as Solution'.

Re: Problem reindexing through Magento CLI

Hello @robertsandcca6 

 

Please run:

php bin/magento indexer:reset
php bin/magento indexer:reindex

It should work for you, try it. 

Manish Mittal
https://www.manishmittal.com/

Re: Problem reindexing through Magento CLI

Hi @robertsandcca6 

Please refer below URL :

https://www.mageplaza.com/kb/how-reindex-magento-2.html

It will help you to resolve issue.

Problem solved? Click Accept as Solution!