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