Troublshooting Multiple Email Sends to Same Contact ID

Your software
My Mautic version is: 4.0.1
My PHP version is: 7.4
My Database type and version is:

Your problem
My problem is:
We are seeing that there are many users that are getting emails sent multiple times when they are being sent through a scheduled campaign send.

Can anyone think of a reason why this might be happening or how to even go about debugging it or looking for the cause of the problem.

These errors are showing in the log:

Steps I have tried to fix the problem:

Hi @mikew,
could you provide your Mautic email-configuration and the cronjobs you use to send out the emails?

Best
Leon

are you using multi-threaded send?

I was sending emails “immediately”,
crontab

process email queue

*/2 * * * * sudo -u www-data php7.4 /var/www/mautic/bin/console mautic:emails:send > /dev/null
*/2 * * * * sudo -u www-data php7.4 /var/www/mautic/bin/console mautic:broadcasts:send > /dev/null

@joeyk I do not think so, however I have built a script that writes out a trigger job for any email that has a future scheduled date.

You are running this command every 2 min as sudo. Which means if the prevous command is not done, you’ll force-run again. Better add —time-limit=110 to make sure the previous command expires before the new starts.