Dear fmriprep experts,
I am running fmriprep 1.4.1 with Singularity on HPC and I just tried to run it with the flag --output-spaces tpl-MNIPediatricAsym_cohort-3:res-2
However I am getting the following error
Traceback (most recent call last):
File "/usr/local/miniconda/lib/python3.7/site-packages/urllib3/connectionpool.py", line 600, in urlopen
chunked=chunked)
File "/usr/local/miniconda/lib/python3.7/site-packages/urllib3/connectionpool.py", line 343, in _make_request
self._validate_conn(conn)
File "/usr/local/miniconda/lib/python3.7/site-packages/urllib3/connectionpool.py", line 849, in _validate_conn
conn.connect()
File "/usr/local/miniconda/lib/python3.7/site-packages/urllib3/connection.py", line 314, in connect
conn = self._new_conn()
File "/usr/local/miniconda/lib/python3.7/site-packages/urllib3/connection.py", line 180, in _new_conn
self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb10c74c908>: Failed to establish a new connection: [Errno 113] No route to host
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/miniconda/lib/python3.7/site-packages/requests/adapters.py", line 445, in send
timeout=timeout
File "/usr/local/miniconda/lib/python3.7/site-packages/urllib3/connectionpool.py", line 638, in urlopen
_stacktrace=sys.exc_info()[2])
File "/usr/local/miniconda/lib/python3.7/site-packages/urllib3/util/retry.py", line 398, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='templateflow.s3.amazonaws.com', port=443): Max retries exceeded with url: /tpl-OASIS30ANTs/tpl-OASIS30ANTs_res-01_T1w.nii.gz (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb10c74c908>: Failed to establish a new connection: [Errno 113] No route to host'))
I have read a few previous posts and figured out that it must be a firewall issue (I think?). I am running fmriprep on our HPC and I am not sure whether I will be allowed to get the firewall rule allowed. So I was wondering if I can somehow point at the templateflow folder manually? I have downloaded it and place it in my ${home}.
Then I have tried to run
singularity run --cleanenv -B "${home}":"${home}" "${home}/fmriprep-1.4.1.simg" --fs-license-file "${home}/license.txt" "${home}/wave1_BIDS/" "${home}/output_wave1/" participant --participant-label $SUBJECT --skull-strip-template "${home}/templateflow/tpl-MNIPediatricAsym/cohort-3/tpl-MNIPediatricAsym_cohort-3:res-2" --output-spaces "${home}/templateflow/tpl-MNIPediatricAsym/cohort-3/tpl-MNIPediatricAsym_cohort-3:res-2"
But I get an error
RuntimeError: Could not find template "/scratch/punim0025/templateflow/tpl-MNIPediatricAsym/cohort-3/tpl-MNIPediatricAsym_cohort-3" with specs={'suffix': 'T1w', 'desc': None, 'atlas': None, 'resolution': '2'}. Please revise your template argument.
Although the folder should be there and with name in conventions (I also included the template_description.json). Maybe I am doing something wrong or this function is not implemented yet? If that is the case, is there another workaround to the firewall issue?
Thank you very much!