Hi everyone, I’m new user to Nextflow. I’m runni...
# help
j
Hi everyone, I’m new user to Nextflow. I’m running the dev version of
nf-core/genomeassembler
with Apptainer on our SLURM cluster (Leftraru) in Chile, but I keep running into a consistent error during the container pulling phase. Error message:
Copy code
Cannot invoke "nextflow.util.Duration.toMillis()" because "this.pullTimeout" is null
I’ve tried setting
apptainer.pullTimeout
at the user level (e.g., in
.config
and through environment variables), but the error persists. 1. Has anyone seen this specific
pullTimeout is null
error before? Was it fixed by having the cluster admin define a default value in the global Nextflow config? 2. Is there a known user-level workaround to force initialization of this variable when the system default is missing? I’ve already contacted our cluster support team, but I’m hoping to get some quick insights from the community in the meantime. Thanks a lot for any guidance — still learning my way around Nextflow!
m
what version of nextflow are you using?
and what version of singularity/apptainer
p
This would seem to be a nextflow-level error and makes me wonder if there's some weird configuration provided. Can you show the command used and any config files you've provided?
t
The way most (all?) modules are written,
singularity
is preferable to
apptainer
, because it can just download containers, rather than building/converting them from the Docker repository, so I would use
singularity
as the container engine (either via
-profile
or your config). The
apptainer
binary has a symlink to
singularity
, and the two are compatible, so you can use
apptainer
under the hood while pretending to use
singularity
. The only (very minor) disadvantage is that you'll get some warnings about preferred names of environment variables. Because containers can just be downloaded, this may help with your problem, but if you have some issue with internet access, it may not (but it's still preferable).
p
I suspect it fails with this error before it actually calls on any binary, but that would be a good piece of additional information.
t
Yes, if
apptainer.pullTimeout
is missing, the
singularity
equivalent may be as well. Part of what I'm hoping is that if it just downloads, it may not even go through the part of the code that tests that. Is this issue specific to the
dev
version, and are you running the pipeline from a local install or downloaded "on the fly"? Actually, I am not convinced this is related to any specific pipeline, but rather a feature of
nextflow
-- you could pull down a different version of
nextflow
and try with that ...