Page MenuHomePhabricator

404 errors for CSS and HTML from Bits in zh-yue wikipedia
Closed, ResolvedPublic

Description

Author: yaukasin

Description:
zh-yue wikipedia does not load the stylesheets properly. When I view the source HTML code, I discover that there are many garbage stylesheets which would return error 404.

Below is the code after the line <link rel="canonical" href="......"> in zh-yue wikipedia

<link rel="stylesheet" href="bits.wikimedia.org/zh-yue.wikipedia.org/load.php?debug=true&amp;lang=yue&amp;modules=ext.gadget.internalLinkHelper-altcolor&amp;only=styles&amp;skin=vector&amp;*" />
<link rel="stylesheet" href="
bits.wikimedia.org/zh-yue.wikipedia.org/load.php?debug=true&amp;lang=yue&amp;modules=ext.uls.nojs&amp;only=styles&amp;skin=vector&amp;*" />
<link rel="stylesheet" href="bits.wikimedia.org/zh-yue.wikipedia.org/load.php?debug=true&amp;lang=yue&amp;modules=ext.visualEditor.viewPageTarget.noscript&amp;only=styles&amp;skin=vector&amp;*" />
<link rel="stylesheet" href="
bits.wikimedia.org/zh-yue.wikipedia.org/load.php?debug=true&amp;lang=yue&amp;modules=ext.wikihiero&amp;only=styles&amp;skin=vector&amp;*" />
<link rel="stylesheet" href="bits.wikimedia.org/zh-yue.wikipedia.org/load.php?debug=true&amp;lang=yue&amp;modules=mediawiki.legacy.commonPrint&amp;only=styles&amp;skin=vector&amp;*" />
<link rel="stylesheet" href="
bits.wikimedia.org/zh-yue.wikipedia.org/load.php?debug=true&amp;lang=yue&amp;modules=mediawiki.legacy.shared&amp;only=styles&amp;skin=vector&amp;*" />
<link rel="stylesheet" href="bits.wikimedia.org/zh-yue.wikipedia.org/load.php?debug=true&amp;lang=yue&amp;modules=mediawiki.skinning.interface&amp;only=styles&amp;skin=vector&amp;*" />
<link rel="stylesheet" href="
bits.wikimedia.org/zh-yue.wikipedia.org/load.php?debug=true&amp;lang=yue&amp;modules=mediawiki.ui.button&amp;only=styles&amp;skin=vector&amp;*" />
<link rel="stylesheet" href="//bits.wikimedia.org/zh-yue.wikipedia.org/load.php?debug=true&amp;lang=yue&amp;modules=skins.vector.styles&amp;only=styles&amp;skin=vector&amp;*" />

<link rel="stylesheet" href="//bits.wikimedia.org/zh-yue.wikipedia.org/load.php?debug=true&amp;lang=yue&amp;modules=wikibase.client.init&amp;only=styles&amp;skin=vector&amp;*" />

Below is the code after the line <link rel="canonical" href="......"> in en wikipedia for comparison

<link rel="stylesheet" href="//bits.wikimedia.org/en.wikipedia.org/load.php?debug=false&amp;lang=en&amp;modules=ext.gadget.DRN-wizard%2CReferenceTooltips%2Ccharinsert%2Cfeatured-articles-links%2CrefToolbar%2Cteahouse%7Cext.rtlcite%2Cwikihiero%7Cext.uls.nojs%7Cext.visualEditor.viewPageTarget.noscript%7Cmediawiki.legacy.commonPrint%2Cshared%7Cmediawiki.skinning.interface%7Cmediawiki.ui.button%7Cskins.vector.styles%7Cwikibase.client.init&amp;only=styles&amp;skin=vector&amp;*" />


Version: wmf-deployment
Severity: major

Details

Reference
bz70557

Event Timeline

bzimport raised the priority of this task from to High.Nov 22 2014, 3:58 AM
bzimport set Reference to bz70557.
bzimport added a subscriber: Unknown Object (MLST).

Thanks for taking the time to report this!

I went to https://zh-yue.wikipedia.org/wiki/%E9%A0%AD%E7%89%88?debug=true and using the "Network" tab of Firefox' developer tools there are a few 404s for HTML/CSS stuff from bits, like

https://bits.wikimedia.org/zh-yue.wikipedia.org/load.php?debug=true&lang=yue&modules=site&only=scripts&skin=vector&* which is a 404.

Replacing lang=yue by lang=zh-yue works.

According to Operations mailing list there were issues with Bits which started on Friday around 16:33 UTC due to a serialisation of requests for one specific uncacheable URL which was extremely slow to render and piled up requests, but that should have been sorted out / worked around. I'll ask on the list.

While on varnish the url

https://bits.wikimedia.org/zh-yue.wikipedia.org/load.php?debug=true&lang=yue&modules=site&only=scripts&skin=vector&*

returns 404, the same url without the final parameter returns correctly 200:

https://bits.wikimedia.org/zh-yue.wikipedia.org/load.php?debug=true&lang=yue&modules=site&only=scripts&skin=vector

I confirmed that both urls, when properly translated, are answered with a 200 OK (and the same content) by the backend:

https://zh-yue.wikipedia.org/w/load.php?debug=true&lang=yue&modules=site&only=scripts&skin=vector

  • 200 OK 26761

https://zh-yue.wikipedia.org/w/load.php?debug=true&lang=yue&modules=site&only=scripts&skin=vector&*

  • 200 OK 26761

So this seems to be an issue at the varnish layer.

I'll update the ticket as I find out more.

the patch has solved the problem, and now the page loads correctly.

Thanks for the quick investigation and fixing, Giuseppe!