Skip to content
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

singularity.registry ignored when pulling nf-core/bedtools_coreutils image #1455

Open
mathob opened this issue Nov 21, 2024 · 4 comments
Open
Labels
bug Something isn't working

Comments

@mathob
Copy link

mathob commented Nov 21, 2024

Description of the bug

From terminal output (see below) I see that nextflow tries unsuccessfully to run this:

singularity pull --name nf-core-bedtools_coreutils-a623c13f66d5262b.img.pulling.1732158845794 docker://nf-core/bedtools_coreutils:a623c13f66d5262b > /dev/null

When I try repeating this command without redirection I get this:

singularity pull  --name nf-core-bedtools_coreutils-a623c13f66d5262b.img.pulling.1732158845794 docker://nf-core/bedtools_coreutils:a623c13f66d5262b
WARNING: Couldn't use cached digest for registry: HEAD https://index.docker.io/v2/nf-core/bedtools_coreutils/manifests/a623c13f66d5262b: unexpected status code 401 Unauthorized (HEAD responses have no body, use GET for details)
WARNING: Falling back to direct digest.
FATAL:   While making image from oci registry: error fetching image to cache: failed to get checksum for docker://nf-core/bedtools_coreutils:a623c13f66d5262b: GET https://index.docker.io/v2/nf-core/bedtools_coreutils/manifests/a623c13f66d5262b: UNAUTHORIZED: authentication required; [map[Action:pull Class: Name:nf-core/bedtools_coreutils Type:repository]]

Command used and terminal output

nextflow run nf-core/fetchngs --input ./2ids.tsv --outdir ./results --nf_core_pipeline rnaseq -profile pawsey_setonix -c copy_queue.config

excerpt of output:

Pulling Singularity image https://depot.galaxyproject.org/singularity/stringtie:2.2.3--h43eeafb_0 [cache /software/projects/pawsey1119/mhobbs/.nextflow_singularity/depot.galaxyproject.org-singularity-stringtie-2.2.3--h43eeafb_0.img]
Pulling Singularity image https://depot.galaxyproject.org/singularity/qualimap:2.3--hdfd78af_0 [cache /software/projects/pawsey1119/mhobbs/.nextflow_singularity/depot.galaxyproject.org-singularity-qualimap-2.3--hdfd78af_0.img]      Pulling Singularity image https://depot.galaxyproject.org/singularity/subread:2.0.6--he4a0461_2 [cache /software/projects/pawsey1119/mhobbs/.nextflow_singularity/depot.galaxyproject.org-singularity-subread-2.0.6--he4a0461_2.img]
Pulling Singularity image docker://nf-core/bedtools_coreutils:a623c13f66d5262b [cache /software/projects/pawsey1119/mhobbs/.nextflow_singularity/nf-core-bedtools_coreutils-a623c13f66d5262b.img]
Pulling Singularity image https://depot.galaxyproject.org/singularity/bioconductor-dupradar:1.32.0--r43hdfd78af_0 [cache /software/projects/pawsey1119/mhobbs/.nextflow_singularity/depot.galaxyproject.org-singularity-bioconductor-dupradar-1.32.0--r43hdfd78af_0.img]
ERROR ~ Error executing process > 'NFCORE_RNASEQ:RNASEQ:BEDTOOLS_GENOMECOV_FW (1)'
   Caused by:                                         Failed to pull singularity image
    command: singularity pull  --name nf-core-bedtools_coreutils-a623c13f66d5262b.img.pulling.1732158845794 docker://nf-core/bedtools_coreutils:a623c13f66d5262b > /dev/null
    status : 255
    hint   : Try and increase singularity.pullTimeout in the config (current is "20m")
    message:
      WARNING: Couldn't use cached digest for registry: HEAD https://index.docker.io/v2/nf-core/bedtools_coreutils/manifests/a623c13f66d5262b: unexpected status code 401 Unauthorized (HEAD responses have no body, use GET for details)
      WARNING: Falling back to direct digest.
      FATAL:   While making image from oci registry: error fetching image to cache: failed to get checksum for docker://nf-core/bedtools_coreutils:a623c13f66d5262b: GET https://index.docker.io/v2/nf-core/bedtools_coreutils/manifests/a623c13f66d5262b: UNAUTHORIZED: authentication required; [map[Action:pull Class: Name:nf-core/bedtools_coreutils Type:repository]]



 -- 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
-[nf-core/rnaseq] Pipeline completed with errors-

Relevant files

No response

System information

nf-core/rnaseq: v3.17.0-g00f924c
Nextflow: 24.04.3
@mathob mathob added the bug Something isn't working label Nov 21, 2024
@mathob
Copy link
Author

mathob commented Nov 21, 2024

Also wondering about whether it should be "docker://nfcore/" rather than "docker://nf-core/"?

@mathob
Copy link
Author

mathob commented Nov 21, 2024

ahh, I pasted in the wrong command, sorry, it was

nextflow run nf-core/rnaseq
--input results/samplesheet/samplesheet.csv
--trimmer fastp --extra_fastp_args '--reads_to_process 10000'
--outdir rnaseq_results_10kreads
--gtf gencode.v47.annotation.gtf.gz
--gencode true
--fasta GRCh38.p14.genome.fa.gz
--additional_fasta ERCC92.fa
--star_index false
--save_reference true
--gene_bed false
--aligner star_rsem
-profile pawsey_setonix,singularity

The output including error messages is correct though

@mathob
Copy link
Author

mathob commented Nov 21, 2024

In another system I successfully ran a previous version of the pipeline with the same inputs

nf-core/rnaseq: v3.16.0-g33df0c0
Nextflow: 24.04.1

This run retreived an alternative image (community-cr-prod.seqera.io-docker-registry-v2-blobs-sha256-63-6397750e9730a3fbcc5b4c43f14bd141c64c723fd7dad80e47921a68a7c3cd2
1-data.img) - this alternative was removed from modules/nf-core/bedtools/genomecov/main.nf in 14e7677#diff-2c1c983c31b62b0f399bb6f80772337aa71b9c4951692835c050e6b4f90e9c30L8

@mathob
Copy link
Author

mathob commented Nov 21, 2024

After more reading I see that since the config does this:

singularity.registry = 'quay.io'

then the URI used in the singularity pull command should be changed to "docker://quay.io/nf-core/bedtools_coreutils:a623c13f66d5262b" - but isn't

@mathob mathob changed the title singularity can't pull docker://nf-core/bedtools_coreutils:a623c13f66d5262b singularity.registry ignored when pulling nf-core/bedtools_coreutils image Nov 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant