# Mautic general error 1467 failed to read auto-increment value from storage engine

**URL:** <https://forum.mautic.org/t/mautic-general-error-1467-failed-to-read-auto-increment-value-from-storage-engine/20861>\
**Category:** Product Support\
**Created:** [September 14, 2021, 7:18am UTC](https://forum.mautic.org/t/mautic-general-error-1467-failed-to-read-auto-increment-value-from-storage-engine/20861 "2021-09-14T07:18:19Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![shyamalm](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/shyamalm/32/1394_2.png) [@shyamalm](https://forum.mautic.org/u/shyamalm)\
**Post date:** [September 14, 2021, 7:18am UTC](https://forum.mautic.org/t/mautic-general-error-1467-failed-to-read-auto-increment-value-from-storage-engine/20861/1 "2021-09-14T07:18:19Z")

</div>

**Your software**  
My Mautic version is:4.0  
My PHP version is:7.4  
My Database type and version is: MariaDB 10.3

**Your problem**  
My problem is: email queue not working and email unable to send but normal email process is working fine.

These errors are showing in the log:  
Error 1 :

[2021-09-13 09:37:05] mautic.CRITICAL: Uncaught PHP Exception Doctrine\DBAL\Exception\DriverException: “An exception occurred while executing ‘INSERT INTO dsijemail\_stats (email\_address, date\_sent, is\_read, is\_failed, viewed\_in\_browser, date\_read, tracking\_hash, retry\_count, source, source\_id, tokens, open\_count, last\_opened, open\_details, email\_id, lead\_id, list\_id, ip\_id, copy\_id) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)’ with params [“a\_DSIJOnlineSubs@dsij.in”, “2021-09-13 09:37:05”, 0, 0, 0, null, “613f1bc19ec08660772051”, 0, “email”, 1, “a:14:{s:36:”{dynamiccontent=“Dynamic Content 1”}”;s:23:“Default Dynamic Content”;s:18:"{unsubscribe\_text}";s:125:"](file:///%22https://////mauto.dsij.in///email///view///613f19ab3b0e4824727059///%22)[Unsubscribe\</a\> to no longer receive emails from us.";s:17:"{unsubscribe\_url}";s:62:“https://mauto.dsij.in/email/unsubscribe/613f1bc19ec08660772051”;s:14:"{webview\_text}";s:116:"](https://mauto.dsij.in/%22https:////mauto.dsij.in//email//unsubscribe//613f1bc19ec08660772051/%22)[Having trouble reading this email? Click here.\</a\>";s:13:"{webview\_url}";s:55:“[https://mauto.dsij.in/email/view/613f1bc19ec08660772051";s:11:"{signature}";s:27:"Best](https://mauto.dsij.in/email/view/613f1bc19ec08660772051%22;s:11:%22%7Bsignature%7D%22;s:27:%22Best) regards, rajesh padode”;s:9:"{subject}";s:9:“Amar Test”;s:18:"{ownerfield=email}";s:15:“rajeshp@dsij.in”;s:22:"{ownerfield=firstname}";s:6:“rajesh”;s:21:"{ownerfield=lastname}";s:6:“padode”;s:21:"{ownerfield=position}";s:0:"";s:22:"{ownerfield=signature}";s:0:"";s:37:"{trackable=8b20c86cd559744e0b69b087d}";s:270:“[Subscribe To Flash News Investment Newsletter](https://mauto.dsij.in/r/8b20c86cd559744e0b69b087d?ct=YTo1OntzOjY6InNvdXJjZSI7YToyOntpOjA7czo1OiJlbWFpbCI7aToxO2k6MTt9czo1OiJlbWFpbCI7aToxO3M6NDoic3RhdCI7czoyMjoiNjEzZjFiYzE5ZWMwODY2MDc3MjA1MSI7czo0OiJsZWFkIjtzOjI6IjE4IjtzOjc6ImNoYW5uZWwiO2E6MTp7czo1OiJlbWFpbCI7aToxO319&%22;s:16:%22%7Btracking_pixel%7D%22;s:54:%22https://mauto.dsij.in/email/613f1bc19ec08660772051.gif%22;%7D%22), 0, null, “a:0:{}”, 1, “18”, 2, null, “bd6253650515948a01b49ffb28a0f9aa”]: SQLSTATE[HY000]: General error: 1467 Failed to read auto-increment value from storage engine” at /var/www/html/mautic/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/AbstractMySQLDriver.php line 128 {“exception”:"[object] (Doctrine\DBAL\Exception\DriverException(code: 0): An exception occurred while executing ‘INSERT INTO dsijemail\_stats (email\_address, date\_sent, is\_read, is\_failed, viewed\_in\_browser, date\_read, tracking\_hash, retry\_count, source, source\_id, tokens, open\_count, last\_opened, open\_details, email\_id, lead\_id, list\_id, ip\_id, copy\_id) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)’ with params [“a\_DSIJOnlineSubs@dsij.in”, “2021-09-13 09:37:05”, 0, 0, 0, null, “613f1bc19ec08660772051”, 0, “email”, 1, “a:14:{s:36:\”{dynamiccontent=\“Dynamic Content 1\”}\";s:23:\“Default Dynamic Content\”;s:18:\"{unsubscribe\_text}\";s:125:\"](https://mauto.dsij.in/%22https:////mauto.dsij.in//email//view//613f1bc19ec08660772051/%22)[Unsubscribe\<\/a\> to no longer receive emails from us.\";s:17:\"{unsubscribe\_url}\";s:62:\“https:\/\/mauto.dsij.in\/email\/unsubscribe\/613f1bc19ec08660772051\”;s:14:\"{webview\_text}\";s:116:\"](file:///%22https://////mauto.dsij.in///email///unsubscribe///613f1bc19ec08660772051///%22)[Having trouble reading this email? Click here.\<\/a\>\";s:13:\"{webview\_url}\";s:55:\“https:\/\/mauto.dsij.in\/email\/view\/613f1bc19ec08660772051\”;s:11:\"{signature}\";s:27:\“Best regards, rajesh padode\”;s:9:\"{subject}\";s:9:\“Amar Test\”;s:18:\"{ownerfield=email}\";s:15:\“rajeshp@dsij.in\”;s:22:\"{ownerfield=firstname}\";s:6:\“rajesh\”;s:21:\"{ownerfield=lastname}\";s:6:\“padode\”;s:21:\"{ownerfield=position}\";s:0:\"\";s:22:\"{ownerfield=signature}\";s:0:\"\";s:37:\"{trackable=8b20c86cd559744e0b69b087d}\";s:270:\“https:\/\/mauto.dsij.in\/r\/8b20c86cd559744e0b69b087d?ct=YTo1OntzOjY6InNvdXJjZSI7YToyOntpOjA7czo1OiJlbWFpbCI7aToxO2k6MTt9czo1OiJlbWFpbCI7aToxO3M6NDoic3RhdCI7czoyMjoiNjEzZjFiYzE5ZWMwODY2MDc3MjA1MSI7czo0OiJsZWFkIjtzOjI6IjE4IjtzOjc6ImNoYW5uZWwiO2E6MTp7czo1OiJlbWFpbCI7aToxO319&\”;s:16:\"{tracking\_pixel}\";s:54:\“https:\/\/mauto.dsij.in\/email\/613f1bc19ec08660772051.gif\”;}", 0, null, “a:0:{}”, 1, “18”, 2, null, “bd6253650515948a01b49ffb28a0f9aa”]:\n\nSQLSTATE[HY000]: General error: 1467 Failed to read auto-increment value from storage engine at /var/www/html/mautic/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/AbstractMySQLDriver.php:128, Doctrine\DBAL\Driver\PDO\Exception(code: HY000): SQLSTATE[HY000]: General error: 1467 Failed to read auto-increment value from storage engine at /var/www/html/mautic/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDO/Exception.php:18, PDOException(code: HY000): SQLSTATE[HY000]: General error: 1467 Failed to read auto-increment value from storage engine at /var/www/html/mautic/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOStatement.php:112)"}

Error 2 :

[2021-09-13 09:59:27] mautic.CRITICAL: Uncaught PHP Exception Doctrine\DBAL\Exception\DriverException: “An exception occurred while executing ‘INSERT INTO dsijemail\_stats (email\_address, date\_sent, is\_read, is\_failed, viewed\_in\_browser, date\_read, tracking\_hash, retry\_count, source, source\_id, tokens, open\_count, last\_opened, open\_details, email\_id, lead\_id, list\_id, ip\_id, copy\_id) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)’ with params [“shyamalm@dsij.in”, “2021-09-13 09:59:27”, 0, 0, 0, null, “613f20ff6a709978477841”, 0, “email”, 4, “a:13:{s:36:”{dynamiccontent=“Dynamic Content 1”}”;s:23:“Default Dynamic Content”;s:18:"{unsubscribe\_text}";s:125:"](file:///%22https://////mauto.dsij.in///email///view///613f1bc19ec08660772051///%22)[Unsubscribe\</a\> to no longer receive emails from us.";s:17:"{unsubscribe\_url}";s:62:“https://mauto.dsij.in/email/unsubscribe/613f20ff6a709978477841”;s:14:"{webview\_text}";s:116:"](https://mauto.dsij.in/%22https:////mauto.dsij.in//email//unsubscribe//613f20ff6a709978477841/%22)[Having trouble reading this email? Click here.\</a\>";s:13:"{webview\_url}";s:55:“[https://mauto.dsij.in/email/view/613f20ff6a709978477841";s:11:"{signature}";s:27:"Best](https://mauto.dsij.in/email/view/613f20ff6a709978477841%22;s:11:%22%7Bsignature%7D%22;s:27:%22Best) regards, rajesh padode”;s:9:"{subject}";s:7:“Testing”;s:18:"{ownerfield=email}";s:15:“rajeshp@dsij.in”;s:22:"{ownerfield=firstname}";s:6:“rajesh”;s:21:"{ownerfield=lastname}";s:6:“padode”;s:21:"{ownerfield=position}";s:0:"";s:22:"{ownerfield=signature}";s:0:"";s:16:"{tracking\_pixel}";s:54:“[https://mauto.dsij.in/email/613f20ff6a709978477841.gif";}"](https://mauto.dsij.in/email/613f20ff6a709978477841.gif%22;%7D%22), 0, null, “a:0:{}”, 4, “2”, 21, null, “5bab6213a0607033d404e8f819a2774a”]: SQLSTATE[HY000]: General error: 1467 Failed to read auto-increment value from storage engine” at /var/www/html/mautic/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/AbstractMySQLDriver.php line 128 {“exception”:"[object] (Doctrine\DBAL\Exception\DriverException(code: 0): An exception occurred while executing ‘INSERT INTO dsijemail\_stats (email\_address, date\_sent, is\_read, is\_failed, viewed\_in\_browser, date\_read, tracking\_hash, retry\_count, source, source\_id, tokens, open\_count, last\_opened, open\_details, email\_id, lead\_id, list\_id, ip\_id, copy\_id) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)’ with params [“shyamalm@dsij.in”, “2021-09-13 09:59:27”, 0, 0, 0, null, “613f20ff6a709978477841”, 0, “email”, 4, “a:13:{s:36:\”{dynamiccontent=\“Dynamic Content 1\”}\";s:23:\“Default Dynamic Content\”;s:18:\"{unsubscribe\_text}\";s:125:\"](https://mauto.dsij.in/%22https:////mauto.dsij.in//email//view//613f20ff6a709978477841/%22)[Unsubscribe\<\/a\> to no longer receive emails from us.\";s:17:\"{unsubscribe\_url}\";s:62:\“https:\/\/mauto.dsij.in\/email\/unsubscribe\/613f20ff6a709978477841\”;s:14:\"{webview\_text}\";s:116:\"](file:///%22https://////mauto.dsij.in///email///unsubscribe///613f20ff6a709978477841///%22)[Having trouble reading this email? Click here.\<\/a\>\";s:13:\"{webview\_url}\";s:55:\“https:\/\/mauto.dsij.in\/email\/view\/613f20ff6a709978477841\”;s:11:\"{signature}\";s:27:\“Best regards, rajesh padode\”;s:9:\"{subject}\";s:7:\“Testing\”;s:18:\"{ownerfield=email}\";s:15:\“rajeshp@dsij.in\”;s:22:\"{ownerfield=firstname}\";s:6:\“rajesh\”;s:21:\"{ownerfield=lastname}\";s:6:\“padode\”;s:21:\"{ownerfield=position}\";s:0:\"\";s:22:\"{ownerfield=signature}\";s:0:\"\";s:16:\"{tracking\_pixel}\";s:54:\“https:\/\/mauto.dsij.in\/email\/613f20ff6a709978477841.gif\”;}", 0, null, “a:0:{}”, 4, “2”, 21, null, “5bab6213a0607033d404e8f819a2774a”]:\n\nSQLSTATE[HY000]: General error: 1467 Failed to read auto-increment value from storage engine at /var/www/html/mautic/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/AbstractMySQLDriver.php:128, Doctrine\DBAL\Driver\PDO\Exception(code: HY000): SQLSTATE[HY000]: General error: 1467 Failed to read auto-increment value from storage engine at /var/www/html/mautic/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDO/Exception.php:18, PDOException(code: HY000): SQLSTATE[HY000]: General error: 1467 Failed to read auto-increment value from storage engine at /var/www/html/mautic/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOStatement.php:112)"} ](file:///%22https://////mauto.dsij.in///email///view///613f20ff6a709978477841///%22)

Steps I have tried to fix the problem: no idea what to do.

---

<div class="post-metadata">

**Author:** ![mrfromgermany](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/mrfromgermany/32/433_2.png) [@mrfromgermany](https://forum.mautic.org/u/mrfromgermany)\
**Post date:** [February 14, 2022, 9:04pm UTC](https://forum.mautic.org/t/mautic-general-error-1467-failed-to-read-auto-increment-value-from-storage-engine/20861/2 "2022-02-14T21:04:21Z")

</div>

Hi, i had the same error message “General error: 1467 Failed to read auto-increment value from storage engine …” at a mautic v4.1.1 install with php 7.4. In my case with this error i was not able to create new contacts.

I was able to fix the problem with following mysql-command:

```auto
ALTER TABLE`leads`AUTO_INCREMENT =1;

```

---

<div class="post-metadata">

**Author:** ![hugronaphor](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/hugronaphor/32/8975_2.png) [@hugronaphor](https://forum.mautic.org/u/hugronaphor)\
**Post date:** [January 27, 2023, 7:08pm UTC](https://forum.mautic.org/t/mautic-general-error-1467-failed-to-read-auto-increment-value-from-storage-engine/20861/3 "2023-01-27T19:08:59Z")

</div>

This sorts the issue for me temporarily but every other day it starts happening again and always have to run the command again ☹

---

<div class="post-metadata">

**Author:** ![rahul.shinde](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/rahul.shinde/32/10438_2.png) [@rahul.shinde](https://forum.mautic.org/u/rahul.shinde)\
**Post date:** [September 1, 2023, 5:39am UTC](https://forum.mautic.org/t/mautic-general-error-1467-failed-to-read-auto-increment-value-from-storage-engine/20861/4 "2023-09-01T05:39:02Z")

</div>

The following query does fix it for me,

```sql
ALTER TABLE email_stats CHANGE id id BIGINT(20) UNSIGNED NOT NULL AUTO_INCREMENT;

```

---

<div class="post-metadata">

**Author:** ![CarlJohan](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/carljohan/32/7016_2.png) [@CarlJohan](https://forum.mautic.org/u/CarlJohan)\
**Post date:** [January 25, 2024, 7:35pm UTC](https://forum.mautic.org/t/mautic-general-error-1467-failed-to-read-auto-increment-value-from-storage-engine/20861/5 "2024-01-25T19:35:42Z")

</div>

Hi all, got a question about this.

Does someone have a permanent solution to this?

---

<div class="post-metadata">

**Author:** ![joeyk](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/joeyk/32/11164_2.png) [@joeyk](https://forum.mautic.org/u/joeyk)\
**Post date:** [January 25, 2024, 7:46pm UTC](https://forum.mautic.org/t/mautic-general-error-1467-failed-to-read-auto-increment-value-from-storage-engine/20861/6 "2024-01-25T19:46:59Z")

</div>

Did you delete anything from Mautic cia Mysql?

---

<div class="post-metadata">

**Author:** ![CarlJohan](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/carljohan/32/7016_2.png) [@CarlJohan](https://forum.mautic.org/u/CarlJohan)\
**Post date:** [January 25, 2024, 8:02pm UTC](https://forum.mautic.org/t/mautic-general-error-1467-failed-to-read-auto-increment-value-from-storage-engine/20861/7 "2024-01-25T20:02:29Z")

</div>

No.  
Rhe “ALTER TABLE email\_stats AUTO\_INCREMENT =1” fixes the error for me, but there has to be a way to avoid this error altogether.

---

<div class="post-metadata">

**Author:** ![mzagmajster](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/mzagmajster/32/687_2.png) [@mzagmajster](https://forum.mautic.org/u/mzagmajster)\
**Post date:** [January 25, 2024, 8:49pm UTC](https://forum.mautic.org/t/mautic-general-error-1467-failed-to-read-auto-increment-value-from-storage-engine/20861/8 "2024-01-25T20:49:18Z")

</div>

Not that I am aware of, but you make a good point, we should look into permanent solution for this.

---

<div class="post-metadata">

**Author:** ![cstuder](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/cstuder/32/13566_2.png) [@cstuder](https://forum.mautic.org/u/cstuder)\
**Post date:** [February 19, 2025, 2:59pm UTC](https://forum.mautic.org/t/mautic-general-error-1467-failed-to-read-auto-increment-value-from-storage-engine/20861/9 "2025-02-19T14:59:42Z")

</div>

Just had the same thing happening to me out of the blue: Using the local DDEV environment, developing a local plugin. No database manipulations.

The only thing I could imagine having an effect: I might have killed a xdebug session in the middle of a request. But still, my code didn’t do any DB manipulations other than inserting and updating entities via ORM.
