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

All r/ links in hub get 404 error in rancher (but also other repos) #2206

Open
StefanSa opened this issue Feb 8, 2022 · 10 comments
Open

All r/ links in hub get 404 error in rancher (but also other repos) #2206

StefanSa opened this issue Feb 8, 2022 · 10 comments

Comments

@StefanSa
Copy link

StefanSa commented Feb 8, 2022

Hi there
i just tried to install rke2 and i get a 404 error for all rancher images.
Is there similar problem as already happened here ?
#2196

@thaJeztah
Copy link
Member

Do you have an URL that fails? I just tried first from their list of repositories (at https://hub.docker.com/u/rancher), and that one seemed to work; https://hub.docker.com/r/rancher/hardened-calico

@StefanSa
Copy link
Author

StefanSa commented Feb 8, 2022

Hi @thaJeztah
these for example:
https://index.docker.io/r/rancher/rke2-runtime

Pulling runtime image index.docker.io/rancher/rke2-runtime:v1.22.6-rke2r1
FATA[0001] chmod /var/lib/rancher/rke2/data/v1.22.6-rke2r1-e6c1502b55cd/bin: no such file or directory

@thaJeztah
Copy link
Member

Thanks! Let me check internally if something is known

@thaJeztah
Copy link
Member

Looks like the image itself is there, so seems like it's something in the presentation (not sure why you get that error though);

docker manifest inspect rancher/rke2-runtime:v1.22.6-rke2r1
{
   "schemaVersion": 2,
   "mediaType": "application/vnd.docker.distribution.manifest.list.v2+json",
   "manifests": [
      {
         "mediaType": "application/vnd.docker.distribution.manifest.v2+json",
         "size": 528,
         "digest": "sha256:e4cf484ec287c641b98d8f123d0b157c13e217f07f3bf79a4cece30091759f6f",
         "platform": {
            "architecture": "amd64",
            "os": "linux"
         }
      },
      {
         "mediaType": "application/vnd.docker.distribution.manifest.v2+json",
         "size": 529,
         "digest": "sha256:8a3d3caae60eabc100784924675d9de4a0f607b498105215578fec6d734077f0",
         "platform": {
            "architecture": "amd64",
            "os": "windows"
         }
      }
   ]
}

@thaJeztah
Copy link
Member

@StefanSa a colleague noticed (I overlooked it) that you're using index.docker.io for the domain, not hub.docker.com; using hub.docker.com (which is the correct domain for the Docker Hub UI) looks to work; https://hub.docker.com/r/rancher/rke2-runtime

(Not sure why index.docker.io also shows the hub front-end, but this could be related to some redirects)

@StefanSa
Copy link
Author

StefanSa commented Feb 8, 2022

@thaJeztah
Thanks for the info, it is generated by the rke2 install script itself, i have no influence on it.

Pulling runtime image index.docker.io/rancher/rke2-runtime:v1.22.6-rke2r1

@thaJeztah
Copy link
Member

Right, but that's the registry URL used to pull images (which is separate from the UI - notice that the Pulling image .. does not have the /r/ in the path as well).

docker pull index.docker.io/rancher/rke2-runtime:v1.22.6-rke2r1
v1.22.6-rke2r1: Pulling from rancher/rke2-runtime
a46628218d70: Pull complete
Digest: sha256:6121296231a82bbdf6d077ee08be5882f7ac162bbf350436b5972627f3cb1645
Status: Downloaded newer image for rancher/rke2-runtime:v1.22.6-rke2r1
docker.io/rancher/rke2-runtime:v1.22.6-rke2r1

Although the correct variant should be docker.io (without index. - the index.docker.io subdomain for references is mostly for backward compatibility; they're normalized internally in the docker engine)

docker pull docker.io/rancher/rke2-runtime:v1.22.6-rke2r1
v1.22.6-rke2r1: Pulling from rancher/rke2-runtime
Digest: sha256:6121296231a82bbdf6d077ee08be5882f7ac162bbf350436b5972627f3cb1645
Status: Image is up to date for rancher/rke2-runtime:v1.22.6-rke2r1
docker.io/rancher/rke2-runtime:v1.22.6-rke2r1

@thaJeztah
Copy link
Member

So, I guess you arrived there by pasting that image name in your browser; https://index.docker.io/rancher/rke2-runtime:v1.22.6-rke2r1

I think there's some redirects missing for those to redirect to the corresponding Docker Hub UI URL (I recall I opened an internal ticket for that, but it's still in the backlog)

@StefanSa
Copy link
Author

StefanSa commented Feb 8, 2022

Exactly, but is that why the pull fails ?

@thaJeztah
Copy link
Member

No the pull itself succeeds for me, but perhaps there's some step after pulling that's happening? the error;

chmod /var/lib/rancher/rke2/data/v1.22.6-rke2r1-e6c1502b55cd/bin: no such file or directory

Seems to be that either a file is missing, or the path is incomplete (/bin could be pointing to a directory)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants