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.

eZ debug

Timing: Jan 19 2025 12:44:17
Script start
Timing: Jan 19 2025 12:44:17
Module start 'layout'
Timing: Jan 19 2025 12:44:17
Module start 'content'
Timing: Jan 19 2025 12:44:17
Module end 'content'
Timing: Jan 19 2025 12:44:17
Script end

Main resources:

Total runtime0.0172 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0069 590.4297152.6250
Module start 'layout' 0.00690.0028 743.054739.4453
Module start 'content' 0.00970.0055 782.500097.4453
Module end 'content' 0.01520.0019 879.945338.3047
Script end 0.0172  918.2500 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002615.1234140.0002
Check MTime0.00116.4119140.0001
Mysql Total
Database connection0.00084.538110.0008
Mysqli_queries0.003419.948730.0011
Looping result0.00000.151210.0000
Template Total0.00169.110.0016
Template load0.00094.968110.0009
Template processing0.00074.084610.0007
Override
Cache load0.00063.624110.0006
General
dbfile0.00095.359280.0001
String conversion0.00000.056940.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs