Page MenuHomePhabricator

EntityLookupException: the execution time limit of 60 seconds was exceeded
Open, Needs TriagePublicPRODUCTION ERROR

Description

Error message
/wiki/Special:EntityData/Q148.nt   Wikibase\DataModel\Services\Lookup\EntityLookupException from line 51 of /srv/mediawiki/php-1.36.0-wmf.4/extensions/Wikibase/lib/includes/Store/RevisionBasedEntityLookup.php: the execution time limit of 60 seconds was exceeded
Stack Trace
#0 /srv/mediawiki/php-1.36.0-wmf.4/vendor/wikibase/data-model-services/src/Lookup/RedirectResolvingEntityLookup.php(51): Wikibase\Lib\Store\RevisionBasedEntityLookup->getEntity(Wikibase\DataModel\Entity\ItemId)
#1 /srv/mediawiki/php-1.36.0-wmf.4/extensions/Wikibase/repo/includes/Rdf/RdfBuilder.php(462): Wikibase\DataModel\Services\Lookup\RedirectResolvingEntityLookup->getEntity(Wikibase\DataModel\Entity\ItemId)
#2 /srv/mediawiki/php-1.36.0-wmf.4/extensions/Wikibase/repo/includes/LinkedData/EntityDataSerializationService.php(230): Wikibase\Repo\Rdf\RdfBuilder->resolveMentionedEntities(Wikibase\DataModel\Services\Lookup\RedirectResolvingEntityLookup)
#3 /srv/mediawiki/php-1.36.0-wmf.4/extensions/Wikibase/repo/includes/LinkedData/EntityDataSerializationService.php(175): Wikibase\Repo\LinkedData\EntityDataSerializationService->rdfSerialize(Wikibase\Lib\Store\EntityRevision, NULL, array, Wikibase\Repo\Rdf\RdfBuilder, NULL)
#4 /srv/mediawiki/php-1.36.0-wmf.4/extensions/Wikibase/repo/includes/LinkedData/EntityDataRequestHandler.php(527): Wikibase\Repo\LinkedData\EntityDataSerializationService->getSerializedData(string, Wikibase\Lib\Store\EntityRevision, NULL, array, NULL)
#5 /srv/mediawiki/php-1.36.0-wmf.4/extensions/Wikibase/repo/includes/LinkedData/EntityDataRequestHandler.php(276): Wikibase\Repo\LinkedData\EntityDataRequestHandler->showData(WebRequest, OutputPage, string, Wikibase\DataModel\Entity\ItemId, integer)
#6 /srv/mediawiki/php-1.36.0-wmf.4/extensions/Wikibase/repo/includes/Specials/SpecialEntityData.php(156): Wikibase\Repo\LinkedData\EntityDataRequestHandler->handleRequest(string, WebRequest, OutputPage)
#7 /srv/mediawiki/php-1.36.0-wmf.4/includes/specialpage/SpecialPage.php(600): Wikibase\Repo\Specials\SpecialEntityData->execute(string)
#8 /srv/mediawiki/php-1.36.0-wmf.4/includes/specialpage/SpecialPageFactory.php(681): SpecialPage->run(string)
#9 /srv/mediawiki/php-1.36.0-wmf.4/includes/MediaWiki.php(307): MediaWiki\SpecialPage\SpecialPageFactory->executePath(Title, RequestContext)
#10 /srv/mediawiki/php-1.36.0-wmf.4/includes/MediaWiki.php(940): MediaWiki->performRequest()
#11 /srv/mediawiki/php-1.36.0-wmf.4/includes/MediaWiki.php(543): MediaWiki->main()
#12 /srv/mediawiki/php-1.36.0-wmf.4/index.php(53): MediaWiki->run()
#13 /srv/mediawiki/php-1.36.0-wmf.4/index.php(46): wfIndexMain()
#14 /srv/mediawiki/w/index.php(3): require(string)
#15 {main}
Impact
  1. Notes

Details

Request ID
9ac750c2-4207-46ac-8241-d6c504cce5fd
Request URL
/wiki/Special:EntityData/Q148.nt
Stack Trace

0 /srv/mediawiki/php-1.36.0-wmf.4/vendor/wikibase/data-model-services/src/Lookup/RedirectResolvingEntityLookup.php(51): Wikibase\Lib\Store\RevisionBasedEntityLookup->getEntity(Wikibase\DataModel\Entity\ItemId)
#1 /srv/mediawiki/php-1.36.0-wmf.4/extensions/Wikibase/repo/includes/Rdf/RdfBuilder.php(462): Wikibase\DataModel\Services\Lookup\RedirectResolvingEntityLookup->getEntity(Wikibase\DataModel\Entity\ItemId)
#2 /srv/mediawiki/php-1.36.0-wmf.4/extensions/Wikibase/repo/includes/LinkedData/EntityDataSerializationService.php(230): Wikibase\Repo\Rdf\RdfBuilder->resolveMentionedEntities(Wikibase\DataModel\Services\Lookup\RedirectResolvingEntityLookup)
#3 /srv/mediawiki/php-1.36.0-wmf.4/extensions/Wikibase/repo/includes/LinkedData/EntityDataSerializationService.php(175): Wikibase\Repo\LinkedData\EntityDataSerializationService->rdfSerialize(Wikibase\Lib\Store\EntityRevision, NULL, array, Wikibase\Repo\Rdf\RdfBuilder, NULL)
#4 /srv/mediawiki/php-1.36.0-wmf.4/extensions/Wikibase/repo/includes/LinkedData/EntityDataRequestHandler.php(527): Wikibase\Repo\LinkedData\EntityDataSerializationService->getSerializedData(string, Wikibase\Lib\Store\EntityRevision, NULL, array, NULL)
#5 /srv/mediawiki/php-1.36.0-wmf.4/extensions/Wikibase/repo/includes/LinkedData/EntityDataRequestHandler.php(276): Wikibase\Repo\LinkedData\EntityDataRequestHandler->showData(WebRequest, OutputPage, string, Wikibase\DataModel\Entity\ItemId, integer)
#6 /srv/mediawiki/php-1.36.0-wmf.4/extensions/Wikibase/repo/includes/Specials/SpecialEntityData.php(156): Wikibase\Repo\LinkedData\EntityDataRequestHandler->handleRequest(string, WebRequest, OutputPage)
#7 /srv/mediawiki/php-1.36.0-wmf.4/includes/specialpage/SpecialPage.php(600): Wikibase\Repo\Specials\SpecialEntityData->execute(string)
#8 /srv/mediawiki/php-1.36.0-wmf.4/includes/specialpage/SpecialPageFactory.php(681): SpecialPage->run(string)
#9 /srv/mediawiki/php-1.36.0-wmf.4/includes/MediaWiki.php(307): MediaWiki\SpecialPage\SpecialPageFactory->executePath(Title, RequestContext)
#10 /srv/mediawiki/php-1.36.0-wmf.4/includes/MediaWiki.php(940): MediaWiki->performRequest()
#11 /srv/mediawiki/php-1.36.0-wmf.4/includes/MediaWiki.php(543): MediaWiki->main()
#12 /srv/mediawiki/php-1.36.0-wmf.4/index.php(53): MediaWiki->run()
#13 /srv/mediawiki/php-1.36.0-wmf.4/index.php(46): wfIndexMain()
#14 /srv/mediawiki/w/index.php(3): require(string)
#15 {main}

=== Notes ===
Saw an uptick of these when triaging train for 1.36.0-wmf.4

Event Timeline

Restricted Application added a project: Wikidata. · View Herald TranscriptAug 12 2020, 6:49 PM
Restricted Application added a subscriber: Aklapper. · View Herald Transcript

So this actually just happens now in production...
https://www.wikidata.org/wiki/Special:EntityData/Q148.nt

Other formats like ttl and json etc seem to work, only nt seems to fail?
is nt the only one that does this crazy resolveMentionedEntities?

Pinging @Ladsgroup as he recently touched something in T255305 that may have affect load times.

I mean adding a better revision id lookup (using the cached service in core) would definitely improve things but one thing in general: Rdf output if is not on dump flavor, loads all entities that are linked in it (all items, properties, etc.). I filed T243950: RDF output of an entity loads all referenced entities, it shouldn't in Jan for it.