[Bitrix\Main\DB\SqlQueryException] 
Mysql query error: (2006) MySQL server has gone away (400)
SELECT 
	`main_file`.`ID` AS `ID`,
	`main_file`.`TIMESTAMP_X` AS `TIMESTAMP_X`,
	`main_file`.`MODULE_ID` AS `MODULE_ID`,
	`main_file`.`HEIGHT` AS `HEIGHT`,
	`main_file`.`WIDTH` AS `WIDTH`,
	`main_file`.`FILE_SIZE` AS `FILE_SIZE`,
	`main_file`.`CONTENT_TYPE` AS `CONTENT_TYPE`,
	`main_file`.`SUBDIR` AS `SUBDIR`,
	`main_file`.`FILE_NAME` AS `FILE_NAME`,
	`main_file`.`ORIGINAL_NAME` AS `ORIGINAL_NAME`,
	`main_file`.`DESCRIPTION` AS `DESCRIPTION`,
	`main_file`.`HANDLER_ID` AS `HANDLER_ID`,
	`main_file`.`EXTERNAL_ID` AS `EXTERNAL_ID`
FROM `b_file` `main_file` 

WHERE `main_file`.`ID` >= 503350
AND `main_file`.`ID` <= 503359
/var/www/sveterra.ru/bitrix/modules/main/lib/db/mysqliconnection.php:137
#0: Bitrix\Main\DB\MysqliConnection->queryInternal(string, array, NULL)
	/var/www/sveterra.ru/bitrix/modules/main/lib/db/connection.php:330
#1: Bitrix\Main\DB\Connection->query(string)
	/var/www/sveterra.ru/bitrix/modules/main/lib/orm/query/query.php:3357
#2: Bitrix\Main\ORM\Query\Query->query(string)
	/var/www/sveterra.ru/bitrix/modules/main/lib/orm/query/query.php:825
#3: Bitrix\Main\ORM\Query\Query->exec()
	/var/www/sveterra.ru/bitrix/modules/main/lib/orm/data/datamanager.php:500
#4: Bitrix\Main\ORM\Data\DataManager::getList(array)
	/var/www/sveterra.ru/bitrix/modules/main/classes/general/file.php:492
#5: CAllFile::GetFromCache(string)
	/var/www/sveterra.ru/bitrix/modules/main/classes/general/file.php:664
#6: CAllFile::GetFileArray(string)
	/var/www/sveterra.ru/bitrix/modules/main/classes/general/file.php:1615
#7: CAllFile::ResizeImageGet(string, array, integer, boolean, boolean, boolean, string)
	/var/www/sveterra.ru/bitrix/components/dresscode/catalog.item/component.php:437
#8: include(string)
	/var/www/sveterra.ru/bitrix/modules/main/classes/general/component.php:605
#9: CBitrixComponent->__includeComponent()
	/var/www/sveterra.ru/bitrix/modules/main/classes/general/component.php:680
#10: CBitrixComponent->includeComponent(string, array, boolean, boolean)
	/var/www/sveterra.ru/bitrix/modules/main/classes/general/main.php:1039
#11: CAllMain->IncludeComponent(string, string, array, boolean, array)
	/var/www/sveterra.ru/bitrix/templates/dresscodeV2/components/dresscode/catalog/custom/element.php:148
#12: include(string)
	/var/www/sveterra.ru/bitrix/modules/main/classes/general/component_template.php:789
#13: CBitrixComponentTemplate->__IncludePHPTemplate(array, array, string)
	/var/www/sveterra.ru/bitrix/modules/main/classes/general/component_template.php:884
#14: CBitrixComponentTemplate->IncludeTemplate(array)
	/var/www/sveterra.ru/bitrix/modules/main/classes/general/component.php:764
#15: CBitrixComponent->showComponentTemplate()
	/var/www/sveterra.ru/bitrix/modules/main/classes/general/component.php:712
#16: CBitrixComponent->includeComponentTemplate(string)
	/var/www/sveterra.ru/bitrix/components/dresscode/catalog/component.php:182
#17: include(string)
	/var/www/sveterra.ru/bitrix/modules/main/classes/general/component.php:605
#18: CBitrixComponent->__includeComponent()
	/var/www/sveterra.ru/bitrix/modules/main/classes/general/component.php:680
#19: CBitrixComponent->includeComponent(string, array, boolean, boolean)
	/var/www/sveterra.ru/bitrix/modules/main/classes/general/main.php:1039
#20: CAllMain->IncludeComponent(string, string, array, boolean)
	/var/www/sveterra.ru/catalog/index.php:634
#21: include_once(string)
	/var/www/sveterra.ru/bitrix/modules/main/include/urlrewrite.php:159
#22: include_once(string)
	/var/www/sveterra.ru/bitrix/urlrewrite.php:2

Fatal error: Uncaught Bitrix\Main\DB\SqlQueryException: Mysql query error: (2006) MySQL server has gone away in /var/www/sveterra.ru/bitrix/modules/main/lib/db/mysqliconnection.php:137 Stack trace: #0 /var/www/sveterra.ru/bitrix/modules/main/lib/db/connection.php(330): Bitrix\Main\DB\MysqliConnection->queryInternal('SELECT \n\t`main_...', Array, NULL) #1 /var/www/sveterra.ru/bitrix/modules/main/lib/orm/query/query.php(3357): Bitrix\Main\DB\Connection->query('SELECT \n\t`main_...') #2 /var/www/sveterra.ru/bitrix/modules/main/lib/orm/query/query.php(825): Bitrix\Main\ORM\Query\Query->query('SELECT \n\t`main_...') #3 /var/www/sveterra.ru/bitrix/modules/main/lib/orm/data/datamanager.php(500): Bitrix\Main\ORM\Query\Query->exec() #4 /var/www/sveterra.ru/bitrix/modules/main/lib/analytics/sitespeed.php(95): Bitrix\Main\ORM\Data\DataManager::getList(Array) #5 /var/www/sveterra.ru/bitrix/modules/main/lib/analytics/counter.php(92): Bitrix\Main\Analytics\SiteSpeed::isIntranetSite('s2') #6 /var/www/sveterra.ru/bitrix/modules/main/clas in /var/www/sveterra.ru/bitrix/modules/main/lib/db/mysqliconnection.php on line 137

Fatal error: Uncaught Bitrix\Main\DB\SqlQueryException: Mysql query error: (2006) MySQL server has gone away in /var/www/sveterra.ru/bitrix/modules/main/lib/db/mysqliconnection.php:137 Stack trace: #0 /var/www/sveterra.ru/bitrix/modules/main/lib/db/connection.php(330): Bitrix\Main\DB\MysqliConnection->queryInternal('DELETE FROM `b_...', Array, NULL) #1 /var/www/sveterra.ru/bitrix/modules/main/lib/db/connection.php(379): Bitrix\Main\DB\Connection->query('DELETE FROM `b_...', NULL) #2 /var/www/sveterra.ru/bitrix/modules/main/lib/orm/data/datamanager.php(1624): Bitrix\Main\DB\Connection->queryExecute('DELETE FROM `b_...') #3 /var/www/sveterra.ru/bitrix/modules/security/classes/general/session_db.php(100): Bitrix\Main\ORM\Data\DataManager::delete(Array) #4 /var/www/sveterra.ru/bitrix/modules/security/classes/general/session_handler.php(28): CSecuritySessionDB::write('sUL2mcrBQRxUSvg...', 'SESS_AUTH|a:1:{...') #5 [internal function]: CSecuritySessionHandler->write('sUL2mcrBQRxUSvg...', 'SESS_AUTH|a:1:{...') #6 {main} thrown in /var/www/sveterra.ru/bitrix/modules/main/lib/db/mysqliconnection.php on line 137