This message was deleted.
# rke2
a
This message was deleted.
c
what specifically did you configure
and when do you get that error?
b
Hi @creamy-pencil-82913 I am using internal registry which is deployed with harbor under project named
rke
. So registry url is
<http://registry.com/rke|registry.com/rke>
.
/etc/rancher/rke2/registries.yaml
is as follow:
Copy code
mirrors:
  <http://docker.io|docker.io>:
    endpoint:
    - <https://registry.com/rke>
  <http://index.docker.io|index.docker.io>:
    endpoint:
    - <https://registry.com/rke>
  <http://registry.com/rke|registry.com/rke>:
    endpoint:
    - <https://registry.com/rke>
configs:
  <http://registry.com/rke|registry.com/rke>:
    auth:
      username: ####
      password: ####
    tls:
      insecure_skip_verify: true
I am getting below error in rke:
Copy code
Jan 22 11:46:04 server0 rke2[205555]: time="2024-01-22T11:46:04Z" level=info msg="Using private registry config file at /etc/rancher/rke2/registries.yaml"
Jan 22 11:46:04 server0 rke2[205555]: time="2024-01-22T11:46:04Z" level=info msg="Pulling runtime image <http://index.docker.io/rancher/rke2-runtime:v1.26.5-rke2r1|index.docker.io/rancher/rke2-runtime:v1.26.5-rke2r1>"
Jan 22 11:46:04 server0 rke2[205555]: time="2024-01-22T11:46:04Z" level=fatal msg="chmod /var/lib/rancher/rke2/data/v1.26.5-rke2r1-20991fc2bc3f/bin: no such file or directory"
Jan 22 11:46:04 server0 systemd[1]: rke2-server.service: Main process exited
I am able to pull the same image using podman.
c
No, that's not right.
Check the docs for registry rewrites. You are confusing the image prefix for your registry endpoints address.