Huji added a comment.

  First of all, I found out something really interesting: when I run the bot 
against test.wikipedia.org it works without any issues. When I run it against 
fa.wikipedia.org I get that Login Failed error followed by the script asking 
for my password.
  
  This made me remember that on fawiki we do not assign admin bots to the 
"sysop" group; instead, we assign them to the "botadmin" group. I added my bot 
to the "sysop" group as well and re-run it, and it did not show any error 
messages. So whatever is the issue has to do with the "botadmin" group (or more 
specifically, with the differences between its rights and that of the "sysop" 
group).
  
  Comparing the rights of the two groups, the only thing that stood out was 
that "sysop" has the "noratelimit" right but "botadmin" does not. But my bot is 
both in the "botadmin" and the "bot" group and the latter has the "noratelimit" 
right. To further make sure this is *not* the cause of the problem, I modified 
the script so that it would wait 20 seconds before each blocking and it still 
showed the Login Failed error.
  
  With that knowledge, I also did what you asked me, @Dalba, and here is the 
output:
  
    Cannot log in when using MediaWiki\Session\BotPasswordSessionProvider 
sessions. HujiBot@HujiBot REDACTED
  
  The value of the REDACTED is the same as my BotPasswords key, obviously. I am 
not sure how to interpret that error message.

TASK DETAIL
  https://phabricator.wikimedia.org/T229293

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Huji
Cc: Dvorapa, Dalba, Framawiki, Aklapper, Huji, pywikibot-bugs-list, Viztor, 
DannyS712, Wenyi, Tbscho, MayS, Mdupont, JJMC89, Altostratus, Avicennasis, 
mys_721tx, jayvdb, Masti, Alchimista, Rxy
_______________________________________________
pywikibot-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs

Reply via email to