Closed sklages closed 6 months ago
Hi @sklages, it would appear that the TMPDIR from your execution shell is forwarded by Nextflow through to the container environment, but the container will not have permission to access it (as it has not been bind mounted). Unsetting TMPDIR will cause the container to use its own temporary directory.
I'm getting this exact "Error in tempfile() using template" error. So I tried the recommendation here of unsetting TMPDIR. However this made no difference in my situation. I also went into to the .command.sh and added two echo lines:
echo "tmpdir: $TMPDIR"
echo "singularity tmp dir: $SINGULARITY_TMPDIR"
which resulted in:
tmpdir: /local/26572187
...: line 3: SINGULARITY_TMPDIR: unbound variable
I'm using this config
singularity {
enabled = true
autoMounts = true
runOptions = '-B $SINGULARITY_TMPDIR:/tmp'
//Used to allow Singularity to access bashrc variables
envWhitelist = 'SINGULARITY_TMPDIR'
}
How can I debug this? Any help is appreciated.
Hi,
I'm getting the exact same "Error in tempfile() using template" error and unsetting the TMPDIR did not help as the TMPDIR didn't seem to be set in the first place.
Could you please advice on how to proceed?
Manhy thanks!
When trying to run the workflow with the demo dataset I get (very late) an error, which has also been mentioned in #108 .. but was not further discussed.
When I unset
TMPDIR
(in my environment, where I start the workflow) the workflow finishes successfully.Any idea on why the error occurs or why
$TMPDIR
is an issue here?