Warning: mysqli::query(): MySQL server has gone away in /home/bitrix/www/bitrix/modules/main/lib/db/mysqliconnection.php on line 129

Warning: mysqli::query(): Error reading result set's header in /home/bitrix/www/bitrix/modules/main/lib/db/mysqliconnection.php on line 129
При выполнении скрипта возникла ошибка. Включить расширенный вывод ошибок можно в файле настроек .settings.php
Warning: Error while sending QUERY packet. PID=4020 in /home/bitrix/www/bitrix/modules/main/lib/db/mysqliconnection.php on line 129

Fatal error: Uncaught Bitrix\Main\DB\SqlQueryException: Mysql query error: (2006) MySQL server has gone away in /home/bitrix/www/bitrix/modules/main/lib/db/mysqliconnection.php:137 Stack trace: #0 /home/bitrix/www/bitrix/modules/main/lib/db/mysqlcommonconnection.php(132): Bitrix\Main\DB\MysqliConnection->queryInternal('SELECT * FROM `...') #1 /home/bitrix/www/bitrix/modules/main/lib/db/connection.php(715): Bitrix\Main\DB\MysqlCommonConnection->getTableFields('b_sec_session') #2 /home/bitrix/www/bitrix/modules/main/lib/db/sqlhelper.php(387): Bitrix\Main\DB\Connection->getTableField('b_sec_session', 'SESSION_ID') #3 /home/bitrix/www/bitrix/modules/main/lib/entity/datamanager.php(904): Bitrix\Main\DB\SqlHelper->prepareAssignment('b_sec_session', 'SESSION_ID', '9P1G9p8ckLl0mZP...') #4 /home/bitrix/www/bitrix/modules/security/classes/general/session_db.php(92): Bitrix\Main\Entity\DataManager::delete(Array) #5 [internal function]: CSecuritySessionDB::write('9P1G9p8ckLl0mZP...', '') #6 [internal function]: session_write_close() in /home/bitrix/www/bitrix/modules/main/lib/db/mysqliconnection.php on line 137