rancher: Rancher Server Setup Failed
Rancher Server Setup
- Rancher version: v2.6.0
- Installation option (Docker install/Helm Chart): Docker install
- Docker version: 20.10.7, build f0df350
- Mac OS version: 11.5.2 (20G95)
Describe the bug
2021/09/25 05:50:46 [INFO] Watching metadata for cluster.x-k8s.io/v1alpha3, Kind=MachineDeployment
2021/09/25 05:50:46 [INFO] Watching metadata for cluster.x-k8s.io/v1alpha3, Kind=Cluster
2021/09/25 05:50:46 [ERROR] failed to sync cache for rke-machine.cattle.io/v1, Kind=AzureMachineTemplate
2021/09/25 05:50:46 [ERROR] failed to sync cache for rke-machine.cattle.io/v1, Kind=VmwarevsphereMachineTemplate
2021/09/25 05:50:46 [ERROR] failed to sync cache for rke-machine.cattle.io/v1, Kind=AzureMachine
2021/09/25 05:50:46 [ERROR] failed to sync cache for rke-machine.cattle.io/v1, Kind=Amazonec2MachineTemplate
2021/09/25 05:50:46 [ERROR] failed to sync cache for rke-machine.cattle.io/v1, Kind=Amazonec2Machine
2021/09/25 05:50:46 [ERROR] failed to sync cache for rke-machine.cattle.io/v1, Kind=DigitaloceanMachineTemplate
2021/09/25 05:50:46 [ERROR] failed to sync cache for cluster.x-k8s.io/v1alpha3, Kind=MachineSet
2021/09/25 05:50:46 [ERROR] failed to sync cache for cluster.x-k8s.io/v1alpha3, Kind=MachineHealthCheck
2021/09/25 05:50:46 [ERROR] failed to sync cache for cluster.x-k8s.io/v1alpha3, Kind=MachineDeployment
2021/09/25 05:50:46 [ERROR] failed to sync cache for cluster.x-k8s.io/v1alpha3, Kind=Cluster
2021/09/25 05:50:46 [ERROR] failed to start controller for rke-machine.cattle.io/v1, Kind=AzureMachineTemplate: failed to wait for caches to sync
2021/09/25 05:50:46 [ERROR] failed to start controller for rke-machine.cattle.io/v1, Kind=VmwarevsphereMachineTemplate: failed to wait for caches to sync
2021/09/25 05:50:46 [ERROR] failed to start controller for rke-machine.cattle.io/v1, Kind=AzureMachine: failed to wait for caches to sync
2021/09/25 05:50:46 [ERROR] failed to start controller for rke-machine.cattle.io/v1, Kind=Amazonec2MachineTemplate: failed to wait for caches to sync
2021/09/25 05:50:46 [ERROR] failed to start controller for rke-machine.cattle.io/v1, Kind=Amazonec2Machine: failed to wait for caches to sync
2021/09/25 05:50:46 [ERROR] failed to start controller for rke-machine.cattle.io/v1, Kind=DigitaloceanMachineTemplate: failed to wait for caches to sync
2021/09/25 05:50:46 [ERROR] failed to start controller for cluster.x-k8s.io/v1alpha3, Kind=MachineSet: failed to wait for caches to sync
2021/09/25 05:50:46 [ERROR] failed to start controller for cluster.x-k8s.io/v1alpha3, Kind=MachineHealthCheck: failed to wait for caches to sync
2021/09/25 05:50:46 [ERROR] failed to start controller for cluster.x-k8s.io/v1alpha3, Kind=MachineDeployment: failed to wait for caches to sync
2021/09/25 05:50:46 [ERROR] failed to start controller for cluster.x-k8s.io/v1alpha3, Kind=Cluster: failed to wait for caches to sync
E0925 05:50:46.924412 34 gvks.go:69] failed to sync schemas: failed to sync cache for rke-machine.cattle.io/v1, Kind=AzureMachineTemplate
2021/09/25 05:50:46 [INFO] Starting rke-machine-config.cattle.io/v1, Kind=LinodeConfig controller
2021/09/25 05:50:46 [INFO] Starting rke-machine.cattle.io/v1, Kind=LinodeMachine controller
2021/09/25 05:50:48 [INFO] Watching metadata for rke-machine.cattle.io/v1, Kind=AzureMachineTemplate
2021/09/25 05:50:48 [INFO] Watching metadata for rke-machine.cattle.io/v1, Kind=VmwarevsphereMachineTemplate
2021/09/25 05:50:48 [INFO] Watching metadata for rke-machine.cattle.io/v1, Kind=AzureMachine
2021/09/25 05:50:48 [INFO] Watching metadata for rke-machine.cattle.io/v1, Kind=Amazonec2MachineTemplate
2021/09/25 05:50:48 [INFO] Watching metadata for rke-machine.cattle.io/v1, Kind=Amazonec2Machine
2021/09/25 05:50:48 [INFO] Watching metadata for rke-machine.cattle.io/v1, Kind=DigitaloceanMachineTemplate
2021/09/25 05:50:48 [INFO] Watching metadata for cluster.x-k8s.io/v1alpha3, Kind=MachineSet
2021/09/25 05:50:48 [INFO] Watching metadata for cluster.x-k8s.io/v1alpha3, Kind=MachineHealthCheck
2021/09/25 05:50:48 [INFO] Watching metadata for cluster.x-k8s.io/v1alpha3, Kind=MachineDeployment
2021/09/25 05:50:48 [INFO] Watching metadata for cluster.x-k8s.io/v1alpha3, Kind=Cluster
2021/09/25 05:50:49 [ERROR] failed to sync cache for cluster.x-k8s.io/v1alpha3, Kind=MachineDeployment
2021/09/25 05:50:49 [ERROR] failed to start controller for cluster.x-k8s.io/v1alpha3, Kind=MachineDeployment: failed to wait for caches to sync
E0925 05:50:49.228122 34 gvks.go:69] failed to sync schemas: failed to sync cache for cluster.x-k8s.io/v1alpha3, Kind=MachineDeployment
2021/09/25 05:50:49 [INFO] Starting rke-machine.cattle.io/v1, Kind=AzureMachine controller
2021/09/25 05:50:49 [INFO] Starting cluster.x-k8s.io/v1alpha3, Kind=Cluster controller
2021/09/25 05:50:49 [INFO] Starting rke-machine.cattle.io/v1, Kind=Amazonec2MachineTemplate controller
2021/09/25 05:50:49 [INFO] Starting rke-machine.cattle.io/v1, Kind=AzureMachineTemplate controller
2021/09/25 05:50:49 [INFO] Starting rke-machine.cattle.io/v1, Kind=Amazonec2Machine controller
2021/09/25 05:50:49 [INFO] Starting rke-machine.cattle.io/v1, Kind=DigitaloceanMachineTemplate controller
2021/09/25 05:50:49 [INFO] Starting cluster.x-k8s.io/v1alpha3, Kind=MachineSet controller
2021/09/25 05:50:49 [INFO] Starting cluster.x-k8s.io/v1alpha3, Kind=MachineHealthCheck controller
2021/09/25 05:50:49 [INFO] Starting rke-machine.cattle.io/v1, Kind=VmwarevsphereMachineTemplate controller
2021/09/25 05:50:50 [ERROR] error syncing 'local': handler provisioning-cluster-create: failed to create fleet-local/local provisioning.cattle.io/v1, Kind=Cluster for provisioning-cluster-create local: namespaces "fleet-local" not found, requeuing
2021/09/25 05:50:50 [INFO] Watching metadata for cluster.x-k8s.io/v1alpha3, Kind=MachineDeployment
2021/09/25 05:50:50 [INFO] Starting cluster.x-k8s.io/v1alpha3, Kind=MachineDeployment controller
2021/09/25 05:50:53 [ERROR] Failed to install system chart fleet-crd: failed to install , pod cattle-system/helm-operation-s5f9j exited 123
E0925 05:50:53.215348 34 gvks.go:69] failed to sync schemas: unable to retrieve the complete list of server APIs: gitjob.cattle.io/v1: the server could not find the requested resource
E0925 05:50:53.541505 34 gvks.go:69] failed to sync schemas: unable to retrieve the complete list of server APIs: gitjob.cattle.io/v1: the server could not find the requested resource
E0925 05:50:53.892298 34 gvks.go:69] failed to sync schemas: unable to retrieve the complete list of server APIs: gitjob.cattle.io/v1: the server could not find the requested resource
E0925 05:50:54.550331 34 gvks.go:69] failed to sync schemas: unable to retrieve the complete list of server APIs: gitjob.cattle.io/v1: the server could not find the requested resource
2021/09/25 05:51:15 [ERROR] error syncing 'machines.cluster.x-k8s.io': handler need-a-cert: services "webhook-service" not found, requeuing
2021/09/25 05:51:15 [ERROR] error syncing 'machinesets.cluster.x-k8s.io': handler need-a-cert: services "webhook-service" not found, requeuing
2021/09/25 05:51:15 [ERROR] error syncing 'machinedeployments.cluster.x-k8s.io': handler need-a-cert: services "webhook-service" not found, requeuing
2021/09/25 05:51:15 [ERROR] error syncing 'machinehealthchecks.cluster.x-k8s.io': handler need-a-cert: services "webhook-service" not found, requeuing
2021/09/25 05:51:15 [ERROR] failed to sync schemas: Post "https://127.0.0.1:6443/apis/authorization.k8s.io/v1/selfsubjectaccessreviews?timeout=15m0s": EOF
exit status 255
W0925 05:51:16.047508 34 reflector.go:437] pkg/mod/github.com/rancher/client-go@v0.21.0-rancher.1/tools/cache/reflector.go:168: watch of *unstructured.Unstructured ended with: very short watch: pkg/mod/github.com/rancher/client-go@v0.21.0-rancher.1/tools/cache/reflector.go:168: Unexpected watch close - watch lasted less than a second and no items received
W0925 05:51:16.051444 34 reflector.go:437] pkg/mod/github.com/rancher/client-go@v0.21.0-rancher.1/tools/cache/reflector.go:168: watch of *summary.SummarizedObject ended with: very short watch: pkg/mod/github.com/rancher/client-go@v0.21.0-rancher.1/tools/cache/reflector.go:168: Unexpected watch close - watch lasted less than a second and no items received
W0925 05:51:16.051062 34 reflector.go:437] pkg/mod/github.com/rancher/client-go@v0.21.0-rancher.1/tools/cache/reflector.go:168: watch of *v3.GlobalRoleBinding ended with: very short watch: pkg/mod/github.com/rancher/client-go@v0.21.0-rancher.1/tools/cache/reflector.go:168: Unexpected watch close - watch lasted less than a second and no items received
W0925 05:51:16.051708 34 reflector.go:437] pkg/mod/github.com/rancher/client-go@v0.21.0-rancher.1/tools/cache/reflector.go:168: watch of *v3.Cluster ended with: very short watch: pkg/mod/github.com/rancher/client-go@v0.21.0-rancher.1/tools/cache/reflector.go:168: Unexpected watch close - watch lasted less than a second and no items received
W0925 05:51:16.052218 34 reflector.go:437] pkg/mod/github.com/rancher/client-go@v0.21.0-rancher.1/tools/cache/reflector.go:168: watch of *v3.Setting ended with: very short watch: pkg/mod/github.com/rancher/client-go@v0.21.0-rancher.1/tools/cache/reflector.go:168: Unexpected watch close - watch lasted less than a second and no items received
W0925 05:51:16.052863 34 reflector.go:437] pkg/mod/github.com/rancher/client-go@v0.21.0-rancher.1/tools/cache/reflector.go:168: watch of *v3.MultiClusterApp ended with: very short watch: pkg/mod/github.com/rancher/client-go@v0.21.0-rancher.1/tools/cache/reflector.go:168: Unexpected watch close - watch lasted less than a second and no items received
W0925 05:51:16.053464 34 reflector.go:437] pkg/mod/github.com/rancher/client-go@v0.21.0-rancher.1/tools/cache/reflector.go:168: watch of *v1.Secret ended with: very short watch: pkg/mod/github.com/rancher/client-go@v0.21.0-rancher.1/tools/cache/reflector.go:168: Unexpected watch close - watch lasted less than a second and no items received
W0925 05:51:16.053998 34 reflector.go:437] pkg/mod/github.com/rancher/client-go@v0.21.0-rancher.1/tools/cache/reflector.go:168: watch of *v3.SourceCodeCredential ended with: very short watch: pkg/mod/github.com/rancher/client-go@v0.21.0-rancher.1/tools/cache/reflector.go:168: Unexpected watch close - watch lasted less than a second and no items received
W0925 05:51:16.054942 34 reflector.go:437] pkg/mod/github.com/rancher/client-go@v0.21.0-rancher.1/tools/cache/reflector.go:168: watch of *v3.RoleTemplate ended with: very short watch: pkg/mod/github.com/rancher/client-go@v0.21.0-rancher.1/tools/cache/reflector.go:168: Unexpected watch close - watch lasted less than a second and no items received
W0925 05:51:16.056002 34 reflector.go:437] pkg/mod/github.com/rancher/client-go@v0.21.0-rancher.1/tools/cache/reflector.go:168: watch of *v3.App ended with: very short watch: pkg/mod/github.com/rancher/client-go@v0.21.0-rancher.1/tools/cache/reflector.go:168: Unexpected watch close - watch lasted less than a second and no items received
W0925 05:51:16.056182 34 reflector.go:437] pkg/mod/github.com/rancher/client-go@v0.21.0-rancher.1/tools/cache/reflector.go:168: watch of *v3.AuthConfig ended with: very short watch: pkg/mod/github.com/rancher/client-go@v0.21.0-rancher.1/tools/cache/reflector.go:168: Unexpected watch close - watch lasted less than a second and no items received
W0925 05:51:16.056677 34 reflector.go:437] pkg/mod/github.com/rancher/client-go@v0.21.0-rancher.1/tools/cache/reflector.go:168: watch of *v3.Token ended with: very short watch: pkg/mod/github.com/rancher/client-go@v0.21.0-rancher.1/tools/cache/reflector.go:168: Unexpected watch close - watch lasted less than a second and no items received
W0925 05:51:16.056933 34 reflector.go:437] pkg/mod/github.com/rancher/client-go@v0.21.0-rancher.1/tools/cache/reflector.go:168: watch of *v3.CatalogTemplate ended with: very short watch: pkg/mod/github.com/rancher/client-go@v0.21.0-rancher.1/tools/cache/reflector.go:168: Unexpected watch close - watch lasted less than a second and no items received
W0925 05:51:16.057875 34 reflector.go:437] pkg/mod/github.com/rancher/client-go@v0.21.0-rancher.1/tools/cache/reflector.go:168: watch of *v3.RkeAddon ended with: very short watch: pkg/mod/github.com/rancher/client-go@v0.21.0-rancher.1/tools/cache/reflector.go:168: Unexpected watch close - watch lasted less than a second and no items received
W0925 05:51:16.058262 34 reflector.go:437] pkg/mod/github.com/rancher/client-go@v0.21.0-rancher.1/tools/cache/reflector.go:168: watch of *v3.APIService ended with: very short watch: pkg/mod/github.com/rancher/client-go@v0.21.0-rancher.1/tools/cache/reflector.go:168: Unexpected watch close - watch lasted less than a second and no items received
W0925 05:51:16.058500 34 reflector.go:437] pkg/mod/github.com/rancher/client-go@v0.21.0-rancher.1/tools/cache/reflector.go:168: watch of *summary.SummarizedObject ended with: very short watch: pkg/mod/github.com/rancher/client-go@v0.21.0-rancher.1/tools/cache/reflector.go:168: Unexpected watch close - watch lasted less than a second and no items received
W0925 05:51:16.059515 34 reflector.go:437] pkg/mod/github.com/rancher/client-go@v0.21.0-rancher.1/tools/cache/reflector.go:168: watch of *summary.SummarizedObject ended with: very short watch: pkg/mod/github.com/rancher/client-go@v0.21.0-rancher.1/tools/cache/reflector.go:168: Unexpected watch close - watch lasted less than a second and no items received
W0925 05:51:16.060260 34 reflector.go:437] pkg/mod/github.com/rancher/client-go@v0.21.0-rancher.1/tools/cache/reflector.go:168: watch of *v3.CatalogTemplateVersion ended with: very short watch: pkg/mod/github.com/rancher/client-go@v0.21.0-rancher.1/tools/cache/reflector.go:168: Unexpected watch close - watch lasted less than a second and no items received
W0925 05:51:16.064785 34 reflector.go:437] pkg/mod/github.com/rancher/client-go@v0.21.0-rancher.1/tools/cache/reflector.go:168: watch of *v1.Endpoints ended with: very short watch: pkg/mod/github.com/rancher/client-go@v0.21.0-rancher.1/tools/cache/reflector.go:168: Unexpected watch close - watch lasted less than a second and no items received
2021/09/25 05:51:16 [FATAL] k3s exited with: exit status 255
To Reproduce
docker run -d --restart=unless-stopped \
-p 80:80 -p 443:443 \
--privileged \
rancher/rancher:v2.6.0
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Reactions: 8
- Comments: 16 (1 by maintainers)
How to solve this problem, I also encountered this problem