Nipype/FSL task analysis (ds003 workflows): Error during 2nd level analysis (smoothness)

Hi everyone,

as a follow-up to fmriprep, I use a nipypeflow based on this one (https://github.com/poldracklab/ds003-post-fMRIPrep-analysis/) for my task analysis. The first level works fine, but during the group analysis, I get the following error:

File: /crash-20201103-142021-bidsapp-smoothness-f51a4bbc-6be9-422b-ac5e-f8c8de4e42a2.pklz
Node: wf_2nd_level.smoothness
Working directory: /input/work/wf_2nd_level/smoothness

Node inputs:

args =
dof = 3
environ = {‘FSLOUTPUTTYPE’: ‘NIFTI_GZ’}
mask_file = /home/bidsapp/.cache/templateflow/tpl-MNI152NLin2009cAsym/tpl-MNI152NLin2009cAsym_res-02_desc-brain_mask.nii.gz
output_type = NIFTI_GZ
residual_fit_file = /input/work/wf_2nd_level/flameo_ols/stats/res4d.nii.gz
zstat_file =

Traceback:
Traceback (most recent call last):
File “/usr/local/miniconda/lib/python3.7/site-packages/nipype/pipeline/plugins/linear.py”, line 46, in run
node.run(updatehash=updatehash)
File “/usr/local/miniconda/lib/python3.7/site-packages/nipype/pipeline/engine/nodes.py”, line 516, in run
result = self._run_interface(execute=True)
File “/usr/local/miniconda/lib/python3.7/site-packages/nipype/pipeline/engine/nodes.py”, line 635, in _run_interface
return self._run_command(execute)
File “/usr/local/miniconda/lib/python3.7/site-packages/nipype/pipeline/engine/nodes.py”, line 741, in _run_command
result = self._interface.run(cwd=outdir)
File “/usr/local/miniconda/lib/python3.7/site-packages/nipype/interfaces/base/core.py”, line 419, in run
runtime = self._run_interface(runtime)
File “/usr/local/miniconda/lib/python3.7/site-packages/nipype/interfaces/base/core.py”, line 814, in _run_interface
self.raise_exception(runtime)
File “/usr/local/miniconda/lib/python3.7/site-packages/nipype/interfaces/base/core.py”, line 745, in raise_exception
).format(**runtime.dictcopy())
RuntimeError: Command:
smoothest --dof=3 --mask=/home/bidsapp/.cache/templateflow/tpl-MNI152NLin2009cAsym/tpl-MNI152NLin2009cAsym_res-02_desc-brain_mask.nii.gz --res=/input/work/wf_2nd_level/flameo_ols/stats/res4d.nii.gz
Standard output:

Standard error:
Mask and Data (residuals/zstat) volumes MUST be the same size!
Return code: 1

I understand that during the 1st level workflow, registration is not run as part of FEAT. Am I missing an additional step? I am using the exact container supplied for the ds003 workflow but fmriprep itself is likely a newer version that what the task analysis container was built for.

Grateful for any help

André