adamant-kite-43734
07/17/2024, 9:05 PMacoustic-addition-45641
07/17/2024, 9:07 PMcurl -k https://<harvester-VIP>
and get the "dashboard" response, so network path is not an issue (all nodes and VIP on the same Layer-2 VLAN).red-king-19196
07/18/2024, 3:42 AMacoustic-addition-45641
07/18/2024, 2:14 PMred-king-19196
07/18/2024, 3:33 PMsystemctl status rke2-service.service
acoustic-addition-45641
07/18/2024, 3:34 PMsystemctl status rke2-service.service
Unit rke2-service.service could not be found.
red-king-19196
07/18/2024, 3:36 PMrke2-server.service
acoustic-addition-45641
07/18/2024, 3:46 PMless
Here is the output:acoustic-addition-45641
07/18/2024, 3:46 PMred-king-19196
07/18/2024, 3:57 PMls -l /var/lib/rancher/rke2/agent/
acoustic-addition-45641
07/18/2024, 4:00 PMls -l /var/lib/rancher/rke2/agent/
total 64
-rw------- 1 root root 570 Jul 18 15:58 client-ca.crt
drwxr-xr-x 2 root root 4096 Jul 10 17:20 client-kube-proxy.crt
drwxr-xr-x 2 root root 4096 Jul 10 17:20 client-kube-proxy.key
-rw------- 1 root root 1193 Jul 18 15:58 client-kubelet.crt
-rw------- 1 root root 227 Jul 18 15:58 client-kubelet.key
drwx------ 17 root root 4096 Jul 16 00:11 containerd
drwx------ 3 root root 4096 Jun 27 20:26 etc
drwxr-xr-x 2 root root 4096 Jun 27 20:37 images
-rw------- 1 root root 464 Jul 18 15:58 kubelet.kubeconfig
-rw------- 1 root root 470 Jul 10 16:20 kubeproxy.kubeconfig
drwxr-xr-x 2 root root 4096 Jul 16 22:04 logs
drwx------ 2 root root 4096 Jul 17 19:23 pod-manifests
-rw------- 1 root root 480 Jul 10 16:20 rke2controller.kubeconfig
-rw------- 1 root root 574 Jul 18 15:58 server-ca.crt
-rw------- 1 root root 1226 Jul 18 15:58 serving-kubelet.crt
-rw------- 1 root root 227 Jul 18 15:58 serving-kubelet.key
acoustic-addition-45641
07/18/2024, 4:11 PMharvester-test-03:~ # ls /var/lib/rancher/rke2/agent/ -l
total 72
-rw------- 1 root root 570 Jul 10 17:18 client-ca.crt
-rw------- 1 root root 1149 Jul 10 17:18 client-kube-proxy.crt
-rw------- 1 root root 227 Jul 10 17:18 client-kube-proxy.key
-rw------- 1 root root 1197 Jul 10 17:18 client-kubelet.crt
-rw------- 1 root root 227 Jul 10 17:18 client-kubelet.key
-rw------- 1 root root 1157 Jul 10 17:18 client-rke2-controller.crt
-rw------- 1 root root 227 Jul 10 17:18 client-rke2-controller.key
drwx------ 17 root root 4096 Jul 10 17:18 containerd
drwx------ 3 root root 4096 Jun 27 20:36 etc
drwxr-xr-x 2 root root 4096 Jun 27 20:39 images
-rw------- 1 root root 464 Jul 10 17:18 kubelet.kubeconfig
-rw------- 1 root root 470 Jul 10 17:18 kubeproxy.kubeconfig
drwxr-xr-x 2 root root 4096 Jun 27 20:36 logs
drwx------ 2 root root 4096 Jul 10 17:18 pod-manifests
-rw------- 1 root root 480 Jul 10 17:18 rke2controller.kubeconfig
-rw------- 1 root root 574 Jul 10 17:18 server-ca.crt
-rw------- 1 root root 1222 Jul 10 17:18 serving-kubelet.crt
-rw------- 1 root root 227 Jul 10 17:18 serving-kubelet.key
red-king-19196
07/18/2024, 4:47 PMsystemctl status rancher-system-agent.service
acoustic-addition-45641
07/18/2024, 5:08 PMsystemctl status rancher-system-agent.service | more
● rancher-system-agent.service - Rancher System Agent
Loaded: loaded (/etc/systemd/system/rancher-system-agent.service; enabled; vendor preset: disabled)
Drop-In: /etc/systemd/system/rancher-system-agent.service.d
└─env.conf
Active: activating (auto-restart) (Result: exit-code) since Thu 2024-07-18 17:07:49 UTC; 906ms ago
Docs: <https://www.rancher.com>
Process: 32529 ExecStart=/opt/rancher-system-agent/bin/rancher-system-agent sentinel (code=exited, stat
us=1/FAILURE)
Main PID: 32529 (code=exited, status=1/FAILURE)
red-king-19196
07/19/2024, 12:23 AMacoustic-addition-45641
07/19/2024, 12:23 PM/var/log/console.log
(system), RKE2 log, or Rancher system agent log? I may need some command direction if it is the RKE2 or agent logs that I need to pull.
And, huge thanks for helping with this.red-king-19196
07/19/2024, 1:42 PMjournalctl -u rancher-system-agent -f
acoustic-addition-45641
07/19/2024, 1:53 PMjournalctl -u rancher-system-agent -f
Jul 19 13:51:08 harvester-test-02 rancher-system-agent[306]: time="2024-07-19T13:51:08Z" level=info msg="Starting remote watch of plans"
Jul 19 13:51:11 harvester-test-02 rancher-system-agent[306]: time="2024-07-19T13:51:11Z" level=fatal msg="error while connecting to Kubernetes cluster: Get \"<https://10.53.232.72/version>\": dial tcp 10.53.232.72:443: connect: no route to host"
Jul 19 13:51:11 harvester-test-02 systemd[1]: rancher-system-agent.service: Main process exited, code=exited, status=1/FAILURE
Jul 19 13:51:11 harvester-test-02 systemd[1]: rancher-system-agent.service: Failed with result 'exit-code'.
Jul 19 13:51:16 harvester-test-02 systemd[1]: rancher-system-agent.service: Scheduled restart job, restart counter is at 15231.
Jul 19 13:51:16 harvester-test-02 systemd[1]: Stopped Rancher System Agent.
Jul 19 13:51:16 harvester-test-02 systemd[1]: Started Rancher System Agent.
Jul 19 13:51:16 harvester-test-02 rancher-system-agent[328]: time="2024-07-19T13:51:16Z" level=info msg="Rancher System Agent version v0.3.6 (41c07d0) is starting"
Jul 19 13:51:16 harvester-test-02 rancher-system-agent[328]: time="2024-07-19T13:51:16Z" level=info msg="Using directory /var/lib/rancher/agent/work for work"
Jul 19 13:51:16 harvester-test-02 rancher-system-agent[328]: time="2024-07-19T13:51:16Z" level=info msg="Starting remote watch of plans"
red-king-19196
07/22/2024, 7:25 AMacoustic-addition-45641
07/22/2024, 2:18 PMharvester-test-02:/var/lib/rancher/rke2/agent/client-kube-proxy.crt # ls -al
total 8
drwxr-xr-x 2 root root 4096 Jul 10 17:20 .
drwxr-xr-x 9 root root 4096 Jul 17 19:23 ..
harvester-test-02:/var/lib/rancher/rke2/agent/client-kube-proxy.crt # cd ..
harvester-test-02:/var/lib/rancher/rke2/agent # cd client-kube-proxy.key/
harvester-test-02:/var/lib/rancher/rke2/agent/client-kube-proxy.key # ls -al
total 8
drwxr-xr-x 2 root root 4096 Jul 10 17:20 .
drwxr-xr-x 9 root root 4096 Jul 17 19:23 ..
harvester-test-02:/var/lib/rancher/rke2/agent/client-kube-proxy.key #
red-king-19196
07/22/2024, 2:27 PMacoustic-addition-45641
07/22/2024, 2:30 PMred-king-19196
07/22/2024, 2:36 PMIf I remove the two directories, will the agent rebuild/import the necessary .key and .crt files? Or do I also need to plan on copying the files from a running server?rke2-server will write data to the path where the cert and key are supposed to be (according to the logs). We’re just helping by removing the obstacle.
acoustic-addition-45641
07/22/2024, 3:20 PM