CNBP / DICOMTransit

This is the staging server which preliminarily processed data and anonymize them before sending it to destinations such as CNBP
GNU General Public License v3.0
3 stars 1 forks source link

PermissionError: [Errno 13] Permission denied: '/toshiba4/tmp/2019-08-20T15_28_19.316202xdu463of' #11

Open sentry-io[bot] opened 5 years ago

sentry-io[bot] commented 5 years ago

DICOMTransit needs to use a better place to put temporary files. At least, publicly available.

Sentry Issue: DICOMTRANSIT-28

PermissionError: [Errno 13] Permission denied: '/toshiba4/tmp/2019-08-20T15_28_19.316202xdu463of'
(8 additional frame(s) were not displayed)
...
  File "transitions/core.py", line 1005, in callback
    func(*event_data.args, **event_data.kwargs)
  File "fsm.py", line 828, in UnpackNewData
    temporary_folder = orthanc.API.unpack_subject_zip(self.DICOM_zip)
  File "orthanc/API.py", line 116, in unpack_subject_zip
    folder = tempfile.TemporaryDirectory(prefix=unique_name(), dir=temp_folder)
  File "tempfile.py", line 931, in __init__
    self.name = mkdtemp(suffix, prefix, dir)
  File "tempfile.py", line 509, in mkdtemp
    _os.mkdir(file, 0o700)