[2026-08-08T22:00:05.631402+00:00] mautic.ERROR: Doctrine\DBAL\Exception\ConnectionLost: An exception occurred while executing a query: SQLSTATE[HY000]: General error: 2006 MySQL server has gone away (uncaught exception) at /sites/mautic5/vendor/doctrine/dbal/src/Driver/API/MySQL/ExceptionConverter.php line 104 while running console command `mautic:segments:update` [stack trace] #0 /sites/mautic5/vendor/doctrine/dbal/src/Connection.php(1938): Doctrine\DBAL\Driver\API\MySQL\ExceptionConverter->convert() #1 /sites/mautic5/vendor/doctrine/dbal/src/Connection.php(1880): Doctrine\DBAL\Connection->handleDriverException() #2 /sites/mautic5/vendor/doctrine/dbal/src/Connection.php(1105): Doctrine\DBAL\Connection->convertExceptionDuringQuery() #3 /sites/mautic5/vendor/doctrine/dbal/src/Connection.php(621): Doctrine\DBAL\Connection->executeQuery() #4 /sites/mautic5/vendor/doctrine/dbal/src/Connection.php(261): Doctrine\DBAL\Connection->fetchOne() #5 /sites/mautic5/docroot/app/bundles/LeadBundle/Segment/TableSchemaColumnsCache.php(48): Doctrine\DBAL\Connection->getDatabase() #6 /sites/mautic5/docroot/app/bundles/LeadBundle/Segment/ContactSegmentFilter.php(45): Mautic\LeadBundle\Segment\TableSchemaColumnsCache->getCurrentDatabaseName() #7 /sites/mautic5/docroot/app/bundles/LeadBundle/Segment/Query/Filter/BaseFilterQueryBuilder.php(28): Mautic\LeadBundle\Segment\ContactSegmentFilter->getColumn() #8 /sites/mautic5/docroot/app/bundles/LeadBundle/Segment/ContactSegmentFilter.php(155): Mautic\LeadBundle\Segment\Query\Filter\BaseFilterQueryBuilder->applyQuery() #9 /sites/mautic5/docroot/app/bundles/LeadBundle/Segment/Query/ContactSegmentQueryBuilder.php(78): Mautic\LeadBundle\Segment\ContactSegmentFilter->applyQuery() #10 /sites/mautic5/docroot/app/bundles/LeadBundle/Segment/ContactSegmentService.php(200): Mautic\LeadBundle\Segment\Query\ContactSegmentQueryBuilder->assembleContactsSegmentQueryBuilder() #11 /sites/mautic5/docroot/app/bundles/LeadBundle/Segment/ContactSegmentService.php(42): Mautic\LeadBundle\Segment\ContactSegmentService->getNewSegmentContactsQuery() #12 /sites/mautic5/docroot/app/bundles/LeadBundle/Model/ListModel.php(331): Mautic\LeadBundle\Segment\ContactSegmentService->getNewLeadListLeadsCount() #13 /sites/mautic5/docroot/app/bundles/LeadBundle/Command/UpdateLeadListsCommand.php(145): Mautic\LeadBundle\Model\ListModel->rebuildListLeads() #14 /sites/mautic5/docroot/app/bundles/LeadBundle/Command/UpdateLeadListsCommand.php(120): Mautic\LeadBundle\Command\UpdateLeadListsCommand->rebuildSegment() #15 /sites/mautic5/vendor/symfony/console/Command/Command.php(298): Mautic\LeadBundle\Command\UpdateLeadListsCommand->execute() #16 /sites/mautic5/vendor/symfony/console/Application.php(1058): Symfony\Component\Console\Command\Command->run() #17 /sites/mautic5/vendor/symfony/framework-bundle/Console/Application.php(96): Symfony\Component\Console\Application->doRunCommand() #18 /sites/mautic5/vendor/symfony/console/Application.php(301): Symfony\Bundle\FrameworkBundle\Console\Application->doRunCommand() #19 /sites/mautic5/vendor/symfony/framework-bundle/Console/Application.php(82): Symfony\Component\Console\Application->doRun() #20 /sites/mautic5/vendor/symfony/console/Application.php(171): Symfony\Bundle\FrameworkBundle\Console\Application->doRun() #21 /sites/mautic5/bin/console(16): Symfony\Component\Console\Application->run() #22 {main} [] {"hostname":"ip-172-31-34-245","pid":542636} [2026-08-08T22:00:05.653445+00:00] mautic.WARNING: Command `mautic:segments:update` exited with status code 255 [] {"hostname":"ip-172-31-34-245","pid":542636} [2026-08-08T22:00:06.871407+00:00] mautic.WARNING: MaxMind license key is required. [] {"hostname":"ip-172-31-34-245","pid":542634} [2026-08-08T22:00:06.873469+00:00] mautic.ERROR: Failed to fetch remote IP data: Invalid or inactive MaxMind license key [] {"hostname":"ip-172-31-34-245","pid":542634} [2026-08-08T22:00:06.873621+00:00] mautic.WARNING: MaxMind license key is required. [] {"hostname":"ip-172-31-34-245","pid":542634} [2026-08-08T22:00:07.102004+00:00] mautic.ERROR: Doctrine\DBAL\Exception\ConnectionLost: An exception occurred while executing a query: SQLSTATE[HY000]: General error: 2006 MySQL server has gone away (uncaught exception) at /sites/mautic5/vendor/doctrine/dbal/src/Driver/API/MySQL/ExceptionConverter.php line 104 while running console command `mautic:import` [stack trace] #0 /sites/mautic5/vendor/doctrine/dbal/src/Connection.php(1938): Doctrine\DBAL\Driver\API\MySQL\ExceptionConverter->convert() #1 /sites/mautic5/vendor/doctrine/dbal/src/Connection.php(1880): Doctrine\DBAL\Connection->handleDriverException() #2 /sites/mautic5/vendor/doctrine/dbal/src/Connection.php(1105): Doctrine\DBAL\Connection->convertExceptionDuringQuery() #3 /sites/mautic5/vendor/doctrine/orm/src/Query/Exec/FinalizedSelectExecutor.php(31): Doctrine\DBAL\Connection->executeQuery() #4 /sites/mautic5/vendor/doctrine/orm/src/Query.php(330): Doctrine\ORM\Query\Exec\FinalizedSelectExecutor->execute() #5 /sites/mautic5/vendor/doctrine/orm/src/AbstractQuery.php(1218): Doctrine\ORM\Query->_doExecute() #6 /sites/mautic5/vendor/doctrine/orm/src/AbstractQuery.php(1172): Doctrine\ORM\AbstractQuery->executeIgnoreQueryCache() #7 /sites/mautic5/vendor/doctrine/orm/src/AbstractQuery.php(907): Doctrine\ORM\AbstractQuery->execute() #8 /sites/mautic5/docroot/app/bundles/LeadBundle/Entity/ImportRepository.php(54): Doctrine\ORM\AbstractQuery->getResult() #9 /sites/mautic5/docroot/app/bundles/LeadBundle/Model/ImportModel.php(70): Mautic\LeadBundle\Entity\ImportRepository->getImportsWithStatuses() #10 /sites/mautic5/docroot/app/bundles/LeadBundle/Command/ImportCommand.php(66): Mautic\LeadBundle\Model\ImportModel->getImportToProcess() #11 /sites/mautic5/vendor/symfony/console/Command/Command.php(298): Mautic\LeadBundle\Command\ImportCommand->execute() #12 /sites/mautic5/vendor/symfony/console/Application.php(1058): Symfony\Component\Console\Command\Command->run() #13 /sites/mautic5/vendor/symfony/framework-bundle/Console/Application.php(96): Symfony\Component\Console\Application->doRunCommand() #14 /sites/mautic5/vendor/symfony/console/Application.php(301): Symfony\Bundle\FrameworkBundle\Console\Application->doRunCommand() #15 /sites/mautic5/vendor/symfony/framework-bundle/Console/Application.php(82): Symfony\Component\Console\Application->doRun() #16 /sites/mautic5/vendor/symfony/console/Application.php(171): Symfony\Bundle\FrameworkBundle\Console\Application->doRun() #17 /sites/mautic5/bin/console(16): Symfony\Component\Console\Application->run() #18 {main} [] {"hostname":"ip-172-31-34-245","pid":542637} [2026-08-08T22:00:07.107118+00:00] mautic.WARNING: Command `mautic:import` exited with status code 255 [] {"hostname":"ip-172-31-34-245","pid":542637}