| 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! ^^ |