Project

General

Profile

Bug #37411

whoosh: resource busy et no such file or directory MAIN_WRITELOCK

Added by Christophe Siraut about 1 month ago. Updated about 1 month ago.

Status:
Solution déployée
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
04 Nov 2019
Due date:
% Done:

0%

Patch proposed:
No
Planning:
No

Description

suite de #37291:

Date: Mon, 04 Nov 2019 08:12:18 +0100
From: Cron Daemon <root@combo.node1.prod.saas.entrouvert.org>
To: root@combo.node1.prod.saas.entrouvert.org
Subject: Cron <root@combo>    cd / && run-parts --report /etc/cron.hourly

/etc/cron.hourly/combo:
Failed to clear Whoosh index: [Errno 16] Device or resource busy: '.nfs000000000212109900008acc'
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/haystack/backends/whoosh_backend.py", line 241, in clear
    self.delete_index()
  File "/usr/lib/python3/dist-packages/haystack/backends/whoosh_backend.py", line 263, in delete_index
    shutil.rmtree(self.path)
  File "/usr/lib/python3.5/shutil.py", line 480, in rmtree
    _rmtree_safe_fd(fd, path, onerror)
  File "/usr/lib/python3.5/shutil.py", line 418, in _rmtree_safe_fd
    _rmtree_safe_fd(dirfd, fullname, onerror)
  File "/usr/lib/python3.5/shutil.py", line 438, in _rmtree_safe_fd
    onerror(os.unlink, fullname, sys.exc_info())
  File "/usr/lib/python3.5/shutil.py", line 436, in _rmtree_safe_fd
    os.unlink(name, dir_fd=topfd)
OSError: [Errno 16] Device or resource busy: '.nfs000000000212109900008acc'
Exception in thread Thread-62:
Traceback (most recent call last):
  File "/usr/lib/python3.5/threading.py", line 914, in _bootstrap_inner
    self.run()
  File "/usr/lib/python3/dist-packages/whoosh/writing.py", line 1010, in run
    writer = self.index.writer(**self.writerargs)
  File "/usr/lib/python3/dist-packages/whoosh/index.py", line 464, in writer
    return SegmentWriter(self, **kwargs)
  File "/usr/lib/python3/dist-packages/whoosh/writing.py", line 514, in __init__
    delay=delay):
  File "/usr/lib/python3/dist-packages/whoosh/util/filelock.py", line 54, in try_for
    v = fn()
  File "/usr/lib/python3/dist-packages/whoosh/util/filelock.py", line 98, in acquire
    self.fd = os.open(self.filename, flags)
FileNotFoundError: [Errno 2] No such file or directory: '/var/lib/combo/tenants/portail-citoyen-publik.entrouvert.com/whoosh_index/MAIN_WRITELOCK'

Related issues

Duplicates Hobo - Bug #37291: crash sur cron combo de reindexation Solution déployée 29 Oct 2019

History

#1 Updated by Frédéric Péters about 1 month ago

C'est en gros le même, je dirais. (attendre #37291 en prod)

#2 Updated by Christophe Siraut about 1 month ago

  • Duplicates Bug #37291: crash sur cron combo de reindexation added

#3 Updated by Frédéric Péters about 1 month ago

  • Status changed from Nouveau to Solution déployée

Also available in: Atom PDF