runcronjob.php error

Author Message

Sonia Sanchez

Monday 02 February 2009 3:15:31 am

Hi again!

I have another problem. Now I want import data from an old data base (no eZ data base) and I used the data_import extension. But when I execute the runcronjob.php, it returns this messages:

/var/www/vhosts/mydomain.com/httpdocs/comunidad$ php runcronjobs.php Escuelas
Running cronjob part 'Escuelas'
Failed to steal cronjob part lock.
Running extension/data_import/cronjobs/Escuelas.php
Forcing to steal the mutex lock: extension/data_import/cronjobs/Escuelas.php
Stealing mutex. Old process has run too long.

I read in the forum that maybe there is another process like this running in server, but I execute "top" in server and there are not any process like this.

Also I try to comment the execution of the stealMutex function in runcronjobs.php, from line 399 to 412:

/*else if ( $lockTS < time() - 2 * eZRunCronjobs_MaxScriptExecutionTime )
{
     $cli->output( 'Forcing to steal the mutex lock: ' . $scriptFile );
     $runScript = eZRunCronjobs::stealMutex( $cli, $scriptMutex, true );
}
else if ( $lockTS < time() - eZRunCronjobs_MaxScriptExecutionTime )
{
     $cli->output( 'Trying to steal the mutex lock: ' . $scriptFile );
     $runScript = eZRunCronjobs::stealMutex( $cli, $scriptMutex );
}
else
{
     $cli->output( 'Cronjob part locked by other process: ' . $scriptMutex->meta( 'pid' ) );
}*/

And force the execution of my script on line 414, changing the line:

if ( $runScript )

to:

if ( true )

It works but, I think that is not correct do this... jeje

Someone can help me?

Thanks! ^^

Paul Forsyth

Monday 02 February 2009 7:02:10 am

Hi Sonia,

Sometimes this occurs when run cronjobs manually, in conjunction with system cronjobs running the same files.

To keep things clean you need to clean the cache with the purge option. This removes those files used in the locking process.

Does this work for you?

Paul

Sonia Sanchez

Monday 02 February 2009 8:14:39 am

Hi Paul,

Thanks for your quick response, but I tried it this morning and did not work...
Occurs you something else? :_(

Thanks again!

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 02:49:39
Script start
Timing: Jan 18 2025 02:49:39
Module start 'layout'
Timing: Jan 18 2025 02:49:39
Module start 'content'
Timing: Jan 18 2025 02:49:40
Module end 'content'
Timing: Jan 18 2025 02:49:40
Script end

Main resources:

Total runtime0.7675 sec
Peak memory usage4,096.0000 KB
Database Queries57

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0050 591.4453152.6094
Module start 'layout' 0.00500.0028 744.054739.4141
Module start 'content' 0.00780.7582 783.4688508.6250
Module end 'content' 0.76600.0015 1,292.093812.1875
Script end 0.7675  1,304.2813 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00360.4648160.0002
Check MTime0.00140.1869160.0001
Mysql Total
Database connection0.00080.108110.0008
Mysqli_queries0.699491.1255570.0123
Looping result0.00050.0660550.0000
Template Total0.738496.220.3692
Template load0.00240.309020.0012
Template processing0.736095.895420.3680
Template load and register function0.00040.052610.0004
states
state_id_array0.00170.216810.0017
state_identifier_array0.00090.113920.0004
Override
Cache load0.00200.2548290.0001
Sytem overhead
Fetch class attribute can translate value0.00070.097020.0004
Fetch class attribute name0.00140.183640.0004
XML
Image XML parsing0.01071.394720.0054
class_abstraction
Instantiating content class attribute0.00000.001450.0000
General
dbfile0.01071.3911160.0007
String conversion0.00000.001140.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
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.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
4content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.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: 7

Time used to render debug report: 0.0003 secs