Page MenuHomePhabricator

Call to a member function getDatabaseName() on null, when deploying entity source config to wikidata clients
Closed, ResolvedPublicPRODUCTION ERROR

Description

Error

MediaWiki version: 1.35.0-wmf.39

While deploying a config change https://gerrit.wikimedia.org/r/c/operations/mediawiki-config/+/569259
which was then reverted https://gerrit.wikimedia.org/r/c/operations/mediawiki-config/+/608838
https://gerrit.wikimedia.org/r/c/operations/mediawiki-config/+/608839 is the replacement
as part of T254315

Only happened on commonswiki

message
Call to a member function getDatabaseName() on null

Impact

Notes

Details

Request ID
fac15ff4-b07c-46cb-88d9-08926d329bc4
Request URL
https://commons.wikimedia.org/w/api.php
Stack Trace
exception.trace
#0 [internal function]: Wikibase\MediaInfo\WikibaseMediaInfoHooks::{closure}(Wikibase\DataAccess\ByTypeDispatchingEntityRevisionLookup)
#1 /srv/mediawiki/php-1.35.0-wmf.39/extensions/Wikibase/lib/includes/Store/TypeDispatchingEntityRevisionLookup.php(87): call_user_func(Closure, Wikibase\DataAccess\ByTypeDispatchingEntityRevisionLookup)
#2 /srv/mediawiki/php-1.35.0-wmf.39/extensions/Wikibase/lib/includes/Store/TypeDispatchingEntityRevisionLookup.php(51): Wikibase\Lib\Store\TypeDispatchingEntityRevisionLookup->getLookup(string)
#3 /srv/mediawiki/php-1.35.0-wmf.39/extensions/Wikibase/lib/includes/Store/CachingEntityRevisionLookup.php(104): Wikibase\Lib\Store\TypeDispatchingEntityRevisionLookup->getEntityRevision(Wikibase\MediaInfo\DataModel\MediaInfoId, integer, string)
#4 /srv/mediawiki/php-1.35.0-wmf.39/extensions/Wikibase/lib/includes/Store/CachingEntityRevisionLookup.php(87): Wikibase\Lib\Store\CachingEntityRevisionLookup->fetchEntityRevision(Wikibase\MediaInfo\DataModel\MediaInfoId, integer, string)
#5 /srv/mediawiki/php-1.35.0-wmf.39/extensions/Wikibase/lib/includes/Store/CachingEntityRevisionLookup.php(104): Wikibase\Lib\Store\CachingEntityRevisionLookup->getEntityRevision(Wikibase\MediaInfo\DataModel\MediaInfoId, integer, string)
#6 /srv/mediawiki/php-1.35.0-wmf.39/extensions/Wikibase/lib/includes/Store/CachingEntityRevisionLookup.php(87): Wikibase\Lib\Store\CachingEntityRevisionLookup->fetchEntityRevision(Wikibase\MediaInfo\DataModel\MediaInfoId, integer, string)
#7 /srv/mediawiki/php-1.35.0-wmf.39/extensions/Wikibase/repo/includes/Api/GetEntities.php(275): Wikibase\Lib\Store\CachingEntityRevisionLookup->getEntityRevision(Wikibase\MediaInfo\DataModel\MediaInfoId)
#8 /srv/mediawiki/php-1.35.0-wmf.39/extensions/Wikibase/repo/includes/Api/GetEntities.php(257): Wikibase\Repo\Api\GetEntities->getEntityRevision(Wikibase\MediaInfo\DataModel\MediaInfoId, boolean)
#9 /srv/mediawiki/php-1.35.0-wmf.39/extensions/Wikibase/repo/includes/Api/GetEntities.php(136): Wikibase\Repo\Api\GetEntities->getEntityRevisionsFromEntityIds(array, boolean)
#10 /srv/mediawiki/php-1.35.0-wmf.39/includes/api/ApiMain.php(1585): Wikibase\Repo\Api\GetEntities->execute()
#11 /srv/mediawiki/php-1.35.0-wmf.39/includes/api/ApiMain.php(525): ApiMain->executeAction()
#12 /srv/mediawiki/php-1.35.0-wmf.39/includes/api/ApiMain.php(496): ApiMain->executeActionWithErrorHandling()
#13 /srv/mediawiki/php-1.35.0-wmf.39/api.php(89): ApiMain->execute()
#14 /srv/mediawiki/php-1.35.0-wmf.39/api.php(44): wfApiMain()
#15 /srv/mediawiki/w/api.php(3): require(string)
#16 {main}

Event Timeline

Change 569260 had a related patch set uploaded (by Addshore; owner: WMDE-leszek):
[operations/mediawiki-config@master] Commons: Define entity sources configuration

https://gerrit.wikimedia.org/r/c/operations/mediawiki-config/ /569260

Change 569260 merged by jenkins-bot:
[operations/mediawiki-config@master] Commons: Define entity sources configuration

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

Mentioned in SAL (#wikimedia-operations) [2020-07-06T18:38:40Z] <addshore@deploy1001> Synchronized wmf-config/InitialiseSettings.php: T256906 T256907 T256909 T254315 [[gerrit:569260]] Commons: Define entity sources configuration (duration: 00m 56s)

Change 609644 had a related patch set uploaded (by Lucas Werkmeister (WMDE); owner: Lucas Werkmeister (WMDE)):
[operations/mediawiki-config@master] Revert "Commons: Define entity sources configuration"

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

Change 609644 merged by jenkins-bot:
[operations/mediawiki-config@master] Revert "Commons: Define entity sources configuration"

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

Mentioned in SAL (#wikimedia-operations) [2020-07-07T07:27:45Z] <lucaswerkmeister-wmde@deploy1001> Synchronized wmf-config/InitialiseSettings.php: Config: [[gerrit:609644|Revert "Commons: Define entity sources configuration" (T256906, T256907, T256909, T254315, T257266)]] (duration: 00m 53s)

Mentioned in SAL (#wikimedia-operations) [2020-07-07T07:31:05Z] <lucaswerkmeister-wmde@deploy1001> Synchronized wmf-config/InitialiseSettings.php: Config: [[gerrit:609644|Revert "Commons: Define entity sources configuration" (T256906, T256907, T256909, T254315, T257266)]] (forgot to git rebase so the last sync was a no-op) (duration: 00m 56s)

Change 609987 had a related patch set uploaded (by Addshore; owner: Addshore):
[operations/mediawiki-config@master] Commons: Define entity sources configuration (take 2)

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

Change 609987 merged by jenkins-bot:
[operations/mediawiki-config@master] Commons: Define entity sources configuration (take 2)

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