Error
- mwversion: 1.37.0-wmf.12
- reqId: de7d74bb-1c66-4394-af48-003bc3c78b6c
- Find reqId in Logstash
- Find normalized_message in Logstash
[{reqId}] {exception_url} Wikimedia\Rdbms\DBQueryError: Error 1213: Deadlock found when trying to get lock; try restarting transaction (db2112) Function: MediaWiki\User\UserOptionsManager::saveOptions Query: INSERT IGNORE INTO `user_properties` (up_user,up_property,up_value) VALUES (XX,'VectorSkinVersion','1'),(XX,'rcenhancedfilters-seen-tour',1),(XX,'wlenhancedfilters-seen-tour',1)
from /srv/mediawiki/php-1.37.0-wmf.12/includes/libs/rdbms/database/Database.php(1760) #0 /srv/mediawiki/php-1.37.0-wmf.12/includes/libs/rdbms/database/Database.php(1744): Wikimedia\Rdbms\Database->getQueryException(string, integer, string, string) #1 /srv/mediawiki/php-1.37.0-wmf.12/includes/libs/rdbms/database/Database.php(1719): Wikimedia\Rdbms\Database->getQueryExceptionAndLog(string, integer, string, string) #2 /srv/mediawiki/php-1.37.0-wmf.12/includes/libs/rdbms/database/Database.php(1283): Wikimedia\Rdbms\Database->reportQueryError(string, integer, string, string, boolean) #3 /srv/mediawiki/php-1.37.0-wmf.12/includes/libs/rdbms/database/Database.php(2424): Wikimedia\Rdbms\Database->query(string, string, integer) #4 /srv/mediawiki/php-1.37.0-wmf.12/includes/libs/rdbms/database/Database.php(2384): Wikimedia\Rdbms\Database->doInsertNonConflicting(string, array, string) #5 /srv/mediawiki/php-1.37.0-wmf.12/includes/libs/rdbms/database/DBConnRef.php(68): Wikimedia\Rdbms\Database->insert(string, array, string, array) #6 /srv/mediawiki/php-1.37.0-wmf.12/includes/libs/rdbms/database/DBConnRef.php(373): Wikimedia\Rdbms\DBConnRef->__call(string, array) #7 /srv/mediawiki/php-1.37.0-wmf.12/includes/user/UserOptionsManager.php(450): Wikimedia\Rdbms\DBConnRef->insert(string, array, string, array) #8 /srv/mediawiki/php-1.37.0-wmf.12/extensions/PageTriage/includes/Hooks.php(841): MediaWiki\User\UserOptionsManager->saveOptions(User) #9 /srv/mediawiki/php-1.37.0-wmf.12/includes/HookContainer/HookContainer.php(338): MediaWiki\Extension\PageTriage\Hooks::onLocalUserCreated(User, boolean) #10 /srv/mediawiki/php-1.37.0-wmf.12/includes/HookContainer/HookContainer.php(137): MediaWiki\HookContainer\HookContainer->callLegacyHook(string, array, array, array) #11 /srv/mediawiki/php-1.37.0-wmf.12/includes/HookContainer/HookRunner.php(2389): MediaWiki\HookContainer\HookContainer->run(string, array) #12 /srv/mediawiki/php-1.37.0-wmf.12/includes/auth/AuthManager.php(1452): MediaWiki\HookContainer\HookRunner->onLocalUserCreated(User, boolean) #13 /srv/mediawiki/php-1.37.0-wmf.12/includes/auth/AuthManager.php(1169): MediaWiki\Auth\AuthManager->continueAccountCreation(array) #14 /srv/mediawiki/php-1.37.0-wmf.12/includes/specialpage/AuthManagerSpecialPage.php(377): MediaWiki\Auth\AuthManager->beginAccountCreation(User, array, string) #15 /srv/mediawiki/php-1.37.0-wmf.12/includes/specialpage/AuthManagerSpecialPage.php(502): AuthManagerSpecialPage->performAuthenticationStep(string, array) #16 /srv/mediawiki/php-1.37.0-wmf.12/includes/htmlform/HTMLForm.php(718): AuthManagerSpecialPage->handleFormSubmit(array, VFormHTMLForm) #17 /srv/mediawiki/php-1.37.0-wmf.12/includes/specialpage/AuthManagerSpecialPage.php(435): HTMLForm->trySubmit() #18 /srv/mediawiki/php-1.37.0-wmf.12/includes/specialpage/LoginSignupSpecialPage.php(318): AuthManagerSpecialPage->trySubmit() #19 /srv/mediawiki/php-1.37.0-wmf.12/includes/specialpage/SpecialPage.php(646): LoginSignupSpecialPage->execute(NULL) #20 /srv/mediawiki/php-1.37.0-wmf.12/includes/specialpage/SpecialPageFactory.php(1362): SpecialPage->run(NULL) #21 /srv/mediawiki/php-1.37.0-wmf.12/includes/MediaWiki.php(314): MediaWiki\SpecialPage\SpecialPageFactory->executePath(string, RequestContext) #22 /srv/mediawiki/php-1.37.0-wmf.12/includes/MediaWiki.php(917): MediaWiki->performRequest() #23 /srv/mediawiki/php-1.37.0-wmf.12/includes/MediaWiki.php(551): MediaWiki->main() #24 /srv/mediawiki/php-1.37.0-wmf.12/index.php(53): MediaWiki->run() #25 /srv/mediawiki/php-1.37.0-wmf.12/index.php(46): wfIndexMain() #26 /srv/mediawiki/w/index.php(3): require(string) #27 {main}
Impact
A portion of account sign-ups are cancelled due to the CreateAccount request fatalling on this database error.
Notes
Query message:("Deadlock found when trying to get" AND "user_properties") on Logstash mediawiki-errors:
/cc @tstarling @Pchelolo This might be fallout from recent refactoring in UserOptionsManager.
I notice that a majority of these appear to be from setting VectorSkinVersion=1 during account creation. That seems harmless but since it's new-ish, mentioning it here as that might somehow be inducing the regression if it this happens in an unsafe way.
It started Wed 30 June 2021, 19:05 UTC, which aligns perfectly with the SAL with:
- @brennen Synchronized php: group1 wikis to 1.37.0-wmf.12