https://rancher.com/ logo
Title
s

straight-nest-8449

07/20/2022, 7:58 AM
Hi! I'm trying to get RKE2 running through the Rancher UI with a private registry and am having issues with nodes not joining. Checking the logs with
journalctl -eu rancher-system-agent
after using the registration command shows the following:
msg="[Applyinator] Applying one-time instructions for plan with checksum 297f183b2277d90415cace1b3222523e893fe83ca0918af7cf3f58f73377f387"
msg="[Applyinator] Extracting image registry.[REDACTED]-educ.local/rancher/system-agent-installer-rke2:v1.23.6-rke2r2 to directory /var/lib/rancher/agent/work/20220720-095240/297f183b2277d90415cace1b3222523e893fe83ca0918af7cf3f58f73377f387_0"
msg="Using private registry config file at /etc/rancher/agent/registries.yaml"
msg="Pulling image registry.[REDACTED]-educ.local/rancher/system-agent-installer-rke2:v1.23.6-rke2r2"
msg="[Applyinator] Running command: sh [-c run.sh]"
msg="[297f183b2277d90415cace1b3222523e893fe83ca0918af7cf3f58f73377f387_0:stderr]: sh: run.sh: command not found"
msg="[Applyinator] Command sh [-c run.sh] finished with err: <nil> and exit code: 127"
msg="error executing instruction 0: <nil>"
I'm running out of ideas. I'm not sure if the image is being pulled since a watch on the filesystem only shows the work directory being created but not a file being written
registries.yaml
that gets generated by Rancher:
{
  "configs": {
    "10.191.240.208:5000": {
      "auth": null,
      "tls": {
        "ca_file": "",
        "cert_file": "",
        "key_file": "",
        "insecure_skip_verify": true
      }
    },
    "registry.[REDACTED]-educ.local": {
      "auth": null,
      "tls": {
        "ca_file": "",
        "cert_file": "",
        "key_file": "",
        "insecure_skip_verify": true
      }
    }
  },
  "mirrors": {
    "10.191.240.208:5000": {
      "endpoint": [
        "<http://10.191.240.208:5000>"
      ]
    },
    "<http://docker.io|docker.io>": {
      "endpoint": [
        "<https://registry>.[REDACTED]-educ.local"
      ]
    },
    "registry.[REDACTED]-educ.local": {
      "endpoint": [
        "<https://registry>.[REDACTED]-educ.local"
      ]
    }
  }
}
a

ambitious-plastic-3551

07/20/2022, 9:06 AM
missing run.sh file
s

straight-nest-8449

07/20/2022, 9:16 AM
Yes. The
run.sh
file should be in the
system-agent-installer
image which gets pulled by the
rancher-system-agent
. Either the image is broken or the system agent doesn't pull the image correctly.
Turned out to be a corrupt image