installation issues
# rke2
b
Nov 10 08:42:11-rke1 rke2[110629]: time="2023-11-10T08:42:11Z" level=info msg="Failed to find index.docker.io/rancher/rke2-runtime:v1.25.14-rke2r1 in /var/lib/rancher/rke2/agent/images/rke2.linux-amd64.tar: tag rancher/rke2-runtime:v1.25.14-rke2r1 not found in tarball" Nov 10 08:42:11-rke1 rke2[110629]: time="2023-11-10T08:42:11Z" level=warning msg="Failed to load runtime image index.docker.io/rancher/rke2-runtime:v1.25.14-rke2r1 from tarball: no local image available for index.docker.io/rancher/rke2-runtime:v1.25.14-rke2r1: not found in any file in /var/lib/rancher/rke2/agent/images: image not found" Nov 10 08:42:11-rke1 rke2[110629]: time="2023-11-10T08:42:11Z" level=info msg="Checking local image archives in /var/lib/rancher/rke2/agent/images for index.docker.io/rancher/rke2-runtime:v1.25.14-rke2r1" Nov 10 08:42:11-rke1 rke2[110629]: time="2023-11-10T08:42:11Z" level=info msg="Failed to find index.docker.io/rancher/rke2-runtime:v1.25.14-rke2r1 in /var/lib/rancher/rke2/agent/images/rke2.linux-amd64.tar.gz: tag rancher/rke2-runtime:v1.25.14-rke2r1 not found in tarball"
. I have tried to install rke2 with airgap installation, but the daemon couldnt find the image (even though the tarball is downloaded and copied to the location /var/lib/rancher/rke2/agent/images
resolved it by adding the env varilable in the file /usr/local/lib/systemd/system/rke2-server.service
as [Service] Environment="HTTP_PROXY=http://<proxy address>" Environment="HTTPS_PROXY=https://<proxy>" And then systemctl daemon-reload systemctl restart rke2-server Hope this helps others facing same issue behind proxy