Project

General

Profile

Bug #86086

FileNotFoundError en cherchant à créer un fichier temporaire d'import d'utilisateurs

Added by Sentry Io 3 months ago. Updated 2 months ago.

Status:
Solution proposée
Priority:
Normal
Category:
-
Target version:
-
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

#1

Updated by Frédéric Péters 3 months ago

  • Project changed from Suivi des traces to Authentic 2
#2

Updated by Benjamin Dauvergne 2 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.

#3

Updated by Benjamin Dauvergne 2 months ago

  • Assignee set to Benjamin Dauvergne
#4

Updated by Robot Gitea 2 months ago

  • Status changed from Nouveau to Solution proposée

Benjamin Dauvergne (bdauvergne) a ouvert une pull request sur Gitea concernant cette demande :

Also available in: Atom PDF