[Bitrix\Main\DB\SqlQueryException] 
Mysql query error: (2006) MySQL server has gone away (400)
SET NAMES 'utf8'
/home/bitrix/www/bitrix/modules/main/lib/db/mysqliconnection.php:137
#0: Bitrix\Main\DB\MysqliConnection->queryInternal(string, array, NULL)
	/home/bitrix/www/bitrix/modules/main/lib/db/connection.php:330
#1: Bitrix\Main\DB\Connection->query(string, NULL)
	/home/bitrix/www/bitrix/modules/main/lib/db/connection.php:379
#2: Bitrix\Main\DB\Connection->queryExecute(string)
	/home/bitrix/www/bitrix/php_interface/after_connect_d7.php:3
#3: include(string)
	/home/bitrix/www/bitrix/modules/main/lib/db/connection.php:921
#4: Bitrix\Main\DB\Connection->afterConnected()
	/home/bitrix/www/bitrix/modules/main/lib/db/mysqliconnection.php:81
#5: Bitrix\Main\DB\MysqliConnection->connectInternal()
	/home/bitrix/www/bitrix/modules/main/lib/db/mysqliconnection.php:122
#6: Bitrix\Main\DB\MysqliConnection->queryInternal(string, array, NULL)
	/home/bitrix/www/bitrix/modules/main/lib/db/connection.php:330
#7: Bitrix\Main\DB\Connection->query(string, NULL)
	/home/bitrix/www/bitrix/modules/main/lib/db/connection.php:379
#8: Bitrix\Main\DB\Connection->queryExecute(string)
	/home/bitrix/www/bitrix/php_interface/after_connect_d7.php:3
#9: include(string)
	/home/bitrix/www/bitrix/modules/main/lib/db/connection.php:921
#10: Bitrix\Main\DB\Connection->afterConnected()
	/home/bitrix/www/bitrix/modules/main/lib/db/mysqliconnection.php:81
#11: Bitrix\Main\DB\MysqliConnection->connectInternal()
	/home/bitrix/www/bitrix/modules/main/lib/db/mysqliconnection.php:122
#12: Bitrix\Main\DB\MysqliConnection->queryInternal(string, NULL, NULL)
	/home/bitrix/www/bitrix/modules/main/lib/db/connection.php:330
#13: Bitrix\Main\DB\Connection->query(string, NULL, integer, integer)
	/home/bitrix/www/bitrix/modules/main/lib/db/connection.php:358
#14: Bitrix\Main\DB\Connection->queryScalar(string)
	/home/bitrix/www/bitrix/modules/security/lib/session.php:110
#15: Bitrix\Security\SessionTable::lock(string, integer)
	/home/bitrix/www/bitrix/modules/security/classes/general/session_db.php:52
#16: CSecuritySessionDB::read(string)
	
#17: session_start()
	/home/bitrix/www/bitrix/modules/main/include.php:281
#18: require_once(string)
	/home/bitrix/www/bitrix/modules/main/include/prolog_before.php:14
#19: require_once(string)
	/home/bitrix/www/bitrix/modules/main/include/prolog.php:10
#20: require_once(string)
	/home/bitrix/www/bitrix/header.php:1
#21: require(string)
	/home/bitrix/www/catalog/index.php:2
#22: include_once(string)
	/home/bitrix/www/bitrix/modules/main/include/urlrewrite.php:159
#23: include_once(string)
	/home/bitrix/www/bitrix/urlrewrite.php:2

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(716): 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(974): Bitrix\Main\DB\SqlHelper->prepareAssignment('b_sec_session', 'SESSION_ID', '3tJjw4HNJdqajtn...') #4 /home/bitrix/www/bitrix/modules/security/classes/general/session_db.php(92): Bitrix\Main\Entity\DataManager::delete(Array) #5 [internal function]: CSecuritySessionDB::write('3tJjw4HNJdqajtn...', '') #6 [internal function]: session_write_close() in /home/bitrix/www/bitrix/modules/main/lib/db/mysqliconnection.php on line 137