RKE2 server node installation #4507
-
I am trying to install an rke2 cluster, starting with the server node. Fistly I disabled the firewalld ( my VM's OS is Centos 7 ), and then proceeded with the following commands : mkdir -p /etc/rancher/rke2/
curl -sfL https://get.rke2.io | INSTALL_RKE2_CHANNEL=v1.24 INSTALL_RKE2_TYPE=server sh -
systemctl enable rke2-server.service
systemctl start rke2-server.service but the rke2-server.service hasn't changed the activating state since then and shows these logs : ● rke2-server.service - Rancher Kubernetes Engine v2 (server)
Loaded: loaded (/usr/lib/systemd/system/rke2-server.service; disabled; vendor preset: disabled)
Active: activating (start) since Tue 2023-07-25 22:51:01 GMT; 52s ago
Docs: https:/rancher/rke2#readme
Process: 2077 ExecStopPost=/bin/sh -c systemd-cgls /system.slice/%n | grep -Eo '[0-9]+ (containerd|kubelet)' | awk '{print $1}' | xargs -r kill (code=exited, status=0/SUCCESS)
Process: 2088 ExecStartPre=/sbin/modprobe overlay (code=exited, status=0/SUCCESS)
Process: 2085 ExecStartPre=/sbin/modprobe br_netfilter (code=exited, status=0/SUCCESS)
Process: 2082 ExecStartPre=/bin/sh -xc ! /usr/bin/systemctl is-enabled --quiet nm-cloud-setup.service (code=exited, status=0/SUCCESS)
Main PID: 2091 (rke2)
Tasks: 7
Memory: 91.1M
CGroup: /system.slice/rke2-server.service
└─2091 /usr/bin/rke2 server
Jul 25 22:51:22 HA-Rancher-0 rke2[2091]: time="2023-07-25T22:51:22Z" level=info msg="Waiting for cri connection: rpc error: code = Unavailable desc = connection error: desc = \"transport: Error while dialing dial unix /run/k3s/containerd/containerd.sock: connect: no such file or directory\""
Jul 25 22:51:31 HA-Rancher-0 rke2[2091]: {"level":"warn","ts":"2023-07-25T22:51:31.911Z","logger":"etcd-client","caller":"[email protected]/retry_interceptor.go:62","msg":"retrying of unary invoker failed","target":"etcd-endpoints://0xc000a1e1c0/127.0.0.1:2379","attempt":0,"error":"rpc error: code = DeadlineExceeded desc = latest balancer error: last connection error: connection error: desc = \"transport: Error while dialing dial tcp 127.0.0.1:2379: connect: connection refused\""}
Jul 25 22:51:31 HA-Rancher-0 rke2[2091]: {"level":"info","ts":"2023-07-25T22:51:31.911Z","logger":"etcd-client","caller":"[email protected]/client.go:210","msg":"Auto sync endpoints failed.","error":"context deadline exceeded"}
Jul 25 22:51:31 HA-Rancher-0 rke2[2091]: {"level":"warn","ts":"2023-07-25T22:51:31.914Z","logger":"etcd-client","caller":"[email protected]/retry_interceptor.go:62","msg":"retrying of unary invoker failed","target":"etcd-endpoints://0xc000a1e1c0/127.0.0.1:2379","attempt":0,"error":"rpc error: code = DeadlineExceeded desc = latest balancer error: last connection error: connection error: desc = \"transport: Error while dialing dial tcp 127.0.0.1:2379: connect: connection refused\""}
Jul 25 22:51:31 HA-Rancher-0 rke2[2091]: time="2023-07-25T22:51:31Z" level=info msg="Failed to test data store connection: context deadline exceeded"
Jul 25 22:51:32 HA-Rancher-0 rke2[2091]: time="2023-07-25T22:51:32Z" level=info msg="Waiting for etcd server to become available"
Jul 25 22:51:32 HA-Rancher-0 rke2[2091]: time="2023-07-25T22:51:32Z" level=info msg="Waiting for API server to become available"
Jul 25 22:51:42 HA-Rancher-0 rke2[2091]: time="2023-07-25T22:51:42Z" level=info msg="Waiting for cri connection: rpc error: code = Unavailable desc = connection error: desc = \"transport: Error while dialing dial unix /run/k3s/containerd/containerd.sock: connect: no such file or directory\""
Jul 25 22:51:46 HA-Rancher-0 rke2[2091]: {"level":"warn","ts":"2023-07-25T22:51:46.912Z","logger":"etcd-client","caller":"[email protected]/retry_interceptor.go:62","msg":"retrying of unary invoker failed","target":"etcd-endpoints://0xc000a1e1c0/127.0.0.1:2379","attempt":0,"error":"rpc error: code = DeadlineExceeded desc = latest balancer error: last connection error: connection error: desc = \"transport: Error while dialing dial tcp 127.0.0.1:2379: connect: connection refused\""}
Jul 25 22:51:46 HA-Rancher-0 rke2[2091]: {"level":"info","ts":"2023-07-25T22:51:46.912Z","logger":"etcd-client","caller":"[email protected]/client.go:210","msg":"Auto sync endpoints failed.","error":"context deadline exceeded"} |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 9 replies
-
It looks like containerd is failing to start for some reason. Do you have a conflicting instance of containerd and/or docker already installed and running on this host? What are the contents of |
Beta Was this translation helpful? Give feedback.
-
thank you for your help, no actaully as you can see : |
Beta Was this translation helpful? Give feedback.
-
here is a gist link : https://gist.github.com/KarimaFathi/823af6a744417d862bf430d04f5bfa49 |
Beta Was this translation helpful? Give feedback.
OK, well that would have been a good thing to mention up front. Just because your interactive shell has the HTTP_PROXY environment variables set, does not mean that they are also set for systemd services. See the documentation at https://docs.rke2.io/advanced#configuring-an-http-proxy