singularity icon indicating copy to clipboard operation
singularity copied to clipboard

Pulling from non-default shub registry gives "no response recieved"

Open tamasgal opened this issue 6 years ago • 15 comments
trafficstars

I am trying to use the singularity client to pull images from our private singularity registry but I get

FATAL:   Failed to get manifest from Shub: No response received from singularity hub

Version of Singularity:

3.1

Expected behavior

Pulling images should work.

Actual behavior

Pulling images doesn't work.

Steps to reproduce behavior

░ tgal@staticbox:~ py-3.7.2 ░ 16:11:40 [I] ✘130 ➜ singularity pull shub://singularity.km3net.de/common/jpp:v11.0.0-rc9 WARNING: Authentication token file not found : Only pulls of public images will succeed FATAL: Failed to get manifest from Shub: No response received from singularity hub Although the image is there and it should be public.

tamasgal avatar Mar 06 '19 15:03 tamasgal

hey @tamasgal ! In the meantime, here is a quick hack for pulling it anyway :)

$ singularity pull $(curl http://singularity.km3net.de/api/container/common/jpp | jq --raw-output .image)

Format is:

$ singularity pull $(curl <registry>/api/container/<collection>/<container> | jq --raw-output .image)

For a particular tag, just add it:

$ singularity pull $(curl http://singularity.km3net.de/api/container/common/jpp:v11.0.0-rc9 | jq --raw-output .image)
$ singularity pull $(curl <registry>/api/container/<collection>/<container>:<tag> | jq --raw-output .image)

and as discussed in the linked issue, you can of course use sregistry client. But definitely it's nice if singularity supports this.

vsoch avatar Mar 06 '19 15:03 vsoch

Haha thanks ;)

tamasgal avatar Mar 06 '19 15:03 tamasgal

@ikaneshiro

ping!

jscook2345 avatar Mar 10 '19 16:03 jscook2345

ping on this issue - @yarikoptic asked about this just now.

vsoch avatar Apr 16 '19 19:04 vsoch

Any updates on this issue?

vsoch avatar Aug 19 '19 14:08 vsoch

I actually don't have any updates as we switched to a simple SFTP server to store the singularity images. Unfortunately we had too many issues and not enough human ressources to maintain the singularity registry, so we now only have Docker+SFTP for the images built and pushed on/from the CI systems.

tamasgal avatar Aug 19 '19 15:08 tamasgal

oh hey @tamasgal I didn't mean from you - I meant from the maintainers here. This issue is 5 months old and the issue still remains, it seems.

vsoch avatar Aug 19 '19 16:08 vsoch

Sorry for editing the title; I had to squint in order to notice that the issue is using a shub registry other than the default one.

mem avatar Sep 02 '19 21:09 mem

No worries! Yes, it is the case that users can deploy a Singularity Registry Server, and then interact with it using the same shub uri. The difference is that the registry base is different, like singularity pull shub://myregistry.org/collection/container:tag

vsoch avatar Sep 02 '19 21:09 vsoch

When there is credentials for a specific user in a private registry, although the singularity pull does not work as of today. If it was working, how would the login happen with singularity client?

wonderchoosey avatar Aug 25 '20 10:08 wonderchoosey

For Singularity Registry Server, it serves the library API so the login with a user token from their profile is the same as it would be with Sylabs Cloud.

vsoch avatar Aug 25 '20 13:08 vsoch

Hello,

This is a templated response that is being sent out to all open issues. We are working hard on 'rebuilding' the Singularity community, and a major task on the agenda is finding out what issues are still outstanding.

Please consider the following:

  1. Is this issue a duplicate, or has it been fixed/implemented since being added?
  2. Is the issue still relevant to the current state of Singularity's functionality?
  3. Would you like to continue discussing this issue or feature request?

Thanks, Carter

carterpeel avatar May 15 '21 16:05 carterpeel

This issue has been automatically marked as stale because it has not had activity in over 60 days. It will be closed in 7 days if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Jul 14 '21 19:07 stale[bot]

@tamasgal this is fairly old and sregistry should be able to pull without issue now - is this still an issue?

vsoch avatar Jul 14 '21 19:07 vsoch

@tamasgal Still getting this problem ? Have this been solved already ? If yes, what work around have you followed and applied ?

We're looking into the issue carefully, soon will bring to community and discuss ways to better solve as well address this. Thankyou for keeping the interest in the subject.

pedroalvesbatista avatar Jul 15 '21 02:07 pedroalvesbatista

Closing this old stale issue from the old singularity repo. If this still an issue please create a new issue in the Apptainer repo. Thanks.

kmuriki avatar Aug 16 '22 01:08 kmuriki