[Bitrix\Main\DB\SqlQueryException] 
Mysql query error: (2006) MySQL server has gone away (400)
SELECT 
	`sale_internals_discount_group`.`DISCOUNT_ID` AS `DISCOUNT_ID`,
	`sale_internals_discount_group`.`ID` AS `UALIAS_0`
FROM `b_sale_discount_group` `sale_internals_discount_group` 

WHERE `sale_internals_discount_group`.`GROUP_ID` IN (2)
AND `sale_internals_discount_group`.`ACTIVE` = 'Y'
ORDER BY `DISCOUNT_ID` ASC
/var/www/potolkoff/data/www/xn----itbkfbbddetfahe7bd.xn--p1ai/bitrix/modules/main/lib/db/mysqliconnection.php:137
#0: Bitrix\Main\DB\MysqliConnection->queryInternal(string, array, NULL)
	/var/www/potolkoff/data/www/xn----itbkfbbddetfahe7bd.xn--p1ai/bitrix/modules/main/lib/db/connection.php:330
#1: Bitrix\Main\DB\Connection->query(string)
	/var/www/potolkoff/data/www/xn----itbkfbbddetfahe7bd.xn--p1ai/bitrix/modules/main/lib/orm/query/query.php:3304
#2: Bitrix\Main\ORM\Query\Query->query(string)
	/var/www/potolkoff/data/www/xn----itbkfbbddetfahe7bd.xn--p1ai/bitrix/modules/main/lib/orm/query/query.php:816
#3: Bitrix\Main\ORM\Query\Query->exec()
	/var/www/potolkoff/data/www/xn----itbkfbbddetfahe7bd.xn--p1ai/bitrix/modules/main/lib/orm/data/datamanager.php:500
#4: Bitrix\Main\ORM\Data\DataManager::getList(array)
	/var/www/potolkoff/data/www/xn----itbkfbbddetfahe7bd.xn--p1ai/bitrix/modules/sale/lib/discount/runtimecache/discountcache.php:53
#5: Bitrix\Sale\Discount\RuntimeCache\DiscountCache->getDiscountIds(array)
	/var/www/potolkoff/data/www/xn----itbkfbbddetfahe7bd.xn--p1ai/bitrix/modules/iblock/classes/general/comp_pricetools.php:145
#6: CIBlockPriceTools::SetCatalogDiscountCache(array, array)
	/var/www/potolkoff/data/www/xn----itbkfbbddetfahe7bd.xn--p1ai/bitrix/modules/iblock/lib/component/base.php:702
#7: Bitrix\Iblock\Component\Base->initPrices()
	/var/www/potolkoff/data/www/xn----itbkfbbddetfahe7bd.xn--p1ai/bitrix/modules/iblock/lib/component/base.php:3946
#8: Bitrix\Iblock\Component\Base->processResultData()
	/var/www/potolkoff/data/www/xn----itbkfbbddetfahe7bd.xn--p1ai/bitrix/modules/iblock/lib/component/element.php:286
#9: Bitrix\Iblock\Component\Element->processResultData()
	/var/www/potolkoff/data/www/xn----itbkfbbddetfahe7bd.xn--p1ai/bitrix/modules/iblock/lib/component/base.php:4453
#10: Bitrix\Iblock\Component\Base->loadData()
	/var/www/potolkoff/data/www/xn----itbkfbbddetfahe7bd.xn--p1ai/bitrix/modules/iblock/lib/component/base.php:4442
#11: Bitrix\Iblock\Component\Base->initialLoadAction()
	/var/www/potolkoff/data/www/xn----itbkfbbddetfahe7bd.xn--p1ai/bitrix/modules/iblock/lib/component/element.php:271
#12: Bitrix\Iblock\Component\Element->initialLoadAction()
	
#13: call_user_func(array)
	/var/www/potolkoff/data/www/xn----itbkfbbddetfahe7bd.xn--p1ai/bitrix/modules/iblock/lib/component/base.php:4627
#14: Bitrix\Iblock\Component\Base->doAction()
	/var/www/potolkoff/data/www/xn----itbkfbbddetfahe7bd.xn--p1ai/bitrix/modules/iblock/lib/component/base.php:4645
#15: Bitrix\Iblock\Component\Base->executeComponent()
	/var/www/potolkoff/data/www/xn----itbkfbbddetfahe7bd.xn--p1ai/bitrix/modules/main/classes/general/component.php:648
#16: CBitrixComponent->includeComponent(string, array, object)
	/var/www/potolkoff/data/www/xn----itbkfbbddetfahe7bd.xn--p1ai/bitrix/modules/main/classes/general/main.php:1039
#17: CAllMain->IncludeComponent(string, string, array, object)
	/var/www/potolkoff/data/www/xn----itbkfbbddetfahe7bd.xn--p1ai/local/templates/potolkoff/components/bitrix/catalog/bootstrap_v4/element.php:221
#18: include(string)
	/var/www/potolkoff/data/www/xn----itbkfbbddetfahe7bd.xn--p1ai/bitrix/modules/main/classes/general/component_template.php:725
#19: CBitrixComponentTemplate->__IncludePHPTemplate(array, array, string)
	/var/www/potolkoff/data/www/xn----itbkfbbddetfahe7bd.xn--p1ai/bitrix/modules/main/classes/general/component_template.php:820
#20: CBitrixComponentTemplate->IncludeTemplate(array)
	/var/www/potolkoff/data/www/xn----itbkfbbddetfahe7bd.xn--p1ai/bitrix/modules/main/classes/general/component.php:745
#21: CBitrixComponent->showComponentTemplate()
	/var/www/potolkoff/data/www/xn----itbkfbbddetfahe7bd.xn--p1ai/bitrix/modules/main/classes/general/component.php:693
#22: CBitrixComponent->includeComponentTemplate(string)
	/var/www/potolkoff/data/www/xn----itbkfbbddetfahe7bd.xn--p1ai/bitrix/components/bitrix/catalog/component.php:171
#23: include(string)
	/var/www/potolkoff/data/www/xn----itbkfbbddetfahe7bd.xn--p1ai/bitrix/modules/main/classes/general/component.php:604
#24: CBitrixComponent->__includeComponent()
	/var/www/potolkoff/data/www/xn----itbkfbbddetfahe7bd.xn--p1ai/bitrix/modules/main/classes/general/component.php:663
#25: CBitrixComponent->includeComponent(string, array, boolean)
	/var/www/potolkoff/data/www/xn----itbkfbbddetfahe7bd.xn--p1ai/bitrix/modules/main/classes/general/main.php:1039
#26: CAllMain->IncludeComponent(string, string, array, boolean)
	/var/www/potolkoff/data/www/xn----itbkfbbddetfahe7bd.xn--p1ai/shop/index.php:304
#27: include_once(string)
	/var/www/potolkoff/data/www/xn----itbkfbbddetfahe7bd.xn--p1ai/bitrix/modules/main/include/urlrewrite.php:159
#28: include_once(string)
	/var/www/potolkoff/data/www/xn----itbkfbbddetfahe7bd.xn--p1ai/bitrix/urlrewrite.php:2

Fatal error: Uncaught Bitrix\Main\DB\SqlQueryException: Mysql query error: (2006) MySQL server has gone away in /var/www/potolkoff/data/www/xn----itbkfbbddetfahe7bd.xn--p1ai/bitrix/modules/main/lib/db/mysqliconnection.php:137 Stack trace: #0 /var/www/potolkoff/data/www/xn----itbkfbbddetfahe7bd.xn--p1ai/bitrix/modules/main/lib/db/connection.php(330): Bitrix\Main\DB\MysqliConnection->queryInternal('SELECT \n\t`main_...', Array, NULL) #1 /var/www/potolkoff/data/www/xn----itbkfbbddetfahe7bd.xn--p1ai/bitrix/modules/main/lib/orm/query/query.php(3304): Bitrix\Main\DB\Connection->query('SELECT \n\t`main_...') #2 /var/www/potolkoff/data/www/xn----itbkfbbddetfahe7bd.xn--p1ai/bitrix/modules/main/lib/orm/query/query.php(816): Bitrix\Main\ORM\Query\Query->query('SELECT \n\t`main_...') #3 /var/www/potolkoff/data/www/xn----itbkfbbddetfahe7bd.xn--p1ai/bitrix/modules/main/lib/orm/data/datamanager.php(500): Bitrix\Main\ORM\Query\Query->exec() #4 /var/www/potolkoff/data/www/xn----itbkfbbddetfahe7bd.xn--p1ai/bitrix/modules/main/lib/analytics in /var/www/potolkoff/data/www/xn----itbkfbbddetfahe7bd.xn--p1ai/bitrix/modules/main/lib/db/mysqliconnection.php on line 137