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.