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