I'm having an issue with a mail fetching via a crontab task on 1.16.1. In the crontab, cron.php is called every 3 minutes and seems to be running correctly when I look at the system log in osTicket with debug enabled, but no emails are fetched. Enabling autocron instead results in the emails being successfully fetched. Here's my environment:
osTicket: 1.16.1
Web Server: Apache/2.4.41 (Ubuntu)
MySQL Version: 8.0.28
PHP Version: 8.0.16
OS: Ubuntu 20.04
The current crontab schedule is set as:
*/3 * * * * nobody /usr/bin/php8.0 -f /var/www/html/ost/api/cron.php
Running the crontab as other users, including root, as well as running the command directly results in the same issue. I've also tried without the '-f' argument in the command.
I did a bit of digging here before posting and did run into this issue:
https://github.com/osTicket/osTicket/pull/6087/files
I made the changes listed for those 5 files but I'm still running into the same problem. Any help would be greatly appreciated!