# Log Errors

**URL:** <https://forum.mautic.org/t/log-errors/19744>\
**Category:** Product Support\
**Created:** [June 5, 2021, 9:31am UTC](https://forum.mautic.org/t/log-errors/19744 "2021-06-05T09:31:14Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![paul2000](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/paul2000/32/1165_2.png) [@paul2000](https://forum.mautic.org/u/paul2000)\
**Post date:** [June 5, 2021, 9:31am UTC](https://forum.mautic.org/t/log-errors/19744/1 "2021-06-05T09:31:14Z")

</div>

**Your software**  
My Mautic version is: 3.2.1  
My PHP version is: PHP Version 7.3.27-1~deb10u1  
My Database type and version is: Maria DB - sorry how do I find the version please?

**Your problem**  
As far as I can tell Mautic is working fine but I have the following errors in the log:

These errors are showing in the log:  
[2021-06-05 06:48:15] mautic.CRITICAL: Uncaught PHP Exception Doctrine\DBAL\Exception\DeadlockException: “An exception occurred while executing ‘UPDATE leads SET date\_modified = ?, last\_active = ? WHERE id = ?’ with params [“2021-06-05 06:48:15”, “2021-06-05 06:48:15”, “16480”]: SQLSTATE[40001]: Serialization failure: 1213 Deadlock found when trying to get lock; try restarting transaction” at /var/www/html/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/AbstractMySQLDriver.php line 34 {“exception”:"[object] (Doctrine\DBAL\Exception\DeadlockException(code: 0): An exception occurred while executing ‘UPDATE leads SET date\_modified = ?, last\_active = ? WHERE id = ?’ with params [“2021-06-05 06:48:15”, “2021-06-05 06:48:15”, “16480”]:\n\nSQLSTATE[40001]: Serialization failure: 1213 Deadlock found when trying to get lock; try restarting transaction at /var/www/html/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/AbstractMySQLDriver.php:34, Doctrine\DBAL\Driver\PDOException(code: 40001): SQLSTATE[40001]: Serialization failure: 1213 Deadlock found when trying to get lock; try restarting transaction at /var/www/html/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOStatement.php:123, PDOException(code: 40001): SQLSTATE[40001]: Serialization failure: 1213 Deadlock found when trying to get lock; try restarting transaction at /var/www/html/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOStatement.php:121)"}   
[2021-06-05 06:54:23] mautic.CRITICAL: Uncaught PHP Exception Doctrine\DBAL\Exception\DeadlockException: “An exception occurred while executing ‘UPDATE leads SET date\_modified = ?, last\_active = ? WHERE id = ?’ with params [“2021-06-05 06:54:23”, “2021-06-05 06:54:23”, “51073”]: SQLSTATE[40001]: Serialization failure: 1213 Deadlock found when trying to get lock; try restarting transaction” at /var/www/html/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/AbstractMySQLDriver.php line 34 {“exception”:"[object] (Doctrine\DBAL\Exception\DeadlockException(code: 0): An exception occurred while executing ‘UPDATE leads SET date\_modified = ?, last\_active = ? WHERE id = ?’ with params [“2021-06-05 06:54:23”, “2021-06-05 06:54:23”, “51073”]:\n\nSQLSTATE[40001]: Serialization failure: 1213 Deadlock found when trying to get lock; try restarting transaction at /var/www/html/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/AbstractMySQLDriver.php:34, Doctrine\DBAL\Driver\PDOException(code: 40001): SQLSTATE[40001]: Serialization failure: 1213 Deadlock found when trying to get lock; try restarting transaction at /var/www/html/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOStatement.php:123, PDOException(code: 40001): SQLSTATE[40001]: Serialization failure: 1213 Deadlock found when trying to get lock; try restarting transaction at /var/www/html/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOStatement.php:121)"}   
[2021-06-05 08:54:52] mautic.NOTICE: PHP Notice - Undefined index: ct - in file /var/www/html/app/bundles/PageBundle/Controller/PublicController.php - at line 451 {“redirectId”:“32b7886531d567fc6f6e7318b”,“logger”:"[object] (Symfony\Bridge\Monolog\Logger: {})",“redirectModel”:"[object] (Mautic\PageBundle\Model\RedirectModel: {})",“redirect”:"[object] (Mautic\PageBundle\Entity\Redirect: Mautic\PageBundle\Entity\Redirect with ID #608)",“url”:“[Property To Let In Northwood Road, Whitstable £575 Pcm | David Clarke Estate Agents](https://www.davidclarke.co.uk/property/northwood-road-whitstable/?department=residential-lettings%22,%22query)”:}   
[2021-06-05 10:03:15] mautic.WARNING: PHP Warning - file\_put\_contents(/var/www/html/var/cache/prod/lastUpdateCheck.txt): failed to open stream: Permission denied - in file /var/www/html/app/bundles/CoreBundle/Helper/UpdateHelper.php - at line 197 {“overrideCache”:false,“cacheFile”:"/var/www/html/var/cache/prod/lastUpdateCheck.txt",“updateStability”:“stable”,“release”:"[object] (Mautic\CoreBundle\Helper\Update\Github\Release: {})",“data”:{“error”:false,“message”:“mautic.core.updater.update.available”,“version”:“3.3.3”,“announcement”:“[https://github.com/mautic/mautic/releases/tag/3.3.3",“package”:“https://github.com/mautic/mautic/releases/download/3.3.3/3.3.3-update.zip”,“stability”:“stable”,"checkedTime](https://github.com/mautic/mautic/releases/tag/3.3.3%22,%22package%22:%22https://github.com/mautic/mautic/releases/download/3.3.3/3.3.3-update.zip%22,%22stability%22:%22stable%22,%22checkedTime)”:1622883795}}

Steps I have tried to fix the problem: Nothing as I have not found what this error is causing.

Please can someone suggest what the issue is and how to fix.

Thank you!

Paul

---

<div class="post-metadata">

**Author:** ![EJL](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/ejl/32/12155_2.png) [@EJL](https://forum.mautic.org/u/EJL)\
**Post date:** [June 7, 2021, 4:11pm UTC](https://forum.mautic.org/t/log-errors/19744/2 "2021-06-07T16:11:00Z")

</div>

This is an indication that mautic was trying to access an item in your database that was already in use by another process. Generally it will execute on the next cron job. Not a big worry unless it is preventing critical campaign functions from running. In that case adjust your cron timing.

---

<div class="post-metadata">

**Author:** ![paul2000](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/paul2000/32/1165_2.png) [@paul2000](https://forum.mautic.org/u/paul2000)\
**Post date:** [June 8, 2021, 7:00am UTC](https://forum.mautic.org/t/log-errors/19744/3 "2021-06-08T07:00:36Z")

</div>

Thanks very much EJL. It’s good to know.
