Hi everyone,
when I try to run MRIQC on my subjects I get this error:
PS C:\Users\45027900> docker run -it --rm -v C:\Users\45027900\Desktop\tmp\mriqc:/scratch -v D:\Andrea\fov\BIDS:/data:ro -v D:\Andrea\fov\BIDS\derivatives\MRiQC:/out poldracklab/mriqc:latest /data /out participant -w /scratch --verbose --no-sub --nproc 19 --mem_gb 45 -f --participant-label 09
201223-03:23:56,876 cli IMPORTANT:
Running MRIQC version 0.15.2:
* BIDS dataset path: /data.
* Output folder: /out.
* Analysis levels: ['participant'].
201223-03:23:57,595 nipype.utils WARNING:
Could not check for version updates:
Connection to server could not be made
201223-03:23:58,276 nipype.utils WARNING:
Could not check for version updates:
Connection to server could not be made
201223-03:24:11,11 nipype.workflow INFO:
Workflow mriqc_wf settings: ['check', 'execution', 'logging', 'monitoring']
201223-03:24:11,347 nipype.workflow INFO:
Running in parallel.
201223-03:24:11,356 nipype.workflow INFO:
[MultiProc] Running 0 tasks, and 20 jobs ready. Free memory (GB): 45.00/45.00, Free processors: 19/19.
201223-03:24:11,445 nipype.workflow INFO:
[Job 0] Cached (mriqc_wf.funcMRIQC.ComputeIQMs.provenance).
201223-03:24:11,447 nipype.workflow INFO:
[Node] Setting-up "mriqc_wf.funcMRIQC.ComputeIQMs.metadata" in "/scratch/mriqc_wf/funcMRIQC/ComputeIQMs/_in_file_..data..sub-09..func..sub-09_task-loc_run-1_bold.nii.gz/metadata".
201223-03:24:11,477 nipype.workflow INFO:
[Node] Running "metadata" ("niworkflows.interfaces.bids.ReadSidecarJSON")
201223-03:24:16,707 nipype.workflow ERROR:
Node metadata.a5 failed to run on host 73a040c4a132.
201223-03:24:16,707 nipype.workflow ERROR:
Saving crash info to /out/logs/crash-20201223-032416-root-metadata.a5-6acff2e4-04c6-4184-8ddb-e45723e8b1df.txt
Traceback (most recent call last):
File "/usr/local/miniconda/lib/python3.7/shutil.py", line 557, in move
os.rename(src, real_dst)
FileNotFoundError: [Errno 2] No such file or directory: '/scratch/mriqc_wf/funcMRIQC/ComputeIQMs/_in_file_..data..sub-09..func..sub-09_task-loc_run-1_bold.nii.gz/metadata/_0x6c22ac695a181c85d5bcbccf4e0d53ec_unfinished.json' -> '/scratch/mriqc_wf/funcMRIQC/ComputeIQMs/_in_file_..data..sub-09..func..sub-09_task-loc_run-1_bold.nii.gz/metadata/_0x6c22ac695a181c85d5bcbccf4e0d53ec.json'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/miniconda/lib/python3.7/site-packages/nipype/pipeline/plugins/multiproc.py", line 344, in _send_procs_to_workers
self.procs[jobid].run(updatehash=updatehash)
File "/usr/local/miniconda/lib/python3.7/site-packages/nipype/pipeline/engine/nodes.py", line 531, in run
shutil.move(hashfile_unfinished, hashfile_unfinished.replace("_unfinished", ""))
File "/usr/local/miniconda/lib/python3.7/shutil.py", line 571, in move
copy_function(src, real_dst)
File "/usr/local/miniconda/lib/python3.7/shutil.py", line 257, in copy2
copyfile(src, dst, follow_symlinks=follow_symlinks)
File "/usr/local/miniconda/lib/python3.7/shutil.py", line 120, in copyfile
with open(src, 'rb') as fsrc:
FileNotFoundError: [Errno 2] No such file or directory: '/scratch/mriqc_wf/funcMRIQC/ComputeIQMs/_in_file_..data..sub-09..func..sub-09_task-loc_run-1_bold.nii.gz/metadata/_0x6c22ac695a181c85d5bcbccf4e0d53ec_unfinished.json'
Traceback (most recent call last):
File "/usr/local/miniconda/lib/python3.7/shutil.py", line 557, in move
os.rename(src, real_dst)
FileNotFoundError: [Errno 2] No such file or directory: '/scratch/mriqc_wf/funcMRIQC/ComputeIQMs/_in_file_..data..sub-09..func..sub-09_task-loc_run-1_bold.nii.gz/metadata/_0x6c22ac695a181c85d5bcbccf4e0d53ec_unfinished.json' -> '/scratch/mriqc_wf/funcMRIQC/ComputeIQMs/_in_file_..data..sub-09..func..sub-09_task-loc_run-1_bold.nii.gz/metadata/_0x6c22ac695a181c85d5bcbccf4e0d53ec.json'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/miniconda/lib/python3.7/site-packages/nipype/pipeline/plugins/multiproc.py", line 344, in _send_procs_to_workers
self.procs[jobid].run(updatehash=updatehash)
File "/usr/local/miniconda/lib/python3.7/site-packages/nipype/pipeline/engine/nodes.py", line 531, in run
shutil.move(hashfile_unfinished, hashfile_unfinished.replace("_unfinished", ""))
File "/usr/local/miniconda/lib/python3.7/shutil.py", line 571, in move
copy_function(src, real_dst)
File "/usr/local/miniconda/lib/python3.7/shutil.py", line 257, in copy2
copyfile(src, dst, follow_symlinks=follow_symlinks)
File "/usr/local/miniconda/lib/python3.7/shutil.py", line 120, in copyfile
with open(src, 'rb') as fsrc:
FileNotFoundError: [Errno 2] No such file or directory: '/scratch/mriqc_wf/funcMRIQC/ComputeIQMs/_in_file_..data..sub-09..func..sub-09_task-loc_run-1_bold.nii.gz/metadata/_0x6c22ac695a181c85d5bcbccf4e0d53ec_unfinished.json'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/miniconda/bin/mriqc", line 10, in <module>
sys.exit(main())
File "/usr/local/miniconda/lib/python3.7/site-packages/mriqc/cli/run.py", line 69, in main
mriqc_wf.run(**config.nipype.get_plugin())
File "/usr/local/miniconda/lib/python3.7/site-packages/nipype/pipeline/engine/workflows.py", line 632, in run
runner.run(execgraph, updatehash=updatehash, config=self.config)
File "/usr/local/miniconda/lib/python3.7/site-packages/nipype/pipeline/plugins/base.py", line 184, in run
self._send_procs_to_workers(updatehash=updatehash, graph=graph)
File "/usr/local/miniconda/lib/python3.7/site-packages/nipype/pipeline/plugins/multiproc.py", line 348, in _send_procs_to_workers
jobid, graph, result={"result": None, "traceback": traceback}
File "/usr/local/miniconda/lib/python3.7/site-packages/nipype/pipeline/plugins/base.py", line 227, in _clean_queue
raise RuntimeError("".join(result["traceback"]))
RuntimeError: Traceback (most recent call last):
File "/usr/local/miniconda/lib/python3.7/shutil.py", line 557, in move
os.rename(src, real_dst)
FileNotFoundError: [Errno 2] No such file or directory: '/scratch/mriqc_wf/funcMRIQC/ComputeIQMs/_in_file_..data..sub-09..func..sub-09_task-loc_run-1_bold.nii.gz/metadata/_0x6c22ac695a181c85d5bcbccf4e0d53ec_unfinished.json' -> '/scratch/mriqc_wf/funcMRIQC/ComputeIQMs/_in_file_..data..sub-09..func..sub-09_task-loc_run-1_bold.nii.gz/metadata/_0x6c22ac695a181c85d5bcbccf4e0d53ec.json'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/miniconda/lib/python3.7/site-packages/nipype/pipeline/plugins/multiproc.py", line 344, in _send_procs_to_workers
self.procs[jobid].run(updatehash=updatehash)
File "/usr/local/miniconda/lib/python3.7/site-packages/nipype/pipeline/engine/nodes.py", line 531, in run
shutil.move(hashfile_unfinished, hashfile_unfinished.replace("_unfinished", ""))
File "/usr/local/miniconda/lib/python3.7/shutil.py", line 571, in move
copy_function(src, real_dst)
File "/usr/local/miniconda/lib/python3.7/shutil.py", line 257, in copy2
copyfile(src, dst, follow_symlinks=follow_symlinks)
File "/usr/local/miniconda/lib/python3.7/shutil.py", line 120, in copyfile
with open(src, 'rb') as fsrc:
FileNotFoundError: [Errno 2] No such file or directory: '/scratch/mriqc_wf/funcMRIQC/ComputeIQMs/_in_file_..data..sub-09..func..sub-09_task-loc_run-1_bold.nii.gz/metadata/_0x6c22ac695a181c85d5bcbccf4e0d53ec_unfinished.json'
The strange thing is that MRIQC runs without any problem on other subjects, and all my folders (including the problematic subjects) have all the JSON files you expect to see in a BIDS dataset. The JSON has been generated with heudiconv.
Any idea on why I get this and how to solve it?
Thanks in advance.