Jump to content


Photo

Email Archiving - 'In Process (Stuck)'

email archiving cronjobs

  • Please log in to reply
9 replies to this topic

#1 Woody

Woody

    Member

  • New Members
  • PipPip
  • 13 posts

Posted 03 April 2013 - 06:42 AM

Hi all

 

We're having a problem with our Email Archiving on a Zurmo AWS Bitnami installation, our EmailArchiving process will not complete successfully and is getting stuck every time it runs ('in process (stuck)'). The last completed run was on 25/03/2013, and on that day two emails went in that had attachments. Both the email of the user and email of the contact for all emails are already entered into our system.

 

If I hit the 'reset' button, it attmepts to run again, but still gets stuck.

 

We're running on an AWS Ubuntu EC2 server through a Bitnami installation. Our EmailArchiving zurmoc task runs through a shell script, which is activated by a crontab every five minutes. 

 

Is there anything in our setup described that could be causing this problem, and is there any way I can troubleshoot the issue through the server console?

 

Thanks!



#2 chrisedwards

chrisedwards

    Advanced Member

  • Members
  • PipPipPip
  • 276 posts
  • LocationCanada

Posted 03 April 2013 - 02:22 PM

First: clear the cache with ?clearCache=1 appended to url, or through the admin menu.

Second: try restarting memcached server. I ran into issue where memcached IMAP config was inconsistent with settings. Restarting memcached fixed.

Third: It may be memcache error if attachments are > 1mb the email will fail. This has already been submitted as a bug since email attachments should not be cached.

One workaround is to increase memcache size. Edit memcached config file. Mine is in /etc/sysconfig/memcached on CentOS.

The following sets limit to 5mb instead of default 1mb: 

OPTIONS="-I 5m"

Note this should be removed once the issue is fixed on the zurmo side. See story: https://www.pivotalt...y/show/46963969

It looks like it'll be fixed in 1.5, but you'd have to follow the story to be sure.



#3 mledwards

mledwards

    Advanced Member

  • Members
  • PipPipPip
  • 85 posts

Posted 12 April 2013 - 02:37 PM

I'm also having this problem but I don't have any attachments.

My SMTP and IMAP tests are running fine, my outbound emails are running fine, but when I run:

"./zurmoc JobManager super EmailArchiving"

It starts and then says process stuck.

Any ideas?



#4 rbryant

rbryant

    Newbie

  • New Members
  • Pip
  • 5 posts

Posted 03 May 2013 - 02:01 AM

Same issue for me.  I am getting an error though:



PHP Error[8]: Undefined property: stdClass::$to
    in file /opt/bitnami/apps/zurmo/htdocs/app/protected/modules/emailMessages/components/ZurmoImap.php at line 199
 
How do I solve that?


#5 DaveMBos

DaveMBos

    Newbie

  • Members
  • Pip
  • 3 posts

Posted 22 May 2013 - 03:16 PM

I am running ver 1.5.14 on Ubuntu.  I am geeting an error that states: "Existing job detected".  

 

The sending of emails is fine and the connection test to the email server works well.

 

Any suggestions?



#6 sanbrar

sanbrar

    Advanced Member

  • Members
  • PipPipPip
  • 72 posts

Posted 18 June 2013 - 02:27 AM

Hello, 

I have similar issue and when I run the job manually I get the following error.

 

sudo php zurmoc jobManager super EmailArchiving
    exception 'ChecksumMismatchException' in /var/www/crm_test/app/protected/core/models/RedBeanModelsCache.php:88
Stack trace:
#0 /var/www/crm_test/app/protected/core/models/RedBeanModel.php(2933): RedBeanModelsCache::getModel('User1')
#1 /var/www/crm_test/app/protected/modules/users/models/User.php(56): RedBeanModel::makeModel(Object(RedBean_OODBBean))
#2 /var/www/crm_test/app/protected/commands/JobManagerCommand.php(79): User::getByUsername('super')
#3 /var/www/crm_test/yii/framework/console/CConsoleCommandRunner.php(67): JobManagerCommand->run(Array)
#4 /var/www/crm_test/yii/framework/console/CConsoleApplication.php(91): CConsoleCommandRunner->run(Array)
#5 /var/www/crm_test/yii/framework/base/CApplication.php(169): CConsoleApplication->processRequest()
#6 /var/www/crm_test/app/protected/commands/bootstrap.php(60): CApplication->run()
#7 /var/www/crm_test/app/protected/commands/zurmoc.php(38): require_once('/var/www/crm_te...')
#8 /var/www/crm_test/app/protected/commands/zurmoc(4): require_once('/var/www/crm_te...')

Any debugging ideas?

 

Thanks



#7 chrisedwards

chrisedwards

    Advanced Member

  • Members
  • PipPipPip
  • 276 posts
  • LocationCanada

Posted 18 June 2013 - 03:12 PM

I think the ChecksumMismatch is usually a cache inconsistency issue. Have you done #1 & #2 above in http://zurmo.org/for...tuck/#entry4549 ?

 

For debugging that you could try disabling the cache in debug.php and see if your job completes after that.



#8 sanbrar

sanbrar

    Advanced Member

  • Members
  • PipPipPip
  • 72 posts

Posted 19 June 2013 - 03:29 AM

I did the first, two steps

First: clear the cache with ?clearCache=1 

Second: Restarted memcached server.

 

Also turned off all cache in debug.php and I still get following error.

 

6/18/13 8:29 PM America/Vancouver Starting job type: EmailArchiving
PHP Error[8]: Undefined property: stdClass::$from
    in file /var/www/crm_test/app/protected/modules/emailMessages/components/ZurmoImap.php at line 233
#0 /var/www/crm_test/app/protected/modules/emailMessages/components/ZurmoImap.php(285): ZurmoImap->getMessage()
#1 /var/www/crm_test/app/protected/modules/emailMessages/jobs/EmailArchivingJob.php(93): ZurmoImap->getMessages()
#2 /var/www/crm_test/app/protected/modules/jobsManager/utils/JobsManagerUtil.php(154): EmailArchivingJob->run()
#3 /var/www/crm_test/app/protected/modules/jobsManager/utils/JobsManagerUtil.php(73): runNonMonitorJob()
#4 /var/www/crm_test/app/protected/commands/JobManagerCommand.php(119): runFromJobManagerCommand()
#5 /var/www/crm_test/yii/framework/console/CConsoleCommandRunner.php(67): JobManagerCommand->run()
#6 /var/www/crm_test/yii/framework/console/CConsoleApplication.php(91): CConsoleCommandRunner->run()
#7 /var/www/crm_test/yii/framework/base/CApplication.php(169): ConsoleApplication->processRequest()
#8 /var/www/crm_test/app/protected/commands/bootstrap.php(60): ConsoleApplication->run()
#9 /var/www/crm_test/app/protected/commands/zurmoc.php(38): require_once()
#10 /var/www/crm_test/app/protected/commands/zurmoc(4): require_once()

 

 
Thanks


#9 sanbrar

sanbrar

    Advanced Member

  • Members
  • PipPipPip
  • 72 posts

Posted 19 June 2013 - 03:36 AM

Is there way to turn on detailed logging for the jobs?



#10 sanbrar

sanbrar

    Advanced Member

  • Members
  • PipPipPip
  • 72 posts

Posted 20 June 2013 - 08:40 PM

I got bit more logs but still don't know what the real issue is?

 

classa@crm:/var/www/crm_test/app/protected/commands$ sudo php zurmoc jobManager super EmailArchiving

Script will run at most for 300 seconds.

6/20/13 1:21 PM America/Vancouver Starting job type: EmailArchiving
PHP Error[8]: Undefined property: stdClass::$from
    in file /var/www/crm_test/app/protected/modules/emailMessages/components/ZurmoImap.php at line 233
#0 /var/www/crm_test/app/protected/modules/emailMessages/components/ZurmoImap.php(285): ZurmoImap->getMessage()
#1 /var/www/crm/app/protected/modules/emailMessages/jobs/EmailArchivingJob.php(93): ZurmoImap->getMessages()
#2 /var/www/crm/app/protected/modules/jobsManager/utils/JobsManagerUtil.php(154): EmailArchivingJob->run()
#3 /var/www/crm/app/protected/modules/jobsManager/utils/JobsManagerUtil.php(73): runNonMonitorJob()
#4 /var/www/crm_test/app/protected/commands/JobManagerCommand.php(119): runFromJobManagerCommand()
#5 /var/www/crm_test/yii/framework/console/CConsoleCommandRunner.php(67): JobManagerCommand->run()
#6 /var/www/crm_test/yii/framework/console/CConsoleApplication.php(91): CConsoleCommandRunner->run()
#7 /var/www/crm_test/yii/framework/base/CApplication.php(169): ConsoleApplication->processRequest()
#8 /var/www/crm_test/app/protected/commands/bootstrap.php(60): ConsoleApplication->run()
#9 /var/www/crm_test/app/protected/commands/zurmoc.php(38): require_once()
#10 /var/www/crm_test/app/protected/commands/zurmoc(4): require_once()
CException: CHttpRequest is unable to determine the request URI. (/var/www/crm_test/yii/framework/web/CHttpRequest.php:506)
#0 /var/www/crm_test/yii/framework/web/CHttpRequest.php(418): CHttpRequest->getRequestUri()
#1 /var/www/crm_test/app/protected/core/models/ZurmoRedBeanQueryFileLogger.php(234): CHttpRequest->getPathInfo()
#2 /var/www/crm_test/app/protected/core/models/ZurmoRedBeanQueryFileLogger.php(219): ZurmoRedBeanQueryFileLogger->getRequestInfoDetails()
#3 /var/www/crm_test/app/protected/modules/zurmo/components/EndRequestBehavior.php(98): ZurmoRedBeanQueryFileLogger->processLogs()
#4 /var/www/crm_test/yii/framework/base/CComponent.php(558): EndRequestBehavior->handleResolveRedBeanQueriesToFile(Object(CEvent))
#5 /var/www/crm_test/yii/framework/base/CApplication.php(208): CComponent->raiseEvent('onEndRequest', Object(CEvent))
#6 /var/www/crm_test/yii/framework/base/CApplication.php(185): CApplication->onEndRequest(Object(CEvent))
#7 /var/www/crm_test/yii/framework/base/CApplication.php(816): CApplication->end(1)
#8 /var/www/crm_test/app/protected/modules/emailMessages/components/ZurmoImap.php(233): CApplication->handleError(8, 'Undefined prope...', '/var/www/crm_te...', 233, Array)
#9 /var/www/crm_test/app/protected/modules/emailMessages/components/ZurmoImap.php(285): ZurmoImap->getMessage(30, Object(stdClass))
#10 /var/www/crm/app/protected/modules/emailMessages/jobs/EmailArchivingJob.php(93): ZurmoImap->getMessages('SINCE "Mon, 17 ...', 1371520175)
#11 /var/www/crm/app/protected/modules/jobsManager/utils/JobsManagerUtil.php(154): EmailArchivingJob->run()
#12 /var/www/crm/app/protected/modules/jobsManager/utils/JobsManagerUtil.php(73): JobsManagerUtil::runNonMonitorJob('EmailArchiving', Object(MessageLogger))
#13 /var/www/crm_test/app/protected/commands/JobManagerCommand.php(119): JobsManagerUtil::runFromJobManagerCommand('EmailArchiving', 300, 'MessageLogger')
#14 /var/www/crm_test/yii/framework/console/CConsoleCommandRunner.php(67): JobManagerCommand->run(Array)
#15 /var/www/crm_test/yii/framework/console/CConsoleApplication.php(91): CConsoleCommandRunner->run(Array)
#16 /var/www/crm_test/yii/framework/base/CApplication.php(169): CConsoleApplication->processRequest()
#17 /var/www/crm_test/app/protected/commands/bootstrap.php(60): CApplication->run()
#18 /var/www/crm_test/app/protected/commands/zurmoc.php(38): require_once('/var/www/crm_te...')
#19 /var/www/crm_test/app/protected/commands/zurmoc(4): require_once('/var/www/crm_te...')
#20 {main}
Previous error:
Undefined property: stdClass::$from (/var/www/crm_test/app/protected/modules/emailMessages/components/ZurmoImap.php:233)
Stack trace:
#0 /var/www/crm/app/protected/modules/jobsManager/utils/JobsManagerUtil.php(154): EmailArchivingJob->run()
#1 /var/www/crm/app/protected/modules/jobsManager/utils/JobsManagerUtil.php(73): runNonMonitorJob()
#2 /var/www/crm_test/app/protected/commands/JobManagerCommand.php(119): runFromJobManagerCommand()
#3 /var/www/crm_test/yii/framework/console/CConsoleCommandRunner.php(67): JobManagerCommand->run()
#4 /var/www/crm_test/yii/framework/console/CConsoleApplication.php(91): CConsoleCommandRunner->run()
#5 /var/www/crm_test/yii/framework/base/CApplication.php(169): ConsoleApplication->processRequest()
#6 /var/www/crm_test/app/protected/commands/bootstrap.php(60): ConsoleApplication->run()
#7 /var/www/crm_test/app/protected/commands/zurmoc.php(38): require_once()
#8 /var/www/crm_test/app/protected/commands/zurmoc(4): require_once()

$_SERVER=array (
  'TERM' => 'xterm',
  'LS_COLORS' => 'rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.lz=01;31:*.xz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.axv=01;35:*.anx=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.axa=00;36:*.oga=00;36:*.spx=00;36:*.xspf=00;36:',
  'PATH' => '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin',
  'LANG' => 'en_US.UTF-8',
  'HOME' => '/home/classa',
  'SHELL' => '/bin/bash',
  'LOGNAME' => 'root',
  'USER' => 'root',
  'USERNAME' => 'root',
  'MAIL' => '/var/mail/root',
  'SUDO_COMMAND' => '/usr/bin/php zurmoc jobManager super EmailArchiving',
  'SUDO_USER' => 'classa',
  'SUDO_UID' => '1000',
  'SUDO_GID' => '1000',
  'PHP_SELF' => 'zurmoc',
  'SCRIPT_NAME' => 'zurmoc',
  'SCRIPT_FILENAME' => 'zurmoc',
  'PATH_TRANSLATED' => 'zurmoc',
  'DOCUMENT_ROOT' => '',
  'REQUEST_TIME' => 1371759718,
  'argv' =>
  array (
    0 => 'zurmoc',
    1 => 'jobManager',
    2 => 'super',
    3 => 'EmailArchiving',
  ),
  'argc' => 4,
)






Also tagged with one or more of these keywords: email archiving, cronjobs

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users