Page MenuHomePhabricator

deployment-mediawiki-09 PHP7 has broken cache of codebase?
Closed, DeclinedPublicBUG REPORT

Description

From https://en.wikipedia.beta.wmflabs.org/w/api.php while I am logged in, but not while I am logged out:

[XJlgAqwQBGoAAFPjDhoAAAAD] /w/api.php Wikimedia\Services\NoSuchServiceException from line 451 of /srv/mediawiki/php-master/includes/libs/services/ServiceContainer.php: No such service: MobileFrontend.Context
Backtrace:
#0 /srv/mediawiki/php-master/includes/libs/services/ServiceContainer.php(414): Wikimedia\Services\ServiceContainer->createService(string)
#1 /srv/mediawiki/php-master/extensions/MobileFrontend/includes/MobileFrontend.skin.hooks.php(182): Wikimedia\Services\ServiceContainer->getService(string)
#2 /srv/mediawiki/php-master/extensions/MobileFrontend/includes/MobileFrontend.hooks.php(178): MobileFrontendSkinHooks::prepareFooter(SkinApi, SkinApiTemplate)
#3 /srv/mediawiki/php-master/includes/Hooks.php(174): MobileFrontendHooks::onSkinTemplateOutputPageBeforeExec(SkinApi, SkinApiTemplate)
#4 /srv/mediawiki/php-master/includes/Hooks.php(202): Hooks::callHook(string, array, array, NULL)
#5 /srv/mediawiki/php-master/includes/skins/SkinTemplate.php(481): Hooks::run(string, array)
#6 /srv/mediawiki/php-master/includes/skins/SkinTemplate.php(225): SkinTemplate->prepareQuickTemplate()
#7 /srv/mediawiki/php-master/includes/OutputPage.php(2709): SkinTemplate->outputPage()
#8 /srv/mediawiki/php-master/includes/api/ApiFormatBase.php(332): OutputPage->output()
#9 /srv/mediawiki/php-master/includes/api/ApiFormatRaw.php(85): ApiFormatBase->closePrinter()
#10 /srv/mediawiki/php-master/includes/api/ApiMain.php(1856): ApiFormatRaw->closePrinter()
#11 /srv/mediawiki/php-master/includes/api/ApiMain.php(598): ApiMain->printResult(integer)
#12 /srv/mediawiki/php-master/includes/api/ApiMain.php(538): ApiMain->handleException(Wikimedia\Services\NoSuchServiceException)
#13 /srv/mediawiki/php-master/includes/api/ApiMain.php(502): ApiMain->executeActionWithErrorHandling()
#14 /srv/mediawiki/php-master/api.php(87): ApiMain->execute()
#15 /srv/mediawiki/w/api.php(3): require(string)
#16 {main}

See also:

Event Timeline

Krenair triaged this task as Unbreak Now! priority.Mar 25 2019, 11:15 PM
Krenair created this task.
Krenair renamed this task from API broken on beta due to missing MobileFrontend.Context service to API broken on beta for unknown number of logged in users (?) due to missing MobileFrontend.Context service.Mar 25 2019, 11:17 PM
Krenair updated the task description. (Show Details)
Jdforrester-WMF changed the subtype of this task from "Task" to "Bug Report".

@Jdforrester-WMF also sees this while logged in but @Paladox does not. Not seen while logged out

Jdlrobson added subscribers: pmiazga, xSavitar, Jdlrobson.

This was added about 2 weeks ago, so not sure why it's only surfacing now > https://gerrit.wikimedia.org/r/#/c/mediawiki/extensions/MobileFrontend/+/494825/
@pmiazga when you are done with the other UBN could you investigate?

Specifically this is in beta not prod so I assumed it to be a new issue, checking

I checked the https://en.wikipedia.beta.wmflabs.org/w/api.php and it works for me bot as logged in and logged out user.

It seems this is coming up when a user hits the deployment-mediawiki-09 server with the PHP_ENGINE=php7 cookie

Krenair renamed this task from API broken on beta for unknown number of logged in users (?) due to missing MobileFrontend.Context service to deployment-mediawiki-09 PHP7 has broken cache of codebase?.Mar 25 2019, 11:36 PM
Krenair lowered the priority of this task from Unbreak Now! to High.
Krenair added a subscriber: Joe.

I remembered a thing @Joe mentioned about admin ports when there was an opcache issue like this recently, have a patch that seems to have done the trick after a puppet run + scap pull on the misbehaving box

Change 499025 had a related patch set uploaded (by Alex Monk; owner: Alex Monk):
[operations/puppet@production] scap: Make wmflabs php7 behaviour match prod's

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