Jump to content

Recurring Issues The "download Tickets" Cron Job


xxxxx

Recommended Posts

Hi,

 

I know this issue has been brought to light a few times, but the solution has usually been to manually do some SQL and this is happening far too often for that to be a suitable fix for me.

 

Version:

 

Blesta 3.2.0 with all Plugins up-to-date.

 

The problem:

 

You can see there is an issue when logging in to the Admin Dashboard and looking at the System Status widget:

"There are one or more cron tasks that have been executing for more than 60 minutes. View Automated Tasks."

 

On digging in to the Tasks, the "Download Tickets" job is the issue. The spinner graphic continuously spins. The mail server and credentials are fine.

 

How often:

 

It happened once or twice previously, but since upgrading to 3.2.0 this has happened on either a weekly or sometimes daily basis. Sometimes the issue seems to fix itself (I know the lock file clears after 6 hours) but sometimes it's not suitable to wait this long and we are forced to use fixes detailed in the below threads.

 

Hacky fixes used so far:

 

http://www.blesta.com/forums/index.php?/topic/1805-there-are-one-or-more-cron-tasks-that-have-been-executing-for-more-than-60-minutes/

 

http://www.blesta.com/forums/index.php?/topic/1052-system-status-there-are-one-or-more-cron-tasks-that-have-been-executing-for-more-than-60-minutes/

 

Please can you take a look at this as soon as possible.

 

Thank you, Daniel.

Link to comment
Share on other sites

The task can hang for a lot of reasons. One reason might be there is a message that's too large, and not enough memory can be allocated in PHP to process it. Or, it's unable to connect to the mail server, or the mail server times out.

 

The "hacks" referenced seem to simply clear out the task quickly -- but the system will do so automatically after 6 hours as intended.

 

The real fix depends on why the process is hanging or crashing. Your server's PHP error log file may have evidence for this, and the fix could be increasing the timeout or memory limit, or something may be able to be done in the code, but it's impossible to know without the error.

 

We actually use IMAP for our ticket system, and I haven't come across this issue at all yet.

Link to comment
Share on other sites

Thanks for your quick reply, Paul.

 

- I don't think the messages are too large, there's generally only one message per cron job, if that, and it tends to be a couple of lines.

- I can't imagine connectivity to the mail server or the credentials are the problem either, I have other mail clients hooked up to these accounts and mail is delivered fine.

- That leaves me with looking in to increasing the timeout or memory limit, but I'll try dig around for PHP logs as suggested and get back to you.

Link to comment
Share on other sites

Okay, so I've had my reseller host make the changes you suggested in terms of PHP config, etc, however I'm still having the problem. I've noticed the job only fails when there's an email in the inbox. If it's empty, there are no issues.

Link to comment
Share on other sites

[26-Feb-2013 15:00:01 US/Central] PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20090626/imagick.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20090626/imagick.so: cannot open shared object file: No such file or directory in Unknown on line 0

[17-Aug-2013 07:55:02 America/Chicago] PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/php54/lib/php/extensions/no-debug-non-zts-20100525/pdo.so' - /usr/local/php54/lib/php/extensions/no-debug-non-zts-20100525/pdo.so: cannot open shared object file: No such file or directory in Unknown on line 0

[17-Aug-2013 07:55:02 America/Chicago] PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/php54/lib/php/extensions/no-debug-non-zts-20100525/pdo_mysql.so' - /usr/local/php54/lib/php/extensions/no-debug-non-zts-20100525/pdo_mysql.so: cannot open shared object file: No such file or directory in Unknown on line 0

[17-Aug-2013 08:00:01 America/Chicago] PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/php54/lib/php/extensions/no-debug-non-zts-20100525/pdo.so' - /usr/local/php54/lib/php/extensions/no-debug-non-zts-20100525/pdo.so: cannot open shared object file: No such file or directory in Unknown on line 0

[17-Aug-2013 08:00:01 America/Chicago] PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/php54/lib/php/extensions/no-debug-non-zts-20100525/pdo_mysql.so' - /usr/local/php54/lib/php/extensions/no-debug-non-zts-20100525/pdo_mysql.so: cannot open shared object file: No such file or directory in Unknown on line 0

[17-Aug-2013 08:05:01 America/Chicago] PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/php54/lib/php/extensions/no-debug-non-zts-20100525/pdo.so' - /usr/local/php54/lib/php/extensions/no-debug-non-zts-20100525/pdo.so: cannot open shared object file: No such file or directory in Unknown on line 0

[17-Aug-2013 08:05:01 America/Chicago] PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/php54/lib/php/extensions/no-debug-non-zts-20100525/pdo_mysql.so' - /usr/local/php54/lib/php/extensions/no-debug-non-zts-20100525/pdo_mysql.so: cannot open shared object file: No such file or directory in Unknown on line 0

Link to comment
Share on other sites

[26-Feb-2013 15:00:01 US/Central] PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20090626/imagick.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20090626/imagick.so: cannot open shared object file: No such file or directory in Unknown on line 0

[17-Aug-2013 07:55:02 America/Chicago] PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/php54/lib/php/extensions/no-debug-non-zts-20100525/pdo.so' - /usr/local/php54/lib/php/extensions/no-debug-non-zts-20100525/pdo.so: cannot open shared object file: No such file or directory in Unknown on line 0

[17-Aug-2013 07:55:02 America/Chicago] PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/php54/lib/php/extensions/no-debug-non-zts-20100525/pdo_mysql.so' - /usr/local/php54/lib/php/extensions/no-debug-non-zts-20100525/pdo_mysql.so: cannot open shared object file: No such file or directory in Unknown on line 0

[17-Aug-2013 08:00:01 America/Chicago] PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/php54/lib/php/extensions/no-debug-non-zts-20100525/pdo.so' - /usr/local/php54/lib/php/extensions/no-debug-non-zts-20100525/pdo.so: cannot open shared object file: No such file or directory in Unknown on line 0

[17-Aug-2013 08:00:01 America/Chicago] PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/php54/lib/php/extensions/no-debug-non-zts-20100525/pdo_mysql.so' - /usr/local/php54/lib/php/extensions/no-debug-non-zts-20100525/pdo_mysql.so: cannot open shared object file: No such file or directory in Unknown on line 0

[17-Aug-2013 08:05:01 America/Chicago] PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/php54/lib/php/extensions/no-debug-non-zts-20100525/pdo.so' - /usr/local/php54/lib/php/extensions/no-debug-non-zts-20100525/pdo.so: cannot open shared object file: No such file or directory in Unknown on line 0

[17-Aug-2013 08:05:01 America/Chicago] PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/php54/lib/php/extensions/no-debug-non-zts-20100525/pdo_mysql.so' - /usr/local/php54/lib/php/extensions/no-debug-non-zts-20100525/pdo_mysql.so: cannot open shared object file: No such file or directory in Unknown on line 0

 

 

Did you upgrade your MySQL server because the cPanel warning? if so, that procidure also upgrades the PHP version and it dosent update the php.ini.

 

We have upgraded MySQL yesterday on one of our servers, and it also display similar problems :)

 

If so, you have to edit your php.ini file or if you use cpanel click on WHM->Service Configuration->PHP Configuration Editor

Then click on Advanced Mode, finally search for "extension" field, and on the right remove the entries:
 
imagick.so
pdo.so
pdo_mysql.so
 and Save it
 
After that on WHM click on Software->EasyApache and recompile apache and PHP with PDO, IMAGEMAGIC etc.. to fix your errors ;)
 
Hope that help.
 
Regards,
PV
Link to comment
Share on other sites

  • 2 months later...
  • 9 months later...

i am having the same issue

 

[Tue Jun 02 12:22:56.832723 2015] [core:notice] [pid 1016] AH00094: Command line: '/usr/sbin/apache2'
[Tue Jun 02 12:22:57.234631 2015] [:error] [pid 1035] [client 86.97.226.218:51196] PHP Fatal error:  Uncaught exception 'UnknownException' with message 'Invalid callback Session::sessionWrite, cannot access private method Session::sessionWrite()' in Unknown:0\nStack trace:\n#0 [internal function]: UnknownException::setErrorHandler(2, 'Invalid callbac...', 'Unknown', 0, Array)\n#1 {main}\n  thrown in Unknown on line 0, referer: http://myserver/portal/index.php/admin/plugin/support_manager/admin_tickets/
[Tue Jun 02 12:22:57.234724 2015] [:error] [pid 1035] [client 86.97.226.218:51196] PHP Warning:  Invalid callback Session::sessionClose, cannot access private method Session::sessionClose() in Unknown on line 0, referer: http://myserver/portal/index.php/admin/plugin/support_manager/admin_tickets/
[Tue Jun 02 13:05:06.437406 2015] [mpm_prefork:notice] [pid 1016] AH00169: caught SIGTERM, shutting down
[Tue Jun 02 13:05:16.132455 2015] [mpm_prefork:notice] [pid 1024] AH00163: Apache/2.4.7 (Ubuntu) PHP/5.5.9-1ubuntu4.9 configured -- resuming normal operations
[Tue Jun 02 13:05:16.132732 2015] [core:notice] [pid 1024] AH00094: Command line: '/usr/sbin/apache2'
[Tue Jun 02 13:13:11.409413 2015] [mpm_prefork:notice] [pid 1024] AH00169: caught SIGTERM, shutting down
[Tue Jun 02 13:13:20.195790 2015] [mpm_prefork:notice] [pid 1020] AH00163: Apache/2.4.7 (Ubuntu) PHP/5.5.9-1ubuntu4.9 configured -- resuming normal operations
[Tue Jun 02 13:13:20.195964 2015] [core:notice] [pid 1020] AH00094: Command line: '/usr/sbin/apache2'
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...