Skip to content

Unable to pull openms container using apptainer/singularity #516

Closed

Description

@MathiasJoensson

Description of the bug

Hi, I am trying to use quantms on a linux HPC. I have a conda environment with nextflow and Apptainer installed. However, I seem unable to pull the openms container when running the test command. Note, I was able to pull the quantms container with no issues.

I tested locally on my macbook, using docker, and the test pipeline finished without issues.

Thanks for any help!

Command used and terminal output

nextflow run bigbio/quantms -r dev -profile test_lfq,singularity 

No SDRF given. Using parameters to determine tolerance, enzyme, mod. and labelling settings
Pulling Singularity image oras://ghcr.io/bigbio/openms-tools-thirdparty-sif:2025.04.12 [cache /data/projects/punim2537/nf-core-pipelines/quantms/singularity-images/ghcr.io-bigbio-openms-tools-thirdparty-sif-2025.04.12.img]
ERROR ~ Error executing process > 'BIGBIO_QUANTMS:QUANTMS:FILE_PREPARATION:MZMLINDEXING (3)'

Caused by:
  Failed to pull singularity image
    command: singularity pull  --name ghcr.io-bigbio-openms-tools-thirdparty-sif-2025.04.12.img.pulling.1744604959242 oras://ghcr.io/bigbio/openms-tools-thirdparty-sif:2025.04.12 > /dev/null
    status : 255
    hint   : Try and increase singularity.pullTimeout in the config (current is "1h")
    message:
      FATAL:   While pulling image from oci registry: error fetching image to cache: failed to get checksum for oras://ghcr.io/bigbio/openms-tools-thirdparty-sif:2025.04.12: GET https://ghcr.io/v2/bigbio/openms-tools-thirdparty-sif/manifests/2025.04.12: DENIED: requested access to the resource is denied



 -- Check '.nextflow.log' file for details
ERROR ~ Pipeline failed. Please refer to troubleshooting docs: https://nf-co.re/docs/usage/troubleshooting

 -- Check '.nextflow.log' file for details
-[bigbio/quantms] Pipeline completed with errors-

Relevant files

.nextflow.log

System information

Nextflow version 24.10.5
HPC
Singularity

Activity

  1. added
    bug
    on Apr 14, 2025
  2. ypriverol commented on Apr 14, 2025

    @ypriverol
    Contributor

    Hi @MathiasJoensson unfortunately, the OpenMS container is not available between releases, which is the main reason we have recently decided to move away from Conda #513 . If it is not completely decided, then you still have time to give feedback on the issue. For HPC, we support singularity.

    In the future, when OpenMS releases and the conda will be available, we will be releasing some versions of the workflow with support for conda.

  3. ypriverol commented on Apr 14, 2025

    @ypriverol
    Contributor

    A sorry, I saw that your problem is with the singularity image, I will double check, thanks for reporting this.

  4. linked a pull request that will close this issueFix small bug with OpenMS Singularity #517on Apr 14, 2025
  5. linked a pull request that will close this issueFixed small bug with singularity in OpenMS #518on Apr 14, 2025
  6. ypriverol commented on Apr 14, 2025

    @ypriverol
    Contributor

    @MathiasJoensson thanks for reporting this. PR ongoing here #518, PR merged, please @MathiasJoensson let me know if it works for you.

  7. MathiasJoensson commented on Apr 14, 2025

    @MathiasJoensson
    Author

    Thank you for getting back to me so quickly! I tried cloning the dev branch and running the test again, but I got the same issue.
    git clone --branch dev https://github.com/bigbio/quantms.git
    cd quantms
    nextflow run main.nf -c nextflow.config -profile test_lfq,singularity
    '''
    ERROR ~ Error executing process > 'BIGBIO_QUANTMS:QUANTMS:FILE_PREPARATION:MZMLINDEXING (2)'

    Caused by:
    Failed to pull singularity image
    command: singularity pull --name ghcr.io-bigbio-openms-tools-thirdparty-sif-2025.04.14.img.pulling.1744669447535 oras://ghcr.io/bigbio/openms-tools-thirdparty-sif:2025.04.14 > /dev/null
    status : 255
    hint : Try and increase singularity.pullTimeout in the config (current is "1h")
    message:
    FATAL: While pulling image from oci registry: error fetching image to cache: failed to get checksum for oras://ghcr.io/bigbio/openms-tools-thirdparty-sif:2025.04.14: GET https://ghcr.io/token?scope=repository%3Abigbio%2Fopenms-tools-thirdparty-sif%3Apull&service=ghcr.io: UNAUTHORIZED: authentication required

    -- Check '.nextflow.log' file for details
    ERROR ~ Pipeline failed. Please refer to troubleshooting docs: https://nf-co.re/docs/usage/troubleshooting

    -- Check '.nextflow.log' file for details
    '''.

    Maybe the issue is on my side, since it's an authorization issue. But I'd be very grateful for any tips on how to solve it :)

    Thank you
    Mathias

  8. ypriverol commented on Apr 22, 2025

    @ypriverol
    Contributor

    @MathiasJoensson can you try now outside nextflow like

    singularity pull --name ghcr.io-bigbio-openms-tools-thirdparty-sif-2025.04.14.img.pulling.1744669447535 oras://ghcr.io/bigbio/openms-tools-thirdparty-sif:2025.04.14
    

    I changed the visibility and permissions, hope it works.

  9. ypriverol commented on May 2, 2025

    @ypriverol
    Contributor

    Fixed in #521

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions