MySQLTalk.org Forum Index MySQLTalk.org
MYSQL discussions groups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

cron - process mail queue not working

 
Post new topic   Reply to topic    MySQLTalk.org Forum Index -> Eventum General Discussion
View previous topic :: View next topic  
Author Message
Zack Wickes
Guest





PostPosted: Mon Dec 08, 2008 2:48 am    Post subject: cron - process mail queue not working Reply with quote



Hi,

For a few months Eventum was running fine. Cron jobs working as documented.

Then suddenly, with no apparent configuration changes - the
process_mail_queue.php cron job started choking

I have configured:

0 * * * * /usr/bin/php -f
/var/www/vhosts/torqueinvoicing.com/httpdocs/eventum/misc/process_mail_queue
..php --fix-lock
*/10 * * * * /usr/bin/php -f
/var/www/vhosts/torqueinvoicing.com/httpdocs/eventum/misc/check_reminders.ph
p
1-59 * * * * /usr/bin/php -f
/var/www/vhosts/torqueinvoicing.com/httpdocs/eventum/misc/process_mail_queue
..php

However, I get a continual report that:

"ERROR: There is already a process (pid=xxx) of this script running. If this
is not accurate, you may fix it by running this script with '--fix-lock' as
the only parameter."

OK - fine, so I force the --fix-lock one to run alone by itself.
("fix-lock" seems a bit hack-ish - but anyway...)

Then I get the --fix-lock version telling me the exact same thing! Run the
--fix-lock job!. LOL

OK, OK, I shut them all down, then manually find the lock file and delete
it. I have checked the locks directory has full on 777 permissions. I even
rebooted the server!

Then, turn on ONLY the process_mail_queue.php job - boom! Same thing -
complains the process is already running!

So, I load up a terminal and there is NO process of the noted pid running,
but the lock file remains and of course --fix-lock is not working either!

I have disabled the jobs completely and am frustrated. Any help would be
appreciated.

Thanks.
Back to top
Jorey Bump
Guest





PostPosted: Mon Dec 08, 2008 8:53 am    Post subject: Re: cron - process mail queue not working Reply with quote



Zack Wickes wrote, at 12/07/2008 03:48 PM:

Quote:
1-59 * * * * /usr/bin/php -f
/var/www/vhosts/torqueinvoicing.com/httpdocs/eventum/misc/process_mail_queue
.php

However, I get a continual report that:

"ERROR: There is already a process (pid=xxx) of this script running. If this
is not accurate, you may fix it by running this script with '--fix-lock' as
the only parameter."

That's too frequent. Try running it every 5 minutes. You need to give
the script time to process your queue before starting it again.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    MySQLTalk.org Forum Index -> Eventum General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.