Jump to content


edneymatias

Member Since 18 Jul 2013
Offline Last Active Feb 22 2018 02:00 PM
-----

#7669 Stuck jobs

Posted by edneymatias on 31 July 2013 - 11:21 AM

Just to make things clear,  I'm running version 2.0.16.

Thank you.




#7617 Stuck jobs

Posted by edneymatias on 29 July 2013 - 12:52 PM

Hi there!

 

I have some errors with my jobs that I didn't manage to find out the reason.

 

First AutoresponderMessagesInOutbox is stuck with errors but can't see any error on tasks logs. When hovering over the question mark, nothing is shown. According to my crontab, Autoresponder runs every hour:

 

15 * * * * cd /var/www/html/zurmo/app/protected/commands && ./zurmoc jobManager super AutoresponderQueueMessagesInOutbox &> /dev/null

 

Then my EmailBounce and EmailArchiving always get stuck even if I managed to conigure e-mail connection properly. Test works fine on e-mail setup. Here is my crontab for both tasks:

 

*/7 * * * * cd /var/www/html/zurmo/app/protected/commands && ./zurmoc jobManager super EmailArchiving &> /dev/null
*/8 * * * * cd /var/www/html/zurmo/app/protected/commands && ./zurmoc jobManager super EmailBounce &> /dev/null
 
Task logs show nothing. Running from command EmailBounce from command line I get the output:
 

 

PHP Error[8]: Undefined property: stdClass::$host
    in file /var/www/html/zurmo/app/protected/modules/emailMessages/components/ZurmoImap.php at line 236
#0 /var/www/html/zurmo/app/protected/modules/emailMessages/components/ZurmoImap.php(315): ZurmoBounce->getMessage()
#1 /var/www/html/zurmo/app/protected/modules/emailMessages/jobs/ImapBaseJob.php(80): ZurmoBounce->getMessages()
#2 /var/www/html/zurmo/app/protected/modules/jobsManager/utils/JobsManagerUtil.php(154): EmailBounceJob->run()
#3 /var/www/html/zurmo/app/protected/modules/jobsManager/utils/JobsManagerUtil.php(73): runNonMonitorJob()
#4 /var/www/html/zurmo/app/protected/commands/JobManagerCommand.php(119): runFromJobManagerCommand()
#5 /var/www/html/zurmo/yii/framework/console/CConsoleCommandRunner.php(67): JobManagerCommand->run()
#6 /var/www/html/zurmo/yii/framework/console/CConsoleApplication.php(91): CConsoleCommandRunner->run()
#7 /var/www/html/zurmo/yii/framework/base/CApplication.php(169): ConsoleApplication->processRequest()
#8 /var/www/html/zurmo/app/protected/commands/bootstrap.php(60): ConsoleApplication->run()
#9 /var/www/html/zurmo/app/protected/commands/zurmoc.php(38): require_once()
#10 /var/www/html/zurmo/app/protected/commands/zurmoc(4): require_once()
 
Sometimes jobmonitor also get stuck and I have to reset everything. Sometimes I have six o seven tasks stuck and I have to restart memcached and httpd. Sometimes even mysql is dead.
 
What can I do about it?
 
Thank you in advance.
 
Matias.