Page MenuHomePhabricator

unknown internal_api_error_DBConnectionError should be handled
Closed, DeclinedPublic

Description

Execution time: 5552 seconds

Traceback (most recent call last):

File "C:\pwb\compat\checkimages.py", line 1985, in <module>
  main()
File "C:\pwb\compat\checkimages.py", line 1971, in main
  if Bot.checkStep():
File "C:\pwb\compat\checkimages.py", line 1709, in checkStep
  self.imageCheckText = self.image.get()
File "C:\pwb\compat\wikipedia.py", line 769, in get
  expandtemplates=expandtemplates)
File "C:\pwb\compat\wikipedia.py", line 845, in _getEditPage
  raise RuntimeError("API query error: %s" % data)

RuntimeError: API query error: {u'servedby': u'mw1139', u'error': {u'info': u'Ex
ception Caught: DB connection error: Too many connections (10.64.16.34)', u'*':
u'', u'code': u'internal_api_error_DBConnectionError'}}

I do not know, what this error stands for. I propose just to retry.


Version: compat-(1.0)
Severity: normal

Details

Reference
bz62974

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 22 2014, 2:55 AM
bzimport set Reference to bz62974.
bzimport added a subscriber: Unknown Object (????).

ception Caught: DB connection error: Too many connections (10.64.16.34)',
u'*':
u'', u'code': u'internal_api_error_DBConnectionError'}}

I do not know, what this error stands for. I propose just to retry.

It sounds like error means that back-end DB server was overloaded. Retrying is a good course of action.

core detects this in api.py and retries. see r4984 & r4580

  • Bug 64991 has been marked as a duplicate of this bug. ***
Aklapper lowered the priority of this task from Medium to Lowest.Jun 5 2015, 1:41 PM
Aklapper subscribed.

Pywikibot has two versions: Compat and Core. This task was filed about the older version, called Pywikibot-compat, which is not under active development anymore. Hence I'm lowering the priority of this task to reflect the reality. Unfortunately, the Pywikibot team does not have the manpower to retest every single bug report / feature request against the (maintained) Pywikibot code base. Furthermore, the code base of Pywikibot-Compat has changed a lot compared to the code base of Pywikibot-Core so there is a chance that the problem described in this task might not exist anymore. Please help: Unfortunately manpower is limited and does not allow testing every single reported task again. If you have time and interest in Pywikibot, please upgrade to Pywikibot-Core and add a comment to this task if the problem in this task still happens in Pywikibot-Core (or directly edit the task by removing the Pywikibot-compat project and adding the Pywikibot project to this task). To learn more about Pywikibot and to get involved in its development, please check out https://www.mediawiki.org/wiki/Manual:Pywikibot/Development Thank you for your understanding.

Xqt claimed this task.

core works (for that script)

Xqt removed Xqt as the assignee of this task.Feb 4 2019, 2:10 PM