[Pywikipedia-bugs] [Maniphest] [Commented On] T303175: Error 1062 from Flow\Data\Storage\RevisionStorage::insert, {error} {sql1line} {db_server}
Tgr added a comment. Is this getting more frequent? Last 7 days, there have been 288 such errors. TASK DETAIL https://phabricator.wikimedia.org/T303175 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Tgr Cc: Tgr, Xqt, pywikibot-bugs-list, mewoph, Aklapper, kostajh, Susie413113, Lectrician1, caldera, Jyoo1011, IdtrA, JohnsonLee01, SHEKH, Dijkstra, NavinRizwi, ItamarWMDE, Khutuck, Zkhalido, darthmon_wmde, Rosalie_WMDE, Viztor, 94rain, Wenyi, Jayprakash12345, Nattes, Tbscho, MayS, EnricoCNC, Mdupont, JJMC89, Dvorapa, Altostratus, Taiwania_Justo, Avicennasis, Wong128hk, Verdy_p, mys_721tx, geraki, Gryllida, jeblad, jayvdb, Catrope, Masti, Alchimista, Jdforrester-WMF, Jay8g ___ pywikibot-bugs mailing list -- pywikibot-bugs@lists.wikimedia.org To unsubscribe send an email to pywikibot-bugs-le...@lists.wikimedia.org
[Pywikipedia-bugs] [Maniphest] [Commented On] T303175: Error 1062 from Flow\Data\Storage\RevisionStorage::insert, {error} {sql1line} {db_server}
Tgr added a comment. Are the board/topic names in the Pywikibot test randomised, or is this just a case of a single Flow board being corrupted in some way and the bot repeatedly trying to access it? TASK DETAIL https://phabricator.wikimedia.org/T303175 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Tgr Cc: Tgr, Xqt, pywikibot-bugs-list, mewoph, Aklapper, kostajh, Susie413113, Lectrician1, caldera, Jyoo1011, IdtrA, JohnsonLee01, SHEKH, Dijkstra, NavinRizwi, ItamarWMDE, Khutuck, Zkhalido, darthmon_wmde, Rosalie_WMDE, Viztor, 94rain, Wenyi, Jayprakash12345, Nattes, Tbscho, MayS, EnricoCNC, Mdupont, JJMC89, Dvorapa, Altostratus, Taiwania_Justo, Avicennasis, Wong128hk, Verdy_p, mys_721tx, geraki, Gryllida, jeblad, jayvdb, Catrope, Masti, Alchimista, Jdforrester-WMF, Jay8g ___ pywikibot-bugs mailing list -- pywikibot-bugs@lists.wikimedia.org To unsubscribe send an email to pywikibot-bugs-le...@lists.wikimedia.org
[Pywikipedia-bugs] [Maniphest] [Commented On] T275975: Search broken on beta cluster wikis
Tgr added a comment. tgr@deployment-elastic05:~$ sudo systemctl status elasticsearch ● elasticsearch.service - Elasticsearch Loaded: loaded (/usr/lib/systemd/system/elasticsearch.service; disabled; vendor preset: enabled) Active: inactive (dead) since Mon 2021-03-01 08:34:51 UTC; 1 day 8h ago Docs: http://www.elastic.co Main PID: 26725 (code=exited, status=1/FAILURE) Mar 01 08:34:51 deployment-elastic05 elasticsearch[26725]: at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107) Mar 01 08:34:51 deployment-elastic05 elasticsearch[26725]: at sun.nio.fs.UnixFileSystemProvider.newByteChannel(UnixFileSystemProvider.java:214) Mar 01 08:34:51 deployment-elastic05 elasticsearch[26725]: at java.nio.file.Files.newByteChannel(Files.java:361) Mar 01 08:34:51 deployment-elastic05 elasticsearch[26725]: at java.nio.file.Files.newByteChannel(Files.java:407) Mar 01 08:34:51 deployment-elastic05 elasticsearch[26725]: at java.nio.file.spi.FileSystemProvider.newInputStream(FileSystemProvider.java:384) Mar 01 08:34:51 deployment-elastic05 elasticsearch[26725]: at java.nio.file.Files.newInputStream(Files.java:152) Mar 01 08:34:51 deployment-elastic05 elasticsearch[26725]: at org.elasticsearch.tools.launchers.JvmOptionsParser.main(JvmOptionsParser.java:60) Mar 01 08:34:51 deployment-elastic05 systemd[1]: elasticsearch.service: Main process exited, code=exited, status=1/FAILURE Mar 01 08:34:51 deployment-elastic05 systemd[1]: elasticsearch.service: Unit entered failed state. Mar 01 08:34:51 deployment-elastic05 systemd[1]: elasticsearch.service: Failed with result 'exit-code'. tgr@deployment-elastic05:~$ sudo journalctl -u elasticsearch -- Logs begin at Mon 2021-03-01 07:07:07 UTC, end at Tue 2021-03-02 16:43:54 UTC. -- Mar 01 08:34:51 deployment-elastic05 systemd[1]: Started Elasticsearch. Mar 01 08:34:51 deployment-elastic05 elasticsearch[26725]: /usr/share/elasticsearch/bin/elasticsearch-env: line 78: cd: ${ES_PATH_CONF-/etc/elasticsearch}: No such file or directory Mar 01 08:34:51 deployment-elastic05 elasticsearch[26725]: Exception in thread "main" java.nio.file.NoSuchFileException: /usr/share/elasticsearch/jvm.options Mar 01 08:34:51 deployment-elastic05 elasticsearch[26725]: at sun.nio.fs.UnixException.translateToIOException(UnixException.java:86) Mar 01 08:34:51 deployment-elastic05 elasticsearch[26725]: at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102) Mar 01 08:34:51 deployment-elastic05 elasticsearch[26725]: at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107) Mar 01 08:34:51 deployment-elastic05 elasticsearch[26725]: at sun.nio.fs.UnixFileSystemProvider.newByteChannel(UnixFileSystemProvider.java:214) Mar 01 08:34:51 deployment-elastic05 elasticsearch[26725]: at java.nio.file.Files.newByteChannel(Files.java:361) Mar 01 08:34:51 deployment-elastic05 elasticsearch[26725]: at java.nio.file.Files.newByteChannel(Files.java:407) Mar 01 08:34:51 deployment-elastic05 elasticsearch[26725]: at java.nio.file.spi.FileSystemProvider.newInputStream(FileSystemProvider.java:384) Mar 01 08:34:51 deployment-elastic05 elasticsearch[26725]: at java.nio.file.Files.newInputStream(Files.java:152) Mar 01 08:34:51 deployment-elastic05 elasticsearch[26725]: at org.elasticsearch.tools.launchers.JvmOptionsParser.main(JvmOptionsParser.java:60) Mar 01 08:34:51 deployment-elastic05 systemd[1]: elasticsearch.service: Main process exited, code=exited, status=1/FAILURE Mar 01 08:34:51 deployment-elastic05 systemd[1]: elasticsearch.service: Unit entered failed state. Mar 01 08:34:51 deployment-elastic05 systemd[1]: elasticsearch.service: Failed with result 'exit-code'. TASK DETAIL https://phabricator.wikimedia.org/T275975 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: EBernhardson, Tgr Cc: Majavah, RhinosF1, Tgr, Urbanecm_WMF, pywikibot-bugs-list, Xqt, kostajh, Aklapper, LucasWerkmeister, MPhamWMF, CBogen, CptViraj, DannyS712, Bsandipan, EBjune, Rxy, Jay8g, Krenair ___ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
[Pywikipedia-bugs] [Maniphest] [Commented On] T275975: Search broken on beta cluster wikis
Tgr added a comment. Looking at CirrusSearch.log on beta fluorine, it seems ElasticSearch is unreachable (requests fail with 502 Bad Gateway). Which is indeed the case: tgr@deployment-deploy01:~$ curl 'https://deployment-elastic05.deployment-prep.eqiad.wmflabs:9243' 502 Bad Gateway 502 Bad Gateway nginx/1.13.9 TASK DETAIL https://phabricator.wikimedia.org/T275975 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: EBernhardson, Tgr Cc: Majavah, RhinosF1, Tgr, Urbanecm_WMF, pywikibot-bugs-list, Xqt, kostajh, Aklapper, LucasWerkmeister, MPhamWMF, CBogen, CptViraj, DannyS712, Bsandipan, EBjune, Rxy, Jay8g, Krenair ___ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
[Pywikipedia-bugs] [Maniphest] [Commented On] T261066: Pywikibot bot password login failure
Tgr added a comment. In T261066#6457045 <https://phabricator.wikimedia.org/T261066#6457045>, @Tgr wrote: > The other half is, if I run a command like `add_text`, and it runs into a `notloggedin` error, why doesn't it try to login right there? This could be still looked into, although I might well misunderstand the expected behavior here. TASK DETAIL https://phabricator.wikimedia.org/T261066 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Tgr Cc: Xqt, Xiplus, Mpaa, Dvorapa, Aklapper, pywikibot-bugs-list, Tgr, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, Mdupont, JJMC89, Altostratus, Avicennasis, mys_721tx, jayvdb, Masti, Alchimista, Rxy ___ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
[Pywikipedia-bugs] [Maniphest] [Closed] T261066: Pywikibot bot password login failure
Tgr closed this task as "Resolved". Tgr claimed this task. TASK DETAIL https://phabricator.wikimedia.org/T261066 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Tgr Cc: Xqt, Xiplus, Mpaa, Dvorapa, Aklapper, pywikibot-bugs-list, Tgr, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, Mdupont, JJMC89, Altostratus, Avicennasis, mys_721tx, jayvdb, Masti, Alchimista, Rxy ___ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
[Pywikipedia-bugs] [Maniphest] [Commented On] T261066: Pywikibot bot password login failure
Tgr added a comment. This covers half of the issue (the bot is only logged in until the CLI command terminates). The other half is, if I run a command like `add_text`, and it runs into a `notloggedin` error, why doesn't it try to login right there? TASK DETAIL https://phabricator.wikimedia.org/T261066 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Tgr Cc: Xqt, Xiplus, Mpaa, Dvorapa, Aklapper, pywikibot-bugs-list, Tgr, JohnsonLee01, SHEKH, Dijkstra, Alter-paule, Beast1978, Un1tY, Khutuck, Zkhalido, Hook696, Kent7301, joker88john, Viztor, CucyNoiD, Wenyi, Gaboe420, Giuliamocci, Cpaulf30, Af420, Bsandipan, Tbscho, MayS, Lewizho99, Mdupont, JJMC89, Maathavan, Altostratus, Avicennasis, mys_721tx, jayvdb, Masti, Alchimista, Rxy ___ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
[Pywikipedia-bugs] [Maniphest] [Commented On] T261066: Pywikibot bot password login failure
Tgr added a comment. Stepping the code through in a debugger reveals that the cookie jar <https://docs.python.org/3/library/http.cookiejar.html> calls made by Pywikibot do not use the `ignore_discard` flag, ie. do not save/load session cookies. Since bot password cookies are always session cookies (unlike traditional login where checking the "keep me logged in" box adds a non-session-cookie), such logins are never saved. TASK DETAIL https://phabricator.wikimedia.org/T261066 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Tgr Cc: Xqt, Xiplus, Mpaa, Dvorapa, Aklapper, pywikibot-bugs-list, Tgr, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, Mdupont, JJMC89, Altostratus, Avicennasis, mys_721tx, jayvdb, Masti, Alchimista, Rxy ___ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
[Pywikipedia-bugs] [Maniphest] [Commented On] T261050: Frequent "Invalid CSRF token" errors on Wikimedia projects using Pywikibot since August 2020
Tgr added a comment. In T261050#6430351 <https://phabricator.wikimedia.org/T261050#6430351>, @daniel wrote: > However, MediaWiki documentations should be more clear on session lifetime (and whether it's counted against periods of inactivity, or in total). Documentation for the token API should also be improved in that respect. Do you know which pieces of documentation should be updated? TASK DETAIL https://phabricator.wikimedia.org/T261050 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Tgr Cc: Schlurcher, Count_Count, JJMC89, matej_suchanek, daniel, eprodromou, Tgr, Dvorapa, Xqt, Aklapper, Reedy, pywikibot-bugs-list, Multichill, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, WDoranWMF, holger.knust, EvanProdromou, Viztor, DannyS712, Wenyi, Amorymeltzer, Tbscho, MayS, Sethakill, Mdupont, dg711, Agabi10, Altostratus, Avicennasis, Pchelolo, mys_721tx, Bawolff, jayvdb, Anomie, Masti, Alchimista, Rxy, Legoktm ___ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
[Pywikipedia-bugs] [Maniphest] [Commented On] T261050: Frequent "Invalid CSRF token" errors on Wikimedia Commons using Pywikibot since August 2020
Tgr added a comment. Tokens never expire, but the session that holds them can. That behavior changed recently with the switch to Kask (less recently than August, though): before we had theoretically-infinite sessions which could get evicted, now we have a set session lifetime (1 day, IIRC?). The session also gets terminted when authentication fails, so possibly the bot actually gets logged out and the CSRF error is an effect of that. TASK DETAIL https://phabricator.wikimedia.org/T261050 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Tgr Cc: matej_suchanek, daniel, eprodromou, Tgr, Dvorapa, Xqt, Aklapper, Reedy, pywikibot-bugs-list, Multichill, JohnsonLee01, SHEKH, Naike, Dijkstra, CBogen, Khutuck, Zkhalido, WDoranWMF, Viztor, DannyS712, Wenyi, Amorymeltzer, Ramsey-WMF, Tbscho, MayS, Sethakill, Mdupont, JJMC89, dg711, Poyekhali, Agabi10, Altostratus, Taiwania_Justo, Avicennasis, Pchelolo, Ixocactus, Wong128hk, mys_721tx, Bawolff, El_Grafo, Dinoguy1000, jayvdb, Anomie, Masti, Alchimista, Steinsplitter, Rxy, Keegan, Legoktm ___ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
[Pywikipedia-bugs] [Maniphest] [Commented On] T261050: Frequent "Invalid CSRF token" errors on Wikimedia Commons using Pywikibot since August 2020
Tgr added a comment. If the error is easy enough to reproduce, you could try setting the X-Wikimedia-Debug <https://wikitech.wikimedia.org/wiki/WikimediaDebug> header to get some pretty detailed logs. TASK DETAIL https://phabricator.wikimedia.org/T261050 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Tgr Cc: daniel, Krinkle, eprodromou, Tgr, Dvorapa, Xqt, Aklapper, Reedy, pywikibot-bugs-list, Multichill, JohnsonLee01, SHEKH, Naike, Dijkstra, CBogen, Khutuck, Zkhalido, WDoranWMF, Viztor, DannyS712, Wenyi, Amorymeltzer, Ramsey-WMF, Tbscho, MayS, Sethakill, Mdupont, JJMC89, dg711, Poyekhali, Agabi10, Altostratus, Taiwania_Justo, Avicennasis, Pchelolo, Ixocactus, Wong128hk, mys_721tx, Bawolff, El_Grafo, Dinoguy1000, jayvdb, Anomie, Masti, Alchimista, Steinsplitter, Rxy, Keegan, Legoktm ___ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
[Pywikipedia-bugs] [Maniphest] [Commented On] T261066: Pywikibot bot password login failure
Tgr added a comment. @Xqt it doesn't change anything as far as I can tell. TASK DETAIL https://phabricator.wikimedia.org/T261066 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Tgr Cc: Xqt, Xiplus, Mpaa, Dvorapa, Aklapper, pywikibot-bugs-list, Tgr, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, Mdupont, JJMC89, Altostratus, Avicennasis, mys_721tx, jayvdb, Masti, Alchimista, Rxy ___ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
[Pywikipedia-bugs] [Maniphest] [Commented On] T261050: Frequent "Invalid CSRF token" errors on Wikimedia Commons using Pywikibot since August 2020
Tgr added a comment. What login method are you using? In T261050#6410502 <https://phabricator.wikimedia.org/T261050#6410502>, @daniel wrote: > Pinging @krinkle in case it's a main stash thing. The main stash is not involved with CSRF tokens, it's either a SessionManager thing or a Kask thing (assuming it's on our side). TASK DETAIL https://phabricator.wikimedia.org/T261050 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Tgr Cc: daniel, Krinkle, eprodromou, Tgr, Dvorapa, Xqt, Aklapper, Reedy, pywikibot-bugs-list, Multichill, JohnsonLee01, SHEKH, Naike, Dijkstra, CBogen, Khutuck, Zkhalido, WDoranWMF, Viztor, DannyS712, Wenyi, Amorymeltzer, Ramsey-WMF, Tbscho, MayS, Sethakill, Mdupont, JJMC89, dg711, Poyekhali, Agabi10, Altostratus, Taiwania_Justo, Avicennasis, Pchelolo, Ixocactus, Wong128hk, mys_721tx, Bawolff, El_Grafo, Dinoguy1000, jayvdb, Anomie, Masti, Alchimista, Steinsplitter, Rxy, Keegan, Legoktm ___ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
[Pywikipedia-bugs] [Maniphest] [Updated] T261063: Pywikibot suppresses some log lines in debug mode
Tgr added a comment. Run `python3 pwb.py login -debug`. (Specifically I noticed while testing T261066: Pywikibot bot password login failure <https://phabricator.wikimedia.org/T261066>.) There should be a log line saying `Loaded cookies from file.` but isn't, neither on stdout or in the logs directory. TASK DETAIL https://phabricator.wikimedia.org/T261063 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Tgr Cc: zhuyifei1999, Aklapper, pywikibot-bugs-list, Tgr, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, mys_721tx, jayvdb, Masti, Alchimista, Rxy ___ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
[Pywikipedia-bugs] [Maniphest] [Edited] T261066: Pywikibot bot password login failure
Tgr updated the task description. TASK DETAIL https://phabricator.wikimedia.org/T261066 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Tgr Cc: Aklapper, pywikibot-bugs-list, Tgr, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, mys_721tx, jayvdb, Masti, Alchimista, Rxy ___ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
[Pywikipedia-bugs] [Maniphest] [Updated] T261066: Pywikibot bot password login failure
Tgr added a parent task: T248271: CC text in footer. TASK DETAIL https://phabricator.wikimedia.org/T261066 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Tgr Cc: Aklapper, pywikibot-bugs-list, Tgr, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, mys_721tx, jayvdb, Masti, Alchimista, Rxy ___ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
[Pywikipedia-bugs] [Maniphest] [Created] T261066: Pywikibot bot password login failure
Tgr created this task. Tgr added a project: Pywikibot. Restricted Application added subscribers: pywikibot-bugs-list, Aklapper. TASK DESCRIPTION Steps to reproduce: 1. register on https://wikispore.wmflabs.org/wiki/Main_Page and set up a bot password 2. configure pywikibot: # user-config.py usernames['wikispore']['*'] = u'Tgr' # user-password.py ('wikispore', 'Tgr', BotPassword('pywikibot', 'REDACTED')) 3. run `python3 pwb.py login -family:wikispore -lang:en` 4. run something that would write to the wiki Login seems to work fine: handle_args() completed. Instantiated APISite object 'wikispore:en' general siteinfo not loaded yet. general siteinfo not loaded yet. Load siteinfo properties 'namespaces', 'namespacealiases' along with 'general' Load siteinfo properties 'namespaces', 'namespacealiases' along with 'general' CachedRequest: cache hit (/home/tgr/Wikimedia/local/pywikibot/apicache-py3/6022c7a271bd7d1593607e5f74801eca38654714d5fd477d5c1f6bb7b8f8) for API request: APISite("en", "wikispore")LoginStatus(-1)[('action', 'query'), ('continue', ''), ('format', 'json'), ('maxlag', '5'), ('meta', 'siteinfo|userinfo'), ('siprop', 'namespaces|namespacealiases|general'), ('uiprop', 'blockinfo|hasmsg')] Checking multiplicity: pid = False Checking multiplicity: pid = False API request to wikispore:en (uses get: True): Headers: {'Content-Type': 'application/x-www-form-urlencoded'} URI: '/w/api.php?action=query=userinfo=blockinfo%7Cgroups%7Chasmsg%7Cratelimits%7Crights==5=json' Body: None API response received from wikispore:en: {"query":{"userinfo":{"id":0,"name":"10.0.3.1","anon":"","groups":["*"],"rights":["read","createpage","createtalk","writeapi","viewmywatchlist","editmywatchlist","viewmyprivateinfo","editmyprivateinfo","editmyoptions","abusefilter-log-detail","abusefilter-view","abusefilter-log","translate","autocreateaccount","runcargoqueries"],"ratelimits":{"edit":{"ip":{"hits":8,"seconds":60}},"upload":{"ip":{"hits":8,"seconds":60}},"mailpassword":{"ip":{"hits":5,"seconds":3600}},"emailuser":{"ip":{"hits":5,"seconds":86400}},"purge":{"ip":{"hits":30,"seconds":60}},"linkpurge":{"ip":{"hits":30,"seconds":60}},"renderfile":{"ip":{"hits":700,"seconds":30}},"renderfile-nonstandard":{"ip":{"hits":70,"seconds":30}},"stashedit":{"ip":{"hits":30,"seconds":60}},"changetag":{"ip":{"hits":8,"seconds":60}} WARNING: No user is logged in on site wikispore:en Logging in to wikispore:en as Tgr@pywikibot API request to wikispore:en (uses get: False): Headers: {'Content-Type': 'application/x-www-form-urlencoded'} URI: '/w/api.php' Body: 'action=query=tokens=login==5=json' API response received from wikispore:en: {"query":{"tokens":{"logintoken":"REDACTED+\\"}}} API request to wikispore:en (uses get: False): Headers: {'Content-Type': 'application/x-www-form-urlencoded'} URI: '/w/api.php' Body: 'action=login=Tgr%40pywikibot=REDACTED=5=json=REDACTED%2B%5C' API response received from wikispore:en: {"login":{"result":"Success","lguserid":5,"lgusername":"Tgr"}} API request to wikispore:en (uses get: True): Headers: {'Content-Type': 'application/x-www-form-urlencoded'} URI: '/w/api.php?action=query=userinfo=blockinfo%7Cgroups%7Chasmsg%7Cratelimits%7Crights==5=json' Body: None API response received from wikispore:en: {"query":{"userinfo":{"id":5,"name":"Tgr","groups":["bureaucrat","sysop","*","user","autoconfirmed"],"rights":["noratelimit","override-antispoof","block","createaccount","delete","bigdelete","deletedhistory","deletedtext","undelete","editinterface","editsitejson","edituserjson","move","move-subpages","move-rootuserpages","move-categorypages","patrol","autopatrol","protect","editprotected","rollback","uplo
[Pywikipedia-bugs] [Maniphest] [Created] T261063: Pywikibot suppresses some log lines in debug mode
Tgr created this task. Tgr added a project: Pywikibot. Restricted Application added subscribers: pywikibot-bugs-list, Aklapper. TASK DESCRIPTION Example: one of the two lines here <https://github.com/wikimedia/pywikibot/blob/3cde1715172befbeaad44934ef9100f93e96f1c1/pywikibot/comms/http.py#L65-L67> should be logged on every request when `-debug` is used, but that doesn't happen (even though it does enable a bunch of other logging, and the debug command is definitely called). TASK DETAIL https://phabricator.wikimedia.org/T261063 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Tgr Cc: Aklapper, pywikibot-bugs-list, Tgr, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, mys_721tx, jayvdb, Masti, Alchimista, Rxy ___ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
[Pywikipedia-bugs] [Maniphest] [Commented On] T260049: Create Pywikibot family for Wikispore
Tgr added a comment. Wikispore is a single wiki currently, that will probably change in the future. AIUI if you want to use the bot for a single wiki, you still need to define a family. There is also https://wikispore-test.wmflabs.org/wiki/Main_Page, not sure that should be a language or a separate family (or nothing). TASK DETAIL https://phabricator.wikimedia.org/T260049 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Tgr Cc: JJMC89, Xqt, pywikibot-bugs-list, Tgr, JohnsonLee01, Zblace, SHEKH, Dijkstra, Khutuck, Zkhalido, MJL, Viztor, Legado_Shulgin, 94rain, Wenyi, skpuneethumar, Zylc, 1978Gage2001, Chicocvenancio, Tbscho, MayS, Mdupont, Dvorapa, Altostratus, Avicennasis, mys_721tx, Jitrixis, Gryllida, jayvdb, Masti, scfc, Alchimista, Rxy, Krenair ___ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
[Pywikipedia-bugs] [Maniphest] [Updated] T260049: Create Pywikibot family for Wikispore
Tgr added a parent task: T248271: CC text in footer. TASK DETAIL https://phabricator.wikimedia.org/T260049 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Tgr Cc: pywikibot-bugs-list, Tgr, JohnsonLee01, Zblace, SHEKH, Dijkstra, Khutuck, Zkhalido, MJL, Viztor, Legado_Shulgin, 94rain, Wenyi, skpuneethumar, Zylc, 1978Gage2001, Chicocvenancio, Tbscho, MayS, Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, mys_721tx, Jitrixis, Gryllida, jayvdb, Masti, scfc, Alchimista, Rxy, Krenair ___ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
[Pywikipedia-bugs] [Maniphest] [Commented On] T260049: Create Pywikibot family for Wikispore
Tgr added a comment. Needed for adding all the license warnings (and will be needed in the future anyway). TASK DETAIL https://phabricator.wikimedia.org/T260049 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Tgr Cc: pywikibot-bugs-list, Tgr, JohnsonLee01, Zblace, SHEKH, Dijkstra, Khutuck, Zkhalido, MJL, Viztor, Legado_Shulgin, 94rain, Wenyi, skpuneethumar, Zylc, 1978Gage2001, Chicocvenancio, Tbscho, MayS, Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, mys_721tx, Jitrixis, Gryllida, jayvdb, Masti, scfc, Alchimista, Rxy, Krenair ___ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
[Pywikipedia-bugs] [Maniphest] [Created] T260049: Create Pywikibot family for Wikispore
Tgr created this task. Tgr added projects: Wikispore, Pywikibot. Restricted Application added a subscriber: pywikibot-bugs-list. TASK DESCRIPTION TASK DETAIL https://phabricator.wikimedia.org/T260049 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Tgr Cc: pywikibot-bugs-list, Tgr, JohnsonLee01, Zblace, SHEKH, Dijkstra, Khutuck, Zkhalido, MJL, Viztor, Legado_Shulgin, 94rain, Wenyi, skpuneethumar, Zylc, 1978Gage2001, Chicocvenancio, Tbscho, MayS, Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, mys_721tx, Jitrixis, Gryllida, jayvdb, Masti, scfc, Alchimista, Rxy, Krenair ___ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
[Pywikipedia-bugs] [Maniphest] [Updated] T122086: RFC: Sharing templates and modules between wikis - poor man's version (investigation)
Tgr added a comment. In T122086#6090679 <https://phabricator.wikimedia.org/T122086#6090679>, @Yurik wrote: > I think the next step, as discussed with some members of the ruwiki (cc: @Ghuron), is to implement a web tool instead of a bot Filed as T252453: Create a Toolforge tool for syncing templates and Lua modules between wikis <https://phabricator.wikimedia.org/T252453>. TASK DETAIL https://phabricator.wikimedia.org/T122086 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Tgr Cc: Dvorapa, Ghuron, Tgr, Viztor, MJL, pywikibot-bugs-list, Capankajsmilyo, zhuyifei1999, Liuxinyu970226, santhosh, MZMcBride, DannyH, Niharika, putnik, Jay8g, Legoktm, Base, Meirae, Candalua, Rical, Catrope, TTO, Krenair, Ricordisamoa, Aklapper, StudiesWorld, kaldari, Yurik, JohnsonLee01, Dijkstra, Zkhalido, Wenyi, kostajh, OhKayeSierra, Tbscho, cmadeo, MayS, Framawiki, Mdupont, JJMC89, TomT0m, Altostratus, Avicennasis, SBisson, Wong128hk, Luke081515, mys_721tx, jayvdb, fbstj, Masti, Alchimista, Rxy ___ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
[Pywikipedia-bugs] [Maniphest] [Updated] T122086: RFC: Sharing templates and modules between wikis - poor man's version (investigation)
Tgr added a comment. > Most wikis do want to protect highly used templates/modules. Seems <https://docs.google.com/spreadsheets/d/12Qu8Ieh7KHfa9ZLYIgugPOYT4zeUOa05o8vuavF8djA/edit#gid=0> like most medium/large wikis do that but not for many templates (150 wikis, about 7 templates per wiki on average, not counting semiprotection which wouldn't affect a bot). So that doesn't seem like a huge obstacle. The numbers exclude template protection (apparently the stats backend does not track it correctly: T251411: page_restrictions field incomplete in Data Lake mediawiki_wikitext_current table <https://phabricator.wikimedia.org/T251411>) but not that many wikis use that, I think. > Another big issue is simply applying for the bot flag to 500 wikis. If that can be somehow automated...? :) With a global bot flag. The current policy is limited to interwiki bots, but generalizing that into bots syncing global change seems like a reasonable change. > I could already automate the distribution of the content only to wikis that have granted bot user a bot flag... Or have an opt-in process via some config page like `MediaWiki:SharedTemplates.json` which the bot parses before touching that wiki. TASK DETAIL https://phabricator.wikimedia.org/T122086 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Tgr Cc: Ghuron, Tgr, Viztor, MJL, pywikibot-bugs-list, Capankajsmilyo, zhuyifei1999, Liuxinyu970226, santhosh, MZMcBride, DannyH, Niharika, putnik, Jay8g, Legoktm, Base, Meirae, Candalua, Rical, matmarex, Catrope, TTO, Krenair, Ricordisamoa, Aklapper, StudiesWorld, kaldari, Yurik, Dijkstra, Zkhalido, Wenyi, kostajh, OhKayeSierra, Tbscho, cmadeo, MayS, Framawiki, Mdupont, JJMC89, TomT0m, Dvorapa, Altostratus, Avicennasis, SBisson, Wong128hk, Luke081515, mys_721tx, jayvdb, fbstj, Masti, Alchimista, Rxy ___ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
[Pywikipedia-bugs] [Maniphest] [Commented On] T122086: RFC: Sharing templates and modules between wikis - poor man's version (investigation)
Tgr added a comment. An opt-in model for wikis does not seem particularly painful to me. Wikis need to actively choose using those modules in their articles (or other templates/modules), there's no value in them being there otherwise. Compared to that a bot approval process doesn't seem like a huge extra effort. (Also, why admin? Modules can be edited by anyone, and most wikis don't regularly protect them.) A web tool would make sense, but it needs to be written, the bot already exists and it's trivial to switch from one to the other later. So is there any reason no to use the bot with an opt-in wiki list right now? Or is that too much effort to administer? TASK DETAIL https://phabricator.wikimedia.org/T122086 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Tgr Cc: Tgr, Viztor, MJL, pywikibot-bugs-list, Capankajsmilyo, zhuyifei1999, Liuxinyu970226, santhosh, MZMcBride, DannyH, Niharika, putnik, Jay8g, Legoktm, Base, Meirae, Candalua, Rical, matmarex, Catrope, TTO, Krenair, Ricordisamoa, Aklapper, StudiesWorld, kaldari, Yurik, Dijkstra, Zkhalido, Wenyi, kostajh, OhKayeSierra, Tbscho, cmadeo, MayS, Framawiki, Mdupont, JJMC89, TomT0m, Dvorapa, Altostratus, Avicennasis, SBisson, Wong128hk, Luke081515, mys_721tx, jayvdb, fbstj, Masti, Alchimista, Rxy ___ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
[Pywikipedia-bugs] [Maniphest] [Updated] T122086: RFC: Sharing templates and modules between wikis - poor man's version (investigation)
Tgr added a project: covid-19. Tgr added a comment. In T122086#5106105 <https://phabricator.wikimedia.org/T122086#5106105>, @Yurik wrote: > A bot has been implemented <https://github.com/nyurik/dibabel> and documented <https://www.mediawiki.org/wiki/Multilingual_Templates_and_Modules> for this functionality. Needs a whole bunch of bot approvals, or a global bot flag. For now running it by hand for a few pages. It seems the bot stopped working in 2019 May. mw:Module:TNT <https://www.mediawiki.org/wiki/Module:TNT> for example is still documented as being synchronized by it, but it actually isn't. Was it a one-off proof of concept effort you are not maintaining anymore, or is there a different reason? TASK DETAIL https://phabricator.wikimedia.org/T122086 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Tgr Cc: Tgr, Viztor, MJL, pywikibot-bugs-list, Capankajsmilyo, zhuyifei1999, Liuxinyu970226, santhosh, MZMcBride, DannyH, Niharika, putnik, Jay8g, Legoktm, Qgil, Base, Meirae, Candalua, Rical, matmarex, Catrope, TTO, Krenair, Ricordisamoa, Aklapper, StudiesWorld, kaldari, Yurik, Dijkstra, Zkhalido, Wenyi, kostajh, OhKayeSierra, Tbscho, cmadeo, MayS, Framawiki, Mdupont, JJMC89, TomT0m, Dvorapa, Altostratus, Avicennasis, SBisson, Wong128hk, Luke081515, mys_721tx, jayvdb, fbstj, Masti, Alchimista, Rxy ___ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
[Pywikipedia-bugs] [Maniphest] [Updated] T122086: RFC: Sharing templates and modules between wikis - poor man's version (investigation)
Tgr added a comment. I proposed building on this in T250065#6051620 <https://phabricator.wikimedia.org/T250065#6051620>. TASK DETAIL https://phabricator.wikimedia.org/T122086 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Tgr Cc: Tgr, Viztor, MJL, pywikibot-bugs-list, Capankajsmilyo, zhuyifei1999, Liuxinyu970226, santhosh, MZMcBride, DannyH, Niharika, putnik, Jay8g, Legoktm, Qgil, Base, Meirae, Candalua, Rical, matmarex, Catrope, TTO, Krenair, Ricordisamoa, Aklapper, StudiesWorld, kaldari, Yurik, Zkhalido, Wenyi, Tbscho, MayS, Framawiki, Mdupont, JJMC89, TomT0m, Dvorapa, Altostratus, Avicennasis, Wong128hk, Luke081515, mys_721tx, jayvdb, fbstj, Masti, Alchimista, Rxy ___ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
[Pywikipedia-bugs] [Maniphest] [Created] T237215: Add beta cluster families to Pywikibot
Tgr created this task. Tgr added projects: Beta-Cluster-Infrastructure, Pywikibot. Restricted Application added subscribers: pywikibot-bugs-list, Aklapper. TASK DESCRIPTION Pywikibot does not support beta cluster <https://www.mediawiki.org/wiki/Beta_Cluster> wikis currently. It would be helpful for setting up test environments. TASK DETAIL https://phabricator.wikimedia.org/T237215 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Tgr Cc: Aklapper, pywikibot-bugs-list, Tgr, Zkhalido, Viztor, DannyS712, Wenyi, Bsandipan, Tbscho, MayS, Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, mys_721tx, jayvdb, Dalba, Masti, Alchimista, Rxy, Jay8g, Krenair ___ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
[Pywikipedia-bugs] [Maniphest] [Updated] T149672: OAuth: don't abort if the username does not exist on project
Tgr added a project: MediaWiki-extensions-OAuth. TASK DETAIL https://phabricator.wikimedia.org/T149672 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Tgr Cc: AntiCompositeNumber, Chicocvenancio, Framawiki, Ladsgroup, Aklapper, MarcoAurelio, pywikibot-bugs-list, Hook696, Daryl-TTMG, RomaAmorRoma, 0010318400, E.S.A-Sheild, joker88john, Viztor, DannyS712, CucyNoiD, NebulousIris, Wenyi, Gaboe420, lucamauri, Versusxo, Majesticalreaper22, Giuliamocci, Adrian1985, Cpaulf30, Af420, Darkminds3113, Bsandipan, Lordiis, Adik2382, Th3d3v1ls, Ramalepe, Liugev6, Tbscho, MayS, WSH1906, Lewizho99, Mdupont, JJMC89, Maathavan, Dvorapa, Altostratus, Avicennasis, mys_721tx, jayvdb, Dalba, Masti, Alchimista, Rxy, Krenair, Tgr ___ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
[Pywikipedia-bugs] [Maniphest] [Updated] T57081: Implement support for Flagged Revisions in Pywikibot
Tgr added a comment. Hi @Jwu96, I was only a helper on this project in the past (see T57081#3995251 <https://phabricator.wikimedia.org/T57081#3995251>) and I probably won't be able to do that this year as I have less free time, I'm trying to run another outreach project, (T218277: Build statistics toolset to support WM-HU editor retention grant <https://phabricator.wikimedia.org/T218277>) and FlaggedRevs is sort-of-disabled on huwiki now (see T121995: Switch FlaggedRevs on Hungarian Wikipedia to a "flagged protection" mode <https://phabricator.wikimedia.org/T121995>, although that might get reverted soon, and not sure how much it affects the planned Pywikipediabot API). That doesn't mean much, I'm easy to replace; @jayvdb is the main mentor so you should discuss with him what the plans are for this project (AIUI it was grandfathered in to the task list from some previous year so there's no guarantee the people who planned to mentor it then are still planning to do so). TASK DETAIL https://phabricator.wikimedia.org/T57081 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Tgr Cc: Jwu96, AbhishekSinghDhadwal, Subhang65523, Dvorapa, Iamsandipbhuyan, Cyberpower678, Cirdan, Soumya-ranjan7, Rammanojpotla, BamLifa, Tgr, srishakatux, zhuyifei1999, djff, TerraCodes, Mjbmr, DerHexer, KasiaWMDE, 01tonythomas, Shrutika719, Aklapper, jayvdb, Legoktm, Ricordisamoa, pywikibot-bugs-list, Arkadiy_Voronov, Wenyi, Himanshuc3, Ivana_Isadora, Jayprakash12345, Tbscho, Miriya52, MayS, Mdupont, JJMC89, Avicennasis, mys_721tx, Zache, jeblad, Dalba, Masti, Alchimista, Jackmcbarn, Rxy, Jay8g ___ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
[Pywikipedia-bugs] [Maniphest] [Commented On] T142345: Consider archiving #MediaWiki-Documentation in favour of single #Documentation
Tgr added a comment. In T142345#3656012, @Legoktm wrote: That works for search, yes. But is it possible to subscribe to an intersection of tags? Right now I can subscribe to #MediaWiki-SomeRandomThing and get emails for all those tasks - is it still possible once the tag is split? With a Herald rule. Not super intuitive though. At a minumum the project descriptions should make it clear which to use when.TASK DETAILhttps://phabricator.wikimedia.org/T142345EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: TgrCc: Tgr, pywikibot-bugs-list, Aklapper, Danny_B, Peachey88, Legoktm, Jrbranaa, greg, Tokenzero, DannyS712, Cpaulf30, Ivana_Isadora, Jayprakash12345, TomT0m, MGChecker, srodlund, Wong128hk, Luke081515, Dinoguy1000, Gryllida, fbstj, Jdforrester-WMF, Jay8g, Krenair___ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
[Pywikipedia-bugs] [Maniphest] [Commented On] T199042: touch.py makes empty edits on ProofreadPage pages
Tgr added a comment. Yeah, normal edits cause recursive update, null edits only update the links for the edited page. There are minor internal differences between a null edit and a purge with forced links update (e.g. title cache gets reset), none of that should be user-visible. IMO it makes more sense to use purges by default (you might need to fall back to null edits for old wikis or ones where the write API has been disabled). Wikisource is needing to touch 00s of files across multiple languages. That should probably have its own bug report... extensions are expected to work correctly without constant bot maintenance.TASK DETAILhttps://phabricator.wikimedia.org/T199042EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: TgrCc: JJMC89, Tgr, Anomie, Dalba, Xqt, gerritbot, JAnD, Mpaa, Tacsipacsi, Framawiki, Bodhisattwa, Ankry, Dvorapa, Aklapper, pywikibot-bugs-list, Billinghurst, CucyNoiD, NebulousIris, Wenyi, Gaboe420, Versusxo, Majesticalreaper22, Giuliamocci, Mahveotm, Adrian1985, Cpaulf30, Baloch007, Darkminds3113, Bsandipan, Lordiis, Adik2382, Th3d3v1ls, Ramalepe, Liugev6, Tbscho, MayS, Lewizho99, Mdupont, Maathavan, Tshrinivasan, Avicennasis, Info-farmer, mys_721tx, Candalua, jayvdb, Masti, Tpt, Alchimista, Rxy___ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
[Pywikipedia-bugs] [Maniphest] [Updated] T57081: Implement support for Flagged Revisions in Pywikibot
Tgr added a project: User-Tgr. TASK DETAILhttps://phabricator.wikimedia.org/T57081EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: TgrCc: Rammanojpotla, BamLifa, Tgr, srishakatux, zhuyifei1999, djff, TerraCodes, Mjbmr, Sumit, DerHexer, KasiaWMDE, 01tonythomas, Shrutika719, Aklapper, jayvdb, Legoktm, Ricordisamoa, pywikibot-bugs-list, Himanshuc3, Magul, Tbscho, rafidaslam, MayS, Pahadiahimanshu, Manrajsinghgrover, Mdupont, JJMC89, Keer25, D3r1ck01, Avicennasis, jeblad, Mvolz, Dalba, Masti, Alchimista, Jackmcbarn, Rxy, Jay8g___ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
[Pywikipedia-bugs] [Maniphest] [Commented On] T57081: Implement support for Flagged Revisions in Pywikibot
Tgr added a comment. Left a note on the huwiki bot noticeboard about this.TASK DETAILhttps://phabricator.wikimedia.org/T57081EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: TgrCc: Rammanojpotla, BamLifa, Tgr, srishakatux, zhuyifei1999, djff, TerraCodes, Mjbmr, Sumit, DerHexer, KasiaWMDE, 01tonythomas, Shrutika719, Aklapper, jayvdb, Legoktm, Ricordisamoa, pywikibot-bugs-list, Himanshuc3, Magul, Tbscho, rafidaslam, MayS, Pahadiahimanshu, Manrajsinghgrover, Mdupont, JJMC89, Keer25, D3r1ck01, Avicennasis, jeblad, Mvolz, Dalba, Masti, Alchimista, Jackmcbarn, Rxy, Jay8g___ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
[Pywikipedia-bugs] [Maniphest] [Updated] T57081: Implement support for Flagged Revisions in Pywikibot
Tgr added a comment. In T57081#3905148, @jayvdb wrote: I am always interested in mentoring it, but refuse to do it without the support of a real community using FlaggedRevs, via a knowledgeable community member as co-mentor. The Hungarian Wikipedia uses FlaggedRevs. I helped introduce it, wrote most of the documentation for it and understand it fairly well on a user level. (Less well on a development level but it's not my first time seeing the code, either.) If you are still interested in this, I would be happy to help. I can't promise spending a lot of time on mentoring but I can answer questions about how things work. (The use case is that after T121995 we might be interested in using a bot to manage flagged state, e.g. protect BLPs. Also ORES is soon going to be enabled on huwiki which offers some interesting options on automatically deciding which version to show.)TASK DETAILhttps://phabricator.wikimedia.org/T57081EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: TgrCc: Tgr, srishakatux, zhuyifei1999, djff, TerraCodes, Mjbmr, Sumit, DerHexer, KasiaWMDE, 01tonythomas, Shrutika719, Aklapper, jayvdb, Legoktm, Ricordisamoa, pywikibot-bugs-list, Himanshuc3, Magul, Tbscho, rafidaslam, MayS, Pahadiahimanshu, Manrajsinghgrover, Mdupont, JJMC89, Keer25, Avicennasis, jeblad, Dalba, Masti, Alchimista, Jackmcbarn, Rxy, Jay8g___ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
[Pywikipedia-bugs] [Maniphest] [Commented On] T184981: API error protectednamespace incorrectly triggered when logged in using BotPassword
Tgr added a comment. Probably more like '+sewikimedia', although even that might replace editpage instead of merging into it (if that's the case you'd have to add it in CommonSettings.php).TASK DETAILhttps://phabricator.wikimedia.org/T184981EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: TgrCc: Dereckson, Tgr, JJMC89, Aklapper, Lokal_Profil, pywikibot-bugs-list, Jayprakash12345, Zoranzoki21, DatGuy, Devwaker, Urbanecm, JEumerus, Tulsi_Bhagat, Wong128hk, Luke081515, SimmeD, biplabanand, Snowolf, Dcljr, Jdforrester-WMF, Matanya, Rxy, Jay8g, Krenair___ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
[Pywikipedia-bugs] [Maniphest] [Updated] T184981: API error protectednamespace incorrectly triggered when logged in using BotPassword
Tgr edited projects, added Wikimedia-Site-requests; removed MediaWiki-extensions-OAuth.Herald added a subscriber: Dereckson. TASK DETAILhttps://phabricator.wikimedia.org/T184981EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: TgrCc: Dereckson, Tgr, JJMC89, Aklapper, Lokal_Profil, pywikibot-bugs-list, Jayprakash12345, Magul, Tbscho, rafidaslam, MayS, Zoranzoki21, Mdupont, DatGuy, Devwaker, Urbanecm, Avicennasis, JEumerus, Tulsi_Bhagat, Wong128hk, Luke081515, SimmeD, biplabanand, Snowolf, Dcljr, jayvdb, Dalba, Masti, Alchimista, Jdforrester-WMF, Matanya, Rxy, Jay8g, Krenair___ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
[Pywikipedia-bugs] [Maniphest] [Commented On] T184981: API error protectednamespace incorrectly triggered when logged in using BotPassword
Tgr added a comment. See $wgGrantPermissions.TASK DETAILhttps://phabricator.wikimedia.org/T184981EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: TgrCc: Tgr, JJMC89, Aklapper, Lokal_Profil, pywikibot-bugs-list, Magul, Tbscho, rafidaslam, MayS, Mdupont, Avicennasis, jayvdb, Dalba, Masti, Alchimista, Rxy, Krenair___ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
[Pywikipedia-bugs] [Maniphest] [Updated] T136114: PAWS can not login
Tgr added a project: MediaWiki-extensions-OAuth.Tgr added a comment. On second thought I'll keep the tag and hide it on the workboard. Sorry for the noise.TASK DETAILhttps://phabricator.wikimedia.org/T136114EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: TgrCc: Abbe98, pywikibot-bugs-list, Framawiki, Tgr, matej_suchanek, Urbanecm, yuvipanda, Dvorapa, Zppix, Jane023, Capt_Swing, Krenair___ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
[Pywikipedia-bugs] [Maniphest] [Updated] T136114: PAWS can not login
Tgr removed a project: MediaWiki-extensions-OAuth.Tgr added a comment. Removing the extension tag as there does not seem to be anything actionable on that side.TASK DETAILhttps://phabricator.wikimedia.org/T136114EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: TgrCc: Abbe98, pywikibot-bugs-list, Framawiki, Tgr, matej_suchanek, Urbanecm, yuvipanda, Dvorapa, Zppix, Jane023, Capt_Swing___ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
[Pywikipedia-bugs] [Maniphest] [Commented On] T142155: Bot can't login. keyError in GetCookie
Tgr added a comment. @Gallicbot I'm a MediaWiki developer, so I can't really comment on the Pywikibot side, but I don't see what problem still needs to be fixed here. If frwiki requires you to have separate bot and personal accounts (which is probably the sane way for handling bot flags), just use Pywikibot as before, but replace the password to your bot account with a bot password to your bot account. We never intended to support a use case where you give the bot a bot password for your real account and then it somehow ends up editing with your bot account.TASK DETAILhttps://phabricator.wikimedia.org/T142155EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: Legoktm, TgrCc: Gallicbot, Krinkle, MZMcBride, Jay8g, revi, Paladox, Aschroet, zhuyifei1999, Stashbot, gerritbot, DrTrigon, Betacommand, Lokal_Profil, Tgr, Legoktm, JJMC89, Yamaha5, jayvdb, Ladsgroup, Xqt, valhallasw, Multichill, Anomie, CodeCat, TerraCodes, Luke081515, He7d3r, Basilicofresco, Jagwar, MarcoAurelio, Dalba, Aklapper, Joutbis, pywikibot-bugs-list, MayS, Mdupont, Alchimista, Rxy___ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
[Pywikipedia-bugs] [Maniphest] [Commented On] T142155: Bot can't login. keyError in GetCookie
Tgr added a comment. In T142155#2716184, @Gallicbot wrote: connection with Username@Botname is logged as Username on Wikipedia (no 'Bot tag' applied on my commits). I'm not sure which one you mean: no bot flag on your edits? Make sure your application has the highvolume grant (and of course the user account needs to have the bot flag). no change tag on your edits? Yeah, bot passwords don't do that (but then neither do "traditional" bots). no change to your username (such as the @Botname part displayed)? Bot passwords don't do that either. (Feel free to submit feature requests though if you think it would be helpful!) They are just a more stable way to log in, nothing more. TASK DETAILhttps://phabricator.wikimedia.org/T142155EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: Legoktm, TgrCc: Gallicbot, Krinkle, MZMcBride, Jay8g, revi, Paladox, Aschroet, zhuyifei1999, Stashbot, gerritbot, DrTrigon, Betacommand, Lokal_Profil, Tgr, Legoktm, JJMC89, Yamaha5, jayvdb, Ladsgroup, Xqt, valhallasw, Multichill, Anomie, CodeCat, TerraCodes, Luke081515, He7d3r, Basilicofresco, Jagwar, MarcoAurelio, Dalba, Aklapper, Joutbis, pywikibot-bugs-list, MayS, Mdupont, Alchimista, Rxy___ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
[Pywikipedia-bugs] [Maniphest] [Commented On] T142155: Bot can't login. keyError in GetCookie
Tgr added a comment. In T142155#2530198, @Multichill wrote: Tuesday is way too early. Can you push it back at least 2 months? Two months have passed now (mostly due to me forgetting about this), so let's try re-reverting with the next train (Wed/Thu next week).TASK DETAILhttps://phabricator.wikimedia.org/T142155EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: Legoktm, TgrCc: MZMcBride, Jay8g, revi, Paladox, Aschroet, zhuyifei1999, Stashbot, gerritbot, DrTrigon, Betacommand, Lokal_Profil, Tgr, Legoktm, JJMC89, Yamaha5, jayvdb, Ladsgroup, Xqt, valhallasw, Multichill, Anomie, CodeCat, TerraCodes, Luke081515, He7d3r, Basilicofresco, Jagwar, MarcoAurelio, Dalba, Aklapper, Joutbis, pywikibot-bugs-list, MayS, Mdupont, Alchimista___ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
[Pywikipedia-bugs] [Maniphest] [Edited] T142269: login.py should show a sensible error message when some tries to use it with OAuth
Tgr edited the task description. (Show Details) EDIT DETAILStl;dr: Pywikibot uses the `usernames` global for assertions, even when authentication happens via OAuth. Setting `authenticate` but not `usernames` will result in errors like `NoUsername: Logged in on lang:family via OAuth as UserName, but expect as None`. See [[https://www.mediawiki.org/wiki/Manual:Pywikibot/OAuth/Wikimedia|Manual:Pywikibot/OAuth/Wikimedia]] as an example of how to set up the configuration correctly. The current error message is: {P3657}...TASK DETAILhttps://phabricator.wikimedia.org/T142269EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: TgrCc: yuvipanda, Mpaa, jayvdb, Aklapper, pywikibot-bugs-list, MarcoAurelio, Tgr___ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
[Pywikipedia-bugs] [Maniphest] [Updated] T142155: Bot can't login. keyError in GetCookie
Tgr added a comment. Bot passwords don't work with Pywikibot, OAuth does not work very well (see T142269, T142303) and updating everyone to today's master cannot be expected to happen in a few days, so I'm reverting the API change in master. I'll leave it to @Anomie to decide whether two months is an acceptable delay (once he is back from vacation).TASK DETAILhttps://phabricator.wikimedia.org/T142155EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: Legoktm, TgrCc: Paladox, Aschroet, zhuyifei1999, Stashbot, gerritbot, DrTrigon, Betacommand, Lokal_Profil, Tgr, Udo_T, Legoktm, JJMC89, Pywikibot-Announce, Yamaha5, jayvdb, Ladsgroup, Xqt, valhallasw, Multichill, Anomie, CodeCat, TerraCodes, Luke081515, He7d3r, Basilicofresco, Jagwar, MarcoAurelio, Dalba, Aklapper, Joutbis, pywikibot-bugs-list, Mdupont___ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
[Pywikipedia-bugs] [Maniphest] [Updated] T142269: login.py should show a sensible error message when some tries to use it with OAuth
Tgr added a comment. Added to the docs. The task about solving this properly is T108334: config.authenticate should allow configuration using family/lang.TASK DETAILhttps://phabricator.wikimedia.org/T142269EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: TgrCc: Mpaa, jayvdb, Aklapper, pywikibot-bugs-list, MarcoAurelio, Tgr___ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
[Pywikipedia-bugs] [Maniphest] [Commented On] T142269: login.py should show a sensible error message when some tries to use it with OAuth
Tgr added a comment. Hm, it looks like it's been created with custom access rules. @MarcoAurelio can you remove that? I don't think there is anything private in the paste.TASK DETAILhttps://phabricator.wikimedia.org/T142269EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: TgrCc: jayvdb, Aklapper, pywikibot-bugs-list, MarcoAurelio, Tgr___ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
[Pywikipedia-bugs] [Maniphest] [Commented On] T142269: login.py should show a sensible error message when some tries to use it with OAuth
Tgr added a comment. Hm, I can't reproduce with current master, I just get Logged in on as . @MarcoAurelio can you verify that you got the error with the latest version of Pywikibot?TASK DETAILhttps://phabricator.wikimedia.org/T142269EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: TgrCc: Aklapper, pywikibot-bugs-list, MarcoAurelio, Tgr___ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
[Pywikipedia-bugs] [Maniphest] [Commented On] T142155: Bot can't login. keyError in GetCookie
Tgr added a comment. In T142155#2529722, @Legoktm wrote: Using OAuth with Pywikibot is documented at https://www.mediawiki.org/wiki/Manual:Pywikibot/OAuth, maybe we need to publicize that more? Yes but it is not user-friendly (or rather the OAuth form is not user-friendly, and the doc sends people off to fill it). Also apparently it's not in 2.0 and there is no more recent release :( Or do most people use master?TASK DETAILhttps://phabricator.wikimedia.org/T142155EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: TgrCc: Stashbot, gerritbot, DrTrigon, Betacommand, Lokal_Profil, Tgr, Udo_T, Legoktm, JJMC89, Pywikibot-Announce, Yamaha5, jayvdb, Ladsgroup, Xqt, valhallasw, Multichill, Anomie, CodeCat, TerraCodes, Luke081515, He7d3r, Basilicofresco, Jagwar, MarcoAurelio, Dalba, Aklapper, Joutbis, pywikibot-bugs-list, Mdupont___ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
[Pywikipedia-bugs] [Maniphest] [Commented On] T142155: Bot can't login. keyError in GetCookie
Tgr added a comment. @Betacommand said something about the bot still working if you just delete the lines which deal with the prefix. Which seems plausible as it uses a cookie jar anyway. I'm not sure how to test that now though, there does not seem to be a wiki family for labs. In any case, getting users to update should take a few days at least and it's not nice to break all bots for the weekend. (Well, the 16% of bots which are unlucky enough that their session would expire this week, but still.) I'll make a step-by--step tutorial about using OAuth and we can send that and/or a call to update out with Tech News. (I suppose compat users will be screwed, or maybe that already happened in January?)TASK DETAILhttps://phabricator.wikimedia.org/T142155EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: TgrCc: Stashbot, gerritbot, DrTrigon, Betacommand, Lokal_Profil, Tgr, Udo_T, Legoktm, JJMC89, Pywikibot-Announce, Yamaha5, jayvdb, Ladsgroup, Xqt, valhallasw, Multichill, Anomie, CodeCat, TerraCodes, Luke081515, He7d3r, Basilicofresco, Jagwar, MarcoAurelio, Dalba, Aklapper, Joutbis, pywikibot-bugs-list, Mdupont___ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
[Pywikipedia-bugs] [Maniphest] [Created] T142269: login.py should show a sensible error message when some tries to use it with OAuth
Tgr created this task.Tgr added projects: Pywikibot-login.py, Pywikibot-OAuth.Herald added subscribers: pywikibot-bugs-list, Aklapper. TASK DESCRIPTIONThe current error message is: {P3657} It's not impossible to figure out from that that you don't need to log in explicitly when using OAuth, but it's not exactly user-friendly either. It should just say something like "Skipping login, you are using OAuth so you are always logged in." Two UX complications worth considering: the user might have an OAuth token for the wiki which is invalid. Trying to use the login API would probably still fail in that case, but in uglier ways. the user might have an OAuth token which is valid for the wiki on which they perform the login, but not for all wikis on which the session saved via login.py would be valid (if it's a CentralAuth session or something similar). TASK DETAILhttps://phabricator.wikimedia.org/T142269EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: TgrCc: Aklapper, pywikibot-bugs-list, MarcoAurelio, Tgr___ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
[Pywikipedia-bugs] [Maniphest] [Commented On] T142155: Bot can't login. keyError in GetCookie
Tgr added a comment. Reverted in 1.28.0-wmf.13 (meaning it will last until Tuesday). Is anyone planning to fix PWB and contact users about updating (or using OAuth)?TASK DETAILhttps://phabricator.wikimedia.org/T142155EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: TgrCc: Stashbot, gerritbot, DrTrigon, Betacommand, Lokal_Profil, Tgr, Udo_T, Legoktm, JJMC89, Pywikibot-Announce, Yamaha5, jayvdb, Ladsgroup, Xqt, valhallasw, Multichill, Anomie, CodeCat, TerraCodes, Luke081515, He7d3r, Basilicofresco, Jagwar, MarcoAurelio, Dalba, Aklapper, Joutbis, pywikibot-bugs-list, Mdupont___ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
[Pywikipedia-bugs] [Maniphest] [Commented On] T142155: Bot can't login. keyError in GetCookie
Tgr added a comment. I can reproduce on Commons (and would be surprised if the API there behaved differently). Maybe the user already had a Commons session and PWB is clever enough to skip the login if there is a valid session?TASK DETAILhttps://phabricator.wikimedia.org/T142155EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: TgrCc: Betacommand, Lokal_Profil, Tgr, Udo_T, Legoktm, JJMC89, Pywikibot-Announce, Yamaha5, jayvdb, Ladsgroup, Xqt, valhallasw, Multichill, Anomie, CodeCat, TerraCodes, Luke081515, He7d3r, Basilicofresco, Jagwar, MarcoAurelio, Dalba, Aklapper, Joutbis, pywikibot-bugs-list, Mdupont___ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
[Pywikipedia-bugs] [Maniphest] [Commented On] T142155: Bot can't login. keyError in GetCookie
Tgr added a comment. In T142155#2529513, @Betacommand wrote: Which wikis are currently affected? Presumably all Wikimedia wikis since the change went out with this week's train.TASK DETAILhttps://phabricator.wikimedia.org/T142155EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: TgrCc: Betacommand, Lokal_Profil, Tgr, Udo_T, Legoktm, JJMC89, Pywikibot-Announce, Yamaha5, jayvdb, Ladsgroup, Xqt, valhallasw, Multichill, Anomie, CodeCat, TerraCodes, Luke081515, He7d3r, Basilicofresco, Jagwar, MarcoAurelio, Dalba, Aklapper, Joutbis, pywikibot-bugs-list, Mdupont___ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
[Pywikipedia-bugs] [Maniphest] [Commented On] T142155: Bot can't login. keyError in GetCookie
Tgr added a comment. I don't think bot passwords would help with this, they use the same API. Using OAuth is a possible workaround (and is in general the recommended login method for bots; Pywikibot supports it although I have no idea how well tested the feature is).TASK DETAILhttps://phabricator.wikimedia.org/T142155EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: TgrCc: Lokal_Profil, Tgr, Udo_T, Legoktm, JJMC89, Pywikibot-Announce, Yamaha5, jayvdb, Ladsgroup, Xqt, valhallasw, Multichill, Anomie, CodeCat, TerraCodes, Luke081515, He7d3r, Basilicofresco, Jagwar, MarcoAurelio, Dalba, Aklapper, Joutbis, pywikibot-bugs-list, Mdupont___ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
[Pywikipedia-bugs] [Maniphest] [Commented On] T142155: Bot can't login. keyError in GetCookie
Tgr added a comment. Anomie is on vacation (and in general pwb-announce is not a good place to report assumed API bugs). Deprecation of cookieprefix was announced in December (along with a general discouragement of the login API, unless used with bot passwords; see this and this email). Removal was announced a week in advance. Does this affect the most recent PWB version? Is anyone working on the issue?TASK DETAILhttps://phabricator.wikimedia.org/T142155EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: TgrCc: Tgr, Udo_T, Legoktm, JJMC89, Pywikibot-Announce, Yamaha5, jayvdb, Ladsgroup, Xqt, valhallasw, Multichill, Anomie, CodeCat, TerraCodes, Luke081515, He7d3r, Basilicofresco, Jagwar, MarcoAurelio, Dalba, Aklapper, Joutbis, pywikibot-bugs-list, Mdupont___ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
[Pywikipedia-bugs] [Maniphest] [Updated] T137520: category move needs wikidata password without any reason
Tgr removed projects: MediaWiki-extensions-OAuthAuthentication, MediaWiki-extensions-OAuth, Pywikibot-OAuth, MediaWiki-Authentication-and-authorization.Tgr added a comment. Please provide reproduction steps in terms of MediaWiki API requests if you think this is a MediaWiki bug.TASK DETAILhttps://phabricator.wikimedia.org/T137520EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: TgrCc: Tgr, matej_suchanek, Aklapper, Zppix, pywikibot-bugs-list, Dvorapa___ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
[Pywikipedia-bugs] [Maniphest] [Commented On] T109173: "Nonce already used" regularly occurring on beta cluster
Tgr added a comment. @jayvdb: I don't have much time this month but do you want to shepherd https://gerrit.wikimedia.org/r/#/c/249222/ through a puppet SWAT (it needs a rebase too) and then disable the setting in beta? That's my best bet at improving the situation. The problem is somewhere in the memcached layer, I doubt logs from the appservers (or PWB) would give useful information. TASK DETAIL https://phabricator.wikimedia.org/T109173 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Tgr Cc: MZMcBride, XZise, gerritbot, ori, bd808, Tgr, greg, Aklapper, Luke081515, pywikibot-bugs-list, jayvdb, Lewizho99, Maathavan, Krenair, hashar, mmodell ___ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
[Pywikipedia-bugs] [Maniphest] [Closed] T130611: 500 status responses and fatal errors for OAuth authenticated API requests on beta servers
Tgr closed this task as "Resolved". Tgr claimed this task. TASK DETAIL https://phabricator.wikimedia.org/T130611 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Tgr Cc: pywikibot-bugs-list, Krenair, Anomie, jayvdb, Tgr, Aklapper, Susannaanas, Chippyy, Sadads, Jay8g ___ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
[Pywikipedia-bugs] [Maniphest] [Commented On] T130611: 500 status responses and fatal errors for OAuth authenticated API requests on beta servers
Tgr added a comment. In https://phabricator.wikimedia.org/T130611#2153076, @jayvdb wrote: > Is this the cause of T129763: beta wikipedia test builds fail <https://phabricator.wikimedia.org/T129763> ? Yes. The 'lots of 503 errors' thing is the original bug this task was intended to fix (`WARNING: Http response status 503 WARNING: Non-JSON response received from server wpbeta:en; the server may be down` - a fatal error in the OAuth JSON response, example <https://travis-ci.org/wikimedia/pywikibot-core/jobs/117642071>); the signature errors (`WARNING: API error mwoauth-invalid-authorization: The authorization headers in your request are not valid: Invalid signature` - example <https://travis-ci.org/wikimedia/pywikibot-core/jobs/118664057>) are caused by the secret key change. TASK DETAIL https://phabricator.wikimedia.org/T130611 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Tgr Cc: pywikibot-bugs-list, Krenair, Anomie, jayvdb, Tgr, Aklapper, Susannaanas, Chippyy, Jay8g ___ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
[Pywikipedia-bugs] [Maniphest] [Edited] T130565: QueryGenerator and similar API classes do not handle page lists that are over the limit
Tgr edited the task description. TASK DETAIL https://phabricator.wikimedia.org/T130565 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Tgr Cc: Aklapper, pywikibot-bugs-list, Tgr ___ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
[Pywikipedia-bugs] [Maniphest] [Created] T130565: QueryGenerator and similar API classes do not handle page lists that are over the limit
Tgr created this task. Herald added subscribers: pywikibot-bugs-list, Aklapper. TASK DESCRIPTION If the query API module receives more pages (e.g. via the `titles` parameter) than the limit of the submodule used, it hsows a warning and discards the extra ones. QueryGenerator should work around this but currently doesn't (probably same goes to the other Generator and APISite classes). One can do something like this for a workaround: def chunked_iterator(lst, fn, size): return chain(*imap(fn, (lst[pos:pos+size] for pos in xrange(0, len(lst), size for data in chunked_iterator(titles, lambda pages: api.PropertyGenerator('pageimages', titles=pages, site=site), 50): ... but it's extra complexity and becomes even worse if one wants to preserve other features of the Generator classes like remembering pagename normalizations. TASK DETAIL https://phabricator.wikimedia.org/T130565 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Tgr Cc: Aklapper, pywikibot-bugs-list, Tgr, jayvdb ___ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
[Pywikipedia-bugs] [Maniphest] [Commented On] T125779: pywikibot OAuth should properly handle expired tokens, instead of endless loop.
Tgr added a subscriber: Tgr. Tgr added a comment. This is probably a session handling bug that will be fixed by https://gerrit.wikimedia.org/r/#/c/268702/ (or by deploying SessionManager, whichever happens first). TASK DETAIL https://phabricator.wikimedia.org/T125779 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Tgr Cc: Tgr, Mpaa, csteipp, Matanya, valhallasw, Ricordisamoa, Aklapper, Yann, StudiesWorld, pywikibot-bugs-list, zhuyifei1999 ___ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
[Pywikipedia-bugs] [Maniphest] [Updated] T121326: Pywikibot's requirements.txt needs pip 6+ which is not present on Ubuntu Trusty
Tgr added a comment. A global update might be more problematic than the pip changelog would suggest: T88782: new versions of pip and setuptools break travis <https://phabricator.wikimedia.org/T88782> TASK DETAIL https://phabricator.wikimedia.org/T121326 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: ori, Tgr Cc: jayvdb, Aklapper, StudiesWorld, pywikibot-bugs-list, Tgr, mobrovac, jeremyb ___ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
[Pywikipedia-bugs] [Maniphest] [Commented On] T121326: Pywikibot's requirements.txt needs pip 6+ which is not present on Ubuntu Trusty
Tgr added a comment. The default Python on Trusty is currently 2.7.6 - people would have to remember to type `python3` and hashbangs would not work either. That's not a huge deal but all else being equal I would prefer targeting the default version. TASK DETAIL https://phabricator.wikimedia.org/T121326 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Tgr Cc: jayvdb, Aklapper, StudiesWorld, pywikibot-bugs-list, Tgr, mobrovac, jeremyb ___ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
[Pywikipedia-bugs] [Maniphest] [Changed Subscribers] T113822: No handlers could be found for logger "pywiki"
Tgr added a subscriber: Tgr. Tgr added a comment. Herald added a subscriber: StudiesWorld. This happens when there is an error before logging is initialized in `pywikibot.bot.init_handlers`. Specifically, anything to do with configuration since `pywikibot.config` is imported before `pywikibot.bot`- Which also means that if there is any problem with `user-config.py`, it is silently ignored (and the bot does break, and the user has no idea why). TASK DETAIL https://phabricator.wikimedia.org/T113822 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Tgr Cc: StudiesWorld, Tgr, jayvdb, Aklapper, Wesalius, pywikibot-bugs-list ___ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
[Pywikipedia-bugs] [Maniphest] [Commented On] T121326: Pywikibot's requirements.txt needs pip 6+ which is not present on Ubuntu Trusty
Tgr added a comment. https://gerrit.wikimedia.org/r/#/c/258711/ is blocked on this. TASK DETAIL https://phabricator.wikimedia.org/T121326 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Tgr Cc: Aklapper, StudiesWorld, pywikibot-bugs-list, Tgr, mobrovac, jeremyb ___ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
[Pywikipedia-bugs] [Maniphest] [Created] T121326: Pywikibot's requirements.txt needs pip 6+ which is not present on Ubuntu Trusty
Tgr created this task. Tgr added a subscriber: Tgr. Tgr added projects: MediaWiki-Vagrant, Pywikibot-General. Herald added subscribers: pywikibot-bugs-list, StudiesWorld, Aklapper. TASK DESCRIPTION Pywikibot's requirements file uses version markers, which are introduced by pip 6, but trusty comes with pip 1.5.4. (The difference is not as great as it sounds, there is a jump from 1.5.6 to 6.0.) Most things in the Wikimedia world use trusty[citation needed] so this makes using Pywikibot more complex than it has to be. Specifically, MediaWiki-Vagrant is built on trusty. Possible solutions: * Have some kind of stripped-down version of the requirements.txt file for trusty. (The python version is known so no need for conditionals.) * Update pip on vagrant. This can be done by running `pip install --upgrade --ignore-installed pip` and then making sure that `/usr/local/bin/pip` and not `/usr/bin/pip` is used (this is the case from a vagrant bash shell but not by default from puppet exec rules). * Use a virtualenv on vagrant. Somewhat defeats the point of providing a convenient pywikibot installation method though. * Update pip in Wikimedia's custom apt repo. Thos would affect both vagrant and labs/production boxes. TASK DETAIL https://phabricator.wikimedia.org/T121326 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Tgr Cc: Aklapper, StudiesWorld, pywikibot-bugs-list, Tgr, mobrovac, jeremyb, jayvdb ___ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
[Pywikipedia-bugs] [Maniphest] [Commented On] T109173: "Nonce already used" regularly occurring on beta cluster
Tgr added a comment. Per graphite <https://graphite.wmflabs.org/render/?width=1500=1000&_salt=1441758892.639=-3months=logstash.rate.mediawiki.memcached.ERROR.count=false=false=connected=true>, there are tens of thousands of memcached failures per day. Maybe @ori has ideas, he debugged a similar issue in production. TASK DETAIL https://phabricator.wikimedia.org/T109173 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Tgr Cc: XZise, gerritbot, ori, bd808, Tgr, greg, Aklapper, Luke081515, pywikibot-bugs-list, jayvdb, scfc, hashar ___ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
[Pywikipedia-bugs] [Maniphest] [Changed Subscribers] T112416: Unable to continue/finish uploading chunked file
Tgr added a subscriber: Tgr. Tgr added a comment. Herald added a subscriber: Matanya. Can you provide the actual requests, or a set of pywikibot or (ideally) curl commands reproducing the issue? TASK DETAIL https://phabricator.wikimedia.org/T112416 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Tgr Cc: Matanya, Tgr, Aklapper, Steinsplitter, pywikibot-bugs-list, XZise, Bawolff, jayvdb, Fabrice_Florin, Anomie, Legoktm ___ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
[Pywikipedia-bugs] [Maniphest] [Changed Subscribers] T109173: "Nonce already used" regularly occurring on beta cluster
Tgr added a subscriber: ori. Tgr added a comment. Looks like it was well-behaved for two days and now the errors are back: F2577550: memcached errorsű.png <https://phabricator.wikimedia.org/F2577550> This time it's all `deployment-mediawiki01` per https://logstash-beta.wmflabs.org/#/dashboard/elasticsearch/memcached , something on the scale of 1-10 errors per minute. Restarted, but I have no idea how to identify the underlying bug. @ori did a lot of investigation on nutcrackers in production, does that apply here? TASK DETAIL https://phabricator.wikimedia.org/T109173 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: bd808, Tgr Cc: ori, bd808, Tgr, greg, Aklapper, Luke081515, pywikibot-bugs-list, jayvdb, scfc, hashar ___ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
[Pywikipedia-bugs] [Maniphest] [Commented On] T109173: "Nonce already used" regularly occurring on beta cluster
Tgr added a comment. Looks like the memcached graphite counts are a good way of tracking this after all (nutcracker restart was around 18:30 UTC): F2563030: beta memcached errors.png <https://phabricator.wikimedia.org/F2563030> TASK DETAIL https://phabricator.wikimedia.org/T109173 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: bd808, Tgr Cc: bd808, Tgr, greg, Aklapper, Luke081515, pywikibot-bugs-list, jayvdb, scfc, hashar ___ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
[Pywikipedia-bugs] [Maniphest] [Changed Subscribers] T109173: "Nonce already used" regularly occurring on beta cluster
Tgr added a subscriber: bd808. Tgr added a comment. In https://phabricator.wikimedia.org/T109173#1619880, @jayvdb wrote: > @Tgr, I am not sure what we can or should do to help, but if you can give us > some suggestions we might be able to help. Someone needs to be able to verify whether random attempts at hitting some service or other on the head have improved the situation, that's all. For now, @bd808 restarted nutcracker on deployment-mediawiki02 which seemed to be the exclusive source of recent memcached errors in logstash. Please tell if that made a difference. TASK DETAIL https://phabricator.wikimedia.org/T109173 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Tgr Cc: bd808, Tgr, greg, Aklapper, Luke081515, pywikibot-bugs-list, jayvdb, scfc, hashar ___ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
[Pywikipedia-bugs] [Maniphest] [Commented On] T109173: "Nonce already used" regularly occurring on beta cluster
Tgr added a comment. @jayvdb is there a way to track this error? I looked at the travis history, but builds seem to break all over the place and mostly for unrelated reasons (or not obviously related, anyway - pretty much any error can be related to memcached failure), so I couldn't get a good picture of how frequent this issue is. TASK DETAIL https://phabricator.wikimedia.org/T109173 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Tgr Cc: Tgr, greg, Aklapper, Luke081515, pywikibot-bugs-list, jayvdb, scfc, hashar ___ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
[Pywikipedia-bugs] [Maniphest] [Updated] T109173: Nonce already used regularly occurring on beta cluster
Tgr added a subscriber: Tgr. Tgr added a project: Beta-Cluster. Tgr added a comment. Unless there is a bug in OAuth or PWB that we are unaware of, this is a memcached availability issue (see the task linked in the description for details). TASK DETAIL https://phabricator.wikimedia.org/T109173 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Tgr Cc: Tgr, greg, Aklapper, Luke081515, pywikibot-bugs-list, jayvdb, scfc, hashar, Malyacko ___ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs