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

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?

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?

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

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


 

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

I am using ''Top mart" Magento theme. its working too slow and when i execute command on terminal then they same error as above...

http://magento2.flytheme.net/themes/sm_topmart/  .

 

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

where can i edit this

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

Hola, he releído todos los artículos que deben existir no puedo reindexar mis instalaciones, tengo en cron esto:

 

php73 -f /home/mundoplanet/public_html/bin/magento cron:run | grep -v "Ran jobs by schedule" >> /home/mundoplanet/public_html/var/log/magento.cron.log

php73 -f /home/mundoplanet/public_html/bin/magento setup:cron:run >> /home/mundoplanet/public_html/var/log/setup.cron.log

 

   php73 -f /home/mundoplanet/public_html/update/cron.php >> /home/mundoplanet/public_html/var/log/update.cron.log

   

La versión PHP es 7.3, instalé magento 2.3, todo bien, pero instalé unos módulos y no hepodido reindexar, cuando me vaya CLI, Terminal, Putty acceso mediante SSH todo bien pero cuando ingreso php bin/magento indexer:reindex no hace nada, cualquier comando que ingreso relacionado y queda ahí mismo sin hacer nada ala verdad es que esto pase meseta haciendo un dolor de cabeza.  Que más puedo hacer? alguien puede darme alguna sugerencia?  Mil gracias