Page MenuHomePhabricator

[Beta Cluster] ActorMigration.php: Cannot read both schemas
Closed, ResolvedPublic

Description

Error

Request ID: W76xHQpEEj4AAElc3voAAAAE

message
MediaWiki internal error.

Original exception: [W76xHQpEEj4AAElc3voAAAAE] /wiki/Sandbox InvalidArgumentException from line 95 of /srv/mediawiki/php-master/includes/ActorMigration.php: Cannot read both schemas
Backtrace:
#0 /srv/mediawiki/php-master/includes/ServiceWiring.php(67): ActorMigration->__construct(integer)
#1 /srv/mediawiki/php-master/includes/services/ServiceContainer.php(431): Closure$(MediaWiki\MediaWikiServices)
#2 /srv/mediawiki/php-master/includes/services/ServiceContainer.php(414): MediaWiki\Services\ServiceContainer->createService(string)
#3 /srv/mediawiki/php-master/includes/MediaWikiServices.php(415): MediaWiki\Services\ServiceContainer->getService(string)
#4 /srv/mediawiki/php-master/includes/ServiceWiring.php(441): MediaWiki\MediaWikiServices->getActorMigration()
#5 /srv/mediawiki/php-master/includes/services/ServiceContainer.php(431): Closure$#46(MediaWiki\MediaWikiServices)
#6 /srv/mediawiki/php-master/includes/services/ServiceContainer.php(414): MediaWiki\Services\ServiceContainer->createService(string)
#7 /srv/mediawiki/php-master/includes/MediaWikiServices.php(782): MediaWiki\Services\ServiceContainer->getService(string)
#8 /srv/mediawiki/php-master/includes/ServiceWiring.php(426): MediaWiki\MediaWikiServices->getRevisionStoreFactory()
#9 /srv/mediawiki/php-master/includes/services/ServiceContainer.php(431): Closure$#45(MediaWiki\MediaWikiServices)
#10 /srv/mediawiki/php-master/includes/services/ServiceContainer.php(414): MediaWiki\Services\ServiceContainer->createService(string)
#11 /srv/mediawiki/php-master/includes/MediaWikiServices.php(774): MediaWiki\Services\ServiceContainer->getService(string)
#12 /srv/mediawiki/php-master/includes/ServiceWiring.php(418): MediaWiki\MediaWikiServices->getRevisionStore()
#13 /srv/mediawiki/php-master/includes/services/ServiceContainer.php(431): Closure$#43(MediaWiki\MediaWikiServices)
#14 /srv/mediawiki/php-master/includes/services/ServiceContainer.php(414): MediaWiki\Services\ServiceContainer->createService(string)
#15 /srv/mediawiki/php-master/includes/MediaWikiServices.php(758): MediaWiki\Services\ServiceContainer->getService(string)
#16 /srv/mediawiki/php-master/includes/Revision.php(72): MediaWiki\MediaWikiServices->getRevisionLookup()
#17 /srv/mediawiki/php-master/includes/Revision.php(1308): Revision::getRevisionLookup()
#18 /srv/mediawiki/php-master/includes/page/WikiPage.php(744): Revision::newKnownCurrent(Wikimedia\Rdbms\DatabaseMysqli, Title, integer)
#19 /srv/mediawiki/php-master/includes/page/WikiPage.php(766): WikiPage->loadLastEdit()
#20 /srv/mediawiki/php-master/includes/page/Article.php(430): WikiPage->getRevision()
#21 /srv/mediawiki/php-master/includes/page/Article.php(714): Article->fetchRevisionRecord()
#22 /srv/mediawiki/php-master/includes/actions/ViewAction.php(68): Article->view()
#23 /srv/mediawiki/php-master/includes/MediaWiki.php(501): ViewAction->show()
#24 /srv/mediawiki/php-master/includes/MediaWiki.php(294): MediaWiki->performAction(Article, Title)
#25 /srv/mediawiki/php-master/includes/MediaWiki.php(868): MediaWiki->performRequest()
#26 /srv/mediawiki/php-master/includes/MediaWiki.php(525): MediaWiki->main()
#27 /srv/mediawiki/php-master/index.php(42): MediaWiki->run()
#28 /srv/mediawiki/w/index.php(3): include(string)
#29 {main}

Exception caught inside exception handler: [W76xHQpEEj4AAElc3voAAAAE] /wiki/Sandbox InvalidArgumentException from line 95 of /srv/mediawiki/php-master/includes/ActorMigration.php: Cannot read both schemas
Backtrace:
#0 /srv/mediawiki/php-master/includes/ServiceWiring.php(67): ActorMigration->__construct(integer)
#1 /srv/mediawiki/php-master/includes/services/ServiceContainer.php(431): Closure$(MediaWiki\MediaWikiServices)
#2 /srv/mediawiki/php-master/includes/services/ServiceContainer.php(414): MediaWiki\Services\ServiceContainer->createService(string)
#3 /srv/mediawiki/php-master/includes/MediaWikiServices.php(415): MediaWiki\Services\ServiceContainer->getService(string)
#4 /srv/mediawiki/php-master/includes/ServiceWiring.php(441): MediaWiki\MediaWikiServices->getActorMigration()
#5 /srv/mediawiki/php-master/includes/services/ServiceContainer.php(431): Closure$#46(MediaWiki\MediaWikiServices)
#6 /srv/mediawiki/php-master/includes/services/ServiceContainer.php(414): MediaWiki\Services\ServiceContainer->createService(string)
#7 /srv/mediawiki/php-master/includes/MediaWikiServices.php(782): MediaWiki\Services\ServiceContainer->getService(string)
#8 /srv/mediawiki/php-master/extensions/Wikibase/data-access/src/PerRepositoryServiceWiring.php(82): MediaWiki\MediaWikiServices->getRevisionStoreFactory()
#9 /srv/mediawiki/php-master/includes/services/ServiceContainer.php(431): Closure$#3(Wikibase\DataAccess\PerRepositoryServiceContainer, Wikibase\DataAccess\GenericServices, Wikibase\DataAccess\DataAccessSettings)
#10 /srv/mediawiki/php-master/includes/services/ServiceContainer.php(414): MediaWiki\Services\ServiceContainer->createService(string)
#11 /srv/mediawiki/php-master/extensions/Wikibase/data-access/src/MultiRepositoryServices.php(64): MediaWiki\Services\ServiceContainer->getService(string)
#12 /srv/mediawiki/php-master/extensions/Wikibase/data-access/src/MultiRepositoryServiceWiring.php(33): Wikibase\DataAccess\MultiRepositoryServices->getServiceMap(string)
#13 /srv/mediawiki/php-master/includes/services/ServiceContainer.php(431): Closure$#3(Wikibase\DataAccess\MultiRepositoryServices)
#14 /srv/mediawiki/php-master/includes/services/ServiceContainer.php(414): MediaWiki\Services\ServiceContainer->createService(string)
#15 /srv/mediawiki/php-master/extensions/Wikibase/data-access/src/MultiRepositoryServices.php(157): MediaWiki\Services\ServiceContainer->getService(string)
#16 /srv/mediawiki/php-master/extensions/Wikibase/data-access/src/MultipleRepositoryAwareWikibaseServices.php(153): Wikibase\DataAccess\MultiRepositoryServices->getEntityRevisionLookup()
#17 /srv/mediawiki/php-master/includes/services/ServiceContainer.php(431): Closure$Wikibase\DataAccess\MultipleRepositoryAwareWikibaseServices::defineServices#4(Wikibase\DataAccess\MultipleRepositoryAwareWikibaseServices)
#18 /srv/mediawiki/php-master/includes/services/ServiceContainer.php(414): MediaWiki\Services\ServiceContainer->createService(string)
#19 /srv/mediawiki/php-master/extensions/Wikibase/data-access/src/MultipleRepositoryAwareWikibaseServices.php(216): MediaWiki\Services\ServiceContainer->getService(string)
#20 /srv/mediawiki/php-master/extensions/Wikibase/client/includes/Store/Sql/DirectSqlStore.php(363): Wikibase\DataAccess\MultipleRepositoryAwareWikibaseServices->getEntityRevisionLookup()
#21 /srv/mediawiki/php-master/extensions/Wikibase/client/includes/Store/Sql/DirectSqlStore.php(350): Wikibase\Client\Store\Sql\DirectSqlStore->newEntityRevisionLookup()
#22 /srv/mediawiki/php-master/extensions/Wikibase/client/includes/Store/Sql/DirectSqlStore.php(337): Wikibase\Client\Store\Sql\DirectSqlStore->getEntityRevisionLookup()
#23 /srv/mediawiki/php-master/extensions/Wikibase/client/includes/WikibaseClient.php(440): Wikibase\Client\Store\Sql\DirectSqlStore->getEntityLookup()
#24 /srv/mediawiki/php-master/extensions/Wikibase/client/includes/WikibaseClient.php(1260): Wikibase\Client\WikibaseClient->getEntityLookup()
#25 /srv/mediawiki/php-master/extensions/Wikibase/client/includes/Hooks/ParserClearStateHookHandler.php(24): Wikibase\Client\WikibaseClient->getRestrictedEntityLookup()
#26 /srv/mediawiki/php-master/includes/Hooks.php(174): Wikibase\Client\Hooks\ParserClearStateHookHandler::onParserClearState(Parser)
#27 /srv/mediawiki/php-master/includes/Hooks.php(202): Hooks::callHook(string, array, array, NULL)
#28 /srv/mediawiki/php-master/includes/parser/Parser.php(420): Hooks::run(string, array)
#29 /srv/mediawiki/php-master/includes/parser/Parser.php(4776): Parser->clearState()
#30 /srv/mediawiki/php-master/includes/parser/Parser.php(450): Parser->startParse(Title, ParserOptions, integer, boolean)
#31 /srv/mediawiki/php-master/includes/cache/MessageCache.php(1184): Parser->parse(string, Title, ParserOptions, boolean)
#32 /srv/mediawiki/php-master/includes/Message.php(1254): MessageCache->parse(string, Title, boolean, boolean, LanguageEn)
#33 /srv/mediawiki/php-master/includes/Message.php(878): Message->parseText(string)
#34 /srv/mediawiki/php-master/includes/Message.php(931): Message->toString(string)
#35 /srv/mediawiki/php-master/includes/skins/Skin.php(711): Message->parse()
#36 /srv/mediawiki/php-master/includes/skins/SkinTemplate.php(446): Skin->printSource()
#37 /srv/mediawiki/php-master/includes/skins/SkinTemplate.php(225): SkinTemplate->prepareQuickTemplate()
#38 /srv/mediawiki/php-master/includes/OutputPage.php(2580): SkinTemplate->outputPage()
#39 /srv/mediawiki/php-master/includes/exception/MWExceptionRenderer.php(136): OutputPage->output()
#40 /srv/mediawiki/php-master/includes/exception/MWExceptionRenderer.php(53): MWExceptionRenderer::reportHTML(InvalidArgumentException)
#41 /srv/mediawiki/php-master/includes/exception/MWExceptionHandler.php(98): MWExceptionRenderer::output(InvalidArgumentException, integer)
#42 /srv/mediawiki/php-master/includes/exception/MWExceptionHandler.php(172): MWExceptionHandler::report(InvalidArgumentException)
#43 /srv/mediawiki/php-master/includes/MediaWiki.php(552): MWExceptionHandler::handleException(InvalidArgumentException)
#44 /srv/mediawiki/php-master/index.php(42): MediaWiki->run()
#45 /srv/mediawiki/w/index.php(3): include(string)
#46 {main}

Impact

Unable to view certain pages on the wiki due to HTTP 500 Error.

Notes

At https://en.wikipedia.beta.wmflabs.org/wiki/Sandbox, right after the fix for T203942 was merged.

Currently on Beta only, might be due to a recent change.

Event Timeline

(Tentatively blocking next train, to remember to determine whether it's beta-specific, or needs to be resolved ahead of the branch.)

Took me a few minutes to realize, it's not specific to any given page. It's on any request not cached by Varnish. Presumably due to 993baa3493f1716, which together with T203942, are the only two changes merged in master between the last Jenkins auto-deploy for Beta Cluster 30 minutes ago.

Change 466590 had a related patch set uploaded (by Anomie; owner: Anomie):
[operations/mediawiki-config@master] Fix wgActorTableSchemaMigrationStage on Beta Cluster

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

Change 466590 merged by jenkins-bot:
[operations/mediawiki-config@master] Fix wgActorTableSchemaMigrationStage on Beta Cluster

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

(Tentatively blocking next train, to remember to determine whether it's beta-specific, or needs to be resolved ahead of the branch.)

It's Beta-specific. Also I'm just waiting for Jenkins to deploy the config change to Beta to verify that it's fixed now.

Anomie claimed this task.
Anomie triaged this task as Unbreak Now! priority.