https://bugzilla.wikimedia.org/show_bug.cgi?id=65044
Bug ID: 65044 Summary: Intermittent 'wrong password' errors while using -family:commons with enwiki home site Product: Pywikibot Version: core (2.0) Hardware: All OS: All Status: NEW Severity: normal Priority: Unprioritized Component: General Assignee: Pywikipedia-bugs@lists.wikimedia.org Reporter: valhallasw@arctus.nl CC: bugzilla+org.wikimedia@tuxmachine.com Web browser: --- Mobile Platform: ---
Created attachment 15320 --> https://bugzilla.wikimedia.org/attachment.cgi?id=15320&action=edit User config file used by JeremyB
From JeremyB via IRC.
21:55 < jeremyb> valhalla1w: i think maybe i even discussed my not staying logged in problem with you a couple months ago? 21:55 < jeremyb> with upload.py after running login.py 21:56 < jeremyb> i was getting prompted for password and periodically hit some kind of wrong passwd throttle and it didn't seem to matter whether the password i entered was accurate or not 21:56 < jeremyb> (i could enter garbage and hit enter and the upload would still maybe succeed) 21:56 < jeremyb> adding -lang to command line drastically improved things (and it stopped prompting for passwd) 23:01 < jeremyb> home seems to be enwiki. commons is an addition on the very last line of user-config.py
Command to reproduce should be:
23:12 < jeremyb> 08 01:10:32 < jeremyb> $ for c in $(ls -1 ???_ocha.txt | cut -d _ -f 1 | sed -n 135,146p); do python /shared/pywikipedia/core/scripts/upload.py -v -family:commons -log -noverify -filename:"$(<"$c"_ocha.name)" "${c}_ocha.svg" "$(<"$c"_ocha.txt)"; date -R; done 23:13 < jeremyb> valhalla1w: i did definitely do login.py -v -all 23:13 < jeremyb> and login.py -v -all -test 23:13 < jeremyb> (but unsure of parameter order)
https://bugzilla.wikimedia.org/show_bug.cgi?id=65044
Betacommand Phoenixoverride@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |Phoenixoverride@gmail.com
--- Comment #1 from Betacommand Phoenixoverride@gmail.com --- Ive seen similar issues before, if mylang = 'en' or anything but 'commons' pywiki tends to not work correctly. I suspect that the only reason that this is working part of the time is because of the global login cookie and that the framework isnt getting the correct local cookies when it attempts to use the 'en' language project. By defining the language as 'commons' you bypass that. I suspect its an issue dealing with the way we construct project/language/user configs. IE usernames['commons']['commons'] = username when we set mylang='en' it attempts to use usernames['commons']['en'] = username and has issues. By forcing the -lang param it makes the framework ignore the mylang setting in user config.
https://bugzilla.wikimedia.org/show_bug.cgi?id=65044
Ricordisamoa ricordisamoa@openmailbox.org changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |legoktm.wikipedia@gmail.com
--- Comment #2 from Ricordisamoa ricordisamoa@openmailbox.org --- *** Bug 55224 has been marked as a duplicate of this bug. ***
https://bugzilla.wikimedia.org/show_bug.cgi?id=65044
Ricordisamoa ricordisamoa@openmailbox.org changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |ricordisamoa@openmailbox.or | |g Summary|Intermittent 'wrong |username settings for |password' errors while |single-site families do not |using -family:commons with |work with arbitrary values |enwiki home site |of config.mylang
https://bugzilla.wikimedia.org/show_bug.cgi?id=65044
Amir Ladsgroup ladsgroup@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Priority|Unprioritized |High CC| |ladsgroup@gmail.com
pywikipedia-bugs@lists.wikimedia.org