Magento Cron not working: no beating task

I noticed that cron jobs do not work because some tasks were not completed (automatic feed generation, google sitemap, ...).

1) I installed the (very useful) AOE scheduler

2) I checked the cron_schedule SQL table via PHPmyAdmin: no task was generated, but if I click "Create Schedule in AOE Scheduler", a list of tasks will be created. All tasks remain idle (running in NULL).

3) I installed (crontab -e) 0,5,10,15,20,25,30,35,40,45,50,55 * * * * / home / fpl / webapps / magento / cron.sh

I tried to run cron.sh manually through SSH. When I start sh manually, the heartbeat task starts. Therefore, I am also sure that the problem is not in the cron.sh script.

Cron works correctly on the server.

Configuration

Webfaction hosting Magento ver. 1.8.0.0

Cron Schedule Configuration in admin panel magento Create Schedules Every 1 Schedule for 20 Skipped if not working for 15 Heartbeat Task Schedule (cron syntax) 0,5,10,15,20,25,30,35,40,45, 50.55 * * * *

Thank you for your help!

+4
source share
4 answers

I assume that yours is cron.shnot executable, and why nothing is happening. Check file availability and add executable flag

chmod +x /home/fpl/webapps/magento/cron.sh

You can also check server log files for cron (e.g. https://askubuntu.com/questions/56683/where-is-the-cron-crontab-log )

, , cron ,

/bin/bash /home/fpl/webapps/magento/cron.sh

: , , :

*/5 * * * * /bin/bash /home/fpl/webapps/magento/cron.sh

+3

crontab?

service crond status // depends on your OS

,

service crond start

chkconfig crond on

!

+1

edit cron.sh and change line 39 to:

PHP_BIN=`/usr/local/bin/php56`

He is trying to use this php, but it is not so important on webfaction servers, since there are many versions of php.

+1
source

Adding

crontab -e */5 * * * * /usr/bin/wget -O /dev/null -q http://www.partsfortreadmill.com/cron.php

and setting the correct cron.php in the above path

0
source

All Articles