Page MenuHomePhabricator

"Wikimedia\Rdbms\DBQueryError"
Closed, DuplicatePublic

Description

Upon Special:NewItem with Wikidata, I get a Database error:

line=10
2018-12-18 19:55:21 [XBlQlwpAIEIAALZsZ38AAABH] mw1329 wikidatawiki 1.33.0-wmf.8 exception ERROR: [XBlQlwpAIEIAALZsZ38AAABH] /wiki/Special:NewItem   Wikimedia\Rdbms\DBQueryError from line 1506 of /srv/mediawiki/php-1.33.0-wmf.8/includes/libs/rdbms/database/Database.php: A database query error has occurred. Did you forget to run your application's database schema updater after upgrading? 
Query: SELECT  id_value  FROM `wb_id_counters`    WHERE id_type = 'wikibase-item'  LIMIT 1   FOR UPDATE
Function: Wikibase\SqlIdGenerator::generateNewId
Error: 1205 Lock wait timeout exceeded; try restarting transaction (10.64.48.26)
 {"exception_id":"XBlQlwpAIEIAALZsZ38AAABH","exception_url":"/wiki/Special:NewItem","caught_by":"mwe_handler"} 
[Exception Wikimedia\Rdbms\DBQueryError] (/srv/mediawiki/php-1.33.0-wmf.8/includes/libs/rdbms/database/Database.php:1506) A database query error has occurred. Did you forget to run your application's database schema updater after upgrading? 
Query: SELECT  id_value  FROM `wb_id_counters`    WHERE id_type = 'wikibase-item'  LIMIT 1   FOR UPDATE
Function: Wikibase\SqlIdGenerator::generateNewId
Error: 1205 Lock wait timeout exceeded; try restarting transaction (10.64.48.26)

  #0 /srv/mediawiki/php-1.33.0-wmf.8/includes/libs/rdbms/database/Database.php(1476): Wikimedia\Rdbms\Database->makeQueryException(string, integer, string, string)
  #1 /srv/mediawiki/php-1.33.0-wmf.8/includes/libs/rdbms/database/Database.php(1236): Wikimedia\Rdbms\Database->reportQueryError(string, integer, string, string, boolean)
  #2 /srv/mediawiki/php-1.33.0-wmf.8/includes/libs/rdbms/database/Database.php(1703): Wikimedia\Rdbms\Database->query(string, string)
  #3 /srv/mediawiki/php-1.33.0-wmf.8/includes/libs/rdbms/database/Database.php(1794): Wikimedia\Rdbms\Database->select(string, string, array, string, array, array)
  #4 /srv/mediawiki/php-1.33.0-wmf.8/extensions/Wikibase/repo/includes/Store/Sql/SqlIdGenerator.php(71): Wikimedia\Rdbms\Database->selectRow(string, string, array, string, array)
  #5 /srv/mediawiki/php-1.33.0-wmf.8/extensions/Wikibase/repo/includes/Store/Sql/SqlIdGenerator.php(46): Wikibase\SqlIdGenerator->generateNewId(Wikimedia\Rdbms\DatabaseMysqli, string)
  #6 /srv/mediawiki/php-1.33.0-wmf.8/extensions/Wikibase/repo/includes/Store/Sql/WikiPageEntityStore.php(120): Wikibase\SqlIdGenerator->getNewId(string)
  #7 /srv/mediawiki/php-1.33.0-wmf.8/extensions/Wikibase/repo/includes/Store/Sql/WikiPageEntityStore.php(201): Wikibase\Repo\Store\WikiPageEntityStore->assignFreshId(Wikibase\DataModel\Entity\Item)
  #8 /srv/mediawiki/php-1.33.0-wmf.8/extensions/Wikibase/lib/includes/Store/TypeDispatchingEntityStore.php(88): Wikibase\Repo\Store\WikiPageEntityStore->saveEntity(Wikibase\DataModel\Entity\Item, string, User, integer, boolean)
  #9 /srv/mediawiki/php-1.33.0-wmf.8/extensions/Wikibase/repo/includes/EditEntity/StatsdSaveTimeRecordingEntityStore.php(49): Wikibase\Lib\Store\TypeDispatchingEntityStore->saveEntity(Wikibase\DataModel\Entity\Item, string, User, integer, boolean)
  #10 /srv/mediawiki/php-1.33.0-wmf.8/extensions/Wikibase/repo/includes/EditEntity/MediawikiEditEntity.php(710): Wikibase\Repo\EditEntity\StatsdSaveTimeRecordingEntityStore->saveEntity(Wikibase\DataModel\Entity\Item, string, User, integer, boolean)
  #11 /srv/mediawiki/php-1.33.0-wmf.8/extensions/Wikibase/repo/includes/EditEntity/StatsdSaveTimeRecordingEditEntity.php(73): Wikibase\Repo\EditEntity\MediawikiEditEntity->attemptSave(Wikibase\DataModel\Entity\Item, string, integer, string, boolean)
  #12 /srv/mediawiki/php-1.33.0-wmf.8/extensions/Wikibase/repo/includes/Specials/SpecialWikibaseRepoPage.php(186): Wikibase\Repo\EditEntity\StatsdSaveTimeRecordingEditEntity->attemptSave(Wikibase\DataModel\Entity\Item, string, integer, string)
  #13 /srv/mediawiki/php-1.33.0-wmf.8/extensions/Wikibase/repo/includes/Specials/SpecialNewEntity.php(162): Wikibase\Repo\Specials\SpecialWikibaseRepoPage->saveEntity(Wikibase\DataModel\Entity\Item, Wikibase\Summary, string, integer)
  #14 /srv/mediawiki/php-1.33.0-wmf.8/includes/htmlform/HTMLForm.php(663): Closure$Wikibase\Repo\Specials\SpecialNewEntity::createForm(array, OOUIHTMLForm)
  #15 /srv/mediawiki/php-1.33.0-wmf.8/includes/htmlform/HTMLForm.php(555): HTMLForm->trySubmit()
  #16 /srv/mediawiki/php-1.33.0-wmf.8/extensions/Wikibase/repo/includes/Specials/SpecialNewEntity.php(105): HTMLForm->tryAuthorizedSubmit()
  #17 /srv/mediawiki/php-1.33.0-wmf.8/includes/specialpage/SpecialPage.php(569): Wikibase\Repo\Specials\SpecialNewEntity->execute(NULL)
  #18 /srv/mediawiki/php-1.33.0-wmf.8/includes/specialpage/SpecialPageFactory.php(558): SpecialPage->run(NULL)
  #19 /srv/mediawiki/php-1.33.0-wmf.8/includes/MediaWiki.php(288): MediaWiki\Special\SpecialPageFactory->executePath(Title, RequestContext)
  #20 /srv/mediawiki/php-1.33.0-wmf.8/includes/MediaWiki.php(862): MediaWiki->performRequest()
  #21 /srv/mediawiki/php-1.33.0-wmf.8/includes/MediaWiki.php(517): MediaWiki->main()
  #22 /srv/mediawiki/php-1.33.0-wmf.8/index.php(42): MediaWiki->run()
  #23 /srv/mediawiki/w/index.php(3): include(string)
  #24 {main}

I have tried twice.

Event Timeline

Fnielsen created this task.Dec 18 2018, 7:57 PM
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptDec 18 2018, 7:57 PM
Reedy updated the task description. (Show Details)Dec 19 2018, 10:09 AM
Reedy updated the task description. (Show Details)