Page MenuHomePhabricator

beta wikidata API: LogicException (UnusableEntitySource used)
Closed, ResolvedPublic

Description

Error

GET https://wikidata.beta.wmflabs.org/w/api.php yields LogicException UnusableEntitySource should never be used.

trace
{
    "error": {
        "code": "internal_api_error_LogicException",
        "info": "[XG5tnqwQBGoAAAUUKb8AAABF] Exception caught: Wikibase\\DataAccess\\UnusableEntitySource should never be used",
        "errorclass": "LogicException",
        "*": "LogicException at /srv/mediawiki/php-master/extensions/Wikibase/data-access/src/UnusableEntitySource.php(18)\n#0 /srv/mediawiki/php-master/extensions/Wikibase/lib/includes/Store/Sql/WikiPageEntityMetaDataLookup.php(80): Wikibase\\DataAccess\\UnusableEntitySource->getDatabaseName()\n#1 /srv/mediawiki/php-master/extensions/Wikibase/repo/includes/WikibaseRepo.php(878): Wikibase\\Lib\\Store\\Sql\\WikiPageEntityMetaDataLookup->__construct(Wikibase\\Lib\\Store\\EntityNamespaceLookup, Wikibase\\Lib\\Store\\Sql\\EntityIdLocalPartPageTableEntityQuery, Wikibase\\DataAccess\\UnusableEntitySource, Wikibase\\DataAccess\\DataAccessSettings, boolean, string)\n#2 /srv/mediawiki/php-master/extensions/WikibaseQualityConstraints/src/ServiceWiring.php(256): Wikibase\\Repo\\WikibaseRepo->getLocalRepoWikiPageMetaDataAccessor()\n#3 /srv/mediawiki/php-master/includes/libs/services/ServiceContainer.php(431): Closure$WikibaseQuality\\ConstraintReport\\#15(MediaWiki\\MediaWikiServices)\n#4 /srv/mediawiki/php-master/includes/libs/services/ServiceContainer.php(414): Wikimedia\\Services\\ServiceContainer->createService(string)\n#5 /srv/mediawiki/php-master/extensions/WikibaseQualityConstraints/src/ConstraintsServices.php(45): Wikimedia\\Services\\ServiceContainer->getService(string)\n#6 /srv/mediawiki/php-master/extensions/WikibaseQualityConstraints/src/ConstraintsServices.php(117): WikibaseQuality\\ConstraintReport\\ConstraintsServices::getService(MediaWiki\\MediaWikiServices, string)\n#7 /srv/mediawiki/php-master/extensions/WikibaseQualityConstraints/src/Api/CheckConstraints.php(108): WikibaseQuality\\ConstraintReport\\ConstraintsServices::getResultsSource()\n#8 /srv/mediawiki/php-master/includes/api/ApiModuleManager.php(191): WikibaseQuality\\ConstraintReport\\Api\\CheckConstraints::newFromGlobalState(ApiMain, string)\n#9 /srv/mediawiki/php-master/includes/api/ApiModuleManager.php(167): ApiModuleManager->instantiateModule(string, string, string)\n#10 /srv/mediawiki/php-master/includes/api/ApiBase.php(615): ApiModuleManager->getModule(string)\n#11 /srv/mediawiki/php-master/includes/api/ApiBase.php(2398): ApiBase->getModuleFromPath(string)\n#12 /srv/mediawiki/php-master/includes/api/ApiHelp.php(430): ApiBase->getFinalParamDescription()\n#13 /srv/mediawiki/php-master/includes/api/ApiHelp.php(147): ApiHelp::getHelpInternal(DerivativeContext, array, array, array)\n#14 /srv/mediawiki/php-master/includes/api/ApiHelp.php(51): ApiHelp::getHelp(DerivativeContext, array, array)\n#15 /srv/mediawiki/php-master/includes/api/ApiMain.php(1596): ApiHelp->execute()\n#16 /srv/mediawiki/php-master/includes/api/ApiMain.php(531): ApiMain->executeAction()\n#17 /srv/mediawiki/php-master/includes/api/ApiMain.php(502): ApiMain->executeActionWithErrorHandling()\n#18 /srv/mediawiki/php-master/api.php(87): ApiMain->execute()\n#19 /srv/mediawiki/w/api.php(3): include(string)\n#20 {main}"
    },
    "servedby": "deployment-mediawiki-09"
}

Impact

This is beta only.

Notes

Beta, at the time of writing, is in read only mode if that makes any difference.

Details

Related Objects

StatusAssignedTask
Declineddchen
OpenNone
OpenNone
DuplicateNone
OpenNone
ResolvedAbit
OpenNone
DuplicateNone
OpenNone
OpenNone
OpenNone
ResolvedRamsey-WMF
ResolvedCparle
ResolvedJdforrester-WMF
ResolvedJdforrester-WMF
OpenNone
OpenNone
OpenWMDE-leszek
ResolvedWMDE-leszek

Event Timeline

Restricted Application removed a project: Patch-For-Review. · View Herald TranscriptFeb 21 2019, 9:35 AM
Restricted Application added a subscriber: Aklapper. · View Herald Transcript
Addshore triaged this task as High priority.Feb 21 2019, 9:45 AM
Addshore moved this task from consider for next sprint to in progress on the Wikidata board.

Change 492263 had a related patch set uploaded (by WMDE-leszek; owner: WMDE-leszek):
[mediawiki/extensions/Wikibase@master] Fixed WikibaseRepo::getLocalRepoWikiPageMetaDataAccessor when using "entity source based federation"

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

Caused by sloppy work of mine under umbrella of T214557. Not related to the recent beta outage/beta being in read only state.

alaa_wmde added a subscriber: alaa_wmde.

Change 492263 merged by jenkins-bot:
[mediawiki/extensions/Wikibase@master] Fixed WikibaseRepo::getLocalRepoWikiPageMetaDataAccessor when using "entity source based federation"

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