cancel
Showing results for 
Search instead for 
Did you mean: 

Cron / Cronjob Heartbeat not working / executing

Cron / Cronjob Heartbeat not working / executing

Hello,

I've this problem;

The 'queue' is not being executed as reported by the 'AOE Scheduler' addon/module. Therefore, purchase emails are not being sent and tasks are not being executed.

 

I have set a cronjob with this;

wget -O /dev/null -q http://www.mijnwebshop.nl/cron.php > /dev/null 

 

I also add $isShellDisabled = true; to the cron.php

 

Is there maybe a module to solve this problem, or is the syntax fault?

Hope someone can help with this.

3 REPLIES 3

Re: Cron / Cronjob Heartbeat not working / executing

If you use Aschroder SMPTPro, you can set the system up to use authenticated, secured email hosts and also set the transaction emails to bypass the mail queue (revert to the old way of doing things).

 

This is if you are running on 1.9.x that does the transactional queuing.

Re: Cron / Cronjob Heartbeat not working / executing

are you sure that the cron.php is executed? Since a Security Patch last year the cron.php cannot be executed over the webserver anymore (by default).

 

https://github.com/bragento/magento-core/blob/1.9/.htaccess#L213 

 

I'm asking because your redirecting all output to /dev/null. If you haven't, you could try:

 

curl -I http://www.mijnwebshop.nl/cron.php

 

If it gives you a 200 as status code you can at least be sure that the cron.php is executed.

Re: Cron / Cronjob Heartbeat not working / executing

Which version of Magento are you running? 

 

As @davidverholen stated, newer versions of Magento disallow execution of the Cron by wget and you may want to try using php instead (make sure to use the internal server path instead of the domain).