-
Notifications
You must be signed in to change notification settings - Fork 88
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
Unknown image format/type in nextflow pipeline #2914
Comments
Are you able to share the image file somewhere, so we can take a look? If you cannot share it, the output of If the problem only occurs within a Nextflow pipeline, but Singularity can run the container outside of a Nextflow pipeline... then perhaps the pipeline is actually using a different version of Singularity? |
The docker container that I'm trying to pull in the pipeline is docker://staphb/seqtk:1.3. Everything worked well with the older version of singularity 3.5.
I didn't specify the version of singularity in nextflow, it could detect automatically on the cluster. I've also updated Nextflow to the latest version to be sure of compatibility with the new version of singularity. |
The image we need to know about is the one that is pulled during the Nextflow pipeline. In Singularity's cachedir If you manually pull the image with the current version of singularity, and run it...
... what happens? If this works correctly then there is probably an issue with the Nextflow configuration, rather than Singularity itself. |
Thank you for your help, I really appreciate it. My singularity cachedir is defined in the .bashrc file, and this image staphb-seqtk-1.3.img is pulled from nextflow. Before having the unknown image error, I have this message during the pipeline running If I manually pull the image with the current version of singularity, and run it, everything works:
It seems like if I pull manually the container, singularity creates the .sif image instead if I pull the image inside the pipeline, singularity pull the image with the extension .img |
I think this is going to need more debug information out of the Nextflow pipeline, given that manually pulling with Singularity works without issue. It's likely that it would be better to ask in a Nextflow forum / chat, pointing out that Singularity works when run manually. I'm afraid that I'm not too familiar with how images are being pulled via Nextflow, or how to get additional information about this. At this point it doesn't look like there's a problem with Singularity itself. |
I'm using singularity-ce version 4.0.3 on a HPC.
I'm trying to pull a docker container with singularity in a nextflow pipeline. After updating singularity to version 4.0.3 I'm having issues in pulling the container.
Command error:
ERROR: Unknown image format/type: /home/users/scratch/work/singularity/staphb-seqtk.img
In the singularity cachedir, I found the container with the .img extension, but it seems singularity doesn't recognize it. Maybe it is looking for a simg extension?
If I move in the singularity directory and run singularity shell or singularity exec on the img the container works perfectly.
The text was updated successfully, but these errors were encountered: