Page MenuHomePhabricator

ResourceLoader seems to sometimes not see Gadget modules (due to mw1151)
Closed, ResolvedPublic



Event Timeline

bzimport raised the priority of this task from to Unbreak Now!.Nov 22 2014, 3:18 AM
bzimport set Reference to bz65424.

content hidden as private in Bugzilla

Change 133871 had a related patch set uploaded by Krinkle:
[wmf debug] resourceloader: Output servedBy when load.php has an error

content hidden as private in Bugzilla

[23:19] <greg-g> now I just need to figure out what is causing:
[23:24] <MatmaRex> huh, i reproduced it
[23:24] <MatmaRex> and looking at this URL:*
[23:24] <MatmaRex> i see a debug comment
[23:24] <MatmaRex> Problematic modules: {"ext.gadget.BugStatusUpdate":"missing","ext.gadget.DRN-wizard":"missing","ext.gadget.ReferenceTooltips":"missing","ext.gadget.WatchlistChangesBold":"missing","ext.gadget.charinsert":"missing","ext.gadget.edittop":"missing","ext.gadget.mySandbox":"missing","ext.gadget.refToolbar":"missing","":"missing","ext.gadget.teahouse":"missing"}
[23:24] <MatmaRex> so, gadgets have magically disappeared

[23:26] <ori> they're in the startup module
[23:26] <ori> mw.loader.getState('ext.gadget.teahouse')
[23:26] <ori> > "ready"
[23:27] <ori> nothing missing for me
[23:27] <ori> in that url
[23:28] <MatmaRex> ori: took a few page refreshes for me
[23:28] <ori> oh yeah
[23:28] <MatmaRex> i refreshed that URL now and it loaded right
[23:28] <ori> i got it now

[00:49] <greg-g> ori: MatmaRex odder can still repro
[00:50] greg-g just asked Krinkle to take a look now that he's back online
[00:51] <MatmaRex> yeah, i can reproduce still too
[00:52] <MatmaRex> seems to happen randomly, like 20% of time when i load an uncached URL
[00:53] <MatmaRex> all gadget modules are "missing"

[01:32] <MatmaRex> Krinkle: unless you have better ideas, i'd check if Gadget::loadStructuredList is sometimes returning null when it shouldn't be, and if yes, why is it doing that
[01:33] <Krinkle> MatmaRex: yeah, I'm mw-evalling now
[01:35] <Krinkle> Gadget::loadStructuredList() and the underlying memcached object is fine
[01:35] <Krinkle> at least not critical, let me inspect it

The summary as of right now is that Gadgets' generated modules are sometimes missing in load.php (and thus gadgets are not loaded) and we don't know why, but top people are on it. :P

It doesn't seem to affect any other modules nor any of Gadget's UI (like the special page or preferences).

Change 133871 merged by jenkins-bot:
[wmf debug] resourceloader: Output servedBy when load.php has an error

Of the 4 application servers for bits in eqiad (mw1149, mw1150, mw1151, mw1152), I've identified mw1151 as the problematic one.

Using requests like the following*bust123

(keep changing the bust query to make different cache misses).

Ori noticed mw1151 has as CPU spike in ganglia and disk issues.

I confirmed via mwscript on the local apache that its memcached is unable to retreive or store a value for cache key 'enwiki:gadgets-definition:7', from Gadget::loadStructuredList()

We should depool that node and have ops look into it.

Depooled. There is no indication that this was caused by a software fault, so I'm closing this bug as resolved. Once we have the full story on what happened to that server, a postmortem will be posted to