Forums / Developer / runcrnjobs.php Mutex Stealing
Emilien MIOSSEC
Tuesday 09 February 2010 2:52:30 am
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 = 777thanks for your help, i'm lost.
-------------------------------------------- Emilien MIOSSEC Systalium - Developper FRANCE (Dijon) Systalium is eZ Silver Partner
Robin Muilwijk
Tuesday 09 February 2010 3:29:02 am
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
Board member, eZ Publish Community Project Board - Member of the share.ez.no team - Key values: Openness and Innovation. LinkedIn: http://nl.linkedin.com/in/robinmuilwijk // Twitter: http://twitter.com/i_robin // Skype: robin.muilwijk
Tuesday 09 February 2010 5:41:37 am
Hi Robin, I'm angry :-) , 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 6:06:43 am
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.
Tuesday 09 February 2010 7:40:49 am
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 10:33:07 am
Does the above mean you solved it, and are your cronjobs working now?
Wednesday 10 February 2010 12:18:24 am
Hi Robin,Yes! Now my cronjobs is working manualy.Best ragards