happy-motorcycle-45834
06/05/2024, 6:11 PMFailed to get image from endpoint: Get \"<https://ip:5000/v2/>\": http: server gave HTTP response to HTTPS client; Get \"<https://ip:5000/v2/>\": http: server gave HTTP response to HTTPS client"
Slack Conversationcreamy-pencil-82913
06/05/2024, 6:13 PMcreamy-pencil-82913
06/05/2024, 6:14 PMcreamy-pencil-82913
06/05/2024, 6:14 PMmirrors:
"ip:5000":
endpoint:
- "<http://ip:5000>"
happy-motorcycle-45834
06/05/2024, 6:19 PMmachineSelectorConfig:
- config:
docker: false
protect-kernel-defaults: false
selinux: false
system-default-registry: ip:5000
registries:
mirrors:
<http://docker.io|docker.io>:
endpoint:
- <http://ip:5000>
rewrite:
^rancher/(.*): <http://docker.io/$1|docker.io/$1>
creamy-pencil-82913
06/05/2024, 7:47 PMcreamy-pencil-82913
06/05/2024, 7:48 PMip:5000
instead of <http://docker.io|docker.io>
happy-motorcycle-45834
06/05/2024, 8:11 PMsystem-default-registry: ip:5000
Here are some more logs to give you context:
Jun 05 15:12:37 abc.work rancher-system-agent[28651]: time="2024-06-05T15:12:37-04:00" level=info msg="Using private registry config file at /etc/rancher/agent/registries.yaml"
Jun 05 15:12:37 abc.work rancher-system-agent[28651]: time="2024-06-05T15:12:37-04:00" level=info msg="Pulling image ip:5000/rancher/system-agent-installer-k3s:v1.28.9-k3s1"
Jun 05 15:12:37 abc.work rancher-system-agent[28651]: time="2024-06-05T15:12:37-04:00" level=warning msg="Failed to get image from endpoint: Get \"<https://ip:5000/v2/>\": http: server gave HTTP response to HTTPS client; Get \"<https://ip:5000/v2/>\": http: server gave HTTP response to HTTPS client"
Jun 05 15:12:37 abc.work rancher-system-agent[28651]: time="2024-06-05T15:12:37-04:00" level=error msg="error while staging: all endpoints failed: Get \"<https://ip:5000/v2/>\": http: server gave HTTP response to HTTPS client; Get \"<https://ip:5000/v2/>\": http: server gave HTTP response to HTTPS client: failed to get image ip:5000/rancher/system-agent-installer-k3s:v1.28.9-k3s1"
Jun 05 15:12:37 abc.work rancher-system-agent[28651]: time="2024-06-05T15:12:37-04:00" level=error msg="error executing instruction 0: all endpoints failed: Get \"<https://ip:5000/v2/>\": http: server gave HTTP response to HTTPS client; Get \"<https://ip:5000/v2/>\": http: server gave HTTP response to HTTPS client: failed to get image ip:5000/rancher/system-agent-installer-k3s:v1.28.9-k3s1"
Jun 05 15:12:37 abc.work rancher-system-agent[28651]: time="2024-06-05T15:12:37-04:00" level=info msg="[Applyinator] No image provided, creating empty working directory /var/lib/rancher/agent/work/20240605-151237/afd4f85b27833cd0080fd3218565433075516a446c9351fbf4cc3265149dd3c8_0"
Jun 05 15:12:37 abc.work rancher-system-agent[28651]: time="2024-06-05T15:12:37-04:00" level=info msg="[Applyinator] Running command: sh [-c k3s etcd-snapshot list --etcd-s3=false 2>/dev/null]"
creamy-pencil-82913
06/05/2024, 8:19 PMhappy-motorcycle-45834
06/05/2024, 8:35 PMmachineSelectorConfig:
- config:
docker: false
protect-kernel-defaults: false
selinux: false
registries:
configs: {}
mirrors:
<http://docker.io|docker.io>:
endpoint:
- <http://ip:5000>
rewrite:
^(.*): <http://docker.io/$1|docker.io/$1>
but now it is reaching out to index.docker.io as you'd see from the logs below:
Jun 05 16:26:44 abc.work rancher-system-agent[2514]: time="2024-06-05T16:26:44-04:00" level=info msg="[Applyinator] Applying one-time instructions for plan with checksum 4462fc1b6e5fe2882b74ba78e85f389a90440fce0685400b7ab489096951b73a"
Jun 05 16:26:44 abc.work rancher-system-agent[2514]: time="2024-06-05T16:26:44-04:00" level=info msg="[Applyinator] Extracting image rancher/system-agent-installer-k3s:v1.28.9-k3s1 to directory /var/lib/rancher/agent/work/20240605-162644/4462fc1b6e5fe2882b74ba78e85f389a90440fce0685400b7ab489096951b73a_0"
Jun 05 16:26:44 abc.work rancher-system-agent[2514]: time="2024-06-05T16:26:44-04:00" level=info msg="Using private registry config file at /etc/rancher/agent/registries.yaml"
Jun 05 16:26:44 abc.work rancher-system-agent[2514]: time="2024-06-05T16:26:44-04:00" level=info msg="Pulling image <http://index.docker.io/rancher/system-agent-installer-k3s:v1.28.9-k3s1|index.docker.io/rancher/system-agent-installer-k3s:v1.28.9-k3s1>"
Jun 05 16:26:44 abc.work rancher-system-agent[2514]: time="2024-06-05T16:26:44-04:00" level=info msg="Extracting file installer.sh to /var/lib/rancher/agent/work/20240605-162644/4462fc1b6e5fe2882b74ba78e85f389a90440fce0685400b7ab489096951b73a_0/installer.sh"
Jun 05 16:26:44 abc.work rancher-system-agent[2514]: time="2024-06-05T16:26:44-04:00" level=info msg="Extracting file k3s to /var/lib/rancher/agent/work/20240605-162644/4462fc1b6e5fe2882b74ba78e85f389a90440fce0685400b7ab489096951b73a_0/k3s"
Jun 05 16:26:45 abc.work rancher-system-agent[2514]: time="2024-06-05T16:26:45-04:00" level=info msg="Extracting file run.sh to /var/lib/rancher/agent/work/20240605-162644/4462fc1b6e5fe2882b74ba78e85f389a90440fce0685400b7ab489096951b73a_0/run.sh"
Jun 05 16:26:45 abc.work rancher-system-agent[2514]: time="2024-06-05T16:26:45-04:00" level=info msg="[Applyinator] Running command: sh [-c run.sh]"
Jun 05 16:26:45 abc.work rancher-system-agent[2514]: time="2024-06-05T16:26:45-04:00" level=info msg="[4462fc1b6e5fe2882b74ba78e85f389a90440fce0685400b7ab489096951b73a_0:stderr]: + cp -f /var/lib/rancher/agent/work/20240605-162644/4462fc1b6e5fe2882b74ba78e85f389a90440fce0685400b7ab489096951b73a_0/k3s /usr/local/bin/k3s"
Jun 05 16:26:45 abc.work rancher-system-agent[2514]: time="2024-06-05T16:26:45-04:00" level=info msg="[4462fc1b6e5fe2882b74ba78e85f389a90440fce0685400b7ab489096951b73a_0:stderr]: + chmod 755 /usr/local/bin/k3s"
Jun 05 16:26:45 abc.work rancher-system-agent[2514]: time="2024-06-05T16:26:45-04:00" level=info msg="[4462fc1b6e5fe2882b74ba78e85f389a90440fce0685400b7ab489096951b73a_0:stderr]: + chown root:root /usr/local/bin/k3s"
output of registries.yaml:
cat /etc/rancher/agent/registries.yaml
{"configs":{},"mirrors":{"<http://docker.io|docker.io>":{"endpoint":["ip:5000"],"rewrite":{"^(.*)":"<http://docker.io/$1|docker.io/$1>"}}}}
creamy-pencil-82913
06/05/2024, 8:48 PM<http://docker.io/rancher/|docker.io/rancher/>...
as that is the image namecreamy-pencil-82913
06/05/2024, 8:48 PMcreamy-pencil-82913
06/05/2024, 8:49 PMhappy-motorcycle-45834
06/06/2024, 1:19 PM