cancel
Showing results for 
Search instead for 
Did you mean: 

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

SOLVED
Highlighted

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

Hi @gelanivishal,

 

Am I correct in saying you must run "php bin/magento indexer:reindex" via CLI before creating the cron jobs?

Highlighted

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

Hi @gelanivishal,

 

I am creating the cron jobs now, do you know what frequency they should run?

Highlighted

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

Hello @DAWS96 ,

 

Please configure cronjob as per below don't forget to change php and magento directory path

#~ MAGENTO START
* * * * * /usr/bin/php /var/www/html/magento2/bin/magento cron:run | grep -v Ran jobs by schedule >> /var/www/html/magento2/var/log/magento.cron.log
* * * * * /usr/bin/php /var/www/html/magento2/update/cron.php >> /var/www/html/magento2/var/log/update.cron.log
* * * * * /usr/bin/php /var/www/html/magento2/bin/magento setup:cron:run >> /var/www/html/magento2/var/log/setup.cron.log
#~ MAGENTO END

--
If my answer is useful, please Accept as Solution & give Kudos

Highlighted

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

perfect, it worked for me.


@gelanivishal wrote:

Hello @paul_alexander ,

 

To reindex in magento 2, go to the CLI and then the root folder of your magento installation and run the below command :

 

php bin/magento indexer:reindex

 

Also, Please configure cronjob on server so you don't need to reindex indexes.

 

 

 

--

If my answer is useful, please Accept as Solution & give Kudos