[Bitrix\Main\DB\SqlQueryException] 
Mysql query error: MySQL server has gone away (400)
SELECT 'x' FROM b_option WHERE SITE_ID IS NULL AND MODULE_ID = 'aspro.digital' AND NAME = 'NeedGenerateCustomTheme'
LIMIT 0, 1

/home/bitrix/ext_www/sakhalinmachinery.ru/bitrix/modules/main/lib/db/mysqlconnection.php:116
#0: Bitrix\Main\DB\MysqlConnection->queryInternal(string, NULL, NULL)
	/home/bitrix/ext_www/sakhalinmachinery.ru/bitrix/modules/main/lib/db/connection.php:329
#1: Bitrix\Main\DB\Connection->query(string, NULL, integer, integer)
	/home/bitrix/ext_www/sakhalinmachinery.ru/bitrix/modules/main/lib/db/connection.php:357
#2: Bitrix\Main\DB\Connection->queryScalar(string)
	/home/bitrix/ext_www/sakhalinmachinery.ru/bitrix/modules/main/lib/config/option.php:282
#3: Bitrix\Main\Config\Option::set(string, string, string, string, string)
	/home/bitrix/ext_www/sakhalinmachinery.ru/bitrix/modules/aspro.digital/classes/general/CDigital.php:996
#4: CDigital::GenerateThemes()
	/home/bitrix/ext_www/sakhalinmachinery.ru/bitrix/modules/aspro.digital/include.php:26
#5: include_once(string)
	/home/bitrix/ext_www/sakhalinmachinery.ru/bitrix/modules/main/lib/loader.php:109
#6: Bitrix\Main\Loader::includeModuleInternal(string)
	/home/bitrix/ext_www/sakhalinmachinery.ru/bitrix/modules/main/lib/loader.php:96
#7: Bitrix\Main\Loader::includeModule(string)
	/home/bitrix/ext_www/sakhalinmachinery.ru/bitrix/modules/main/classes/general/module.php:261
#8: CModule::IncludeModule(string)
	/home/bitrix/ext_www/sakhalinmachinery.ru/bitrix/templates/ams/header.php:3
#9: include_once(string)
	/home/bitrix/ext_www/sakhalinmachinery.ru/bitrix/modules/main/include/prolog_after.php:96
#10: require(string)
	/home/bitrix/ext_www/sakhalinmachinery.ru/bitrix/modules/main/include/prolog.php:11
#11: require_once(string)
	/home/bitrix/ext_www/sakhalinmachinery.ru/bitrix/header.php:1
#12: require(string)
	/home/bitrix/ext_www/sakhalinmachinery.ru/products/attachments/index.php:1
#13: include_once(string)
	/home/bitrix/ext_www/sakhalinmachinery.ru/bitrix/modules/main/include/urlrewrite.php:159
#14: include_once(string)
	/home/bitrix/ext_www/sakhalinmachinery.ru/bitrix/urlrewrite.php:2