eZ Community » Forums » Developer » runcrnjobs.php Mutex Stealing
expandshrink

runcrnjobs.php Mutex Stealing

runcrnjobs.php Mutex Stealing

Tuesday 09 February 2010 11:52:30 am - 7 replies

Hello,
First, sorry for my bad english.
So, i want to run the script runcronjobs.php with this command ./runcronjobs.php in my var site location (/var/www/..../httpdocs)
But when i launch this script i had these errors :

 [root/httpdocs]# ./runcronjobs.php
Running cronjobs/unpublish.php
Forcing to steal the mutex lock: cronjobs/unpublish.php
Stealing mutex. Old process has run too long.
Failed to steal cronjob part lock.

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

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

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

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

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

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

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

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

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

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

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

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

So can you help me to run correctly this script.
For information, I erase all cache like :
./bin/php/ezcache.php --clear-all --purge
and I allow all neccesary files with chmod = 777
thanks for your help, i'm lost.

Tuesday 09 February 2010 12:29:02 pm

Hi Emilien,

Can you check your php settings if SAFE_MODE is set to ON? See a similar thread with cron and mutex problems here; http://share.ez.no/forums/general/solved-cron-error/(language)/eng-GB

Regards Robin

Tuesday 09 February 2010 2:41:37 pm

Hi Robin,
I'm angry happy.gif Emoticon , i don't know why my cronjob doesn't work.
My SAFE_MODE is disable, i read your link but nothing which i don't do.
When I launch program with option " -d" , i have this errors list:

 Warning: (PHP: E_WARNING)
fopen(): SAFE MODE Restriction in effect.  The script whose uid is 10003 is not allowed to access /var/www/vhosts/dev.mondomaine.com/httpdocs/var/ezflow_site/cache/ezmutex owned by uid 48 in /var/www/vhosts/dev.mondomaine.com/httpdocs/lib/ezutils/classes/ezmutex.php on line 70

Warning: (PHP: E_WARNING)
fopen(var/ezflow_site/cache/ezmutex/307a6be0925aaab7fa12d2c13d66349d): failed to open stream: No such file or directory in /var/www/vhosts/dev.mondomaine.com/httpdocs/lib/ezutils/classes/ezmutex.php on line 70

Error: ()
Failed to open file: var/ezflow_site/cache/ezmutex/307a6be0925aaab7fa12d2c13d66349d

Warning: (PHP: E_WARNING)
fopen(): SAFE MODE Restriction in effect.  The script whose uid is 10003 is not allowed to access /var/www/vhosts/dev.mondomaine.com/httpdocs/var/ezflow_site/cache/ezmutex owned by uid 48 in /var/www/vhosts/dev.mondomaine.com/httpdocs/lib/ezutils/classes/ezmutex.php on line 70

Warning: (PHP: E_WARNING)
fopen(var/ezflow_site/cache/ezmutex/307a6be0925aaab7fa12d2c13d66349d): failed to open stream: No such file or directory in /var/www/vhosts/dev.mondomaine.com/httpdocs/lib/ezutils/classes/ezmutex.php on line 70

Error: ()
Failed to open file: var/ezflow_site/cache/ezmutex/307a6be0925aaab7fa12d2c13d66349d

Timing: ()
Script cronjobs/unpublish.php done

Timing: ()
Script cronjobs/rssimport.php starting

Warning: (PHP: E_WARNING)
fopen(): SAFE MODE Restriction in effect.  The script whose uid is 10003 is not allowed to access /var/www/vhosts/dev.mondomaine.com/httpdocs/var/ezflow_site/cache/ezmutex owned by uid 48 in /var/www/vhosts/dev.mondomaine.com/httpdocs/lib/ezutils/classes/ezmutex.php on line 70

Warning: (PHP: E_WARNING)
fopen(var/ezflow_site/cache/ezmutex/ff4e792cd163388f0bce555b72b38bcb): failed to open stream: No such file or directory in /var/www/vhosts/dev.mondomaine.com/httpdocs/lib/ezutils/classes/ezmutex.php on line 70

Error: ()
Failed to open file: var/ezflow_site/cache/ezmutex/ff4e792cd163388f0bce555b72b38bcb

Warning: (PHP: E_WARNING)
fopen(): SAFE MODE Restriction in effect.  The script whose uid is 10003 is not allowed to access /var/www/vhosts/dev.mondomaine.com/httpdocs/var/ezflow_site/cache/ezmutex owned by uid 48 in /var/www/vhosts/dev.mondomaine.com/httpdocs/lib/ezutils/classes/ezmutex.php on line 70

Warning: (PHP: E_WARNING)
fopen(var/ezflow_site/cache/ezmutex/ff4e792cd163388f0bce555b72b38bcb): failed to open stream: No such file or directory in /var/www/vhosts/dev.mondomaine.com/httpdocs/lib/ezutils/classes/ezmutex.php on line 70

Error: ()
Failed to open file: var/ezflow_site/cache/ezmutex/ff4e792cd163388f0bce555b72b38bcb

Warning: (PHP: E_WARNING)
fopen(): SAFE MODE Restriction in effect.  The script whose uid is 10003 is not allowed to access /var/www/vhosts/dev.mondomaine.com/httpdocs/var/ezflow_site/cache/ezmutex owned by uid 48 in /var/www/vhosts/dev.mondomaine.com/httpdocs/lib/ezutils/classes/ezmutex.php on line 70

Warning: (PHP: E_WARNING)
fopen(var/ezflow_site/cache/ezmutex/ff4e792cd163388f0bce555b72b38bcb): failed to open stream: No such file or directory in /var/www/vhosts/dev.mondomaine.com/httpdocs/lib/ezutils/classes/ezmutex.php on line 70

Error: ()
Failed to open file: var/ezflow_site/cache/ezmutex/ff4e792cd163388f0bce555b72b38bcb

Timing: ()
Script cronjobs/rssimport.php done

Timing: ()
Script cronjobs/indexcontent.php starting

Warning: (PHP: E_WARNING)
fopen(): SAFE MODE Restriction in effect.  The script whose uid is 10003 is not allowed to access /var/www/vhosts/dev.mondomaine.com/httpdocs/var/ezflow_site/cache/ezmutex owned by uid 48 in /var/www/vhosts/dev.mondomaine.com/httpdocs/lib/ezutils/classes/ezmutex.php on line 70

Warning: (PHP: E_WARNING)
fopen(var/ezflow_site/cache/ezmutex/bf4ca18bc533cbd64c1ec7431cf77110): failed to open stream: No such file or directory in /var/www/vhosts/dev.mondomaine.com/httpdocs/lib/ezutils/classes/ezmutex.php on line 70

Error: ()
Failed to open file: var/ezflow_site/cache/ezmutex/bf4ca18bc533cbd64c1ec7431cf77110

Warning: (PHP: E_WARNING)
fopen(): SAFE MODE Restriction in effect.  The script whose uid is 10003 is not allowed to access /var/www/vhosts/dev.mondomaine.com/httpdocs/var/ezflow_site/cache/ezmutex owned by uid 48 in /var/www/vhosts/dev.mondomaine.com/httpdocs/lib/ezutils/classes/ezmutex.php on line 70

Warning: (PHP: E_WARNING)
fopen(var/ezflow_site/cache/ezmutex/bf4ca18bc533cbd64c1ec7431cf77110): failed to open stream: No such file or directory in /var/www/vhosts/dev.mondomaine.com/httpdocs/lib/ezutils/classes/ezmutex.php on line 70

Error: ()
Failed to open file: var/ezflow_site/cache/ezmutex/bf4ca18bc533cbd64c1ec7431cf77110

Warning: (PHP: E_WARNING)
fopen(): SAFE MODE Restriction in effect.  The script whose uid is 10003 is not allowed to access /var/www/vhosts/dev.mondomaine.com/httpdocs/var/ezflow_site/cache/ezmutex owned by uid 48 in /var/www/vhosts/dev.mondomaine.com/httpdocs/lib/ezutils/classes/ezmutex.php on line 70

Warning: (PHP: E_WARNING)
fopen(var/ezflow_site/cache/ezmutex/bf4ca18bc533cbd64c1ec7431cf77110): failed to open stream: No such file or directory in /var/www/vhosts/dev.mondomaine.com/httpdocs/lib/ezutils/classes/ezmutex.php on line 70

Error: ()
Failed to open file: var/ezflow_site/cache/ezmutex/bf4ca18bc533cbd64c1ec7431cf77110

Timing: ()
Script cronjobs/indexcontent.php done

Timing: ()
Script cronjobs/hide.php starting

Warning: (PHP: E_WARNING)
fopen(): SAFE MODE Restriction in effect.  The script whose uid is 10003 is not allowed to access /var/www/vhosts/dev.mondomaine.com/httpdocs/var/ezflow_site/cache/ezmutex owned by uid 48 in /var/www/vhosts/dev.mondomaine.com/httpdocs/lib/ezutils/classes/ezmutex.php on line 70

Warning: (PHP: E_WARNING)
fopen(var/ezflow_site/cache/ezmutex/739775a011c378498119e744860f686e): failed to open stream: No such file or directory in /var/www/vhosts/dev.mondomaine.com/httpdocs/lib/ezutils/classes/ezmutex.php on line 70

Error: ()
Failed to open file: var/ezflow_site/cache/ezmutex/739775a011c378498119e744860f686e

Warning: (PHP: E_WARNING)
fopen(): SAFE MODE Restriction in effect.  The script whose uid is 10003 is not allowed to access /var/www/vhosts/dev.mondomaine.com/httpdocs/var/ezflow_site/cache/ezmutex owned by uid 48 in /var/www/vhosts/dev.mondomaine.com/httpdocs/lib/ezutils/classes/ezmutex.php on line 70

Warning: (PHP: E_WARNING)
fopen(var/ezflow_site/cache/ezmutex/739775a011c378498119e744860f686e): failed to open stream: No such file or directory in /var/www/vhosts/dev.mondomaine.com/httpdocs/lib/ezutils/classes/ezmutex.php on line 70

Error: ()
Failed to open file: var/ezflow_site/cache/ezmutex/739775a011c378498119e744860f686e

Warning: (PHP: E_WARNING)
fopen(): SAFE MODE Restriction in effect.  The script whose uid is 10003 is not allowed to access /var/www/vhosts/dev.mondomaine.com/httpdocs/var/ezflow_site/cache/ezmutex owned by uid 48 in /var/www/vhosts/dev.mondomaine.com/httpdocs/lib/ezutils/classes/ezmutex.php on line 70

Warning: (PHP: E_WARNING)
fopen(var/ezflow_site/cache/ezmutex/739775a011c378498119e744860f686e): failed to open stream: No such file or directory in /var/www/vhosts/dev.mondomaine.com/httpdocs/lib/ezutils/classes/ezmutex.php on line 70

Error: ()
Failed to open file: var/ezflow_site/cache/ezmutex/739775a011c378498119e744860f686e

Timing: ()
Script cronjobs/hide.php done

Timing: ()
Script cronjobs/subtreeexpirycleanup.php starting

Warning: (PHP: E_WARNING)
fopen(): SAFE MODE Restriction in effect.  The script whose uid is 10003 is not allowed to access /var/www/vhosts/dev.mondomaine.com/httpdocs/var/ezflow_site/cache/ezmutex owned by uid 48 in /var/www/vhosts/dev.mondomaine.com/httpdocs/lib/ezutils/classes/ezmutex.php on line 70

Warning: (PHP: E_WARNING)
fopen(var/ezflow_site/cache/ezmutex/4df785311bca12739420157272568b69): failed to open stream: No such file or directory in /var/www/vhosts/dev.mondomaine.com/httpdocs/lib/ezutils/classes/ezmutex.php on line 70

Error: ()
Failed to open file: var/ezflow_site/cache/ezmutex/4df785311bca12739420157272568b69

Warning: (PHP: E_WARNING)
fopen(): SAFE MODE Restriction in effect.  The script whose uid is 10003 is not allowed to access /var/www/vhosts/dev.mondomaine.com/httpdocs/var/ezflow_site/cache/ezmutex owned by uid 48 in /var/www/vhosts/dev.mondomaine.com/httpdocs/lib/ezutils/classes/ezmutex.php on line 70

Warning: (PHP: E_WARNING)
fopen(var/ezflow_site/cache/ezmutex/4df785311bca12739420157272568b69): failed to open stream: No such file or directory in /var/www/vhosts/dev.mondomaine.com/httpdocs/lib/ezutils/classes/ezmutex.php on line 70

Error: ()
Failed to open file: var/ezflow_site/cache/ezmutex/4df785311bca12739420157272568b69

Warning: (PHP: E_WARNING)
fopen(): SAFE MODE Restriction in effect.  The script whose uid is 10003 is not allowed to access /var/www/vhosts/dev.mondomaine.com/httpdocs/var/ezflow_site/cache/ezmutex owned by uid 48 in /var/www/vhosts/dev.mondomaine.com/httpdocs/lib/ezutils/classes/ezmutex.php on line 70

Warning: (PHP: E_WARNING)
fopen(var/ezflow_site/cache/ezmutex/4df785311bca12739420157272568b69): failed to open stream: No such file or directory in /var/www/vhosts/dev.mondomaine.com/httpdocs/lib/ezutils/classes/ezmutex.php on line 70

Error: ()
Failed to open file: var/ezflow_site/cache/ezmutex/4df785311bca12739420157272568b69

Timing: ()
Script cronjobs/subtreeexpirycleanup.php done

Timing: ()
Script cronjobs/internal_drafts_cleanup.php starting

Warning: (PHP: E_WARNING)
fopen(): SAFE MODE Restriction in effect.  The script whose uid is 10003 is not allowed to access /var/www/vhosts/dev.mondomaine.com/httpdocs/var/ezflow_site/cache/ezmutex owned by uid 48 in /var/www/vhosts/dev.mondomaine.com/httpdocs/lib/ezutils/classes/ezmutex.php on line 70

Warning: (PHP: E_WARNING)
fopen(var/ezflow_site/cache/ezmutex/d81b766758dcc03a55aef6e2a1bf1628): failed to open stream: No such file or directory in /var/www/vhosts/dev.mondomaine.com/httpdocs/lib/ezutils/classes/ezmutex.php on line 70

Error: ()
Failed to open file: var/ezflow_site/cache/ezmutex/d81b766758dcc03a55aef6e2a1bf1628

Warning: (PHP: E_WARNING)
fopen(): SAFE MODE Restriction in effect.  The script whose uid is 10003 is not allowed to access /var/www/vhosts/dev.mondomaine.com/httpdocs/var/ezflow_site/cache/ezmutex owned by uid 48 in /var/www/vhosts/dev.mondomaine.com/httpdocs/lib/ezutils/classes/ezmutex.php on line 70

Warning: (PHP: E_WARNING)
fopen(var/ezflow_site/cache/ezmutex/d81b766758dcc03a55aef6e2a1bf1628): failed to open stream: No such file or directory in /var/www/vhosts/dev.mondomaine.com/httpdocs/lib/ezutils/classes/ezmutex.php on line 70

Error: ()
Failed to open file: var/ezflow_site/cache/ezmutex/d81b766758dcc03a55aef6e2a1bf1628

Warning: (PHP: E_WARNING)
fopen(): SAFE MODE Restriction in effect.  The script whose uid is 10003 is not allowed to access /var/www/vhosts/dev.mondomaine.com/httpdocs/var/ezflow_site/cache/ezmutex owned by uid 48 in /var/www/vhosts/dev.mondomaine.com/httpdocs/lib/ezutils/classes/ezmutex.php on line 70

Warning: (PHP: E_WARNING)
fopen(var/ezflow_site/cache/ezmutex/d81b766758dcc03a55aef6e2a1bf1628): failed to open stream: No such file or directory in /var/www/vhosts/dev.mondomaine.com/httpdocs/lib/ezutils/classes/ezmutex.php on line 70

Error: ()
Failed to open file: var/ezflow_site/cache/ezmutex/d81b766758dcc03a55aef6e2a1bf1628

Timing: ()
Script cronjobs/internal_drafts_cleanup.php done

Timing: ()
Script cronjobs/workflow.php starting

Warning: (PHP: E_WARNING)
fopen(): SAFE MODE Restriction in effect.  The script whose uid is 10003 is not allowed to access /var/www/vhosts/dev.mondomaine.com/httpdocs/var/ezflow_site/cache/ezmutex owned by uid 48 in /var/www/vhosts/dev.mondomaine.com/httpdocs/lib/ezutils/classes/ezmutex.php on line 70

Warning: (PHP: E_WARNING)
fopen(var/ezflow_site/cache/ezmutex/a1847e1bb5bf81edc3a166e3ee1847eb): failed to open stream: No such file or directory in /var/www/vhosts/dev.mondomaine.com/httpdocs/lib/ezutils/classes/ezmutex.php on line 70

Error: ()
Failed to open file: var/ezflow_site/cache/ezmutex/a1847e1bb5bf81edc3a166e3ee1847eb

Warning: (PHP: E_WARNING)
fopen(): SAFE MODE Restriction in effect.  The script whose uid is 10003 is not allowed to access /var/www/vhosts/dev.mondomaine.com/httpdocs/var/ezflow_site/cache/ezmutex owned by uid 48 in /var/www/vhosts/dev.mondomaine.com/httpdocs/lib/ezutils/classes/ezmutex.php on line 70

Warning: (PHP: E_WARNING)
fopen(var/ezflow_site/cache/ezmutex/a1847e1bb5bf81edc3a166e3ee1847eb): failed to open stream: No such file or directory in /var/www/vhosts/dev.mondomaine.com/httpdocs/lib/ezutils/classes/ezmutex.php on line 70

Error: ()
Failed to open file: var/ezflow_site/cache/ezmutex/a1847e1bb5bf81edc3a166e3ee1847eb

Warning: (PHP: E_WARNING)
fopen(): SAFE MODE Restriction in effect.  The script whose uid is 10003 is not allowed to access /var/www/vhosts/dev.mondomaine.com/httpdocs/var/ezflow_site/cache/ezmutex owned by uid 48 in /var/www/vhosts/dev.mondomaine.com/httpdocs/lib/ezutils/classes/ezmutex.php on line 70

Warning: (PHP: E_WARNING)
fopen(var/ezflow_site/cache/ezmutex/a1847e1bb5bf81edc3a166e3ee1847eb): failed to open stream: No such file or directory in /var/www/vhosts/dev.mondomaine.com/httpdocs/lib/ezutils/classes/ezmutex.php on line 70

Error: ()
Failed to open file: var/ezflow_site/cache/ezmutex/a1847e1bb5bf81edc3a166e3ee1847eb

Timing: ()
Script cronjobs/workflow.php done


Total script time: 0.3637 sec

Thanks, for your last answer and maybe your next answer,

Best regards,

Tuesday 09 February 2010 3:06:43 pm

Hi Emilien,

I have seen this before, although php info says SAFE_MODE is disabled, it actually is not. Can you have someone who is in charge of the server this is running on, check SAFE_MODE settings?

The debug output clearly points to a SAFE_MODE = ON problem. If that is not it, we need to look further.

Regards Robin

Tuesday 09 February 2010 4:40:49 pm

Hi Robin,
Thanks for your contribution and help.
Indeed, the SAFE_MODE is not realy disable.
A little solution for another user who have this problem):
Edit => /etc/php.ini of my server (only if you have a dedicate server) and put safe_mode value to "off" because when you launch script manualy the value off safe_mode is the master value and not the current value of the domain.
Best regards and thanks much for your answer

Tuesday 09 February 2010 7:33:07 pm

Hi Emilien,

Does the above mean you solved it, and are your cronjobs working now?

Regards Robin

Wednesday 10 February 2010 9:18:24 am

Hi Robin,Yes! Now my cronjobs is working manualy.Best ragards

Tuesday 31 July 2018 5:12:57 pm

Hi, I am having this problem with eZ Platform + Legacy Bridge. How can I resolve this problem as in PHP 7.2 the safe_mode directive does not exist anymore?

 

Thanks

expandshrink

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu

Proudly Developed with from