# Error when updating to 4.4.7

**URL:** <https://forum.mautic.org/t/error-when-updating-to-4-4-7/27653>\
**Category:** Mautic 4 Install/Upgrade Support\
**Created:** [April 7, 2023, 7:09pm UTC](https://forum.mautic.org/t/error-when-updating-to-4-4-7/27653 "2023-04-07T19:09:50Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mneumann](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/mneumann/32/2512_2.png) [@mneumann](https://forum.mautic.org/u/mneumann)\
**Post date:** [April 7, 2023, 7:09pm UTC](https://forum.mautic.org/t/error-when-updating-to-4-4-7/27653/1 "2023-04-07T19:09:50Z")

</div>

**Your software** Mautic 4.4.7  
_My PHP version is_ : 7.4.33  
_My MySQL_ (delete as applicable): Percona 8.0

**Updating/Installing Errors**  
_I am_ (delete as applicable): Updating  
_Upgrading/installing via_ (delete as applicable) : Command Line

_These errors are showing in the installer_ :  
When running --finish I get the error:  
An error occurred while updating the database. Check log for more details.

_These errors are showing in the Mautic log_ :  
[2023-04-07 18:00:16] mautic.NOTICE: Doctrine\DBAL\Exception\DriverException: An exception occurred while executing ‘CREATE INDEX dnc\_channel\_id\_search ON lead\_donotcontact (channel\_id)’: SQLSTATE[42000]: Syntax error or access violation: 1061 Duplicate key name ‘dnc\_channel\_id\_search’ (uncaught exception) at /var/www/html/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/AbstractMySQLDriver.php line 128 while running console command doctrine:migrations:migrate {“hostname”:“mautica9nsj0h”,“pid”:450946}  
[2023-04-07 18:00:16] mautic.WARNING: Command doctrine:migrations:migrate exited with status code 1 {“hostname”:“mautica9nsj0h”,“pid”:450946}  
[2023-04-07 18:00:16] mautic.WARNING: Command mautic:update:apply exited with status code 1 {“hostname”:“mautica9nsj0h”,“pid”:450946}

**Your problem**  
_My problem is_ : Getting stuck in the database update
