Projet

Général

Profil

Bug #37411

whoosh: resource busy et no such file or directory MAIN_WRITELOCK

Ajouté par Christophe Siraut il y a plus de 4 ans. Mis à jour il y a plus de 4 ans.

Statut:
Fermé
Priorité:
Normal
Assigné à:
-
Catégorie:
-
Version cible:
-
Début:
04 novembre 2019
Echéance:
% réalisé:

0%

Temps estimé:
Patch proposed:
Non
Planning:
Non

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'

Demandes liées

Duplique Hobo - Bug #37291: crash sur cron combo de reindexationFermé29 octobre 2019

Actions

Historique

#1

Mis à jour par Frédéric Péters il y a plus de 4 ans

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

#2

Mis à jour par Christophe Siraut il y a plus de 4 ans

  • Duplique Bug #37291: crash sur cron combo de reindexation ajouté
#3

Mis à jour par Frédéric Péters il y a plus de 4 ans

  • Statut changé de Nouveau à Solution déployée

Formats disponibles : Atom PDF