Last modified: 2013-10-23 17:01:21 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T58006, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 56006 - meta.wikimedia.org very strangely redirecting to wikimediafoundation.org
meta.wikimedia.org very strangely redirecting to wikimediafoundation.org
Status: RESOLVED FIXED
Product: Wikimedia
Classification: Unclassified
General/Unknown (Other open bugs)
wmf-deployment
All All
: High major (vote)
: ---
Assigned To: Nobody - You can work on this!
:
: 56007 (view as bug list)
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-10-22 17:11 UTC by MZMcBride
Modified: 2013-10-23 17:01 UTC (History)
12 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description MZMcBride 2013-10-22 17:11:42 UTC
mzmcbride@tools-login:~$ curl "https://meta.wikimedia.org/wiki/Special:Contributions/MZMcBride"
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>301 Moved Permanently</title>
</head><body>
<h1>Moved Permanently</h1>
<p>The document has moved <a href="http://wikimediafoundation.org/wiki/Special:Contributions/MZMcBride">here</a>.</p>
</body></html>

mzmcbride@tools-login:~$ curl -I "https://meta.wikimedia.org/wiki/Special:Contributions/MZMcBride"
HTTP/1.1 301 Moved Permanently
Server: nginx/1.1.19
Date: Tue, 22 Oct 2013 17:11:11 GMT
Content-Type: text/html; charset=iso-8859-1
Connection: keep-alive
Location: http://wikimediafoundation.org/wiki/Special:Contributions/MZMcBride
X-Cache: MISS from cp1016.eqiad.wmnet
X-Cache-Lookup: MISS from cp1016.eqiad.wmnet:3128
X-Cache: MISS from cp1002.eqiad.wmnet
X-Cache-Lookup: MISS from cp1002.eqiad.wmnet:80

I have no idea what's going on here.
Comment 2 MZMcBride 2013-10-22 17:29:07 UTC
According to Gerrit change #90669, "apache-fast-test wwwportals.url mw1044" was run prior to deploying these changes. We'll need to expand our test coverage to ensure that we don't do this again. :-)
Comment 3 MZMcBride 2013-10-22 17:30:12 UTC
And we'll need to purge Squid caches (and possibly other caches). Even as a logged-in user over HTTPS, I'm still getting mis-redirected.
Comment 4 Bryan Davis 2013-10-22 17:53:26 UTC
[[wikitech:Server_admin_log]]

17:23 mark: Banned Content-Type == "application/x-httpd-php" in text Varnish (eqiad)
Comment 5 Sam Reed (reedy) 2013-10-22 17:54:57 UTC
*** Bug 56007 has been marked as a duplicate of this bug. ***
Comment 6 Bryan Davis 2013-10-22 19:31:38 UTC
Reedy announced a possible fix having been found in #wikimedia-tech. I'm not seeing this issue continue after clearing my local browser cache. It did require a local cache clear however. Prior to that I was still getting redirects to the Foundation site for many pages I had tried to visit earlier today.
Comment 7 Sarah Stierch 2013-10-22 19:36:12 UTC
When I go to specific pages, it's OK. but when I type in the generic meta.wikiemdia.org I get a file to download. I've cleaned my cache a million times.
Comment 8 Bryan Davis 2013-10-22 19:56:03 UTC
It looks like a few varnish cache servers still have bad content cached. Mark's content-type ban isn't working for them because some content was cached as text/html instead of application/x-httpd-php.
Comment 9 Bryan Davis 2013-10-22 20:31:33 UTC
[[wikitech:Server_admin_log]]

20:30 bblack: varnish: banned 'obj.http.content-length == 33518' on text varnishes everywhere (extract2.php leakage)
Comment 10 Daniel Zahn 2013-10-22 22:47:57 UTC
pasting my post from wikitech on this bug for completeness:

---
As part of an ongoing effort to simplify, cleanup and reduce code lines of the Apache cluster config,
we we're planning to unify a lot of document roots for the "www"-portals into a single docroot, like here:

https://gerrit.wikimedia.org/r/#/c/90669/

looking at that we saw that the www.wikimedia.org portal wasn't handled by this, unlike the other portals, so
to further unify this we merged:

https://gerrit.wikimedia.org/r/#/c/91195/

which "just" moved the existing config for www.wikimedia.org to the wwwportals.conf file.

But because this had an old " ServerAlias *.wikimedia.org" in it, which now changed in the order Apache goes through the config,
it caused *.wikimedia.org URLs to redirect to wikimediafoundation.org

..
ServerAlias *.wikimedia.org
..
RewriteRule ^/wiki/(.*)$ http://wikimediafoundation.org/wiki/$1 [R=301,L]

We reverted both of the recent changes after just a few minutes and synced Apache config and restarted them.

Users still reported problems though due to caching.  So we started some Squid purging and  Mark banned php content-type in varnish. 

Additionally it turned out several Apaches didn't get restarted properly by apache-graceful-all,  and using apache-fast-test  with the pybal option we found some more that needed manual restarts a little while later.

For futher fixes Brandon banned by object size:  did < bblack> !log varnish: banned 'obj.http.content-length == 33518' on text varnishes everywhere (extract2.php leakage).
.. Reedy already prepared new patches to fix the root cause
..and apache-fast-test should check eqiad now instead of Tampa:  https://gerrit.wikimedia.org/r/#/c/91270/

Sorry for breakage! Thank you for help!
---
Comment 11 MZMcBride 2013-10-23 01:23:05 UTC
A big thank you to everyone who helped fix this issue. Sorry the cleanup went awry. :-/

I think this bug is resolved/fixed. I'm marking it as such. If anyone disagrees, please file a separate bug detailing a specific action item.
Comment 12 Daniel Zahn 2013-10-23 01:26:05 UTC
for completeness: some caching issues had still been reported/found on smaller wikis like outreach.wm and quality.wm, but these have been purged from squid like so: (note the --all)

mwscript purgeList.php --wiki=qualitywiki --all --verbose

a thing that is ok to do for _small_ wikis and that fixed the remaining issues we could see. I went through all of the small wikis on .wikimedia.org and they worked fine for me.
Comment 13 king.of.hearts.wiki 2013-10-23 08:00:07 UTC
This problem still exists for me. https://commons.wikimedia.org/wiki/Special:Watchlist redirects to http://wikimediafoundation.org/wiki/Special:Watchlist. This only happens to the Commons watchlist as far as I can tell, not any other Commons page (including other special pages) or any watchlists on other Wikimedia projects.
Comment 15 Stefan2 2013-10-23 11:46:27 UTC
(In reply to comment #14)
> Actually, I just found another page with an issue:
> https://commons.wikimedia.org/wiki/Commons:Featured_picture_candidates/File:
> Painted_Ladies_San_Francisco_January_2013_panorama_2.jpg
> redirects to
> https://commons.wikimedia.org/wiki/Featured_picture_candidates/File:
> Painted_Ladies_San_Francisco_January_2013_panorama_2.jpg.

I had the same problem yesterday: it was impossible to access a deletion request on Commons as the namespace was dropped from the URL. It was eventually solved when I cleared the cache and restarted the web browser.
Comment 16 MZMcBride 2013-10-23 14:58:49 UTC
(In reply to comment #15)
> I had the same problem yesterday: it was impossible to access a deletion
> request on Commons as the namespace was dropped from the URL. It was
> eventually solved when I cleared the cache and restarted the web browser.

This.

All of the example links pasted above work for me as expected.

Your Web browser received HTTP 301s yesterday, which signify "permanent" redirects. As such, Web browsers often heavily cache these redirects (even if you're logged in and even if you're accessing via HTTPS). You'll need to empty your cache in your Web browser and possibly restart it, as Stefan2 says.

I'm inclined to mark this bug as resolved/fixed again, though I'll hold off for now.
Comment 17 Andre Klapper 2013-10-23 15:23:55 UTC
As all links work again for me, it's extremely likely that this is indeed a webbrowser problem. See [[WP:BYPASS]] for more information. Feel free to add a comment here if cleaning your cache does not work. Closing again.
Comment 18 PiRSquared17 2013-10-23 17:01:21 UTC
I'm not sure it will help (as it is now FIXED), but here is a complete description according to one IP user:
https://en.wikipedia.org/wiki/User_talk:74.192.84.101#404_errors

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links