Page MenuHomePhabricator

Wikibase\DataModel\Services\Lookup\EntityLookupException from line 47 of RevisionBasedEntityLookup.php: Entity lookup failed for: Q18029713
Closed, ResolvedPublic

Description

seen on wikidata

2015-09-30 18:38:28 mw1136 wikidatawiki exception ERROR: [b210001f] /w/api.php Wikibase\DataModel\Services\Lookup\EntityLookupException from line 47 of /srv/mediawiki/php-1.27.0-wmf.1/extensions/Wikidata/extensions/Wikibase/lib/includes/store/RevisionBasedEntityLookup.php: Entity lookup failed for: Q18029713 {"exception_id":"b210001f"}
[Exception Wikibase\DataModel\Services\Lookup\EntityLookupException] (/srv/mediawiki/php-1.27.0-wmf.1/extensions/Wikidata/extensions/Wikibase/lib/includes/store/RevisionBasedEntityLookup.php:47) Entity lookup failed for: Q18029713

#0 /srv/mediawiki/php-1.27.0-wmf.1/extensions/Wikidata/vendor/wikibase/data-model-services/src/Lookup/RedirectResolvingEntityLookup.php(51): Wikibase\Lib\Store\RevisionBasedEntityLookup->getEntity(Wikibase\DataModel\Entity\ItemId)
#1 /srv/mediawiki/php-1.27.0-wmf.1/extensions/Wikidata/vendor/wikibase/data-model-services/src/Lookup/RestrictedEntityLookup.php(81): Wikibase\DataModel\Services\Lookup\RedirectResolvingEntityLookup->getEntity(Wikibase\DataModel\Entity\ItemId)
#2 /srv/mediawiki/php-1.27.0-wmf.1/extensions/Wikidata/extensions/Wikibase/client/includes/DataAccess/StatementTransclusionInteractor.php(85): Wikibase\DataModel\Services\Lookup\RestrictedEntityLookup->getEntity(Wikibase\DataModel\Entity\ItemId)
#3 /srv/mediawiki/php-1.27.0-wmf.1/extensions/Wikidata/extensions/Wikibase/client/includes/DataAccess/PropertyParserFunction/LanguageAwareRenderer.php(62): Wikibase\Client\DataAccess\StatementTransclusionInteractor->render(Wikibase\DataModel\Entity\ItemId, string)
#4 /srv/mediawiki/php-1.27.0-wmf.1/extensions/Wikidata/extensions/Wikibase/client/includes/DataAccess/PropertyParserFunction/Runner.php(104): Wikibase\Client\DataAccess\PropertyParserFunction\LanguageAwareRenderer->render(Wikibase\DataModel\Entity\ItemId, string)
#5 /srv/mediawiki/php-1.27.0-wmf.1/extensions/Wikidata/extensions/Wikibase/client/includes/DataAccess/PropertyParserFunction/Runner.php(184): Wikibase\Client\DataAccess\PropertyParserFunction\Runner->runPropertyParserFunction(Parser, PPTemplateFrame_Hash, array)
#6 /srv/mediawiki/php-1.27.0-wmf.1/extensions/Wikidata/extensions/Wikibase/client/includes/Hooks/ParserFunctionRegistrant.php(47): Wikibase\Client\DataAccess\PropertyParserFunction\Runner::render(Parser, PPTemplateFrame_Hash, array)
#7 /srv/mediawiki/php-1.27.0-wmf.1/includes/parser/Parser.php(3797): Closure$Wikibase\Client\Hooks\ParserFunctionRegistrant::registerPropertyParserFunction(Parser, PPTemplateFrame_Hash, array)
#8 /srv/mediawiki/php-1.27.0-wmf.1/includes/parser/Parser.php(3531): Parser->callParserFunction(PPTemplateFrame_Hash, string, array)
#9 /srv/mediawiki/php-1.27.0-wmf.1/includes/parser/Preprocessor_Hash.php(1104): Parser->braceSubstitution(array, PPTemplateFrame_Hash)
#10 /srv/mediawiki/php-1.27.0-wmf.1/includes/parser/Preprocessor_Hash.php(1607): PPFrame_Hash->expand(PPNode_Hash_Tree, integer)
#11 /srv/mediawiki/php-1.27.0-wmf.1/includes/parser/Preprocessor_Hash.php(1633): PPTemplateFrame_Hash->getNumberedArgument(string)
#12 /srv/mediawiki/php-1.27.0-wmf.1/extensions/Scribunto/engines/LuaCommon/LuaCommon.php(630): PPTemplateFrame_Hash->getArgument(string)
#13 /srv/mediawiki/php-1.27.0-wmf.1/extensions/Scribunto/engines/LuaSandbox/Engine.php(384): Scribunto_LuaEngine->getExpandedArgument(string, string)
#14 [internal function]: Scribunto_LuaSandboxCallback->__call(string, array)
#15 /srv/mediawiki/php-1.27.0-wmf.1/extensions/Scribunto/engines/LuaSandbox/Engine.php(297): LuaSandboxFunction->call(LuaSandboxFunction)
#16 /srv/mediawiki/php-1.27.0-wmf.1/extensions/Scribunto/engines/LuaCommon/LuaCommon.php(257): Scribunto_LuaSandboxInterpreter->callFunction(LuaSandboxFunction, LuaSandboxFunction)
#17 /srv/mediawiki/php-1.27.0-wmf.1/extensions/Scribunto/engines/LuaCommon/LuaCommon.php(898): Scribunto_LuaEngine->executeFunctionChunk(LuaSandboxFunction, PPTemplateFrame_Hash)
#18 /srv/mediawiki/php-1.27.0-wmf.1/extensions/Scribunto/common/Hooks.php(116): Scribunto_LuaModule->invoke(string, PPTemplateFrame_Hash)
#19 /srv/mediawiki/php-1.27.0-wmf.1/includes/parser/Parser.php(3797): ScribuntoHooks::invokeHook(Parser, PPTemplateFrame_Hash, array)
#20 /srv/mediawiki/php-1.27.0-wmf.1/includes/parser/Parser.php(3531): Parser->callParserFunction(PPTemplateFrame_Hash, string, array)
#21 /srv/mediawiki/php-1.27.0-wmf.1/includes/parser/Preprocessor_Hash.php(1104): Parser->braceSubstitution(array, PPTemplateFrame_Hash)
#22 /srv/mediawiki/php-1.27.0-wmf.1/includes/parser/Parser.php(3673): PPFrame_Hash->expand(PPNode_Hash_Tree)
#23 /srv/mediawiki/php-1.27.0-wmf.1/includes/parser/Preprocessor_Hash.php(1104): Parser->braceSubstitution(array, PPFrame_Hash)
#24 /srv/mediawiki/php-1.27.0-wmf.1/includes/parser/Parser.php(3350): PPFrame_Hash->expand(PPNode_Hash_Tree, integer)
#25 /srv/mediawiki/php-1.27.0-wmf.1/includes/parser/Parser.php(648): Parser->replaceVariables(string, PPFrame_Hash)
#26 /srv/mediawiki/php-1.27.0-wmf.1/extensions/ParsoidBatchAPI/includes/ApiParsoidBatch.php(154): Parser->preprocess(string, Title, ParserOptions, boolean)
#27 /srv/mediawiki/php-1.27.0-wmf.1/extensions/ParsoidBatchAPI/includes/ApiParsoidBatch.php(79): ApiParsoidBatch->preprocess(string, Title, boolean)
#28 /srv/mediawiki/php-1.27.0-wmf.1/includes/api/ApiMain.php(1270): ApiParsoidBatch->execute()
#29 /srv/mediawiki/php-1.27.0-wmf.1/includes/api/ApiMain.php(466): ApiMain->executeAction()
#30 /srv/mediawiki/php-1.27.0-wmf.1/includes/api/ApiMain.php(438): ApiMain->executeActionWithErrorHandling()
#31 /srv/mediawiki/php-1.27.0-wmf.1/api.php(88): ApiMain->execute()
#32 /srv/mediawiki/w/api.php(3): include(string)
#33 {main}

Caused by: [Exception Wikibase\Lib\Store\RevisionedUnresolvedRedirectException] (/srv/mediawiki/php-1.27.0-wmf.1/extensions/Wikidata/extensions/Wikibase/lib/includes/store/sql/WikiPageEntityRevisionLookup.php:93) Unresolved redirect to Q8002300

#0 /srv/mediawiki/php-1.27.0-wmf.1/extensions/Wikidata/extensions/Wikibase/lib/includes/store/CachingEntityRevisionLookup.php(149): Wikibase\Lib\Store\WikiPageEntityRevisionLookup->getEntityRevision(Wikibase\DataModel\Entity\ItemId, string)
#1 /srv/mediawiki/php-1.27.0-wmf.1/extensions/Wikidata/extensions/Wikibase/lib/includes/store/CachingEntityRevisionLookup.php(132): Wikibase\Lib\Store\CachingEntityRevisionLookup->fetchEntityRevision(Wikibase\DataModel\Entity\ItemId, string)
#2 /srv/mediawiki/php-1.27.0-wmf.1/extensions/Wikidata/extensions/Wikibase/lib/includes/store/CachingEntityRevisionLookup.php(149): Wikibase\Lib\Store\CachingEntityRevisionLookup->getEntityRevision(Wikibase\DataModel\Entity\ItemId, string)
#3 /srv/mediawiki/php-1.27.0-wmf.1/extensions/Wikidata/extensions/Wikibase/lib/includes/store/CachingEntityRevisionLookup.php(132): Wikibase\Lib\Store\CachingEntityRevisionLookup->fetchEntityRevision(Wikibase\DataModel\Entity\ItemId, string)
#4 /srv/mediawiki/php-1.27.0-wmf.1/extensions/Wikidata/extensions/Wikibase/lib/includes/store/RevisionBasedEntityLookup.php(44): Wikibase\Lib\Store\CachingEntityRevisionLookup->getEntityRevision(Wikibase\DataModel\Entity\ItemId)
#5 /srv/mediawiki/php-1.27.0-wmf.1/extensions/Wikidata/vendor/wikibase/data-model-services/src/Lookup/RedirectResolvingEntityLookup.php(51): Wikibase\Lib\Store\RevisionBasedEntityLookup->getEntity(Wikibase\DataModel\Entity\ItemId)
#6 /srv/mediawiki/php-1.27.0-wmf.1/extensions/Wikidata/vendor/wikibase/data-model-services/src/Lookup/RestrictedEntityLookup.php(81): Wikibase\DataModel\Services\Lookup\RedirectResolvingEntityLookup->getEntity(Wikibase\DataModel\Entity\ItemId)
#7 /srv/mediawiki/php-1.27.0-wmf.1/extensions/Wikidata/extensions/Wikibase/client/includes/DataAccess/StatementTransclusionInteractor.php(85): Wikibase\DataModel\Services\Lookup\RestrictedEntityLookup->getEntity(Wikibase\DataModel\Entity\ItemId)
#8 /srv/mediawiki/php-1.27.0-wmf.1/extensions/Wikidata/extensions/Wikibase/client/includes/DataAccess/PropertyParserFunction/LanguageAwareRenderer.php(62): Wikibase\Client\DataAccess\StatementTransclusionInteractor->render(Wikibase\DataModel\Entity\ItemId, string)
#9 /srv/mediawiki/php-1.27.0-wmf.1/extensions/Wikidata/extensions/Wikibase/client/includes/DataAccess/PropertyParserFunction/Runner.php(104): Wikibase\Client\DataAccess\PropertyParserFunction\LanguageAwareRenderer->render(Wikibase\DataModel\Entity\ItemId, string)
#10 /srv/mediawiki/php-1.27.0-wmf.1/extensions/Wikidata/extensions/Wikibase/client/includes/DataAccess/PropertyParserFunction/Runner.php(184): Wikibase\Client\DataAccess\PropertyParserFunction\Runner->runPropertyParserFunction(Parser, PPTemplateFrame_Hash, array)
#11 /srv/mediawiki/php-1.27.0-wmf.1/extensions/Wikidata/extensions/Wikibase/client/includes/Hooks/ParserFunctionRegistrant.php(47): Wikibase\Client\DataAccess\PropertyParserFunction\Runner::render(Parser, PPTemplateFrame_Hash, array)
#12 /srv/mediawiki/php-1.27.0-wmf.1/includes/parser/Parser.php(3797): Closure$Wikibase\Client\Hooks\ParserFunctionRegistrant::registerPropertyParserFunction(Parser, PPTemplateFrame_Hash, array)
#13 /srv/mediawiki/php-1.27.0-wmf.1/includes/parser/Parser.php(3531): Parser->callParserFunction(PPTemplateFrame_Hash, string, array)
#14 /srv/mediawiki/php-1.27.0-wmf.1/includes/parser/Preprocessor_Hash.php(1104): Parser->braceSubstitution(array, PPTemplateFrame_Hash)
#15 /srv/mediawiki/php-1.27.0-wmf.1/includes/parser/Preprocessor_Hash.php(1607): PPFrame_Hash->expand(PPNode_Hash_Tree, integer)
#16 /srv/mediawiki/php-1.27.0-wmf.1/includes/parser/Preprocessor_Hash.php(1633): PPTemplateFrame_Hash->getNumberedArgument(string)
#17 /srv/mediawiki/php-1.27.0-wmf.1/extensions/Scribunto/engines/LuaCommon/LuaCommon.php(630): PPTemplateFrame_Hash->getArgument(string)
#18 /srv/mediawiki/php-1.27.0-wmf.1/extensions/Scribunto/engines/LuaSandbox/Engine.php(384): Scribunto_LuaEngine->getExpandedArgument(string, string)
#19 [internal function]: Scribunto_LuaSandboxCallback->__call(string, array)
#20 /srv/mediawiki/php-1.27.0-wmf.1/extensions/Scribunto/engines/LuaSandbox/Engine.php(297): LuaSandboxFunction->call(LuaSandboxFunction)
#21 /srv/mediawiki/php-1.27.0-wmf.1/extensions/Scribunto/engines/LuaCommon/LuaCommon.php(257): Scribunto_LuaSandboxInterpreter->callFunction(LuaSandboxFunction, LuaSandboxFunction)
#22 /srv/mediawiki/php-1.27.0-wmf.1/extensions/Scribunto/engines/LuaCommon/LuaCommon.php(898): Scribunto_LuaEngine->executeFunctionChunk(LuaSandboxFunction, PPTemplateFrame_Hash)
#23 /srv/mediawiki/php-1.27.0-wmf.1/extensions/Scribunto/common/Hooks.php(116): Scribunto_LuaModule->invoke(string, PPTemplateFrame_Hash)
#24 /srv/mediawiki/php-1.27.0-wmf.1/includes/parser/Parser.php(3797): ScribuntoHooks::invokeHook(Parser, PPTemplateFrame_Hash, array)
#25 /srv/mediawiki/php-1.27.0-wmf.1/includes/parser/Parser.php(3531): Parser->callParserFunction(PPTemplateFrame_Hash, string, array)
#26 /srv/mediawiki/php-1.27.0-wmf.1/includes/parser/Preprocessor_Hash.php(1104): Parser->braceSubstitution(array, PPTemplateFrame_Hash)
#27 /srv/mediawiki/php-1.27.0-wmf.1/includes/parser/Parser.php(3673): PPFrame_Hash->expand(PPNode_Hash_Tree)
#28 /srv/mediawiki/php-1.27.0-wmf.1/includes/parser/Preprocessor_Hash.php(1104): Parser->braceSubstitution(array, PPFrame_Hash)
#29 /srv/mediawiki/php-1.27.0-wmf.1/includes/parser/Parser.php(3350): PPFrame_Hash->expand(PPNode_Hash_Tree, integer)
#30 /srv/mediawiki/php-1.27.0-wmf.1/includes/parser/Parser.php(648): Parser->replaceVariables(string, PPFrame_Hash)
#31 /srv/mediawiki/php-1.27.0-wmf.1/extensions/ParsoidBatchAPI/includes/ApiParsoidBatch.php(154): Parser->preprocess(string, Title, ParserOptions, boolean)
#32 /srv/mediawiki/php-1.27.0-wmf.1/extensions/ParsoidBatchAPI/includes/ApiParsoidBatch.php(79): ApiParsoidBatch->preprocess(string, Title, boolean)
#33 /srv/mediawiki/php-1.27.0-wmf.1/includes/api/ApiMain.php(1270): ApiParsoidBatch->execute()
#34 /srv/mediawiki/php-1.27.0-wmf.1/includes/api/ApiMain.php(466): ApiMain->executeAction()
#35 /srv/mediawiki/php-1.27.0-wmf.1/includes/api/ApiMain.php(438): ApiMain->executeActionWithErrorHandling()
#36 /srv/mediawiki/php-1.27.0-wmf.1/api.php(88): ApiMain->execute()
#37 /srv/mediawiki/w/api.php(3): include(string)

Event Timeline

aude raised the priority of this task from to Needs Triage.
aude updated the task description. (Show Details)
aude subscribed.
aude triaged this task as High priority.Sep 30 2015, 6:46 PM
aude set Security to None.

this occurs moderately... not enough to rollback deployment but should be fixed asap

I was able to reproduce the issue by:

  1. redirect an item (say Q1) on my repo to another item (e.g. Q2)
  2. delete Q2
  3. use something like {{#property:P4|from=Q2}} on a client wiki page

there possibly are other scenarios affected (e.g. lua?)

the occurrance of the issue in the logs and potential effect on pages is enough that I wouldn't want the new branch to be deployed on Wikidata + the sister projects with this issue.

aude raised the priority of this task from High to Unbreak Now!.Sep 30 2015, 10:34 PM
hoo claimed this task.
hoo subscribed.

Will backport today.

Change 242850 had a related patch set uploaded (by Aude):
Add tests for StatementTransclusionInteractor

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

Change 242739 abandoned by Aude:
Add tests for StatementTransclusionInteractor

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

Change 242850 merged by jenkins-bot:
Add tests for StatementTransclusionInteractor

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