[Bitrix\Main\DB\SqlQueryException] 
Mysql query error: (2006) MySQL server has gone away (400)
SELECT 
	`messageservice_internal_entity_message`.`ID` AS `ID`
FROM `b_messageservice_message` `messageservice_internal_entity_message` 

WHERE `messageservice_internal_entity_message`.`SUCCESS_EXEC` = 'N'
AND (
	`messageservice_internal_entity_message`.`NEXT_EXEC` < '2024-12-05 05:45:05'
	OR (`messageservice_internal_entity_message`.`NEXT_EXEC` IS NULL)
)
LIMIT 0, 1

/home/bitrix/www/bitrix/modules/main/lib/db/mysqliconnection.php:149
#0: Bitrix\Main\DB\MysqliConnection->queryInternal
	/home/bitrix/www/bitrix/modules/main/lib/db/connection.php:331
#1: Bitrix\Main\DB\Connection->query
	/home/bitrix/www/bitrix/modules/main/lib/orm/query/query.php:3590
#2: Bitrix\Main\ORM\Query\Query->query
	/home/bitrix/www/bitrix/modules/main/lib/orm/query/query.php:972
#3: Bitrix\Main\ORM\Query\Query->exec
	/home/bitrix/www/bitrix/modules/main/lib/orm/data/datamanager.php:499
#4: Bitrix\Main\ORM\Data\DataManager::getList
	/home/bitrix/www/bitrix/modules/messageservice/lib/queue.php:42
#5: Bitrix\MessageService\Queue::hasMessages
	/home/bitrix/www/bitrix/modules/messageservice/lib/queue.php:65
#6: Bitrix\MessageService\Queue::run
	/home/bitrix/www/bitrix/modules/main/tools.php:5253
#7: ExecuteModuleEventEx
	/home/bitrix/www/bitrix/modules/main/classes/general/main.php:3742
#8: CAllMain::RunFinalActionsInternal
	/home/bitrix/www/bitrix/modules/main/lib/application.php:368
#9: Bitrix\Main\Application->terminate
	/home/bitrix/www/bitrix/modules/main/lib/application.php:329
#10: Bitrix\Main\Application->end
	/home/bitrix/www/bitrix/modules/main/classes/general/main.php:3708
#11: CAllMain::FinalActions
	/home/bitrix/www/bitrix/modules/main/include/epilog_after.php:61
#12: require(string)
	/home/bitrix/www/bitrix/modules/main/include/epilog.php:3
#13: require_once(string)
	/home/bitrix/www/bitrix/footer.php:4
#14: require(string)
	/home/bitrix/www/catalog/index.php:878
#15: include_once(string)
	/home/bitrix/www/bitrix/modules/main/include/urlrewrite.php:128
#16: include_once(string)
	/home/bitrix/www/bitrix/urlrewrite.php:2
----------