https://bugzilla.wikimedia.org/show_bug.cgi?id=57495
Web browser: --- Bug ID: 57495 Summary: "MaxTriesExceededError" in catimages.py during debug info/log output Product: Pywikibot Version: compat (1.0) Hardware: All OS: All Status: NEW Severity: normal Priority: Unprioritized Component: General Assignee: Pywikipedia-bugs@lists.wikimedia.org Reporter: dr.trigon@surfeu.ch Classification: Unclassified Mobile Platform: ---
At the end of all runs a log output is created as further info for debug and development purposes. This worked initially but now since several months generated following error:
2013-11-23 21:06:54 wikipedia.py, 2335 in _putPage: INFO Updating page [[User:DrTrigon/User:DrTrigonBot/logging]] via API 2013-11-23 21:08:43 wikipedia.py, 7037 in postData: INFO HTTPError: 504 Gateway Time-out 2013-11-23 21:08:43 wikipedia.py, 7044 in postData: WARNING Could not open 'https://commons.wikimedia.org/w/api.php'. Maybe the server is down. Retrying in 1 minutes... 2013-11-23 21:11:38 wikipedia.py, 7037 in postData: INFO HTTPError: 504 Gateway Time-out 2013-11-23 21:11:38 wikipedia.py, 7044 in postData: WARNING Could not open 'https://commons.wikimedia.org/w/api.php'. Maybe the server is down. Retrying in 2 minutes... 2013-11-23 21:15:32 wikipedia.py, 7037 in postData: INFO HTTPError: 504 Gateway Time-out 2013-11-23 21:15:32 wikipedia.py, 7044 in postData: WARNING Could not open 'https://commons.wikimedia.org/w/api.php'. Maybe the server is down. Retrying in 4 minutes... 2013-11-23 21:21:26 wikipedia.py, 7037 in postData: INFO HTTPError: 504 Gateway Time-out 2013-11-23 21:21:26 wikipedia.py, 7044 in postData: WARNING Could not open 'https://commons.wikimedia.org/w/api.php'. Maybe the server is down. Retrying in 8 minutes... 2013-11-23 21:31:21 wikipedia.py, 7037 in postData: INFO HTTPError: 504 Gateway Time-out 2013-11-23 21:31:21 wikipedia.py, 7044 in postData: WARNING Could not open 'https://commons.wikimedia.org/w/api.php'. Maybe the server is down. Retrying in 16 minutes... 2013-11-23 21:49:11 wikipedia.py, 7037 in postData: INFO HTTPError: 504 Gateway Time-out 2013-11-23 21:49:11 catimages.py, 4572 in <module>: INFO Execution time: 6173 2013-11-23 21:49:11 pwb.py, 169 in <module>: ERROR MaxTriesExceededError Traceback (most recent call last): File "/home/drtrigon/pywikipedia/pwb.py", line 163, in <module> execfile(sys.argv[0]) File "/home/drtrigon/pywikipedia/catimages.py", line 4565, in <module> main() File "/home/drtrigon/pywikipedia/catimages.py", line 4420, in main outpage.put(tmp[:pos], comment="bot writing log for last run") File "/home/drtrigon/pywikibot-compat/wikipedia.py", line 2243, in put sysop=sysop, botflag=botflag, maxTries=maxTries) File "/home/drtrigon/pywikibot-compat/wikipedia.py", line 2340, in _putPage back_response=True) File "/home/drtrigon/pywikibot-compat/pywikibot/support.py", line 121, in wrapper return method(*__args, **__kw) File "/home/drtrigon/pywikibot-compat/query.py", line 139, in GetData site.cookies(sysop=sysop)) File "/home/drtrigon/pywikibot-compat/wikipedia.py", line 6977, in postForm cookies=cookies) File "/home/drtrigon/pywikibot-compat/wikipedia.py", line 7041, in postData raise MaxTriesExceededError() MaxTriesExceededError
Also splitting up the data into several smaller bunches did not help.
https://bugzilla.wikimedia.org/show_bug.cgi?id=57495
--- Comment #1 from DrTrigon dr.trigon@surfeu.ch --- Now it produces also this message (always!):
2013-12-01 21:05:32 pwb.py, 169 in <module>: ERROR EditConflict: An edit conflict has occured. Traceback (most recent call last): File "/home/drtrigon/pywikipedia/pwb.py", line 163, in <module> execfile(sys.argv[0]) File "/home/drtrigon/pywikipedia/catimages.py", line 4571, in <module> main() File "/home/drtrigon/pywikipedia/catimages.py", line 4423, in main outpage.put(tmp[:pos], comment="bot writing log for last run") File "/home/drtrigon/pywikibot-compat/wikipedia.py", line 2243, in put sysop=sysop, botflag=botflag, maxTries=maxTries) File "/home/drtrigon/pywikibot-compat/wikipedia.py", line 2422, in _putPage raise EditConflict(u'An edit conflict has occured.') EditConflict: An edit conflict has occured.
https://bugzilla.wikimedia.org/show_bug.cgi?id=57495
--- Comment #2 from DrTrigon dr.trigon@surfeu.ch --- https://gerrit.wikimedia.org/r/#/c/97356/
https://bugzilla.wikimedia.org/show_bug.cgi?id=57495
--- Comment #3 from DrTrigon dr.trigon@surfeu.ch --- https://gerrit.wikimedia.org/r/#/c/98458/
pywikipedia-bugs@lists.wikimedia.org