Page MenuHomePhabricator

DBQueryError: Table 'enwiki.mathoid' doesn't exist: Function: Extension\Math\MathRenderer::readFromDatabaseQuery <query>
Closed, DeclinedPublicPRODUCTION ERROR

Description

Error
labels.normalized_message
[{reqId}] {exception_url}   Wikimedia\Rdbms\DBQueryError: Error 1146: Table 'enwiki.mathoid' doesn't exist
Function: MediaWiki\Extension\Math\MathRenderer::readFromDatabase
Query: SELECT  math_inputhash,math_mathml,math_tex,math_svg,math_input  FROM `math
error.stack_trace
from /srv/mediawiki/php-1.42.0-wmf.13/includes/libs/rdbms/database/Database.php(1200)
#0 /srv/mediawiki/php-1.42.0-wmf.13/includes/libs/rdbms/database/Database.php(1184): Wikimedia\Rdbms\Database->getQueryException(string, integer, string, string)
#1 /srv/mediawiki/php-1.42.0-wmf.13/includes/libs/rdbms/database/Database.php(1158): Wikimedia\Rdbms\Database->getQueryExceptionAndLog(string, integer, string, string)
#2 /srv/mediawiki/php-1.42.0-wmf.13/includes/libs/rdbms/database/Database.php(649): Wikimedia\Rdbms\Database->reportQueryError(string, integer, string, string, boolean)
#3 /srv/mediawiki/php-1.42.0-wmf.13/includes/libs/rdbms/database/Database.php(1347): Wikimedia\Rdbms\Database->query(Wikimedia\Rdbms\Query, string)
#4 /srv/mediawiki/php-1.42.0-wmf.13/includes/libs/rdbms/database/Database.php(1356): Wikimedia\Rdbms\Database->select(string, array, array, string, array, array)
#5 /srv/mediawiki/php-1.42.0-wmf.13/includes/libs/rdbms/database/DBConnRef.php(119): Wikimedia\Rdbms\Database->selectRow(string, array, array, string)
#6 /srv/mediawiki/php-1.42.0-wmf.13/includes/libs/rdbms/database/DBConnRef.php(369): Wikimedia\Rdbms\DBConnRef->__call(string, array)
#7 /srv/mediawiki/php-1.42.0-wmf.13/extensions/Math/src/MathRenderer.php(234): Wikimedia\Rdbms\DBConnRef->selectRow(string, array, array, string)
#8 /srv/mediawiki/php-1.42.0-wmf.13/extensions/Math/src/MathRenderer.php(594): MediaWiki\Extension\Math\MathRenderer->readFromDatabase()
#9 /srv/mediawiki/php-1.42.0-wmf.13/extensions/Math/src/HookHandlers/ParserHooksHandler.php(118): MediaWiki\Extension\Math\MathRenderer->checkTeX()
#10 /srv/mediawiki/php-1.42.0-wmf.13/extensions/Math/src/HookHandlers/ParserHooksHandler.php(161): MediaWiki\Extension\Math\HookHandlers\ParserHooksHandler->mathPostTagHook(MediaWiki\Extension\Math\MathMathML, Parser)
#11 /srv/mediawiki/php-1.42.0-wmf.13/includes/HookContainer/HookContainer.php(161): MediaWiki\Extension\Math\HookHandlers\ParserHooksHandler->onParserAfterTidy(Parser, string)
#12 /srv/mediawiki/php-1.42.0-wmf.13/includes/HookContainer/HookRunner.php(2904): MediaWiki\HookContainer\HookContainer->run(string, array)
#13 /srv/mediawiki/php-1.42.0-wmf.13/includes/parser/Parser.php(1698): MediaWiki\HookContainer\HookRunner->onParserAfterTidy(Parser, string)
#14 /srv/mediawiki/php-1.42.0-wmf.13/includes/parser/Parser.php(658): Parser->internalParseHalfParsed(string, boolean, boolean)
#15 /srv/mediawiki/php-1.42.0-wmf.13/includes/content/WikitextContentHandler.php(397): Parser->parse(string, MediaWiki\Title\Title, ParserOptions, boolean, boolean, integer)
#16 /srv/mediawiki/php-1.42.0-wmf.13/includes/content/ContentHandler.php(1698): WikitextContentHandler->fillParserOutput(WikitextContent, MediaWiki\Content\Renderer\ContentParseParams, MediaWiki\Parser\ParserOutput)
#17 /srv/mediawiki/php-1.42.0-wmf.13/includes/content/Renderer/ContentRenderer.php(47): ContentHandler->getParserOutput(WikitextContent, MediaWiki\Content\Renderer\ContentParseParams)
#18 /srv/mediawiki/php-1.42.0-wmf.13/includes/Revision/RenderedRevision.php(260): MediaWiki\Content\Renderer\ContentRenderer->getParserOutput(WikitextContent, MediaWiki\Title\Title, integer, ParserOptions, boolean)
#19 /srv/mediawiki/php-1.42.0-wmf.13/includes/Revision/RenderedRevision.php(232): MediaWiki\Revision\RenderedRevision->getSlotParserOutputUncached(WikitextContent, boolean)
#20 /srv/mediawiki/php-1.42.0-wmf.13/includes/Revision/RevisionRenderer.php(226): MediaWiki\Revision\RenderedRevision->getSlotParserOutput(string, array)
#21 /srv/mediawiki/php-1.42.0-wmf.13/includes/Revision/RevisionRenderer.php(164): MediaWiki\Revision\RevisionRenderer->combineSlotOutput(MediaWiki\Revision\RenderedRevision, ParserOptions, array)
#22 [internal function]: MediaWiki\Revision\RevisionRenderer->MediaWiki\Revision\{closure}(MediaWiki\Revision\RenderedRevision, array)
#23 /srv/mediawiki/php-1.42.0-wmf.13/includes/Revision/RenderedRevision.php(199): call_user_func(Closure, MediaWiki\Revision\RenderedRevision, array)
#24 /srv/mediawiki/php-1.42.0-wmf.13/includes/poolcounter/PoolWorkArticleView.php(87): MediaWiki\Revision\RenderedRevision->getRevisionParserOutput()
#25 /srv/mediawiki/php-1.42.0-wmf.13/includes/poolcounter/PoolWorkArticleViewCurrent.php(110): MediaWiki\PoolCounter\PoolWorkArticleView->renderRevision()
#26 /srv/mediawiki/php-1.42.0-wmf.13/includes/poolcounter/PoolCounterWork.php(172): MediaWiki\PoolCounter\PoolWorkArticleViewCurrent->doWork()
#27 /srv/mediawiki/php-1.42.0-wmf.13/includes/page/ParserOutputAccess.php(307): MediaWiki\PoolCounter\PoolCounterWork->execute()
#28 /srv/mediawiki/php-1.42.0-wmf.13/includes/content/ContentHandler.php(1480): MediaWiki\Page\ParserOutputAccess->getParserOutput(WikiPage, ParserOptions, MediaWiki\Revision\RevisionStoreRecord, integer)
#29 /srv/mediawiki/php-1.42.0-wmf.13/extensions/CirrusSearch/includes/BuildDocument/ParserOutputPageProperties.php(86): ContentHandler->getParserOutputForIndexing(WikiPage, NULL, MediaWiki\Revision\RevisionStoreRecord)
#30 /srv/mediawiki/php-1.42.0-wmf.13/includes/libs/objectcache/wancache/WANObjectCache.php(1726): CirrusSearch\BuildDocument\ParserOutputPageProperties->CirrusSearch\BuildDocument\{closure}(boolean, integer, array, NULL, array)
#31 /srv/mediawiki/php-1.42.0-wmf.13/includes/libs/objectcache/wancache/WANObjectCache.php(1556): WANObjectCache->fetchOrRegenerate(string, integer, Closure, array, array)
#32 /srv/mediawiki/php-1.42.0-wmf.13/extensions/CirrusSearch/includes/BuildDocument/ParserOutputPageProperties.php(95): WANObjectCache->getWithSetCallback(string, integer, Closure)
#33 /srv/mediawiki/php-1.42.0-wmf.13/extensions/CirrusSearch/includes/BuildDocument/ParserOutputPageProperties.php(51): CirrusSearch\BuildDocument\ParserOutputPageProperties->finalizeReal(Elastica\Document, WikiPage, CirrusSearch\CirrusSearch, MediaWiki\Revision\RevisionStoreRecord)
#34 /srv/mediawiki/php-1.42.0-wmf.13/extensions/CirrusSearch/includes/BuildDocument/BuildDocument.php(196): CirrusSearch\BuildDocument\ParserOutputPageProperties->finalize(Elastica\Document, MediaWiki\Title\Title, MediaWiki\Revision\RevisionStoreRecord)
#35 /srv/mediawiki/php-1.42.0-wmf.13/extensions/CirrusSearch/includes/Api/QueryBuildDocument.php(91): CirrusSearch\BuildDocument\BuildDocument->finalize(Elastica\Document, boolean, MediaWiki\Revision\RevisionStoreRecord)
#36 /srv/mediawiki/php-1.42.0-wmf.13/includes/api/ApiQuery.php(700): CirrusSearch\Api\QueryBuildDocument->execute()
#37 /srv/mediawiki/php-1.42.0-wmf.13/includes/api/ApiMain.php(1931): ApiQuery->execute()
#38 /srv/mediawiki/php-1.42.0-wmf.13/includes/api/ApiMain.php(908): ApiMain->executeAction()
#39 /srv/mediawiki/php-1.42.0-wmf.13/includes/api/ApiMain.php(879): ApiMain->executeActionWithErrorHandling()
#40 /srv/mediawiki/php-1.42.0-wmf.13/api.php(95): ApiMain->execute()
#41 /srv/mediawiki/php-1.42.0-wmf.13/api.php(48): wfApiMain()
#42 /srv/mediawiki/w/api.php(3): require(string)
#43 {main}
Notes
  • 7 hour spike of these on 2024-01-16 from 14:00 until 21:00 UTC
  • Unsure if this was some kind of connection error or maintenance happening
  • Happened at the same time as a bunch of other math errors related to the database
  • Please close this task if it's not a code error to be resolved, filing for record keeping (didn't find anything related searching phab before filing this)

Details

Request URL
https://en.wikipedia.org/w/api.php?action=query&format=*&cbbuilders=*&prop=*&formatversion=*&pageids=*

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript
Physikerwelt subscribed.

Interesting, I would not have expected that we first check if the formula was checked before ($wgMathDisableTexFilter='new') and use the old mathoid table (that was not written after 2020).