Here are some strange log entries I am seeing from today:
[2021-11-08 13:39:04] mautic.ERROR: CAMPAIGN: An exception occurred while executing ‘INSERT INTO campaign_lead_event_log (rotation, date_triggered, is_scheduled, trigger_date, system_triggered, metadata, channel, channel_id, non_action_path_taken, event_id, lead_id, campaign_id, ip_id) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)’ with params [3, “2021-11-08 13:39:04”, 1, “2021-11-09 08:00:00”, 1, “a:0:{}”, null, null, 0, 330, “794303”, 24, null]: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry ‘330-794303-3’ for key ‘campaign_rotation’
[2021-11-08 13:40:08] mautic.ERROR: CAMPAIGN: An exception occurred while executing ‘INSERT INTO campaign_lead_event_log (rotation, date_triggered, is_scheduled, trigger_date, system_triggered, metadata, channel, channel_id, non_action_path_taken, event_id, lead_id, campaign_id, ip_id) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)’ with params [3, “2021-11-08 13:40:08”, 1, “2021-11-09 08:00:00”, 1, “a:0:{}”, null, null, 0, 330, “795287”, 24, null]: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry ‘330-795287-3’ for key ‘campaign_rotation’
[2021-11-08 13:46:01] mautic.CRITICAL: Uncaught PHP Exception Doctrine\DBAL\Exception\UniqueConstraintViolationException: “An exception occurred while executing ‘INSERT INTO lead_tags_xref (lead_id, tag_id) VALUES (?, ?)’ with params [“22142”, 4]: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry ‘22142-4’ for key ‘PRIMARY’” at /var/www/mautic/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/AbstractMySQLDriver.php line 74 {“exception”:"[object] (Doctrine\DBAL\Exception\UniqueConstraintViolationException(code: 0): An exception occurred while executing ‘INSERT INTO lead_tags_xref (lead_id, tag_id) VALUES (?, ?)’ with params [“22142”, 4]:\n\nSQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry ‘22142-4’ for key ‘PRIMARY’ at /var/www/mautic/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/AbstractMySQLDriver.php:74, Doctrine\DBAL\Driver\PDO\Exception(code: 23000): SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry ‘22142-4’ for key ‘PRIMARY’ at /var/www/mautic/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDO/Exception.php:18, PDOException(code: 23000): SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry ‘22142-4’ for key ‘PRIMARY’ at /var/www/mautic/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOStatement.php:112)"}
[2021-11-08 13:51:56] mautic.CRITICAL: Uncaught PHP Exception Doctrine\DBAL\Exception\UniqueConstraintViolationException: “An exception occurred while executing ‘INSERT INTO lead_tags_xref (lead_id, tag_id) VALUES (?, ?)’ with params [“255040”, 4]: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry ‘255040-4’ for key ‘PRIMARY’” at /var/www/mautic/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/AbstractMySQLDriver.php line 74 {“exception”:"[object] (Doctrine\DBAL\Exception\UniqueConstraintViolationException(code: 0): An exception occurred while executing ‘INSERT INTO lead_tags_xref (lead_id, tag_id) VALUES (?, ?)’ with params [“255040”, 4]:\n\nSQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry ‘255040-4’ for key ‘PRIMARY’ at /var/www/mautic/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/AbstractMySQLDriver.php:74, Doctrine\DBAL\Driver\PDO\Exception(code: 23000): SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry ‘255040-4’ for key ‘PRIMARY’ at /var/www/mautic/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDO/Exception.php:18, PDOException(code: 23000): SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry ‘255040-4’ for key ‘PRIMARY’ at /var/www/mautic/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOStatement.php:112)"}
[2021-11-08 13:52:16] mautic.CRITICAL: Uncaught PHP Exception Doctrine\DBAL\Exception\UniqueConstraintViolationException: “An exception occurred while executing ‘INSERT INTO lead_tags_xref (lead_id, tag_id) VALUES (?, ?)’ with params [“187091”, 4]: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry ‘187091-4’ for key ‘PRIMARY’” at /var/www/mautic/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/AbstractMySQLDriver.php line 74 {“exception”:"[object] (Doctrine\DBAL\Exception\UniqueConstraintViolationException(code: 0): An exception occurred while executing ‘INSERT INTO lead_tags_xref (lead_id, tag_id) VALUES (?, ?)’ with params [“187091”, 4]:\n\nSQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry ‘187091-4’ for key ‘PRIMARY’ at /var/www/mautic/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/AbstractMySQLDriver.php:74, Doctrine\DBAL\Driver\PDO\Exception(code: 23000): SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry ‘187091-4’ for key ‘PRIMARY’ at /var/www/mautic/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDO/Exception.php:18, PDOException(code: 23000): SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry ‘187091-4’ for key ‘PRIMARY’ at /var/www/mautic/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOStatement.php:112)"}
This is all happening on Mautic 4.0.1