Last modified: 2014-09-24 15:43:19 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 T73223, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 71223 - User with unattached accounts unable to login (504) after 1.24wmf22 deployment
User with unattached accounts unable to login (504) after 1.24wmf22 deployment
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
CentralAuth (Other open bugs)
unspecified
All All
: Highest critical (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-09-24 06:48 UTC by Kunal Mehta (Legoktm)
Modified: 2014-09-24 15:43 UTC (History)
9 users (show)

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


Attachments

Description Kunal Mehta (Legoktm) 2014-09-24 06:48:52 UTC
User:NickK reported in IRC that they're getting 504 timeout errors when trying to login to their unattached accounts on 1.24wmf22. On Wikipedias (still on 1.24wmf21), they're able to login fine.

My initial hunch is that I3a219d86a8837ed9c0c3788604dc3229ee1245ee is to blame.
Comment 1 Nemo 2014-09-24 06:51:52 UTC
(In reply to Kunal Mehta (Legoktm) from comment #0)
> My initial hunch is that I3a219d86a8837ed9c0c3788604dc3229ee1245ee is to
> blame.

I was wondering yesterday, how does it work when it's not deployed on all wikis at once? Nick has accounts on abut 200 wikis IIRC.
(If that was the issue, you'd need to cherry pick the new change to 1.24wmf11.)

And it's still incorrectly not listed in https://www.mediawiki.org/wiki/MediaWiki_1.24/wmf22#CentralAuth
Comment 2 Gerrit Notification Bot 2014-09-24 06:56:11 UTC
Change 162549 had a related patch set uploaded by Legoktm:
Revert "Auto-migrate matching accounts where no global account exists"

https://gerrit.wikimedia.org/r/162549
Comment 3 Gerrit Notification Bot 2014-09-24 06:56:41 UTC
Change 162550 had a related patch set uploaded by Legoktm:
Revert "Auto-migrate matching accounts where no global account exists"

https://gerrit.wikimedia.org/r/162550
Comment 4 Kunal Mehta (Legoktm) 2014-09-24 07:08:05 UTC
(In reply to Nemo from comment #1)
> (In reply to Kunal Mehta (Legoktm) from comment #0)
> > My initial hunch is that I3a219d86a8837ed9c0c3788604dc3229ee1245ee is to
> > blame.
> 
> I was wondering yesterday, how does it work when it's not deployed on all
> wikis at once? Nick has accounts on abut 200 wikis IIRC.
> (If that was the issue, you'd need to cherry pick the new change to
> 1.24wmf11.)

The code only needs to be enabled on the wiki the user is logging in from. Which is why logins from Wikipedias work, because that code path doesn't exist yet.

----

I think this code in general is just too slow. I didn't test it with the number of unattached accounts that NickK has :/

The main weird thing I see though is around a hundred log lines like:

> Set global password for 'NickK'

That's from CentralAuthUser::setPassword, which is called in matchHash. We need to make matchHash aware whether it is meant to be a check only, or actual authentication so it should try updating the password. Otherwise we're just making hundreds of useless write queries.
Comment 5 Gerrit Notification Bot 2014-09-24 07:10:40 UTC
Change 162549 merged by jenkins-bot:
Revert "Auto-migrate matching accounts where no global account exists"

https://gerrit.wikimedia.org/r/162549
Comment 6 Nemo 2014-09-24 07:58:55 UTC
(In reply to Kunal Mehta (Legoktm) from comment #4)
> We
> need to make matchHash aware whether it is meant to be a check only, or
> actual authentication so it should try updating the password. Otherwise
> we're just making hundreds of useless write queries.

Interesting. This would bite when running migration scripts as well, so in a way it's good to discover and fix it earlier than that...

Of course login can't afford failing, but allow me to point out that NickK is about the worst case available. I knew of it and I take blame for not mentioning it in code review. That said, the "winner" of such a big active account should have been merged at Special:MergeAccount or equivalent several years ago.
Comment 7 Gerrit Notification Bot 2014-09-24 15:26:18 UTC
Change 162550 merged by jenkins-bot:
Revert "Auto-migrate matching accounts where no global account exists"

https://gerrit.wikimedia.org/r/162550
Comment 8 Kunal Mehta (Legoktm) 2014-09-24 15:38:24 UTC
Revert has been deployed.

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


Navigation
Links