error running cronjob script

Author Message

andre müller

Thursday 16 August 2007 9:33:11 am

hi, thats what i get, when i run the 'php runcronjobs.php -s newsletter_admin send_newsletter':

Using siteaccess newsletter_editor for cronjob
Running cronjob part 'send_newsletter'
Running extension/eznewsletter/cronjobs/build_list.php
Forcing to steal the mutex lock: extension/eznewsletter/cronjobs/build_list.php
Stealing mutex. Old process has run too long.
Failed to steal cronjob part lock.

Running extension/eznewsletter/cronjobs/send_newsletter.php
Forcing to steal the mutex lock: extension/eznewsletter/cronjobs/send_newsletter.php
Stealing mutex. Old process has run too long.
Failed to steal cronjob part lock.

what is that error meaning? thanks for a hint..

Tobias Struckmeier

Thursday 16 August 2007 10:01:55 am

Hi andre,

the reason is simply that ez publish prevents the parallel running a cronjob two times at once.
Maybe you execute the cronjob too often.
When you have a huge list of subscribers and/or a small server/mailserver it needs time to send out all newsletters.
eZ Publish will try to force it after 12hours of running time so I assume the sendout is still running.

Have you checked the php error log?
Have you checked ez publish logfiles for errors?
Are there php cli processes running for a long time?
Do you run it on linux or windows?

cheers
Tobias

andre müller

Friday 17 August 2007 1:23:20 am

dear tobias, thanks for the quick and helpful reply.
stupid me: i had completely wrong file ownerships for my ez root directory. ev works fine now and i'm looking forward to use this fabulous extension.

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 18 2025 05:20:09
Script start
Timing: Jan 18 2025 05:20:09
Module start 'layout'
Timing: Jan 18 2025 05:20:09
Module start 'content'
Timing: Jan 18 2025 05:20:10
Module end 'content'
Timing: Jan 18 2025 05:20:10
Script end

Main resources:

Total runtime0.5376 sec
Peak memory usage4,096.0000 KB
Database Queries59

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0052 588.0625152.6406
Module start 'layout' 0.00520.0035 740.703139.4766
Module start 'content' 0.00870.5274 780.1797511.4063
Module end 'content' 0.53610.0015 1,291.585912.1406
Script end 0.5376  1,303.7266 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00310.5785160.0002
Check MTime0.00130.2395160.0001
Mysql Total
Database connection0.00070.126110.0007
Mysqli_queries0.489391.0051590.0083
Looping result0.00060.1048570.0000
Template Total0.506094.120.2530
Template load0.00200.374120.0010
Template processing0.503993.737220.2520
Template load and register function0.00020.033110.0002
states
state_id_array0.00070.130710.0007
state_identifier_array0.00070.131720.0004
Override
Cache load0.00160.3048310.0001
Sytem overhead
Fetch class attribute can translate value0.00050.101820.0003
Fetch class attribute name0.00130.236840.0003
XML
Image XML parsing0.00070.122220.0003
class_abstraction
Instantiating content class attribute0.00000.001740.0000
General
dbfile0.00080.1472160.0000
String conversion0.00000.001240.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
8content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
6content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 20
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs