https://rancher.com/ logo
#rke2
Title
b

billions-kite-9416

05/25/2022, 10:34 AM
Hi everyone, I am having some trouble creating a custom rke2 cluster from Rancher UI and the error message is not really helpful. The rancher-system-agent binary gets downloaded to the nodes but there is an error saying
run.sh
is not found
Copy code
May 25 13:18:53  rancher-system-agent[4497]: time="2022-05-25T13:18:53+03:00" level=info msg="Pulling image <http://index.docker.io/rancher/system-a|index.docker.io/rancher/system-a>
gent-installer-rke2:v1.23.6-rke2r2"
May 25 13:18:55  rancher-system-agent[4497]: time="2022-05-25T13:18:55+03:00" level=info msg="[Applyinator] Running command: sh [-c run.sh]"
May 25 13:18:55  rancher-system-agent[4497]: time="2022-05-25T13:18:55+03:00" level=info msg="[48304be41fe2284adc2b5937c9d5c9c7b09009b2cae77
6320036286c2f0c3191_0:stderr]: sh: 1: run.sh: not found"
May 25 13:18:55  rancher-system-agent[4497]: time="2022-05-25T13:18:55+03:00" level=info msg="[Applyinator] Command sh [-c run.sh] finished
with err: <nil> and exit code: 127"
May 25 13:18:55  rancher-system-agent[4497]: time="2022-05-25T13:18:55+03:00" level=error msg="error executing instruction 0: <nil>"
May 25 13:18:55  rancher-system-agent[4497]: time="2022-05-25T13:18:55+03:00" level=error msg="error encountered during parsing of last run
time: parsing time \"\" as \"Mon Jan _2 15:04:05 MST 2006\": cannot parse \"\" as \"Mon\""
May 25 13:18:55  rancher-system-agent[4497]: time="2022-05-25T13:18:55+03:00" level=info msg="[Applyinator] No image provided, creating empt
y working directory /var/lib/rancher/agent/work/20220525-131853/48304be41fe2284adc2b5937c9d5c9c7b09009b2cae776320036286c2f0c3191_0"
May 25 13:18:55  rancher-system-agent[4497]: time="2022-05-25T13:18:55+03:00" level=info msg="[Applyinator] Running command: sh [-c rke2 etc
d-snapshot list --etcd-s3=false 2>/dev/null]"
May 25 13:18:55  rancher-system-agent[4497]: time="2022-05-25T13:18:55+03:00" level=info msg="[Applyinator] Command sh [-c rke2 etcd-snapsho
t list --etcd-s3=false 2>/dev/null] finished with err: <nil> and exit code: 127"
May 25 13:18:56  rancher-system-agent[4497]: time="2022-05-25T13:18:56+03:00" level=error msg="error loading x509 client cert/key for probe
kube-apiserver (/var/lib/rancher/rke2/server/tls/client-kube-apiserver.crt//var/lib/rancher/rke2/server/tls/client-kube-apiserver.key): open /var/lib/
rancher/rke2/server/tls/client-kube-apiserver.crt: no such file or directory"
👀 1
Does anyone know what might be the issue I am having?
g

gifted-cricket-25537

05/25/2022, 2:09 PM
try to pull by hand and see what is happening
I had something similar when I was playing with registries.yaml
b

billions-kite-9416

05/25/2022, 2:32 PM
when I decode the base64 string inside the machine-plan secret
{"configs":{},"mirrors":null}
this is I get for
registries.yaml
btw
Not sure how to pull the image by hand since I don’t have docker installed on the machine
f

faint-airport-83518

05/25/2022, 3:56 PM
Not sure if this helps @billions-kite-9416 https://docs.rke2.io/install/quickstart/
Copy code
Additional utilities will be installed at /var/lib/rancher/rke2/bin/. They include: kubectl, crictl, and ctr. Note that these are not on your path by default.
b

billions-kite-9416

05/25/2022, 5:21 PM
Hey, I think the problem I’m having prevents those binaries from being downloaded too although I am not sure will take a look again 🙏
1593 Views