Hello,Mail Sending: phpMailMail Fetching/Receiving: POP and Ubuntu 13.10PHP version: 5.5.xOperating System: UbuntuI've read this: http://osticket.com/wiki/POP3/IMAP_SettingsI've setup cron using both "Recurring tasks scheduler (Cron Job)" and "External triggering using wget".None of them worked to begin with. Neither stale ticket alerts were being sent, nor were mails being fetched from gmail.Suddenly, stale ticket alerts have started working. But, mail fetching still doesn't work.Auto-Cron does work, however.But, I need alerts. In my System logs I see "Mail Fetching Error" every 5 minutes.Presumably due to the cron.I've checked my gmail settings, and they're correct.I mean, auto cron works. Shouldn't regular cron too?I would provide you with logs, but I don't know which ones.Nginx error logs are fine.How do I debug this? Thanks in advance :)

"Suddenly, stale ticket alerts have started working." this statement is not good , when something suddenly starts to work can suddenly stop working too ! I recommend you to check mail and php logs in ubuntu. nginx logs are only php related so you need to check mail logs too to find why you do not get emails.When you see "Mail Fetching Error" it means the crontab is working fine. I'm nearly sure the problem is from your email settings / firewall / email provider. My suggestions :1. change from pop to imap , do not forget to choose correct settings in gmail too !2. if problem is still there, try to check your iptables/firewall . easiest way is to telnet gmail imap.

Thanks, mate.I tried switching to IMAP, same problem.Looking at the boards, several people are experiencing this exact problem after upgrading to 1.8.0.1.I can only conclude that this is a bug with 1.8.0.1. What do you think?Would it be advisable to use an old version of cron.php, or are they too different?

Here are others with the same issue:http://forum.osticket.com/d/discussion//1-8-no-alert-when-fetching-mail#latesthttp://forum.osticket.com/d/discussion//unable-to-pull-emails-using-cron-php-pop3-after-upgrade-to-v1-8-0-1#latesthttp://forum.osticket.com/d/discussion//email-notifications-to-admin-not-being-received-for-new-tickets#latesthttp://forum.osticket.com/d/discussion//system-not-fetching-tickets-since-upgrade

5 days later
7 days later

Having problems setting up the cron and would like to know if you resolved your issues. 

Nope. Still have the problem. Sent mail to OsTicket support and got a canned response back referring to their wiki pages. This is a big fail-

From what I am reading I am wondering if going to a fresh install of 1.8 is the way to go?Do you have a fresh install or did you upgrade? There are some that think there is an error in the upgrade process while there appear to be some that have upgraded from 1.6 to 1.7 to 1.8 with no issues.

I did a completely fresh install. Didn't work.

then i guess i dont need to waste my time with that. wish i could help.dealing with my own issues on this. 

osTicket has failed us on this. 

Dunno what to tell you, it works fine for me with multiple installations.

Hey guys,maybe i can help youwe did find that when our host put shell permissions down to chrooted the cron would run their end, but would not run on the site. so to them it looks like it ran and to me it didnt, setting more laxed permission on shell worked. (Bash shell)In cron star everything, but in the minute put */1 so it runs every minute. just putting in 1 will run it once every hour.you can also test it by putting in this line in the cron.php to see if you get an email when the cron job runs. put it at the top of the php file. if all correct you will get an email every minute or so.mail('yourmail@your email.com.au','Cron Test A1','Test');another test is turn on debugging in> settings >default log level.then everytime cron.php is run, in > Dashboard > system logs it shows cron has run every minute.Finally the last thing i can tell you is the line which cron had to run, this is what i personally had to use:/usr/bin/php /var/www/vhosts/***********.com.au/httpdocs/support/api/cron.phphopefully this helps some of you

7 days later

**RESOLVED**Well upgraded my broken 1.8.0.1 to 1.8.0.2 and the

cron.php that didn't work now works fine. Looks like something has been

fixed!So upgrade to 1.8.0.2 and all should be OK.:-D

Write a Reply...