Your software
My PHP version is : 7.4.15
*My MySQL/MariaDB version is MariaDB version
mysql Ver 15.1 Distrib 10.3.17-MariaDB, for Linux (x86_64) using readline 5.1
Updating/Installing Errors
I am Updating
Upgrading via Command Line:
php bin/console mautic:update:apply
php bin/console mautic:update:apply --finish
These errors are showing in the installer* :
An error occurred while updating the database. Check the logs for more information.
These errors are showing in the Mautic log* :
console.ERROR: Error thrown while running command “doctrine:migrations:migrate --quiet --no-interaction”. Message: “An exception occurred while executing ‘ALTER TABLE lead_lists ADD CONSTRAINT FK_6EC1522A12469DE2 FOREIGN KEY (category_id) REFERENCES categories (id) ON DELETE SET NULL’: SQLSTATE[HY000]: General error: 1005 Can’t create table mautic_servizivisionova_com.lead_lists (errno: 150 “Foreign key constraint is incorrectly formed”)” {“exception”:"[object] (Doctrine\DBAL\Exception\DriverException(code: 0): An exception occurred while executing ‘ALTER TABLE lead_lists ADD CONSTRAINT FK_6EC1522A12469DE2 FOREIGN KEY (category_id) REFERENCES categories (id) ON DELETE SET NULL’:\n\nSQLSTATE[HY000]: General error: 1005 Can’t create table mautic_servizivisionova_com.lead_lists (errno: 150 “Foreign key constraint is incorrectly formed”) at /var/www/mautic/mautic.servizivisionova.com/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/AbstractMySQLDriver.php:106, Doctrine\DBAL\Driver\PDOException(code: HY000): SQLSTATE[HY000]: General error: 1005 Can’t create table mautic_servizivisionova_com.lead_lists (errno: 150 “Foreign key constraint is incorrectly formed”) at /var/www/mautic/mautic.servizivisionova.com/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php:80, PDOException(code: HY000): SQLSTATE[HY000]: General error: 1005 Can’t create table mautic_servizivisionova_com.lead_lists (errno: 150 “Foreign key constraint is incorrectly formed”) at /var/www/mautic/mautic.servizivisionova.com/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php:75)",“command”:“doctrine:migrations:migrate --quiet --no-interaction”,“message”:“An exception occurred while executing ‘ALTER TABLE lead_lists ADD CONSTRAINT FK_6EC1522A12469DE2 FOREIGN KEY (category_id) REFERENCES categories (id) ON DELETE SET NULL’:\n\nSQLSTATE[HY000]: General error: 1005 Can’t create table mautic_servizivisionova_com.lead_lists (errno: 150 “Foreign key constraint is incorrectly formed”)”}
These errors are showing in the upgrade_log.txt file (located in the root of your Mautic instance when an upgrade has been attempted - ensure you remove or redact any sensitive data such as domain names in the file path) : no file upgrade_log.txt found
Your problem
My problem is :
Upgrade failed
Steps I have tried to fix the problem :
none
sadly. There is a thread on this in slack at the moment, so I am sure that there will be a new release coming in the next day or so.