Summary of what happened:
Hi! When running fmriprep on my data, it crashes at some point during processing anatominal run. From the error message in the log file, it says OSError: [Errno 39] Directory not empty: 'label'
At first I thought it means the /label folders inside of /fmriprep/sourcedata/freesurfer should be empty, so I deleted the whole freesurfer folder and reran it. It still show this error. Wierd thing is at the end of the log file (attached below), it says run successfully. While in the output there is only sub-007_desc-preproc_T1w.nii in the /anat folder, without the /func folder.
I’m running with --ignore fieldmaps, but it also happen when running with fieldmaps.
Here is the output file in HPC. Hope it helps. I can’t really understand where it goes wrong from these output messages. Hope you can help me figure out what should I do. Many thanks!
fmriprep_sub-007.o48433628.txt (2.3 MB)
Command used (and if a helper script was used, a link to the helper script or the command generated):
/opt/conda/bin/fmriprep bids bids/derivatives/fmriprep participant -w /scratch/qiuhan/48433628.dccn-l029.dccn.nl/sub-007 --participant-label 007 --skip-bids-validation --fs-license-file /opt_host/fmriprep/license.txt --mem_mb 20000 --omp-nthreads 2 --nthreads 2 --ignore fieldmaps
Version:
fmripre 22.0.1
Environment (Docker, Singularity, custom installation):
pre-loaded in HPC
Data formatted according to a validatable standard? Please provide the output of the validator:
Warning 1: [Code 25] EVENTS_TSV_MISSING
Relevant log outputs (up to 20 lines):
Node: fmriprep_22_0_wf.fsdir_run_20230119_162714_a9e9c7f1_fd5a_45b3_a00f_3fb3a5fad703
Working directory: /scratch/qiuhan/48433628.dccn-l029.dccn.nl/sub-007/fmriprep_22_0_wf/fsdir_run_20230119_162714_a9e9c7f1_fd5a_45b3_a00f_3fb3a5fad703
Node inputs:
derivatives = /project/3018068.01/bids/derivatives/fmriprep
freesurfer_home = /opt/freesurfer
minimum_fs_version = 7.0.0
overwrite_fsaverage = False
spaces = []
subjects_dir = /project/3018068.01/bids/derivatives/fmriprep/sourcedata/freesurfer
Traceback (most recent call last):
File "/opt/conda/lib/python3.9/site-packages/nipype/pipeline/plugins/multiproc.py", line 344, in _send_procs_to_workers
self.procs[jobid].run(updatehash=updatehash)
File "/opt/conda/lib/python3.9/site-packages/nipype/pipeline/engine/nodes.py", line 524, in run
result = self._run_interface(execute=True)
File "/opt/conda/lib/python3.9/site-packages/nipype/pipeline/engine/nodes.py", line 642, in _run_interface
return self._run_command(execute)
File "/opt/conda/lib/python3.9/site-packages/nipype/pipeline/engine/nodes.py", line 750, in _run_command
raise NodeExecutionError(
nipype.pipeline.engine.nodes.NodeExecutionError: Exception raised while executing Node fsdir_run_20230119_162714_a9e9c7f1_fd5a_45b3_a00f_3fb3a5fad703.
Traceback (most recent call last):
File "/opt/conda/lib/python3.9/site-packages/nipype/interfaces/base/core.py", line 398, in run
runtime = self._run_interface(runtime)
File "/opt/conda/lib/python3.9/site-packages/niworkflows/interfaces/bids.py", line 923, in _run_interface
shutil.rmtree(dest)
File "/opt/conda/lib/python3.9/shutil.py", line 732, in rmtree
_rmtree_safe_fd(fd, path, onerror)
File "/opt/conda/lib/python3.9/shutil.py", line 671, in _rmtree_safe_fd
onerror(os.rmdir, fullname, sys.exc_info())
File "/opt/conda/lib/python3.9/shutil.py", line 669, in _rmtree_safe_fd
os.rmdir(entry.name, dir_fd=topfd)
OSError: [Errno 39] Directory not empty: 'label'