4860: Could not write entry to the HTTP cache for the API

Misery

What version of Review Board are you running?

3.0.15

What version of Review Bot are you running?

1.0.1.1

What tool(s) is Review Bot running?

pmd, checkstyle, cppcheck

What steps will reproduce the problem?

  1. Create a review request
  2. Checkers starts
  3. Sometimes the bot throws an error on console

What is the expected output? What do you see instead?

No error...

The review bot works in a docker container and is a single task there. So there should be no conflict with another instance.

Please provide any additional information below.

[2020-01-29 12:54:28,245: ERROR/Worker-46] reviewbot.tasks.RunTool[60e1a40e-0f54-4923-9a9f-3cb1bed6db19]: Failed to initialize review: Could not write entry to the HTTP cache for the API: database is locked. Try running "rbt clear-cache" to manually clear the HTTP Cache for the API. (server=https://rb.company.de/, review_request_id=42252, diff_revision=1)

Traceback (most recent call last):

File "/usr/lib/python2.7/site-packages/reviewbot/tasks.py", line 165, in RunTool

review_settings)

File "/usr/lib/python2.7/site-packages/reviewbot/processing/review.py", line 265, in init

diff_revision=self.diff_revision)

File "/usr/lib/python2.7/site-packages/rbtools/api/resource.py", line 544, in <lambda>

self._get_template_request(url, **kwargs)))

File "/usr/lib/python2.7/site-packages/rbtools/api/decorators.py", line 27, in request_method

*args, **kwargs)

File "/usr/lib/python2.7/site-packages/rbtools/api/transport/sync.py", line 77, in execute_request_method

return self._execute_request(request)

File "/usr/lib/python2.7/site-packages/rbtools/api/transport/sync.py", line 86, in _execute_request

rsp = self.server.make_request(request)

File "/usr/lib/python2.7/site-packages/rbtools/api/request.py", line 685, in make_request

request.url, body, headers, request.method))

File "/usr/lib/python2.7/site-packages/rbtools/api/cache.py", line 261, in make_request

self._save_entry(entry)

File "/usr/lib/python2.7/site-packages/rbtools/api/cache.py", line 498, in _save_entry

self._die('Could not write entry to the HTTP cache for the API', e)

File "/usr/lib/python2.7/site-packages/rbtools/api/cache.py", line 551, in _die

raise CacheError(message)

CacheError: Could not write entry to the HTTP cache for the API: database is locked. Try running "rbt clear-cache" to manually clear the HTTP Cache for the API.