-
Notifications
You must be signed in to change notification settings - Fork 629
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Different Singularity behaviours between 22.10.7 vs 23.04.0+ #5310
Comments
Which executor are you using? |
Same issue on both local and LSF. |
if you |
The same issue does NOT occur when I execute This is the original error
This is the
Additional observiations:
I am not sure what is happening, and please let me know if you need more information. You can test it out by cloning |
Very to help without providing a test case to replicate the issue |
Hi @pditommaso , the last bit of my latest message contains a test case. Thanks!
|
I cannot pull the full pipeline execution. I need self-contained test case running a single task running this error using the local executor and slurm |
Sure, I have put together a minimal test case to allow you repliacting the issue with a local executor. It should complete without error with Nextflow 22.10.7, but fail with Nextflow 24.04.4. You will still need to grab a few essential input data files, by downloading the data directory of this self-contained test case: https://drive.google.com/drive/folders/1XWpx8mU9hQHuCQ6zE-7JOdGsxxABiAqE?usp=sharing)
|
Bug report
When users try to run this pipeline with Singularity, it works on Nextflow 22.10.7 and before, but fails on Nextflow 23.04.0 and later (including the latest release).
The failure happens when srst2 within the container try to run Bowtie2, where Bowtie2 attempts to create FIFO files under
/tmp
viamkfifo
. As Singularity mounts/tmp
by default, when multiple processes is running srst2, all of them will write their FIFO files to the host/tmp
directory.In Nextflow 22.10.7 and before, the FIFO files have longer file names, e.g.
124813.inpipe1
,124813.inpipe2
,124874.inpipe1
,124874.inpipe2
,124964.inpipe1
,124964.inpipe2
, and all is well.However, in Nextflow 23.04.0 and later, the FIFO files have much shorter file names, e.g.
61.inpipe1
,61.inpipe2
,62.inpipe1
,62.inpipe2
,63.inpipe1
,63.inpipe2
. And the relevant processes soon crash due to what I think is namespace conflict, and the error looks like this:The only thing changed between my tests is the Nextflow executable version, nothing else. I compared the
.command.run
and.command.sh
between runs, they all look identical (except the work dir paths).At this point, I am wondering is there some hidden environment variables changed between these Nextflow versions that would affect the behaviours of Singularity?
This seems to be a related issue: nf-core/taxprofiler#422
I am able to work around the issue by forcing each container to use a different subdirectory in
/tmp
by addingto
nextflow.config
Expected behavior and actual behavior
Expected: Singularity should always behave the same regardless of Nextflow version.
Actual: Latest Nextflow introduce a new bug.
Steps to reproduce the problem
Run the pipeline with
-profile sanger
Program output
N/A
Environment
Additional context
N/A
The text was updated successfully, but these errors were encountered: