Web browser: ---
            Bug ID: 59227
                    internal_api_error_ReadOnlyError when the database is
           Product: Pywikibot
           Version: core (2.0)
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: Unprioritized
         Component: General
    Classification: Unclassified
   Mobile Platform: ---

Database is locked at the moment. Makes the pywikibot crash with this error:

Adding new Commons category claim to [[Commons:Category:Green Party of British
Columbia]] based on [[en:Category:Green Party of British Columbia]]
Traceback (most recent call last):
  File "C:\pywikibot\core\", line 238, in <module>
  File "C:\pywikibot\core\", line 235, in main
  File "C:\pywikibot\core\", line 94, in run
    newclaim.addSource(source, bot=True)
  File "C:\pywikibot\core\pywikibot\", line 2957, in addSource
    self.addSources([claim], **kwargs)
  File "C:\pywikibot\core\pywikibot\", line 2965, in addSources
    data = self.repo.editSource(self, claims, new=True, **kwargs)
  File "C:\pywikibot\core\pywikibot\", line 720, in callee
    return fn(self, *args, **kwargs)
  File "C:\pywikibot\core\pywikibot\", line 3797, in editSource
    data = req.submit()
  File "C:\pywikibot\core\pywikibot\data\", line 401, in submit
    raise APIError(code, info, **result["error"]) internal_api_error_ReadOnlyError: Exception
 The database is currently locked to new entries and other modifications,
probably for routine database maintenance, after which it will be back to

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 be caught like any other api error, back off, wait some time. Try again
until we reach max tries.

You are receiving this mail because:
You are on the CC list for the bug.
Wikibugs-l mailing list

Reply via email to