[Bitrix\Main\DB\SqlQueryException] 
Mysql query error: (1213) Deadlock found when trying to get lock; try restarting transaction (400)
INSERT IGNORE INTO b_module_to_module (SORT, FROM_MODULE_ID, MESSAGE_ID, TO_MODULE_ID, 	TO_CLASS, TO_METHOD, TO_PATH, TO_METHOD_ARG, VERSION, UNIQUE_ID) VALUES (100, 'sale', 'OnSaleCancelOrder', 'tcsbank.kupivkredit',    'CTCSBank', 'OnCancelOrder', '', '', 1, '85db9fa2b86aa6e05a7df227fcc2380d')
/var/bitrix/modules/main/lib/db/mysqliconnection.php:137
#0: Bitrix\Main\DB\MysqliConnection->queryInternal
	/var/bitrix/modules/main/lib/db/connection.php:330
#1: Bitrix\Main\DB\Connection->query
	/var/bitrix/modules/main/lib/db/connection.php:379
#2: Bitrix\Main\DB\Connection->queryExecute
	/var/bitrix/modules/main/lib/eventmanager.php:183
#3: Bitrix\Main\EventManager->registerEventHandlerInternal
	/var/bitrix/modules/main/lib/eventmanager.php:157
#4: Bitrix\Main\EventManager->registerEventHandlerCompatible
	/var/bitrix/modules/main/classes/general/module.php:497
#5: RegisterModuleDependences
	/var/bitrix/modules/tcsbank.kupivkredit/general/tcsbank.php:13
#6: CTCSBank->CTCSBank
	/var/bitrix/modules/tcsbank.kupivkredit/include.php:28
#7: include_once(string)
	/var/bitrix/modules/main/lib/loader.php:177
#8: Bitrix\Main\Loader::includeModuleInternal
	/var/bitrix/modules/main/lib/loader.php:137
#9: Bitrix\Main\Loader::includeModule
	/var/bitrix/modules/main/classes/general/module.php:251
#10: CModule::IncludeModule
	/var/bitrix/modules/main/classes/general/module.php:434
#11: ExecuteModuleEventEx
	/var/bitrix/modules/main/include.php:291
#12: require_once(string)
	/var/bitrix/modules/main/include/prolog_before.php:14
#13: require_once(string)
	/var/bitrix/modules/main/include/prolog.php:10
#14: require_once(string)
	/var/bitrix/header.php:2
#15: require(string)
	/var/www/www-root/data/www/wintermax.ru/catalog/index.php:2
#16: include_once(string)
	/var/bitrix/modules/main/include/urlrewrite.php:159
#17: include_once(string)
	/var/www/www-root/data/www/wintermax.ru/404.php:2