[10:07:35] Hi, recently I'm getting this message when running my scripts on toolsforge: [10:07:41] wikitools.wiki.UserBlocked: You have been blocked automatically by MediaWiki. [10:07:53] the code's been working for 5 years already. How can I check if (and why) my bot account is blocked? [10:08:03] bot name: ArnauBot [15:18:30] Arnaugir: what wiki is this bot working on? [18:46:02] !log tools.indic-wsstats tools-bastion-03:~/www/python/src$ git pull (Updating to 7c4c24e) (T212517) [18:46:05] Logged the message at https://wikitech.wikimedia.org/wiki/Nova_Resource:Tools.indic-wsstats/SAL [18:46:05] T212517: Create and Deploy Indic Wikisource Stats Tool - https://phabricator.wikimedia.org/T212517 [18:46:46] !log tools.indic-wsstats Setup cronjob to run script every 6 hours [18:46:46] Logged the message at https://wikitech.wikimedia.org/wiki/Nova_Resource:Tools.indic-wsstats/SAL [18:47:16] !log tools.indic-wsstats Setup cronjob to run script every 6 hours (T212517) [18:47:18] Logged the message at https://wikitech.wikimedia.org/wiki/Nova_Resource:Tools.indic-wsstats/SAL [20:51:28] chicocvenancio: on ca-wiki. any idea? [21:18:29] Arnaugir: huh, I see no block. Is that the precise error message? [21:36:28] ‘blocked automatically by MediaWiki’ sounds very unusual [21:37:20] sounds like tor block or auto block or something [21:38:00] (but isn’t wmcs in autoblock’s exception list?) [21:38:19] Can't find it on https://ca.wikipedia.org/wiki/Especial:Usuaris_blocats?wpTarget=&limit=50&wpFormIdentifier=blocklist [21:38:31] (it should be there if active [21:46:04] maybe it is trying to edit without being logge din? [21:49:35] Arnaugir: qué mensaje en concreto recibes? [21:50:36] chicocvenancio: WMCS is maybe on the autoblock whitelist, but that should be checked for each wiki iirc [21:59:39] chicocvenancio / Platonides / zhuyifei1999_ -- the only place I can find the exact match of that message is "apierror-systemblocked": "You have been blocked automatically by MediaWiki.", [21:59:56] when that message is used, idk [22:00:40] } elseif ( is_array( $error ) && $error[0] === 'systemblockedtext' && $user->getBlock() ) { [22:01:13] there is a condition for autoblockedtext so it's not autoblock [22:02:09] $expect->fatal( ApiMessage::create( 'apierror-systemblocked', 'blocked', $blockinfo ) ); [22:02:30] there's apierror-blocked and apierror-autoblocked [22:02:39] so this 'systemblocked' is new to me [22:03:28] https://codesearch.wmflabs.org/search/?q=apierror-systemblocked&i=nope&files=&repos= [22:05:13] it should have an error message similar to https://commons.wikimedia.org/wiki/MediaWiki:Systemblockedtext [22:05:29] if the edit happens on the web interface [22:06:01] which is slightly different from https://commons.wikimedia.org/wiki/MediaWiki:Autoblockedtext/en [22:07:10] I'm not sure where that blocked message comes from [22:07:20] the conditions when it appears I mean [22:09:28] "Text displayed to requests blocked by MediaWiki configuration." according to the translatewiki description [22:11:11] maybe a global block? [22:13:07] I don't think so, there's an specific global block message... but check that nonetheless [22:13:21] I don't think we've blocked toolforge IPs heh [22:14:57] more interestingly, I don't see a Block error from toolsforge [22:31:02] Yo. [22:31:09] tools-bastion-03 feels slow. [22:32:17] * zhuyifei1999_ looks [22:32:30] time crontab -l | grep unu --> 0m6.398s [22:32:47] It got a bit faster in subsequent hits. [22:32:51] * chicocvenancio sees a few things that should not be running on the bastion [22:32:51] So maybe NFS slowness? Dunno. [22:33:02] Haley: that is the usual culprit [22:33:04] I used jsub! [22:33:10] oh crontab always takes a few seconds [22:33:19] Oh, okay. [22:33:23] load on the bastion looks fine. that crontab test actually involves ssh to another instance so it might be a bad way to measure local load [22:33:26] it ssh'es to a remote machine to read wrote crontab [22:33:30] *write [22:33:30] Ah, okay. [22:33:48] I knew it was custom, but thought it was reading from the local /var/spool/cron or whatever. Got it. [22:33:59] Thanks! [22:35:59] oge-crontab and tools-cron-01.tools.eqiad.wmflabs, who knew. [22:36:33] :) [22:37:45] its a horrible hack :) [22:38:54] I've always been vaguely curious where the cron entry rewriting happened. TIL.