Last modified: 2014-09-08 19:20:55 UTC
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&lang=yue&modules=ext.gadget.internalLinkHelper-altcolor&only=styles&skin=vector&*" /> <link rel="stylesheet" href="//bits.wikimedia.org/zh-yue.wikipedia.org/load.php?debug=true&lang=yue&modules=ext.uls.nojs&only=styles&skin=vector&*" /> <link rel="stylesheet" href="//bits.wikimedia.org/zh-yue.wikipedia.org/load.php?debug=true&lang=yue&modules=ext.visualEditor.viewPageTarget.noscript&only=styles&skin=vector&*" /> <link rel="stylesheet" href="//bits.wikimedia.org/zh-yue.wikipedia.org/load.php?debug=true&lang=yue&modules=ext.wikihiero&only=styles&skin=vector&*" /> <link rel="stylesheet" href="//bits.wikimedia.org/zh-yue.wikipedia.org/load.php?debug=true&lang=yue&modules=mediawiki.legacy.commonPrint&only=styles&skin=vector&*" /> <link rel="stylesheet" href="//bits.wikimedia.org/zh-yue.wikipedia.org/load.php?debug=true&lang=yue&modules=mediawiki.legacy.shared&only=styles&skin=vector&*" /> <link rel="stylesheet" href="//bits.wikimedia.org/zh-yue.wikipedia.org/load.php?debug=true&lang=yue&modules=mediawiki.skinning.interface&only=styles&skin=vector&*" /> <link rel="stylesheet" href="//bits.wikimedia.org/zh-yue.wikipedia.org/load.php?debug=true&lang=yue&modules=mediawiki.ui.button&only=styles&skin=vector&*" /> <link rel="stylesheet" href="//bits.wikimedia.org/zh-yue.wikipedia.org/load.php?debug=true&lang=yue&modules=skins.vector.styles&only=styles&skin=vector&*" /> <link rel="stylesheet" href="//bits.wikimedia.org/zh-yue.wikipedia.org/load.php?debug=true&lang=yue&modules=wikibase.client.init&only=styles&skin=vector&*" /> ============================================================= 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&lang=en&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&only=styles&skin=vector&*" /> =============================================================
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.
A patch for the problem has been created: https://gerrit.wikimedia.org/r/#/c/159080/
the patch has solved the problem, and now the page loads correctly.
Thanks for the quick investigation and fixing, Giuseppe!