osTicket / osTicket

The osTicket open source ticketing system official project repository, for versions 1.8 and later
osticket.com
GNU General Public License v2.0
3.25k stars 1.67k forks source link

Cron job duplicates tickets when running multiple server with loadbalancer #6504

Open huyhoang8398 opened 1 year ago

huyhoang8398 commented 1 year ago

Prerequisites

For more information on how to write a good bug report

Description

Im currently running OSticket hosted in AWS ec2 with AWS load balancer, so that mean i have 3 osticket server using same database and files But i have a problem with cronjob, currently my cron job is: 0,10,15,20,30,40,45,50 * * * * php /var/www/html/labcollector.com/tickets/api/cron.php >/dev/null 2>&1

Since i have several server running under loadbalancer, so it makes ticket dupplicate image

What should i do for this case?

JediKev commented 1 year ago

@huyhoang8398

Have 1 cron job running only on 1 server.

Cheers.