cancel
Showing results for 
Search instead for 
Did you mean: 

How to make sure your Magento cron job is running

SOLVED

How to make sure your Magento cron job is running

Hi Guys

I m new to Magento,

Just install and start to configure the magento 2.0 and facing 

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

Can some one help me out

1 ACCEPTED SOLUTION

Accepted Solutions

Re: How to make sure your Magento cron job is running

You need to run indexer command to solve this error.
From the root of your magento path,

php bin/magento indexer:reindex

Check cron is working or not, run below command,

php bin/magento cron:run


Also, run the command from the root,
crontab -l
List all cron if you have cron otherwise display default cron.

If Issue Solved, Click Kudos/Accept As solutions. Get Magento insight from
Magento 2 Blogs/Tutorial

View solution in original post

7 REPLIES 7

Re: How to make sure your Magento cron job is running

You need to run indexer command to solve this error.
From the root of your magento path,

php bin/magento indexer:reindex

Check cron is working or not, run below command,

php bin/magento cron:run


Also, run the command from the root,
crontab -l
List all cron if you have cron otherwise display default cron.

If Issue Solved, Click Kudos/Accept As solutions. Get Magento insight from
Magento 2 Blogs/Tutorial

Re: How to make sure your Magento cron job is running

Thanks so much,

 

i hade to work without the php at the beginning

 

i don't understand why there is nobody that can explain this issue as it concerns a problem that almost everybody should have regarding the setup of magento.

 

3 Lines of you -> Problem solved!!!

You made my day!

&

Shame on you Magento how2 authors!

Re: How to make sure your Magento cron job is running

Rakesh - Man you rock! I had no idea how to fix this issue but your advice was it. I'm hosting a magento free edition using my godaddy hosting service. I downloaded WinSCP and then logged in (using the info from my GoDaddy cpanel) and then clicked in to my website's "folder" (directory is the technical term?) and then clicked on the little black icon in WinSCP that looks like an old DOS icon -- I'm guessing this is the command line input button. Then I copied and pasted in each of the terms you wrote and clicked "Execute" after each one, and it ran cron and when I went back to the admin panel on Magento and refreshed, the error went away!

Re: How to make sure your Magento cron job is running

did you figure it out? I'm facing this issue now.

Re: How to make sure your Magento cron job is running

Hi sir, 

 

unable to sure my cron job is working and when i run comman for reindex or cache flush not work and not showing any error, as showing previous, after check indexer from admin panel not reindexing. suggest me.

Re: How to make sure your Magento cron job is running

"Rakesh - Man you rock! I had no idea how to fix this issue but your advice was it. I'm hosting a magento free edition using my godaddy hosting service. I downloaded WinSCP and then logged in (using the info from my GoDaddy cpanel) and then clicked in to my website's "folder" (directory is the technical term?) and then clicked on the little black icon in WinSCP that looks like an old DOS icon -- I'm guessing this is the command line input button. Then I copied and pasted in each of the terms you wrote and clicked "Execute" after each one, and it ran cron and when I went back to the admin panel on Magento and refreshed, the error went away!"

 

 

Hightops - Tried this... also on GoDaddy but just getting timeouts... Am I missing something ?

 

Re: How to make sure your Magento cron job is running

Thank you.