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

Unable to retrieve tag from local registry #2879

Closed
terryxychan opened this issue May 14, 2019 · 9 comments · Fixed by #2648
Closed

Unable to retrieve tag from local registry #2879

terryxychan opened this issue May 14, 2019 · 9 comments · Fixed by #2648

Comments

@terryxychan
Copy link

Bug description

I am running a local registry on my host Windows 10 machine.
After purchasing and enabling the Registry Manager Extension, I'm able to visualize the repository with different image tags that I have pushed.

However, if I click into any of the repository and refresh the page, it gives me an error saying: "FAILURE: Unable to retrieve tag "

The repositories are still there, just unable to retrieve the images with tags.

I first thought it might be the registry, so I tried to "docker pull" images from the local registry and I am able to do that.

Expected behavior

I'm expected to have visual on all of the images with the tags so I can manage them.

Steps to reproduce the issue:

Steps to reproduce the behavior:

  1. Run the local registry by running:
docker run -p 5000:5000 --name registry -e REGISTRY_STORAGE_DELETE_ENABLED=true -v <directory_of_the_local_registry>:/var/lib/registry registry:2
  1. Assuming the Registry Manager extension is enabled, use "Custom Registry" to setup the registry
  2. Enter a registry name and enter the URL which is the URL of the local registry: <ip_address>:5000
  3. Click on "Add registry"
  4. Push an image with different tag names, for example, I pushed the hello-world image to the local registry with different tags:
docker tag hello-world localhost:5000/hello-world:latest
docker tag hello-world localhost:5000/hello-world:lts
docker tag hello-world localhost:5000/hello-world:1.0.0
docker push localhost:5000/hello-world:latest
docker push localhost:5000/hello-world:lts
docker push localhost:5000/hello-world:1.0.0
  1. Go back to Portainer, click on "Registry" then "Browse", then "hello-world"
  2. You should be ble to see all the images, but refresh the page.
    you should see that all the images disappeared and the error "FAILURE: unable to retrieve tag latest", "FAILURE: unable to retrieve tag lts", "FAILURE: unable to retrieve tag 1.0.0"

Technical details:

  • Portainer version: v1.20.1
  • Docker version (managed by Portainer): 18.09.2
  • Platform (windows/linux): Windows 10
  • Command used to start Portainer (docker run -p 9000:9000 portainer/portainer):
docker run -d -p 9000:9000 -v /var/run/docker.sock:/var/run/docker.sock -v portainer_data:/data portainer/portainer
  • Browser: Microsoft Edge

Additional context

@ghost ghost added this to Need triage in Bug triage via automation May 20, 2019
@jokay
Copy link

jokay commented May 23, 2019

I can confirm this for v1.20.2 as well.

Using Portainer we get the following error(s):

20190523_portainer_registry

Using Docker Registry UI it works:

20190523_registryui_registry

And this is what the response looks like, for Edge:

HTTP400: BAD REQUEST - The request could not be processed by the server due to invalid syntax.
(XHR)GET - https://******/api/registries/4/v2/bbtsoftwareag%2Fswarm-monitor/manifests/latest

HTTP400: BAD REQUEST - The request could not be processed by the server due to invalid syntax.
(XHR)GET - https://******/api/registries/4/v2/bbtsoftwareag%2Fswarm-monitor/manifests/1.0.0

and Firefox:

{"errors":[{"code":"MANIFEST_INVALID","message":"manifest invalid","detail":{}}]}

@terryxychan
Copy link
Author

This error seems to be coming from the browser. It works fine using Chrome, but it doesn't work for Microsoft Edge

@jokay
Copy link

jokay commented May 24, 2019

Using Chromium I get the same response as for Firefox:

{"errors":[{"code":"MANIFEST_INVALID","message":"manifest invalid","detail":{}}]}

@deviantony deviantony assigned ghost May 24, 2019
@jokay
Copy link

jokay commented Jun 14, 2019

Just updated portainer to 1.21.0 (and the agents to 1.3.0) and still got the errors.

@deviantony
Copy link
Member

Could be related to #2687

@jokay
Copy link

jokay commented Sep 4, 2019

Can confirm the problem for portainer 1.22.0.

@deviantony
Copy link
Member

@x-jokay give a try to portainerci/portainer:pr2648 as it is a rework of the RM UI that will be coming soon.

@ptimar56
Copy link

ptimar56 commented Oct 4, 2019

I can confirm the portainerci/portainer:pr2648 finally works with Safari 13.0.1 on macOS, the previous builds has the same problem as in the description of the issue.

Also tried on Microsoft Edge Beta on Windows 2019 Server, works too.

@ghost
Copy link

ghost commented Oct 4, 2019

@ptimar56 Thats great news! Glad to hear it helped you 👍

@deviantony deviantony unassigned ghost Oct 14, 2019
@deviantony deviantony added this to the next milestone Oct 14, 2019
@deviantony deviantony removed this from Need triage in Bug triage Apr 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants