User Details
- User Since
- Oct 8 2014, 7:09 PM (531 w, 6 h)
- Availability
- Available
- IRC Nick
- apergos
- LDAP User
- ArielGlenn
- MediaWiki User
- ArielGlenn [ Global Accounts ]
Tue, Dec 3
Created and running so this task can definitely be closed.
Nothing reported, so that's a wrap.
Mon, Dec 2
This script is now live in production. I'll leave the task open for a day so we can make sure nothing strange happens.
Fri, Nov 29
I've done a test dry run of the current version of the script, to backfill one day's worth of missing local accounts on loginwiki. The mix included some accounts created by stewards, some accounts that were locally created elsewhere by the user themselves, and one interesting wikitech merged account from some years back.
Tue, Nov 26
Just to clarify: I think both the service and the maintenance script are ready for last "fix this please" or merge, since the requested functionality for stewards is present.
Mon, Nov 25
@Urbanecm subscribed, tyvm!
Okay, the script has been updated to deal with account creations by other performers, if the IP/User Agent for those performers can be found, and to skip creation of accounts for any where the info is no longer available.
Wed, Nov 20
@JJMC89 Can I get your opinion on the above (Urbanecm's comment)? I want to make sure we are meeting everyone's needs here before we roll this out. Thanks!
Wed, Nov 13
The above two patches, or something like them, might be able to handle the case of forced user creations by others. Leaving them here for comment and discussion.
Nov 10 2024
...
I don't think it's worth the effort though. I think it's fine to just let such cases fail and log the failure. If we want to be honest, no one ever looks at maintenance script error output anyway.
To skip over temp account names and not attemp to create them until they are enabled on metawiki and loginwiki, we'd need to update InitialiseSettings.php to set $wgAutoCreateTempUser['known'] to true for those wikis, so that temp names will be recognized (otherwise we get a blanket false response from the check). Is that okay?
Nov 8 2024
One more comment:: do we want to check for global blocks in advance before trying to autocreate?
I ran with '2 hours ago' and it was fine. One user was autocreated with an appropriate IP and user agent.
Did some dry runs for loginwiki backfill. Results:
- for one day's worth, 10622 uids checked, 44 accounts would be created.
- for 7 days, 52582 uids checked, 232 accounts would be created, of which two were temporary accounts and would fail.
- for 2 hours, 709 uids checked and two accounts would be created.
All dry runs took less than ten minutes.
Oct 30 2024
I have a patch ready but no point in pushing it up before the script lands via the train. Maybe I'll just claim this task in advance anyways. Swipe!
Oct 29 2024
@Tgr --startdate "5 days ago" works as expected, you're all set already.
Oct 7 2024
Sep 23 2024
I have a question about the change made here https://gerrit.wikimedia.org/r/c/mediawiki/extensions/CheckUser/+/1073764
Sep 15 2024
Sep 2 2024
core composer.json asks for 1.1.4. It may be that I ran composer incorrectly, but for whatever reason, the version in the checkuser vendors directory was a 3.x one.
Aug 27 2024
Aug 5 2024
The patch currently up is missing the CheckUser related stuff, it's just bare bones.
Aug 4 2024
...
As to other mitigations we could:
- Fetch the correct IP, user agent, and timestamp by finding it on the wiki where the user was actually created. Then it would appear in CheckUser as if the account was autocreated normally.
- Add some kind of flag to indicate that this was created by a backfill script (such as a custom user agent string that says Backfill creation by maintenance script)
Jul 30 2024
Hey @Dreamy_Jazz can you point me to some sort of schedule as to the rollout? I'm not interested in hard dates, just getting a general sense of the order and time frame.
Jul 29 2024
After discussion during the weekly team meeting, we decided that further work on this task is not warranted, so closing. Next steps will be in a separate task for doing the backfill.
I can find insertion metrics for local account creation in prometheus (though apparently not per wiki, so that's a problem), but I can't seem to find a topic for retries or failures. Sample link for that, so we have it: https://prometheus-eqiad.wikimedia.org/ops/graph?g0.expr=kafka_server_BrokerTopicMetrics_MessagesIn_total%7Btopic%3D%22eqiad.mediawiki.job.CentralAuthCreateLocalAccountJob%22%7D&g0.tab=1&g0.stacked=0&g0.show_exemplars=0&g0.range_input=1h&g0.end_input=2024-07-29%2012%3A00%3A20&g0.moment_input=2024-07-29%2012%3A00%3A20
Jul 23 2024
Checking metawiki for the same accounts created on enwiki for the same uid range as earlier, there's about 620 that were globally registered in July that have no accounts on metawiki. So that's somewhat worse than loginwiki, though still a small number.
So, of the 140 accounts created on enwiki in the last 30 days, no entry on loginwiki, and having an entry in the globalusers table made in the last 30 days, about half of those were created on behalf of the user by an admin. I'll have a look at a good chunk of the rest to see if there's anything interesting about those other 70-ish accounts.
Jul 22 2024
At least some of the problematic names are accounts that were created on behalf of a user by another user, via https://en.wikipedia.org/wiki/Wikipedia:Request_an_account/Guide (see code at https://github.com/enwikipedia-acc/waca/tree/rel7.17 )
There are three open tasks referencing some sort of failure with this job, no idea if any are relevant now, but listing them here just in case:
T220769: Account created without having a loginwiki or metawiki automatically created (2019)
T306636: DBQueryError: Error 1213: Deadlock found in UserOptionsManager::saveOptionsInternal (2022)
T173451: New accounts not being reliably created on loginwiki (2017)
Okay, I checked accounts created during the last approximately 30 days on enwiki. There were about 134700 users created; about 400 of those had no entry in the loginwiki user table, but they all had entries in the globaluser table (looking entries up on loginwiki and globaluser by name).
Jul 15 2024
I've done some simple spot checks, looking at recent account creation on en wiki vs accounts on loginwiki, and it's good so far, but that's small amounts of data. Working on getting a more comprehensive check for say a 30 day period, we'll see what it shows.
Jul 12 2024
Hey Daniel, I'd just assumed that getting added to the analytics-privatedata-users group would be redundant so thanks for catching that.
Jul 9 2024
What are the next steps on this? Any information I need to provide, or anyone I should nudge?
Jul 1 2024
Jun 28 2024
Jun 24 2024
Jun 12 2024
I don't mind if subscribers aren't copied, as long as there's an easy way for subscribers to the parent task to be notified about children created if they like, with a one click add or something. Basically, I don't want to have to actively monitor a pile of parent tasks to see if any child tasks of interest were created that I want also to subscribe to.
May 27 2024
...
@ArielGlenn I don't think there is much we can do about this. I don't think it's possible to avoid posting a comment back on Gerrit if the job fails. If the syntax errors in the patch are fixed, the Sonarcloud link will work.
Just seen again on https://gerrit.wikimedia.org/r/c/mediawiki/extensions/CentralAuth/+/1035722 with result 404 and
Claiming this for now, as I'm working on the alternative proposed in T354701#9753206
May 26 2024
Hey @bd808 are you in the position to check whether autocreate is now working for you from a blocked IP range, or did you work around this issue via stewards or whatnot?
May 24 2024
May 20 2024
Apr 30 2024
Giving this back to Paladox, as he did most of the actual work. I just did a little tweak to that.
Looks ok in deployment-prep, so I'm just gonna close this.
Apr 29 2024
With the latest patch, local testing renders a log entry for forced user creation as
Will that do? Admittedly that adds links for talk and contribs, which was not requested in the bug report. But it does bring the log entry format in line with other user creation log entries.
Apr 28 2024
What third party cookie testing etc flags might you have enabled or disabled? Anything possibly interfering from there? I took a fresh install of Chrome, did the steps described, and at step 4 I was still logged in on loginwiki as the second user. Returning to en.wp after that, I was still logged in there as well. Chrome version 124, linux, not logged into Google or my WMF account when using the browser. I was in an incognito window, and the Privacy and Security settings say "Third-party cookies are blocked in Incognito mode".
Apr 25 2024
Apr 24 2024
Reviving this old patch, let's see what happens.
Apr 23 2024
Apr 9 2024
The above patch fails CI for three tests not in the Database group. All three call User::isAllowed() at some point, which now would require database access. Two tests are in ConfirmEdit and one is in core (DumpableObjectsTest). I could add al lthree to @group Database or I could mock out CentralAuthHooks and have the onUserGetRights method always return true in those tests, or maybe there's some better approach. Poking @Tgr for advice or a pointer.
Mar 14 2024
Note that for any of those issue links in the task description, I get "Access is denied to this issue". But the issue linked to in T359957#9625065 is visible at least.
Mar 12 2024
Mar 6 2024
Feb 27 2024
Feb 26 2024
The cloning procedure is done for db14 but we are currently hunting around for the replication password, not where the docs ( https://wikitech.wikimedia.org/wiki/Nova_Resource:Deployment-prep/Databases#Starting_Replication ) say it should be, not anywhere in that repo ever, apparently.
In the end @TheresNoTime figured it out: puppet was starting mariadb automatically when we didn't want it running and hence creating that file complained of in the error above. The cloning process looks like it's going ok at the moment.
Just to explain to folks who might be following along, what's happening: the primary server (db13) will be cloned (via mariabackup --innobackupex) to the new replica; a new instance is bring created now for that. While that is happening, replication will be stopped and the primary will remain read-only. I am guessing that this will be a matter of some hours rather than a day. More updates as available.
Feb 22 2024
1 and 2 are both role dumps::generation::server::spare and have been so since at least last July. See https://gerrit.wikimedia.org/r/c/operations/puppet/+/936379 and https://gerrit.wikimedia.org/r/c/operations/puppet/+/893265
While any nfs spare could in theory be swapped in for any production host, we have other newer spares with decent size filesystems for that; these are idle and can go at any time.
Feb 21 2024
I'd prefer the beta be kept in the name, making it clear that these are wikis on the deployment cluster.
Feb 15 2024
This is in progress still, notes so I don't forget:
- we run 7zs after the bz2 history files, that job will remain untouched
- need to adjust the script that does history backfil to not move files into place if there is a temp or bz2 file that appeared in the meantime (protection in case the fillin script and the main worker both reach the same files)
- could do md5s of these files as we go but let's see how much we gain without, it would be safer as far as avoiding overlaps
Feb 13 2024
We may want to test the behaviour when going from logged in on a wiki on beta.wmflabs.org (let's say en.wikipedia) and then visiting some-language.some-wiki.beta.wmcloud.org which is not designated as the "representative wiki" for that wiki family, and see if the behaviour is different from visiting the "representative wiki" immediately after login on en.wp.beta.wmflabs.org. These scenarios behave differently for me in production.
Feb 5 2024
As I try to help plan this out, I have accumulated some questions.
Jan 29 2024
Listing more extensions not named above that appear in Special:Versions and seem to me to not be needed at loginwiki:
- 3D
- CodeEditor
- CodeMirror
- ElectronPdfService
- Global Usage
- Kartographer
- MediaModeration
- RevisionSlider
- TemplateStyles
- TextExtracts
- TwoColConflict
and maybe others.
Jan 23 2024
Jan 17 2024
Verified for Firefox: I logged out, deleted all *wik*org cookies except for non SUL sites (phab, etherpad and so on), set Enhanced Tracking Protection to "custom" and chose "All cross-site cookies" (see image below). After login at en.wikipedia, after the end of the redirect/session creation chain for commons.wikimedia.org, I have session cookies for commons with session id, UserId, UserName stored locally. When I go to visit commons,wm.o, these cookies are sent to the web server and I am logged in as a result.
Firefox version: 121.0, linux.