osTicket Versionv1.10 (901e5ea) —  Up to dateWeb Server SoftwareApache/2.4.7 (Ubuntu)MySQL Version5.5.50PHP Version5.5.9-1ubuntu4.21I've setup a cron job to run and it does show that it completes in the scheduled time but it does not force the IMAP fetch.  I have manually run the the following command  "/usr/bin/php5 -f /var/www/html/api/cron.php", it runs without outputting any errors but the e-mails are not retrieved.  It seems like I am missing something here but I have looked through previous support tickets and the only thing I found that I haven't tried was updating PHP to version 5.6.  The only way i can get the IMAP connection to run is turning on "Fetch on auto-cron".  When I do this and access the admin console, the e-mail is updated to the proper ticket and then deleted from the inbox.  I am using a Google account for this.  Sending e-mails is fine and the gmail account receives the replies as well.  I am sure I need to provide more information on this so please let me know.  

I would first try updating your PHP to 5.6I had cron problems after upgrading to 1.10 as well until also upgrading my php to 5.6

So i installed php 5.6.30 on the server and restarted apache.  Its still showing php 5.5.9 on OSTicket but shows 5.6 on ubuntu.  Is there another setting I need to change in order for OSTicket to use that version?  I went ahead and set my cron job to use 5.6 but its still not fetching the e-mails.  This is what I see in the syslogs when this cron runs.Apr 12 08 helpdesk CRON: (root) CMD (/usr/bin/php5.6 -q /var/www/html/api/cron.php)Apr 12 08 helpdesk CRON: (root) CMD (/usr/bin/php5.6 -q /var/www/html/api/cron.php)

Please try grabbing the cron.php from the 1.9.15 distro and see if that one works.

So I pulled cron.php from the 1.9.15 distro and tried it via cron and also manually running it.  I   I have my logging set to debug and nothing is showing up there.  I also tried with php5 and php 5.6.  The same message shows up in the syslog for the cron job.Apr 12 10 helpdesk CRON: (root) CMD (/usr/bin/php5.6 -q /var/www/html/api/cron.php)Apr 12 10 helpdesk CRON: (root) CMD (/usr/bin/php5.6 -q /var/www/html/api/cron.php)

I'm not sure if this is helpful or not but Here are the settings I have set in the admin console.  Like I said before, Fetch on auto-cron does work but we really want this to run every 5 minutes.  I currently have it set to 1 for testing purposes.  

OSTicket1.JPG

OSTicket2.JPG

Umm why would you pull the rcron.php?

ntozier,Sorry, that was a mistype, I pulled cron.php.  Ill edit that so it is named correctly.  

How are you calling the script? (exact command line)What user is it run as? (how often is it called)What user is your webserver user?

here is the exact command line for the cron.*/1 * * * * /usr/bin/php5.6 -q /var/www/html/api/cron.phpIve also run it manually on root trying the following commands. /usr/bin/php5.6  /var/www/html/api/cron.php /usr/bin/php5  /var/www/html/api/cron.phpIt is currently running as root via cron.  I have had it set for 5 minutes but it currently is set for 1 minute for testing purposesThe user for apache is www-dataI also tried changing the user to www-data and this is the output I get from syslog.Apr 12 12 helpdesk CRON: (root) CMD (www-data /usr/bin/php5.6 -q /var/www/html/api/cron.php)Apr 12 12 helpdesk CRON: (CRON) info (No MTA installed, discarding output)Thanks again for your help!

Are there any other logs I can provide to help troubleshoot this?   I am running out of things to try to get this to work.  I know the "No MTA installed" message is for transmitting e-mails, would that cause the cron job not to complete?Thanks!,

23 days later

Hello chjones,if you use the german version from osticket.com.de, please download patch3 from our site.There is this problem solved...

Write a Reply...