Page MenuHomePhabricator

Locked database makes bot crash with "pywikibot.data.api.APIError"
Closed, DuplicatePublic

Description

" File "C:\pywikibot\core\pywikibot\page.py", line 2692, in addClaim

  self.repo.addClaim(self, claim, bot=bot, **kwargs)
File "C:\pywikibot\core\pywikibot\site.py", line 709, in callee
  return fn(self, *args, **kwargs)
File "C:\pywikibot\core\pywikibot\site.py", line 3581, in addClaim
  data = req.submit()
File "C:\pywikibot\core\pywikibot\data\api.py", line 394, in submit
  raise APIError(code, info, **result["error"])

pywikibot.data.api.APIError: internal_api_error_ReadOnlyError: Exception Caught:
The database is currently locked to new entries and other modifications, probab
ly for routine database maintenance, after which it will be back to normal.

The administrator who locked it offered this explanation: The database has been
automatically locked while the slave database servers catch up to the master

"

Should back off and retry


Version: core-(2.0)
Severity: normal

Details

Reference
bz56321

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 2:18 AM
bzimport set Reference to bz56321.
bzimport added a subscriber: Unknown Object (????).
  • This bug has been marked as a duplicate of bug 59227 ***