Skip to content

Permission denied crash on export #148

@mih

Description

@mih

Log:

% nidmfsl sub-01/2ndlvl.gfeat -g controls 3 -o /tmp/
Exporting NIDM results from /home/mih/forrest/collection/visloc/sub-01/2ndlvl.gfeat
...
Traceback (most recent call last):
  File "/home/mih/env/datalad3-dev/bin/nidmfsl", line 6, in <module>
    exec(compile(open(__file__).read(), __file__, 'exec'))
  File "/home/mih/hacking/datalad/nidmresults-fsl/bin/nidmfsl", line 47, in <module>
    output_path = fslnidm.export()
  File "/home/mih/hacking/datalad/nidmresults/nidmresults/exporter.py", line 480, in export
    self.add_object(inference.search_space.file)
  File "/home/mih/hacking/datalad/nidmresults/nidmresults/exporter.py", line 135, in add_object
    nidm_object.export(self.version, export_dir, self.prepend_path)
  File "/home/mih/hacking/datalad/nidmresults/nidmresults/objects/generic.py", line 307, in export
    shutil.copy(file_copied, new_file)
  File "/home/mih/env/datalad3-dev/lib/python3.6/shutil.py", line 241, in copy
    copyfile(src, dst, follow_symlinks=follow_symlinks)
  File "/home/mih/env/datalad3-dev/lib/python3.6/shutil.py", line 121, in copyfile
    with open(dst, 'wb') as fdst:
PermissionError: [Errno 13] Permission denied: '/tmp/nidm-38mhzddr/SearchSpaceMask.nii.gz'
nidmfsl sub-01/2ndlvl.gfeat -g controls 3 -o /tmp/  7.37s user 1.64s system 130% cpu 6.882 total

/tmp is, as usual mod-777. The directory '/tmp/nidm-38mhzddr/' does not exist at the time of the crash.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions