Hi all, I have set-up recurring tickets and monthly invoices for clients. I first noticed the duplicate emails being sent to clients for the invoices and now noticed the same happening for tickets.

Is there somewhere I can start looking to prevent this?

Thanks

  • Ok found the issue. I originally set-up cron via sudo crontab -e then later on I edited the contab file manually in /etc while root so I had 2 crons running.

    Thanks all for the help it's much appreciated

Thanks all, I first noticed it couple weeks ago when the first recurring invoices were triggered and emailed to clients.

In the email que .php file, What am I looking for that would send email twice?

Thanks appreciate the replies

    Bradheffernan

    It would be good to confirm in the admin email queue that things are actually sending twice. This would also let you see if it's all invoices, or just some specific clients/contacts.

    Hi All, Sorry late reply. I have checked our the mail que and it is sending duplicated for both ticket and invoice. But only for tickets and invoices set in recurring.

    One of the invoices is set to be sent to 3 people in one of my clients. I have bracketed them in the list.

    OK i think i found it.

    I edited /etc/crontab manually with nano and couple weeks later i executed crontab -e and was empty so i filled it in with the cron commands manually.

    This caused duplicate cron jobs.

    I have set a dummy recurring ticket that should be triggered at 2am tonight. Tomorrow will tell 🙂

    Thanks @johnny appreciate the help.

      @johnny, Is there a reason the install script uses the crontab command? It seems like that sets up the job under the root users Crontab, instead of using the system-wide Crontab by appending to /etc/crontab?

      We suggest in the manual install docs to use /etc/crontab. Would be good to have a single way of doing it across the board to assist with troubleshooting.

      11 days later

      Ok found the issue. I originally set-up cron via sudo crontab -e then later on I edited the contab file manually in /etc while root so I had 2 crons running.

      Thanks all for the help it's much appreciated