Page MenuHomePhabricator

Wikimedia\Rdbms\DBQueryError A database query error has occurred. "No database selected"
Closed, ResolvedPublic

Description

Error

Request ID: XUMaQgpAADsAAJzbhxIAAAAA
Request URL: https://en.wikisource.org/w/index.php?title=The_Sacred_Books_and_Early_Literature_of_the_East/Volume_8&action=submit

message
[XUMaQgpAADsAAJzbhxIAAAAA] /w/index.php?title=The_Sacred_Books_and_Early_Literature_of_the_East/Volume_8&action=submit   Wikimedia\Rdbms\DBQueryError from line 1596 of /srv/mediawiki/php-1.34.0-wmf.16/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  MAX(page_id)  FROM `page`     LIMIT 1  
Function: MediaWiki\Revision\RevisionRenderer::getSpeculativePageId
Error: 1046 No database selected
trace
#0 /srv/mediawiki/php-1.34.0-wmf.16/includes/libs/rdbms/database/Database.php(1567): Wikimedia\Rdbms\Database->getQueryExceptionAndLog(string, integer, string, string)
#1 /srv/mediawiki/php-1.34.0-wmf.16/includes/libs/rdbms/database/Database.php(1156): Wikimedia\Rdbms\Database->reportQueryError(string, integer, string, string, boolean)
#2 /srv/mediawiki/php-1.34.0-wmf.16/includes/libs/rdbms/database/Database.php(1811): Wikimedia\Rdbms\Database->query(string, string)
#3 /srv/mediawiki/php-1.34.0-wmf.16/includes/libs/rdbms/database/Database.php(1637): Wikimedia\Rdbms\Database->select(string, string, array, string, array, array)
#4 /srv/mediawiki/php-1.34.0-wmf.16/includes/libs/rdbms/database/DBConnRef.php(68): Wikimedia\Rdbms\Database->selectField(string, string, array, string)
#5 /srv/mediawiki/php-1.34.0-wmf.16/includes/libs/rdbms/database/DBConnRef.php(297): Wikimedia\Rdbms\DBConnRef->__call(string, array)
#6 /srv/mediawiki/php-1.34.0-wmf.16/includes/Revision/RevisionRenderer.php(201): Wikimedia\Rdbms\DBConnRef->selectField(string, string, array, string)
#7 /srv/mediawiki/php-1.34.0-wmf.16/includes/Revision/RevisionRenderer.php(134): MediaWiki\Revision\RevisionRenderer->getSpeculativePageId(integer)
#8 /srv/mediawiki/php-1.34.0-wmf.16/includes/parser/ParserOptions.php(891): Closure$MediaWiki\Revision\RevisionRenderer::getRenderedRevision#2()
#9 /srv/mediawiki/php-1.34.0-wmf.16/includes/parser/ParserOptions.php(144): ParserOptions::initSpeculativePageId(ParserOptions, string)
#10 /srv/mediawiki/php-1.34.0-wmf.16/includes/parser/ParserOptions.php(132): ParserOptions->lazyLoadOption(string)
#11 /srv/mediawiki/php-1.34.0-wmf.16/includes/parser/ParserOptions.php(866): ParserOptions->getOption(string)
#12 /srv/mediawiki/php-1.34.0-wmf.16/includes/parser/Parser.php(2791): ParserOptions->getSpeculativePageId()
#13 /srv/mediawiki/php-1.34.0-wmf.16/includes/parser/Parser.php(3273): Parser->getVariableValue(string, PPTemplateFrame_Hash)
#14 /srv/mediawiki/php-1.34.0-wmf.16/includes/parser/PPFrame_Hash.php(254): Parser->braceSubstitution(array, PPTemplateFrame_Hash)
#15 /srv/mediawiki/php-1.34.0-wmf.16/includes/parser/Parser.php(3488): PPFrame_Hash->expand(PPNode_Hash_Tree)
#16 /srv/mediawiki/php-1.34.0-wmf.16/includes/parser/PPFrame_Hash.php(254): Parser->braceSubstitution(array, PPFrame_Hash)
#17 /srv/mediawiki/php-1.34.0-wmf.16/includes/parser/Parser.php(3126): PPFrame_Hash->expand(PPNode_Hash_Tree, integer)
#18 /srv/mediawiki/php-1.34.0-wmf.16/includes/parser/Parser.php(1437): Parser->replaceVariables(string)
#19 /srv/mediawiki/php-1.34.0-wmf.16/includes/parser/Parser.php(568): Parser->internalParse(string)
#20 /srv/mediawiki/php-1.34.0-wmf.16/includes/content/WikitextContent.php(365): Parser->parse(string, Title, ParserOptions, boolean, boolean, NULL)
#21 /srv/mediawiki/php-1.34.0-wmf.16/includes/content/AbstractContent.php(555): WikitextContent->fillParserOutput(Title, NULL, ParserOptions, boolean, ParserOutput)
#22 /srv/mediawiki/php-1.34.0-wmf.16/includes/Revision/RenderedRevision.php(266): AbstractContent->getParserOutput(Title, NULL, ParserOptions, boolean)
#23 /srv/mediawiki/php-1.34.0-wmf.16/includes/Revision/RenderedRevision.php(234): MediaWiki\Revision\RenderedRevision->getSlotParserOutputUncached(WikitextContent, boolean)
#24 /srv/mediawiki/php-1.34.0-wmf.16/includes/Revision/RevisionRenderer.php(222): MediaWiki\Revision\RenderedRevision->getSlotParserOutput(string)
#25 /srv/mediawiki/php-1.34.0-wmf.16/includes/Revision/RevisionRenderer.php(151): MediaWiki\Revision\RevisionRenderer->combineSlotOutput(MediaWiki\Revision\RenderedRevision, array)
#26 [internal function]: Closure$MediaWiki\Revision\RevisionRenderer::getRenderedRevision#3(MediaWiki\Revision\RenderedRevision, array)
#27 /srv/mediawiki/php-1.34.0-wmf.16/includes/Revision/RenderedRevision.php(197): call_user_func(Closure$MediaWiki\Revision\RevisionRenderer::getRenderedRevision#3;3629, MediaWiki\Revision\RenderedRevision, array)
#28 /srv/mediawiki/php-1.34.0-wmf.16/includes/Storage/DerivedPageDataUpdater.php(1289): MediaWiki\Revision\RenderedRevision->getRevisionParserOutput()
#29 [internal function]: MediaWiki\Storage\DerivedPageDataUpdater->getCanonicalParserOutput()
#30 /srv/mediawiki/php-1.34.0-wmf.16/includes/edit/PreparedEdit.php(104): call_user_func(array)
#31 /srv/mediawiki/php-1.34.0-wmf.16/includes/edit/PreparedEdit.php(119): MediaWiki\Edit\PreparedEdit->getOutput()
#32 /srv/mediawiki/php-1.34.0-wmf.16/includes/Storage/DerivedPageDataUpdater.php(1267): MediaWiki\Edit\PreparedEdit->__get(string)
#33 /srv/mediawiki/php-1.34.0-wmf.16/includes/page/WikiPage.php(2019): MediaWiki\Storage\DerivedPageDataUpdater->getPreparedEdit()
#34 /srv/mediawiki/php-1.34.0-wmf.16/extensions/SpamBlacklist/includes/SpamBlacklistHooks.php(31): WikiPage->prepareContentForEdit(WikitextContent)
#35 /srv/mediawiki/php-1.34.0-wmf.16/includes/Hooks.php(174): SpamBlacklistHooks::filterMergedContent(DerivativeContext, WikitextContent, Status, string, User, boolean)
#36 /srv/mediawiki/php-1.34.0-wmf.16/includes/Hooks.php(202): Hooks::callHook(string, array, array, NULL)
#37 /srv/mediawiki/php-1.34.0-wmf.16/includes/EditPage.php(1767): Hooks::run(string, array)
#38 /srv/mediawiki/php-1.34.0-wmf.16/includes/EditPage.php(2097): EditPage->runPostMergeFilters(WikitextContent, Status, User)
#39 /srv/mediawiki/php-1.34.0-wmf.16/includes/EditPage.php(1597): EditPage->internalAttemptSave(NULL, boolean)
#40 /srv/mediawiki/php-1.34.0-wmf.16/includes/EditPage.php(682): EditPage->attemptSave(NULL)
#41 /srv/mediawiki/php-1.34.0-wmf.16/includes/actions/EditAction.php(55): EditPage->edit()
#42 /srv/mediawiki/php-1.34.0-wmf.16/includes/actions/SubmitAction.php(38): EditAction->show()
#43 /srv/mediawiki/php-1.34.0-wmf.16/includes/MediaWiki.php(507): SubmitAction->show()
#44 /srv/mediawiki/php-1.34.0-wmf.16/includes/MediaWiki.php(302): MediaWiki->performAction(Article, Title)
#45 /srv/mediawiki/php-1.34.0-wmf.16/includes/MediaWiki.php(892): MediaWiki->performRequest()
#46 /srv/mediawiki/php-1.34.0-wmf.16/includes/MediaWiki.php(523): MediaWiki->main()
#47 /srv/mediawiki/php-1.34.0-wmf.16/index.php(42): MediaWiki->run()
#48 /srv/mediawiki/w/index.php(3): include(string)
#49 {main}
Impact
Notes

Have been seeing these somewhat intermittently since deploying wmf.16 to Group1 wikis.

Event Timeline

brennen created this task.Aug 1 2019, 5:13 PM
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptAug 1 2019, 5:13 PM
mmodell renamed this task from Wikimedia\Rdbms\DBQueryError from line 1596 of includes/libs/rdbms/database/Database.php: A database query error has occurred. to Wikimedia\Rdbms\DBQueryError A database query error has occurred. "No database selected".Aug 1 2019, 5:26 PM
Krinkle closed this task as Resolved.Aug 1 2019, 9:00 PM

Change 527207 merged by jenkins-bot:
[mediawiki/core@master] Fix bogus field use in RevisionRenderer::getSpeculativePageId
https://gerrit.wikimedia.org/r/527207

Change 527208 merged by jenkins-bot:
[mediawiki/core@wmf/1.34.0-wmf.16] Fix bogus field use in RevisionRenderer::getSpeculativePageId
https://gerrit.wikimedia.org/r/527208

mmodell changed the subtype of this task from "Task" to "Production Error".Aug 28 2019, 11:05 PM