: Uncaught Bitrix\Main\DB\SqlQueryException: Mysql query error: (1213) Deadlock found when trying to get lock; try restarting transaction in /var/bitrix/modules/main/lib/db/mysqliconnection.php:137
Stack trace:
#0 /var/bitrix/modules/main/lib/db/connection.php(330): Bitrix\Main\DB\MysqliConnection->queryInternal('INSERT IGNORE I...', Array, NULL)
#1 /var/bitrix/modules/main/lib/db/connection.php(379): Bitrix\Main\DB\Connection->query('INSERT IGNORE I...', NULL)
#2 /var/bitrix/modules/main/lib/eventmanager.php(183): Bitrix\Main\DB\Connection->queryExecute('INSERT IGNORE I...')
#3 /var/bitrix/modules/main/lib/eventmanager.php(157): Bitrix\Main\EventManager->registerEventHandlerInternal('sale', 'OnSaleComponent...', 'tcsbank.kupivkr...', 'CTCSBank', 'CheckPaySystem', 100, '', '', 1)
#4 /var/bitrix/modules/main/classes/general/module.php(497): Bitrix\Main\EventManager->registerEventHandlerCompatible('sale', 'OnSaleComponent...', 'tcsbank.kupivkr...', 'CTCSBank', 'CheckPaySystem', 100, '', Array)
#5 /var/bitrix/modu in