Bug #86086
FileNotFoundError en cherchant à créer un fichier temporaire d'import d'utilisateurs
Start date:
24 January 2024
Due date:
% Done:
0%
Estimated time:
Patch proposed:
No
Planning:
No
Description
https://sentry.entrouvert.org/entrouvert/publik/issues/116003/
FileNotFoundError: [Errno 2] No such file or directory: '/var/lib/authentic2-multitenant/tenants/.../media/user_imports/zqufzrvg7zaupozms33tow5pum/tmp0s9rr07q' File "threading.py", line 892, in run self._target(*self._args, **self._kwargs) File "authentic2/manager/user_import.py", line 257, in thread_worker data['duration'] = duration File "contextlib.py", line 124, in __exit__ next(self.gen) File "authentic2/manager/user_import.py", line 179, in data_update with AtomicWriter(self.path, mode='wb', overwrite=True).open() as fd: File "contextlib.py", line 117, in __enter__ return next(self.gen) File "__init__.py", line 166, in _open with get_fileobject(**self._open_kwargs) as f: File "__init__.py", line 183, in get_fileobject descriptor, name = tempfile.mkstemp(suffix=suffix, prefix=prefix, File "tempfile.py", line 471, in mkstemp return _mkstemp_inner(dir, prefix, suffix, flags, output_type) File "tempfile.py", line 390, in _mkstemp_inner fd = _os.open(file, flags, 0o600)
History
Updated by Benjamin Dauvergne 8 months ago
C'est le répertoire parent qui a disparu, je suppute que pendant que ça tournait quelqu'un a supprimé l'import. Tout ce qu'on peut faire c'est ignorer l'erreur.
Updated by Robot Gitea 8 months ago
- Status changed from Nouveau to Solution proposée
Benjamin Dauvergne (bdauvergne) a ouvert une pull request sur Gitea concernant cette demande :
- URL : https://git.entrouvert.org/entrouvert/authentic/pulls/252
- Titre : manager: ignore FileNotFoundError during user import run (#86086)
- Modifications : https://git.entrouvert.org/entrouvert/authentic/pulls/252/files