Page MenuHomePhabricator

Logging in to en.wikipedia logs me out of test.wikipedia and vise-versa.
Closed, ResolvedPublic

Description

When I log in to https://en.wikipedia.org/ I automatically get logged out of https://test.wikipedia.org/ when I'm logging in from my University that uses IPv6 addresses. I won't be back to school until Friday if further testing or information is needed however.


Version: unspecified
Severity: normal
See Also:
https://bugzilla.wikimedia.org/show_bug.cgi?id=49708
https://bugzilla.wikimedia.org/show_bug.cgi?id=48646
https://bugzilla.wikimedia.org/show_bug.cgi?id=50130

Details

Reference
bz47843

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 22 2014, 1:21 AM
bzimport set Reference to bz47843.

Does this happen with any browser?
Which browsers (name and version) did you test?

(In reply to comment #1)

Does this happen with any browser?
Which browsers (name and version) did you test?

I was using Firefox. IIRC (I'll check on Friday), my University work system is running ESR 17. I believe the system also has IE8 or 9 on it and a version of Google Chrome of which I would be happy to test on Friday as well.

(In reply to comment #1)

Does this happen with any browser?
Which browsers (name and version) did you test?

Okay Alan, I'm at school on my Laptop and it is doing it right now.
My current IP address is 141.114.96.62 which suggests that my IPv6 address wasn't the issue.
I'm using FireFox 20.0.1 on a Windows Vista Home HP Pavillion dv6000.
I can confirm the same issue exists in IE 7.0.6001.18000
I'm breaking down and going against my moral fiber and installing Chrome, Safari, and Opera to test those systems now. I'll return with my results.

(In reply to comment #3)

(In reply to comment #1)

Does this happen with any browser?
Which browsers (name and version) did you test?

Okay Alan, I'm at school on my Laptop and it is doing it right now.
My current IP address is 141.114.96.62 which suggests that my IPv6 address
wasn't the issue.
I'm using FireFox 20.0.1 on a Windows Vista Home HP Pavillion dv6000.
I can confirm the same issue exists in IE 7.0.6001.18000
I'm breaking down and going against my moral fiber and installing Chrome,
Safari, and Opera to test those systems now. I'll return with my results.

Okay, this also happens on:
Google Chrome - Version 26.0.1410.64 m
Opera - 12.15 build 1748 (Opera/9.80 (Windows NT 6.0) Presto/2.12.388 Version/12.15)
Safari - 5.1.7 (7534.57.2)

swalling wrote:

I confirmed this on FF 21 as well.

Considering test.wikipedia.org is solely for testing, I'm not sure this is a high priority. I created a completely fresh account and browser session to test this, and got no errors from login/SUL behavior when accessing other projects such as Commons while logged in to enwiki.

This will happen with global accounts, due to to test.wikipedia.org being in a different data center.

Basically, CentralAuth will set a cookie (centralauth_Session) on login for .wikipedia.org. The content of the cookie is a pointer into memcached which holds the user's sessoin information. Since we don't have memcached replicated beteween datacenters, when you login to one, it will overwrite the cookie with the new session, but the other datacenter can't access the session information, so it treats you as a logged-out user.

The fix for this is to update CentralAuth to use Redis instead of memcached.

(In reply to comment #6)

The fix for this is to update CentralAuth to use Redis instead of memcached.

Unless my memory is failing me (which wouldn't supprise me), aren't you in charge of the CentralAuth project? Would you be able to take this ticket and get it done? My current work-around isn't always efficient (I make sure to log in to testwiki on another browser than the one I'm logged into enwiki/meta/commons/mw with).

  • Bug 50487 has been marked as a duplicate of this bug. ***

However, for some reason logging in to Wikipedia automatically logs in to test2 Wikipedia, but not test.wikipedia.org. Logging to test logs me out of Wikipedia and test2.

testwiki has been moved into the same datacenter as the other wikis, so this issue is fixed. Please reopen if anyone is still encountering this issue.

Closing as per last comment by csteipp.