On Wed, Feb 1, 2023 at 8:31 PM Mark Sapiro <mark@msapiro.net> wrote:
On 1/31/23 23:33, Odhiambo Washington wrote:
Is this a race condition?
<CUT> ERROR OCCURED IN JOB: update_and_clean_index (APP: hyperkitty) Traceback (most recent call last): File
"/opt/mailman/mm/venv/lib/python3.9/site-packages/django_extensions/management/commands/runjobs.py",
line 40, in runjobs job().execute() File
"/opt/mailman/mm/venv/lib/python3.9/site-packages/hyperkitty/jobs/update_and_clean_index.py",
line 37, in execute run_with_lock(update_index, remove=True) File
"/opt/mailman/mm/venv/lib/python3.9/site-packages/hyperkitty/lib/utils.py",
line 181, in run_with_lock log.exception("Failed to update the fulltext index: %s", e) File
"/opt/mailman/mm/venv/lib/python3.9/site-packages/flufl/lock/_lockfile.py",
line 470, in __exit__ self.unlock() File
"/opt/mailman/mm/venv/lib/python3.9/site-packages/flufl/lock/_lockfile.py",
line 420, in unlock raise NotLockedError('Already unlocked') flufl.lock._lockfile.NotLockedError: Already unlocked <CUT>
Yes, it is a race between the monthly hyperkitty update_and_clean_index job and the hourly hyperkitty update_index job
Okay. This is a bit off from my understanding.
What is the cause and how do I mitigate it?
-- Best regards, Odhiambo WASHINGTON, Nairobi,KE +254 7 3200 0004/+254 7 2274 3223 "Oh, the cruft.", egrep -v '^$|^.*#' ¯\_(ツ)_/¯ :-)