Cronjob configuration problem

Author Message

laurent le cadet

Monday 23 January 2006 10:10:58 am

Hi,

I run runcronjobs.php every 2 mn (test).
I inserted a test line :
mail ('myemail@mydomain.com', 'my subject', 'my message');

and I recieve the emails (evrey 2mn) so that the script is executed.

But runcronjobs.php doesn't seems to launch the differents script which are in the cronjobs folder.

I added a test.php file (and declared it in cronjob.ini) which just send an email exactly as above but no result. (the other scripts are also ignored)

It's just like CronjobSettings or cronjob.ini are ignored.

Any hint ?

Thanks

Laurent.

Xavier Dutoit

Tuesday 24 January 2006 12:48:00 am

Salut,

Could be lots of different things. I'd suspect that either you don't have php-cli or that you haven't defined the siteaccess to process on the cron.

Run the runcronjob by hand from the shell (you've got several options, like -d for debug) and see what it does (or doesn't). It should be rather explicit about the problems it faces.

X+

http://www.sydesy.com

Gabriel Ambuehl

Tuesday 24 January 2006 12:50:22 am

Make sure php-cli has all required PHP modules (above anything, mysql) installed. That created a lot of weird issues for me once.

Visit http://triligon.org

laurent le cadet

Tuesday 24 January 2006 1:02:10 am

Hi and thanks,

I have several site running with eZp and one of them (eZ 3.2) also concern by cronjobs works perfectly (linkcheker and notification).
So I don't think its a server problem but a eZ setting issue (The runcronjobs.php script is executed but the differents scripts from the cronjobs folder not).

Where do we defined the siteaccess ?

Laurent

PS : Actually, I can't access to the shell :(

Geoff Bentley

Tuesday 15 April 2008 3:58:14 pm

I'm also having this problem. Running runcronjobs.php from the command line for a particular siteaccess uses the cronjob.ini.append.php correctly; when it runs from cron, it uses the ezPublish default ini. Currently using 3.9.3.

Any suggestions?

Geoff Bentley

Monday 21 April 2008 8:19:48 pm

I resolved the problem - runcronjobs.php will look at the standard siteaccess if you don't give it arguments in the right order.

The default ezpublish.cron shows the following example for 3.9.3:

# Instruct cron to run the "frequent" set of cronjobs
# every 15 minutes
0,15,30,45 * * * * cd $EZPUBLISHROOT && $PHP runcronjobs.php frequent -q 2>&1

So you'd naturally think that, like this example, you'd put the options toward the end, e.g:

0,15,30,45 * * * * cd $EZPUBLISHROOT && $PHP runcronjobs.php frequent -q -s my_site 2>&1

However, the runcronjobs script requires a particular argument order:

php runcronjobs.php --help
Usage: runcronjobs.php [OPTION]... [PART]

So the correct setup should read:

0,15,30,45 * * * * cd $EZPUBLISHROOT && $PHP runcronjobs.php -q -s my_site frequent 2>&1

So, the problem is with the default ezpublish.cron.

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.