Forums / Setup & design / Cronjob configuration problem

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.

eZ debug

Timing: Jan 31 2025 06:25:50
Script start
Timing: Jan 31 2025 06:25:50
Module start 'content'
Timing: Jan 31 2025 06:25:50
Module end 'content'
Timing: Jan 31 2025 06:25:50
Script end

Main resources:

Total runtime0.2120 sec
Peak memory usage2,048.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0056 587.9297180.8359
Module start 'content' 0.00560.0067 768.7656101.9922
Module end 'content' 0.01230.1996 870.7578530.5547
Script end 0.2119  1,401.3125 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00351.6385200.0002
Check MTime0.00140.6457200.0001
Mysql Total
Database connection0.00060.274510.0006
Mysqli_queries0.163076.89761410.0012
Looping result0.00120.57161390.0000
Template Total0.199093.910.1990
Template load0.00090.413310.0009
Template processing0.198193.475810.1981
Override
Cache load0.00050.257610.0005
Sytem overhead
Fetch class attribute can translate value0.00050.249510.0005
XML
Image XML parsing0.00030.144010.0003
General
dbfile0.00793.7455200.0004
String conversion0.00000.001930.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/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