Page MenuHomePhabricator

Wikibase\DataModel\Services\Lookup\ReferencedEntityIdLookupException: Referenced entity id lookup failed. Tried to find a referenced entity out of Q16334295 linked from Q13406463 via P279
Closed, ResolvedPublicPRODUCTION ERROR

Description

Error
normalized_message
[{reqId}] {exception_url}   Wikibase\DataModel\Services\Lookup\ReferencedEntityIdLookupException: Referenced entity id lookup failed. Tried to find a referenced entity out of Q16334295 linked from Q13406463 via P279
exception.trace
from /srv/mediawiki/php-1.41.0-wmf.8/extensions/Wikibase/lib/packages/wikibase/data-model-services/src/Lookup/EntityRetrievingClosestReferencedEntityIdLookup.php(196)
#0 /srv/mediawiki/php-1.41.0-wmf.8/extensions/Wikibase/lib/packages/wikibase/data-model-services/src/Lookup/EntityRetrievingClosestReferencedEntityIdLookup.php(147): Wikibase\DataModel\Services\Lookup\EntityRetrievingClosestReferencedEntityIdLookup->getEntity(Wikibase\DataModel\Entity\ItemId, Wikibase\DataModel\Entity\ItemId, Wikibase\DataModel\Entity\NumericPropertyId, array)
#1 /srv/mediawiki/php-1.41.0-wmf.8/extensions/Wikibase/lib/packages/wikibase/data-model-services/src/Lookup/EntityRetrievingClosestReferencedEntityIdLookup.php(106): Wikibase\DataModel\Services\Lookup\EntityRetrievingClosestReferencedEntityIdLookup->processEntityById(Wikibase\DataModel\Entity\ItemId, Wikibase\DataModel\Entity\ItemId, Wikibase\DataModel\Entity\NumericPropertyId, array, array)
#2 /srv/mediawiki/php-1.41.0-wmf.8/extensions/Wikibase/client/includes/DataAccess/Scribunto/WikibaseLanguageIndependentLuaBindings.php(367): Wikibase\DataModel\Services\Lookup\EntityRetrievingClosestReferencedEntityIdLookup->getReferencedEntityId(Wikibase\DataModel\Entity\ItemId, Wikibase\DataModel\Entity\NumericPropertyId, array)
#3 /srv/mediawiki/php-1.41.0-wmf.8/extensions/Wikibase/client/includes/DataAccess/Scribunto/Scribunto_LuaWikibaseLibrary.php(440): Wikibase\Client\DataAccess\Scribunto\WikibaseLanguageIndependentLuaBindings->getReferencedEntityId(Wikibase\DataModel\Entity\ItemId, Wikibase\DataModel\Entity\NumericPropertyId, array)
#4 /srv/mediawiki/php-1.41.0-wmf.8/extensions/Scribunto/includes/Engines/LuaSandbox/LuaSandboxCallback.php(31): Wikibase\Client\DataAccess\Scribunto\Scribunto_LuaWikibaseLibrary->getReferencedEntityId(string, string, array)
#5 [internal function]: MediaWiki\Extension\Scribunto\Engines\LuaSandbox\LuaSandboxCallback->__call(string, array)
#6 /srv/mediawiki/php-1.41.0-wmf.8/extensions/Scribunto/includes/Engines/LuaSandbox/LuaSandboxInterpreter.php(136): LuaSandboxFunction->call(LuaSandboxFunction)
#7 /srv/mediawiki/php-1.41.0-wmf.8/extensions/Scribunto/includes/Engines/LuaCommon/LuaEngine.php(312): MediaWiki\Extension\Scribunto\Engines\LuaSandbox\LuaSandboxInterpreter->callFunction(LuaSandboxFunction, LuaSandboxFunction)
#8 /srv/mediawiki/php-1.41.0-wmf.8/extensions/Scribunto/includes/Engines/LuaCommon/LuaModule.php(75): MediaWiki\Extension\Scribunto\Engines\LuaCommon\LuaEngine->executeFunctionChunk(LuaSandboxFunction, PPTemplateFrame_Hash)
#9 /srv/mediawiki/php-1.41.0-wmf.8/extensions/Scribunto/includes/Hooks.php(146): MediaWiki\Extension\Scribunto\Engines\LuaCommon\LuaModule->invoke(string, PPTemplateFrame_Hash)
#10 /srv/mediawiki/php-1.41.0-wmf.8/includes/parser/Parser.php(3415): MediaWiki\Extension\Scribunto\Hooks::invokeHook(Parser, PPTemplateFrame_Hash, array)
#11 /srv/mediawiki/php-1.41.0-wmf.8/includes/parser/Parser.php(3100): Parser->callParserFunction(PPTemplateFrame_Hash, string, array)
#12 /srv/mediawiki/php-1.41.0-wmf.8/includes/parser/PPFrame_Hash.php(277): Parser->braceSubstitution(array, PPTemplateFrame_Hash)
#13 /srv/mediawiki/php-1.41.0-wmf.8/includes/parser/PPTemplateFrame_Hash.php(99): PPFrame_Hash->expand(PPNode_Hash_Tree, integer)
#14 /srv/mediawiki/php-1.41.0-wmf.8/includes/parser/Parser.php(3288): PPTemplateFrame_Hash->cachedExpand(string, PPNode_Hash_Tree)
#15 /srv/mediawiki/php-1.41.0-wmf.8/includes/parser/PPFrame_Hash.php(277): Parser->braceSubstitution(array, PPFrame_Hash)
#16 /srv/mediawiki/php-1.41.0-wmf.8/includes/parser/Parser.php(2933): PPFrame_Hash->expand(PPNode_Hash_Tree, integer)
#17 /srv/mediawiki/php-1.41.0-wmf.8/includes/parser/Parsoid/Config/DataAccess.php(388): Parser->replaceVariables(string, PPFrame_Hash)
#18 /srv/mediawiki/php-1.41.0-wmf.8/vendor/wikimedia/parsoid/src/Wikitext/Wikitext.php(43): MediaWiki\Parser\Parsoid\Config\DataAccess->preprocessWikitext(MediaWiki\Parser\Parsoid\Config\PageConfig, ParserOutput, string)
#19 /srv/mediawiki/php-1.41.0-wmf.8/vendor/wikimedia/parsoid/src/Wt2Html/TT/TemplateHandler.php(1118): Wikimedia\Parsoid\Wikitext\Wikitext::preprocess(Wikimedia\Parsoid\Config\Env, string)
#20 /srv/mediawiki/php-1.41.0-wmf.8/vendor/wikimedia/parsoid/src/Wt2Html/TT/TemplateHandler.php(1161): Wikimedia\Parsoid\Wt2Html\TT\TemplateHandler->expandTemplate(Wikimedia\Parsoid\Wt2Html\TT\TemplateEncapsulator)
#21 /srv/mediawiki/php-1.41.0-wmf.8/vendor/wikimedia/parsoid/src/Wt2Html/TT/TemplateHandler.php(1206): Wikimedia\Parsoid\Wt2Html\TT\TemplateHandler->onTemplate(Wikimedia\Parsoid\Tokens\SelfclosingTagTk)
#22 /srv/mediawiki/php-1.41.0-wmf.8/vendor/wikimedia/parsoid/src/Wt2Html/TT/TokenHandler.php(150): Wikimedia\Parsoid\Wt2Html\TT\TemplateHandler->onTag(Wikimedia\Parsoid\Tokens\SelfclosingTagTk)
#23 /srv/mediawiki/php-1.41.0-wmf.8/vendor/wikimedia/parsoid/src/Wt2Html/TokenTransformManager.php(132): Wikimedia\Parsoid\Wt2Html\TT\TokenHandler->process(array)
#24 /srv/mediawiki/php-1.41.0-wmf.8/vendor/wikimedia/parsoid/src/Wt2Html/TokenTransformManager.php(195): Wikimedia\Parsoid\Wt2Html\TokenTransformManager->processChunk(array)
#25 /srv/mediawiki/php-1.41.0-wmf.8/vendor/wikimedia/parsoid/src/Wt2Html/TokenTransformManager.php(193): Wikimedia\Parsoid\Wt2Html\TokenTransformManager->processChunkily(string, array)
#26 /srv/mediawiki/php-1.41.0-wmf.8/vendor/wikimedia/parsoid/src/Wt2Html/TreeBuilder/TreeBuilderStage.php(497): Wikimedia\Parsoid\Wt2Html\TokenTransformManager->processChunkily(string, array)
#27 [internal function]: Wikimedia\Parsoid\Wt2Html\TreeBuilder\TreeBuilderStage->processChunkily(string, array)
#28 /srv/mediawiki/php-1.41.0-wmf.8/vendor/wikimedia/parsoid/src/Wt2Html/DOMPostProcessor.php(923): Generator->current()
#29 /srv/mediawiki/php-1.41.0-wmf.8/vendor/wikimedia/parsoid/src/Wt2Html/ParserPipeline.php(180): Wikimedia\Parsoid\Wt2Html\DOMPostProcessor->processChunkily(string, array)
#30 /srv/mediawiki/php-1.41.0-wmf.8/vendor/wikimedia/parsoid/src/Wt2Html/ParserPipelineFactory.php(299): Wikimedia\Parsoid\Wt2Html\ParserPipeline->parseChunkily(string, array)
#31 /srv/mediawiki/php-1.41.0-wmf.8/vendor/wikimedia/parsoid/src/Wikitext/ContentModelHandler.php(130): Wikimedia\Parsoid\Wt2Html\ParserPipelineFactory->parse(string)
#32 /srv/mediawiki/php-1.41.0-wmf.8/vendor/wikimedia/parsoid/src/Parsoid.php(174): Wikimedia\Parsoid\Wikitext\ContentModelHandler->toDOM(Wikimedia\Parsoid\Ext\ParsoidExtensionAPI)
#33 /srv/mediawiki/php-1.41.0-wmf.8/vendor/wikimedia/parsoid/src/Parsoid.php(216): Wikimedia\Parsoid\Parsoid->parseWikitext(MediaWiki\Parser\Parsoid\Config\PageConfig, ParserOutput, array)
#34 /srv/mediawiki/php-1.41.0-wmf.8/includes/parser/Parsoid/ParsoidOutputAccess.php(298): Wikimedia\Parsoid\Parsoid->wikitext2html(MediaWiki\Parser\Parsoid\Config\PageConfig, array, NULL, ParserOutput)
#35 /srv/mediawiki/php-1.41.0-wmf.8/includes/parser/Parsoid/ParsoidOutputAccess.php(465): MediaWiki\Parser\Parsoid\ParsoidOutputAccess->parseInternal(MediaWiki\Parser\Parsoid\Config\PageConfig, array)
#36 /srv/mediawiki/php-1.41.0-wmf.8/includes/parser/Parsoid/ParsoidOutputAccess.php(244): MediaWiki\Parser\Parsoid\ParsoidOutputAccess->parse(MediaWiki\Page\PageStoreRecord, ParserOptions, array, MediaWiki\Revision\RevisionStoreRecord)
#37 /srv/mediawiki/php-1.41.0-wmf.8/includes/Rest/Handler/Helper/HtmlOutputRendererHelper.php(742): MediaWiki\Parser\Parsoid\ParsoidOutputAccess->getParserOutput(MediaWiki\Page\PageStoreRecord, ParserOptions, MediaWiki\Revision\RevisionStoreRecord, integer)
#38 /srv/mediawiki/php-1.41.0-wmf.8/includes/Rest/Handler/Helper/HtmlOutputRendererHelper.php(569): MediaWiki\Rest\Handler\Helper\HtmlOutputRendererHelper->getParserOutputInternal(ParserOptions)
#39 /srv/mediawiki/php-1.41.0-wmf.8/includes/Rest/Handler/Helper/HtmlOutputRendererHelper.php(665): MediaWiki\Rest\Handler\Helper\HtmlOutputRendererHelper->getParserOutput()
#40 /srv/mediawiki/php-1.41.0-wmf.8/includes/Rest/Handler/ParsoidHandler.php(913): MediaWiki\Rest\Handler\Helper\HtmlOutputRendererHelper->getPageBundle()
#41 /srv/mediawiki/php-1.41.0-wmf.8/vendor/wikimedia/parsoid/extension/src/Rest/Handler/PageHandler.php(92): MediaWiki\Rest\Handler\ParsoidHandler->wt2html(MediaWiki\Parser\Parsoid\Config\PageConfig, array)
#42 /srv/mediawiki/php-1.41.0-wmf.8/includes/Rest/Router.php(517): MWParsoid\Rest\Handler\PageHandler->execute()
#43 /srv/mediawiki/php-1.41.0-wmf.8/includes/Rest/Router.php(422): MediaWiki\Rest\Router->executeHandler(MWParsoid\Rest\Handler\PageHandler)
#44 /srv/mediawiki/php-1.41.0-wmf.8/includes/Rest/EntryPoint.php(195): MediaWiki\Rest\Router->execute(MediaWiki\Rest\RequestFromGlobals)
#45 /srv/mediawiki/php-1.41.0-wmf.8/includes/Rest/EntryPoint.php(135): MediaWiki\Rest\EntryPoint->execute()
#46 /srv/mediawiki/php-1.41.0-wmf.8/rest.php(31): MediaWiki\Rest\EntryPoint::main()
#47 /srv/mediawiki/w/rest.php(3): require(string)
#48 {main}
exception.previous.trace
from /srv/mediawiki/php-1.41.0-wmf.8/extensions/Wikibase/lib/includes/Store/Sql/WikiPageEntityRevisionLookup.php(117)
#0 /srv/mediawiki/php-1.41.0-wmf.8/extensions/Wikibase/lib/includes/Store/TypeDispatchingEntityRevisionLookup.php(52): Wikibase\Lib\Store\Sql\WikiPageEntityRevisionLookup->getEntityRevision(Wikibase\DataModel\Entity\ItemId, integer, string)
#1 /srv/mediawiki/php-1.41.0-wmf.8/extensions/Wikibase/data-access/src/ByTypeDispatchingEntityRevisionLookup.php(55): Wikibase\Lib\Store\TypeDispatchingEntityRevisionLookup->getEntityRevision(Wikibase\DataModel\Entity\ItemId, integer, string)
#2 /srv/mediawiki/php-1.41.0-wmf.8/extensions/Wikibase/lib/includes/Store/CachingEntityRevisionLookup.php(104): Wikibase\DataAccess\ByTypeDispatchingEntityRevisionLookup->getEntityRevision(Wikibase\DataModel\Entity\ItemId, integer, string)
#3 /srv/mediawiki/php-1.41.0-wmf.8/extensions/Wikibase/lib/includes/Store/CachingEntityRevisionLookup.php(87): Wikibase\Lib\Store\CachingEntityRevisionLookup->fetchEntityRevision(Wikibase\DataModel\Entity\ItemId, integer, string)
#4 /srv/mediawiki/php-1.41.0-wmf.8/extensions/Wikibase/lib/includes/Store/CachingEntityRevisionLookup.php(104): Wikibase\Lib\Store\CachingEntityRevisionLookup->getEntityRevision(Wikibase\DataModel\Entity\ItemId, integer, string)
#5 /srv/mediawiki/php-1.41.0-wmf.8/extensions/Wikibase/lib/includes/Store/CachingEntityRevisionLookup.php(87): Wikibase\Lib\Store\CachingEntityRevisionLookup->fetchEntityRevision(Wikibase\DataModel\Entity\ItemId, integer, string)
#6 /srv/mediawiki/php-1.41.0-wmf.8/extensions/Wikibase/lib/includes/Store/RevisionBasedEntityLookup.php(46): Wikibase\Lib\Store\CachingEntityRevisionLookup->getEntityRevision(Wikibase\DataModel\Entity\ItemId, integer, string)
#7 /srv/mediawiki/php-1.41.0-wmf.8/extensions/Wikibase/lib/packages/wikibase/data-model-services/src/Lookup/RedirectResolvingEntityLookup.php(53): Wikibase\Lib\Store\RevisionBasedEntityLookup->getEntity(Wikibase\DataModel\Entity\ItemId)
#8 /srv/mediawiki/php-1.41.0-wmf.8/extensions/Wikibase/lib/packages/wikibase/data-model-services/src/Lookup/EntityRetrievingClosestReferencedEntityIdLookup.php(194): Wikibase\DataModel\Services\Lookup\RedirectResolvingEntityLookup->getEntity(Wikibase\DataModel\Entity\ItemId)
#9 /srv/mediawiki/php-1.41.0-wmf.8/extensions/Wikibase/lib/packages/wikibase/data-model-services/src/Lookup/EntityRetrievingClosestReferencedEntityIdLookup.php(147): Wikibase\DataModel\Services\Lookup\EntityRetrievingClosestReferencedEntityIdLookup->getEntity(Wikibase\DataModel\Entity\ItemId, Wikibase\DataModel\Entity\ItemId, Wikibase\DataModel\Entity\NumericPropertyId, array)
#10 /srv/mediawiki/php-1.41.0-wmf.8/extensions/Wikibase/lib/packages/wikibase/data-model-services/src/Lookup/EntityRetrievingClosestReferencedEntityIdLookup.php(106): Wikibase\DataModel\Services\Lookup\EntityRetrievingClosestReferencedEntityIdLookup->processEntityById(Wikibase\DataModel\Entity\ItemId, Wikibase\DataModel\Entity\ItemId, Wikibase\DataModel\Entity\NumericPropertyId, array, array)
#11 /srv/mediawiki/php-1.41.0-wmf.8/extensions/Wikibase/client/includes/DataAccess/Scribunto/WikibaseLanguageIndependentLuaBindings.php(367): Wikibase\DataModel\Services\Lookup\EntityRetrievingClosestReferencedEntityIdLookup->getReferencedEntityId(Wikibase\DataModel\Entity\ItemId, Wikibase\DataModel\Entity\NumericPropertyId, array)
#12 /srv/mediawiki/php-1.41.0-wmf.8/extensions/Wikibase/client/includes/DataAccess/Scribunto/Scribunto_LuaWikibaseLibrary.php(440): Wikibase\Client\DataAccess\Scribunto\WikibaseLanguageIndependentLuaBindings->getReferencedEntityId(Wikibase\DataModel\Entity\ItemId, Wikibase\DataModel\Entity\NumericPropertyId, array)
#13 /srv/mediawiki/php-1.41.0-wmf.8/extensions/Scribunto/includes/Engines/LuaSandbox/LuaSandboxCallback.php(31): Wikibase\Client\DataAccess\Scribunto\Scribunto_LuaWikibaseLibrary->getReferencedEntityId(string, string, array)
#14 [internal function]: MediaWiki\Extension\Scribunto\Engines\LuaSandbox\LuaSandboxCallback->__call(string, array)
#15 /srv/mediawiki/php-1.41.0-wmf.8/extensions/Scribunto/includes/Engines/LuaSandbox/LuaSandboxInterpreter.php(136): LuaSandboxFunction->call(LuaSandboxFunction)
#16 /srv/mediawiki/php-1.41.0-wmf.8/extensions/Scribunto/includes/Engines/LuaCommon/LuaEngine.php(312): MediaWiki\Extension\Scribunto\Engines\LuaSandbox\LuaSandboxInterpreter->callFunction(LuaSandboxFunction, LuaSandboxFunction)
#17 /srv/mediawiki/php-1.41.0-wmf.8/extensions/Scribunto/includes/Engines/LuaCommon/LuaModule.php(75): MediaWiki\Extension\Scribunto\Engines\LuaCommon\LuaEngine->executeFunctionChunk(LuaSandboxFunction, PPTemplateFrame_Hash)
#18 /srv/mediawiki/php-1.41.0-wmf.8/extensions/Scribunto/includes/Hooks.php(146): MediaWiki\Extension\Scribunto\Engines\LuaCommon\LuaModule->invoke(string, PPTemplateFrame_Hash)
#19 /srv/mediawiki/php-1.41.0-wmf.8/includes/parser/Parser.php(3415): MediaWiki\Extension\Scribunto\Hooks::invokeHook(Parser, PPTemplateFrame_Hash, array)
#20 /srv/mediawiki/php-1.41.0-wmf.8/includes/parser/Parser.php(3100): Parser->callParserFunction(PPTemplateFrame_Hash, string, array)
#21 /srv/mediawiki/php-1.41.0-wmf.8/includes/parser/PPFrame_Hash.php(277): Parser->braceSubstitution(array, PPTemplateFrame_Hash)
#22 /srv/mediawiki/php-1.41.0-wmf.8/includes/parser/PPTemplateFrame_Hash.php(99): PPFrame_Hash->expand(PPNode_Hash_Tree, integer)
#23 /srv/mediawiki/php-1.41.0-wmf.8/includes/parser/Parser.php(3288): PPTemplateFrame_Hash->cachedExpand(string, PPNode_Hash_Tree)
#24 /srv/mediawiki/php-1.41.0-wmf.8/includes/parser/PPFrame_Hash.php(277): Parser->braceSubstitution(array, PPFrame_Hash)
#25 /srv/mediawiki/php-1.41.0-wmf.8/includes/parser/Parser.php(2933): PPFrame_Hash->expand(PPNode_Hash_Tree, integer)
#26 /srv/mediawiki/php-1.41.0-wmf.8/includes/parser/Parsoid/Config/DataAccess.php(388): Parser->replaceVariables(string, PPFrame_Hash)
#27 /srv/mediawiki/php-1.41.0-wmf.8/vendor/wikimedia/parsoid/src/Wikitext/Wikitext.php(43): MediaWiki\Parser\Parsoid\Config\DataAccess->preprocessWikitext(MediaWiki\Parser\Parsoid\Config\PageConfig, ParserOutput, string)
#28 /srv/mediawiki/php-1.41.0-wmf.8/vendor/wikimedia/parsoid/src/Wt2Html/TT/TemplateHandler.php(1118): Wikimedia\Parsoid\Wikitext\Wikitext::preprocess(Wikimedia\Parsoid\Config\Env, string)
#29 /srv/mediawiki/php-1.41.0-wmf.8/vendor/wikimedia/parsoid/src/Wt2Html/TT/TemplateHandler.php(1161): Wikimedia\Parsoid\Wt2Html\TT\TemplateHandler->expandTemplate(Wikimedia\Parsoid\Wt2Html\TT\TemplateEncapsulator)
#30 /srv/mediawiki/php-1.41.0-wmf.8/vendor/wikimedia/parsoid/src/Wt2Html/TT/TemplateHandler.php(1206): Wikimedia\Parsoid\Wt2Html\TT\TemplateHandler->onTemplate(Wikimedia\Parsoid\Tokens\SelfclosingTagTk)
#31 /srv/mediawiki/php-1.41.0-wmf.8/vendor/wikimedia/parsoid/src/Wt2Html/TT/TokenHandler.php(150): Wikimedia\Parsoid\Wt2Html\TT\TemplateHandler->onTag(Wikimedia\Parsoid\Tokens\SelfclosingTagTk)
#32 /srv/mediawiki/php-1.41.0-wmf.8/vendor/wikimedia/parsoid/src/Wt2Html/TokenTransformManager.php(132): Wikimedia\Parsoid\Wt2Html\TT\TokenHandler->process(array)
#33 /srv/mediawiki/php-1.41.0-wmf.8/vendor/wikimedia/parsoid/src/Wt2Html/TokenTransformManager.php(195): Wikimedia\Parsoid\Wt2Html\TokenTransformManager->processChunk(array)
#34 /srv/mediawiki/php-1.41.0-wmf.8/vendor/wikimedia/parsoid/src/Wt2Html/TokenTransformManager.php(193): Wikimedia\Parsoid\Wt2Html\TokenTransformManager->processChunkily(string, array)
#35 /srv/mediawiki/php-1.41.0-wmf.8/vendor/wikimedia/parsoid/src/Wt2Html/TreeBuilder/TreeBuilderStage.php(497): Wikimedia\Parsoid\Wt2Html\TokenTransformManager->processChunkily(string, array)
#36 [internal function]: Wikimedia\Parsoid\Wt2Html\TreeBuilder\TreeBuilderStage->processChunkily(string, array)
#37 /srv/mediawiki/php-1.41.0-wmf.8/vendor/wikimedia/parsoid/src/Wt2Html/DOMPostProcessor.php(923): Generator->current()
#38 /srv/mediawiki/php-1.41.0-wmf.8/vendor/wikimedia/parsoid/src/Wt2Html/ParserPipeline.php(180): Wikimedia\Parsoid\Wt2Html\DOMPostProcessor->processChunkily(string, array)
#39 /srv/mediawiki/php-1.41.0-wmf.8/vendor/wikimedia/parsoid/src/Wt2Html/ParserPipelineFactory.php(299): Wikimedia\Parsoid\Wt2Html\ParserPipeline->parseChunkily(string, array)
#40 /srv/mediawiki/php-1.41.0-wmf.8/vendor/wikimedia/parsoid/src/Wikitext/ContentModelHandler.php(130): Wikimedia\Parsoid\Wt2Html\ParserPipelineFactory->parse(string)
#41 /srv/mediawiki/php-1.41.0-wmf.8/vendor/wikimedia/parsoid/src/Parsoid.php(174): Wikimedia\Parsoid\Wikitext\ContentModelHandler->toDOM(Wikimedia\Parsoid\Ext\ParsoidExtensionAPI)
#42 /srv/mediawiki/php-1.41.0-wmf.8/vendor/wikimedia/parsoid/src/Parsoid.php(216): Wikimedia\Parsoid\Parsoid->parseWikitext(MediaWiki\Parser\Parsoid\Config\PageConfig, ParserOutput, array)
#43 /srv/mediawiki/php-1.41.0-wmf.8/includes/parser/Parsoid/ParsoidOutputAccess.php(298): Wikimedia\Parsoid\Parsoid->wikitext2html(MediaWiki\Parser\Parsoid\Config\PageConfig, array, NULL, ParserOutput)
#44 /srv/mediawiki/php-1.41.0-wmf.8/includes/parser/Parsoid/ParsoidOutputAccess.php(465): MediaWiki\Parser\Parsoid\ParsoidOutputAccess->parseInternal(MediaWiki\Parser\Parsoid\Config\PageConfig, array)
#45 /srv/mediawiki/php-1.41.0-wmf.8/includes/parser/Parsoid/ParsoidOutputAccess.php(244): MediaWiki\Parser\Parsoid\ParsoidOutputAccess->parse(MediaWiki\Page\PageStoreRecord, ParserOptions, array, MediaWiki\Revision\RevisionStoreRecord)
#46 /srv/mediawiki/php-1.41.0-wmf.8/includes/Rest/Handler/Helper/HtmlOutputRendererHelper.php(742): MediaWiki\Parser\Parsoid\ParsoidOutputAccess->getParserOutput(MediaWiki\Page\PageStoreRecord, ParserOptions, MediaWiki\Revision\RevisionStoreRecord, integer)
#47 /srv/mediawiki/php-1.41.0-wmf.8/includes/Rest/Handler/Helper/HtmlOutputRendererHelper.php(569): MediaWiki\Rest\Handler\Helper\HtmlOutputRendererHelper->getParserOutputInternal(ParserOptions)
#48 /srv/mediawiki/php-1.41.0-wmf.8/includes/Rest/Handler/Helper/HtmlOutputRendererHelper.php(665): MediaWiki\Rest\Handler\Helper\HtmlOutputRendererHelper->getParserOutput()
#49 /srv/mediawiki/php-1.41.0-wmf.8/includes/Rest/Handler/ParsoidHandler.php(913): MediaWiki\Rest\Handler\Helper\HtmlOutputRendererHelper->getPageBundle()
#50 /srv/mediawiki/php-1.41.0-wmf.8/vendor/wikimedia/parsoid/extension/src/Rest/Handler/PageHandler.php(92): MediaWiki\Rest\Handler\ParsoidHandler->wt2html(MediaWiki\Parser\Parsoid\Config\PageConfig, array)
#51 /srv/mediawiki/php-1.41.0-wmf.8/includes/Rest/Router.php(517): MWParsoid\Rest\Handler\PageHandler->execute()
#52 /srv/mediawiki/php-1.41.0-wmf.8/includes/Rest/Router.php(422): MediaWiki\Rest\Router->executeHandler(MWParsoid\Rest\Handler\PageHandler)
#53 /srv/mediawiki/php-1.41.0-wmf.8/includes/Rest/EntryPoint.php(195): MediaWiki\Rest\Router->execute(MediaWiki\Rest\RequestFromGlobals)
#54 /srv/mediawiki/php-1.41.0-wmf.8/includes/Rest/EntryPoint.php(135): MediaWiki\Rest\EntryPoint->execute()
#55 /srv/mediawiki/php-1.41.0-wmf.8/rest.php(31): MediaWiki\Rest\EntryPoint::main()
#56 /srv/mediawiki/w/rest.php(3): require(string)
#57 {main}
Impact
Notes
  • Ongoing, plwiki only, > 50 in the last 30m, 1419 over two days for several items. Apparently all related to Tried to find a referenced entity out of Q16334295.

A couple happened on arwiki as well:

  • Referenced entity id lookup failed. Tried to find a referenced entity out of Q5 linked from Q1336646 via P279.

The error shows up from both 1.41.0-wmf.8 and 1.41.0-wmf.9 which I guess is because before thursday arwiki/plwiki were on wmf.8.

Details

Request URL
https://pl.wikipedia.org/w/rest.php/pl.wikipedia.org/v3/page/pagebundle/Plac%C3%B3wki_dyplomatyczne_i_konsularne_Polski_na_%C5%9Bwiecie_oraz_obcych_pa%C5%84stw_w_Polsce/70241352

Event Timeline

View doesn't work (after purge also doesn't work for anons).
Diffs don't work.
Edit doesn't work (even code).

Only first version of this article seems to work:
https://pl.wikipedia.org/w/index.php?title=Obchody_%C5%9Bwi%C4%99ta_ognia_w_Pirenejach&oldid=69812097

Nice work @Nux, thank you.

Apologies for the wide tagging of MediaWiki-General and Wikidata — I'm not quite sure of where the failure is, but this might benefit from some extra eyes..

brennen triaged this task as Unbreak Now! priority.May 18 2023, 11:02 PM
brennen subscribed.

Seeing a couple hundred of these now, and they're particularly logspammy given the inclusion of IDs in the message. I'm about to go offline for the day, but I'm going to take wmf.9 back to group0 and mark this a blocker.

You may have seen my tests. I've re-enabled the KA template (the Lua call) for a while and it's a very popular template. I've disable the Lua call for now, but please note that it doesn't solve the problem.

I also narrowed down the problem.

Please note that you will not be able to edit or view the test page until you disable the Lua module (e.g. change the name of the main function).

PS: Seems like it is possible to open edit in VE, but not save.
{F37016931}

A couple happened on arwiki as well: Referenced entity id lookup failed. Tried to find a referenced entity out of Q5 linked from Q1336646 via P279.

For plwiki they apparently are all mentioning the same item Q16334295: Tried to find a referenced entity out of Q16334295.

The error shows up in both wmf.8 and wmf.9, I have updated the task description with those links.

For arwiki the two errors are still showing up on https://ar.wikipedia.org/wiki/%D8%A7%D9%84%D8%AD%D9%83%D9%85%D8%A7%D8%A1_%D8%A7%D9%84%D8%B3%D8%A8%D8%B9%D8%A9_%D9%85%D9%86_%D8%A8%D8%B3%D8%AA%D8%A7%D9%86_%D8%A7%D9%84%D8%AE%D9%8A%D8%B2%D8%B1%D8%A7%D9%86 . That includes several templates and recent edits can be find from Related changes. For example Cite_Q.

+ @Nux who find a repro case. I feel like the root cause is in a Scribunto module page rather than an issue in the Wikibase code?

The first error was apparently on May 18, 2023 @ 15:49:51.447 UTC

message: [91f2d2a3-3348-4ce4-8b34-33ebd30cb7c4] /wiki/Historia Wikibase\DataModel\Services\Lookup\ReferencedEntityIdLookupException: Referenced entity id lookup failed. Tried to find a referenced entity out of Q16334295 linked from Q28813620 via P279
url.full: https://pl.wikipedia.org/wiki/Historia

Related changes for plwiki:Historia does not show much beside Nux revert to https://pl.wikipedia.org/wiki/Szablon:Kontrola_autorytatywna

We rolled the wmf.9 two hours later: 18:18 UTC rebuilt and synchronized wikiversions files: group2 wikis to 1.41.0-wmf.9 refs T330215

Maybe it is due to one of the Wikidata that got edited around that time?

History for the items referenced in the error message:

Q16334295group of humansApril 22nd 16:25https://www.wikidata.org/w/index.php?title=Q16334295&action=history
Q16889133classEdits on May 18th at 15:49, 15:51 and 15:53https://www.wikidata.org/w/index.php?title=Q16889133&action=history
P279subclass ofEdits on May 18th at 15:35 and 15:55https://www.wikidata.org/w/index.php?title=Property:P279&action=history

So I am guessing the root cause is one of those 5 edits:

The second one in bold above ( https://www.wikidata.org/w/index.php?title=Q16889133&diff=prev&oldid=1898595833 ) was done at 15:49 which is when we had the first error? That edit is large and adds a lot of properties.

I am afraid I can't go much deeper since I barely know anything about Wikidata data structure :(

And lastly if I look at the source edit for pl:History on https://pl.wikipedia.org/w/index.php?title=Historia&action=edit , under the edit box I get:

Wikidata entities used in this page

  • history: Sitelink, Title, Description: pl

Q309 / history related changes: https://www.wikidata.org/wiki/Special:RecentChangesLinked?hidebots=1&hidecategorization=1&target=Q309&limit=50&days=7&damaging__likelybad_color=c4&damaging__verylikelybad_color=c5&urlversion=2 it again shows the edits I found in the previous comment:

18 May 2023

  • subclass of (P279)‎ 15:35 +287‎ ‎Swpb talk contribs‎ (‎Changed claim: property constraint (P2302): none-of constraint (Q52558054)) Tags: Wikidata User Interface Property constraint changed thank
  • subclass of (P279)‎ 15:55 +284‎ ‎Swpb talk contribs‎ (‎Changed claim: property constraint (P2302): none-of constraint (Q52558054)) Tags: Wikidata User Interface Property constraint changed thank
  • occurrence (Q1190554)‎ 16:08 +420‎ ‎Swpb talk contribs‎ (‎Created claim: different from (P1889): continuant (Q103940464)) Tag: Wikidata User Interface thank
  • English (Q1860)‎ 17:05 −1‎ ‎Qhapaqkanqi talk contribs‎ (‎Page moved from [quwiki:Inlish simi] to [quwiki:Inlis simi]) Tag: Automatic Update from Connected Wiki thank

Tentatively the same user as @Swpb here on Phabricator :]

That is all I have for now.

[...]
I also narrowed down the problem.

Please note that you will not be able to edit or view the test page until you disable the Lua module (e.g. change the name of the main function).

Not sure what fixed it, but seems to all be working now. At least on plwiki.

A twist is there are two stacktrace but I only looked at the first message. The exception have a exception.previous.message field which I have noticed when looking at the exception used to file this task Find reqId in Logstash. It has:

exception.previous.classWikibase\Lib\Store\RevisionedUnresolvedRedirectException
exception.previous.file/srv/mediawiki/php-1.41.0-wmf.8/extensions/Wikibase/lib/includes/Store/Sql/WikiPageEntityRevisionLookup.php:117
exception.previous.messageUnresolved redirect from Q16887380 to Q16889133

All errors for arwiki and plwiki have the same error Unresolved redirect from Q16887380 to Q16889133. So I think that is the root cause?

The Q16887380 history shows it got redirected on May 18th at 15:49 and got merged and redirected to Q16889133 (history).

And when Q16887380 got redirected then Q28813620 in turn got double redirected (as it had been redirected to Q16887380 a little earlier). By now a bot has fixed the double redirect in Q28813620. So was double redirect in a class tree enough to break the mw.wikibase.getReferencedEntityId call?

Change 921327 had a related patch set uploaded (by Hoo man; author: Hoo man):

[mediawiki/extensions/Wikibase@master] Lua bindings: Catch all ReferencedEntityIdLookupExceptions

https://gerrit.wikimedia.org/r/921327

Problem here is that EntityRetrievingClosestReferencedEntityIdLookup::getEntity throws an ReferencedEntityIdLookupException if an EntityLookupException (which RevisionedUnresolvedRedirectException extends) is encountered. Wikibase should handle that correctly, catch the error and the lua function (wikibase.getReferencedEntityId) should return false.

Thank you so much @hoo, I am removing this task from the 1.41.0-wmf.9 train blocker ( T330215 ) since it is preexisting issue and a rare corner case.

hashar lowered the priority of this task from Unbreak Now! to Medium.May 19 2023, 3:38 PM

This is no more an unbreak now priority and I have rolled MediaWiki 1.41.0-wmf.9 to all wikis earlier today (~ 13:00 UTC).

Change 921327 merged by jenkins-bot:

[mediawiki/extensions/Wikibase@master] Lua bindings: Catch all ReferencedEntityIdLookupExceptions

https://gerrit.wikimedia.org/r/921327

Krinkle assigned this task to hoo.
Krinkle subscribed.

No mathces on Logstash mediawiki-errors dashboard for message:"Referenced entity id lookup failed." in the past 30 days.