[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, 'main', 'OnEndBufferContent', 'aspro.medc2', 'CMedc2Events', 'OnEndBufferContentHandler', '', '', 1, '1969481c886941b7b66c1ee23e06571f') /var/www/vhosts/rklinik.kz/bitrix.rklinik.kz/bitrix/modules/main/lib/db/mysqliconnection.php:137 #0: Bitrix\Main\DB\MysqliConnection->queryInternal(string, array, NULL) /var/www/vhosts/rklinik.kz/bitrix.rklinik.kz/bitrix/modules/main/lib/db/connection.php:330 #1: Bitrix\Main\DB\Connection->query(string, NULL) /var/www/vhosts/rklinik.kz/bitrix.rklinik.kz/bitrix/modules/main/lib/db/connection.php:379 #2: Bitrix\Main\DB\Connection->queryExecute(string) /var/www/vhosts/rklinik.kz/bitrix.rklinik.kz/bitrix/modules/main/lib/eventmanager.php:183 #3: Bitrix\Main\EventManager->registerEventHandlerInternal(string, string, string, string, string, integer, string, string, integer) /var/www/vhosts/rklinik.kz/bitrix.rklinik.kz/bitrix/modules/main/lib/eventmanager.php:157 #4: Bitrix\Main\EventManager->registerEventHandlerCompatible(string, string, string, string, string, integer, string, array) /var/www/vhosts/rklinik.kz/bitrix.rklinik.kz/bitrix/modules/main/classes/general/module.php:507 #5: RegisterModuleDependences(string, string, string, string, string) /var/www/vhosts/rklinik.kz/bitrix.rklinik.kz/bitrix/modules/aspro.medc2/include.php:27 #6: include_once(string) /var/www/vhosts/rklinik.kz/bitrix.rklinik.kz/bitrix/modules/main/lib/loader.php:143 #7: Bitrix\Main\Loader::includeModuleInternal(string) /var/www/vhosts/rklinik.kz/bitrix.rklinik.kz/bitrix/modules/main/lib/loader.php:110 #8: Bitrix\Main\Loader::includeModule(string) /var/www/vhosts/rklinik.kz/bitrix.rklinik.kz/bitrix/modules/main/classes/general/module.php:261 #9: CModule::IncludeModule(string) /var/www/vhosts/rklinik.kz/bitrix.rklinik.kz/bitrix/templates/aspro-medc2/header.php:8 #10: include_once(string) /var/www/vhosts/rklinik.kz/bitrix.rklinik.kz/bitrix/modules/main/include/prolog_after.php:106 #11: require(string) /var/www/vhosts/rklinik.kz/bitrix.rklinik.kz/bitrix/modules/main/include/prolog.php:11 #12: require_once(string) /var/www/vhosts/rklinik.kz/bitrix.rklinik.kz/bitrix/header.php:1 #13: require(string) /var/www/vhosts/rklinik.kz/bitrix.rklinik.kz/spravochnik-zabolevaniy/index.php:2 #14: include_once(string) /var/www/vhosts/rklinik.kz/bitrix.rklinik.kz/bitrix/modules/main/include/urlrewrite.php:159 #15: include_once(string) /var/www/vhosts/rklinik.kz/bitrix.rklinik.kz/bitrix/urlrewrite.php:2