Skip to content

shub://* urls do not work #430

@karcaw

Description

@karcaw

Describe the bug
when i try to pull or run a shub://* image the image does not work:

To Reproduce

-➤ singularity pull shub://store.emsl.pnl.gov/ondemand/el7-hpc-prod:latest
FATAL:   While pulling shub image: error fetching image to cache: unable to check if  exists in cache: failed to create temporary file: open /home/efelix/.apptainer/cache/shub/tmp_1442884314: no such file or directory

-➤ singularity run shub://store.emsl.pnl.gov/ondemand/el7-hpc-prod:latest
FATAL:   Unable to handle shub://store.emsl.pnl.gov/ondemand/el7-hpc-prod:latest uri: unable to check if  exists in cache: failed to create temporary file: open /home/efelix/.apptainer/cache/shub/tmp_3050288960: no such file or directory

Expected behavior
The image would download, and run.

** Notes **
As far as i can tell by looking at the apptainer code (1.1.7) it downloads the manifest from sregistry, but it does not contain the Commit key needed: https://github.com/apptainer/apptainer/blob/744c94b5837d34d12d15cb87298b989b3c77f050/internal/pkg/client/shub/api.go#L51

and so fails, giving a very unhelpful message.

the pull should work per the sregistry docs: https://singularityhub.github.io/sregistry/docs/client

Can you tell me what I did wrong, or how to fix this?

i am running the quay.io/vanessa/sregistry:1.1.27 docker images currently.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions