Diagnose a Rancher Managed Cluster Stuck in Unavailable or Connecting
A downstream cluster shows Unavailable or Connecting while workloads keep running. Use this diagnostic guide to check agent connectivity, certificates, and registration tokens.
04 Sept 2026, 16:42 UTC

The problem and what to check first
A Rancher-managed downstream cluster appears as Unavailable or Connecting in the Rancher UI, while pods and workloads inside that cluster continue running normally. The useful takeaway is that this is usually a control-channel problem between the cluster and the Rancher server, not a failure of the cluster itself. You can diagnose most causes from a node inside the downstream cluster without editing the Rancher server database.
A downstream cluster is a Kubernetes cluster managed by Rancher but running on infrastructure separate from the Rancher server. The cattle-cluster-agent is the Deployment inside that cluster that maintains the WebSocket or gRPC control channel Rancher uses to run commands, fetch cluster state, and display the cluster in the UI.
Recognizable condition and likely causes
Use the table below to match what you see in the Rancher UI and agent logs to the most likely cause.
| Observed symptom | Likely cause | Where to look first |
|---|---|---|
| Cluster stays Unavailable or Connecting; agent pod in CrashLoopBackOff | Image pull failure or missing RBAC permissions for the agent | kubectl -n cattle-system logs -l app=cattle-cluster-agent |
| Repeated dial timeout or connection refused in agent logs | Firewall or security group blocking outbound TCP 443 to the Rancher server | Network reachability test from a downstream node |
| x509 certificate signed by unknown authority or hostname mismatch | Expired or mismatched Rancher server TLS certificate, or missing CA trust on the downstream node | Agent logs and server certificate expiry date |
| Unauthorized or invalid token errors | Cluster registration token revoked, rotated, or mismatched with the current Rancher API endpoint | Cluster registration command or YAML in the Rancher UI |
Ordered diagnostic checks
Run these checks in order. Each check is read-only and does not interrupt workloads running inside the cluster.
Check 1: Confirm outbound reachability to the Rancher server
Where to run: Any node in the downstream cluster.
Required permissions: Shell access to the node. No special Kubernetes permissions are needed for this network test.
Command:
curl -vI https://:443
Alternatively, if curl is not installed:
nc -zv 443
Expected result: A TLS handshake and an HTTP response. The status code may be 200, 301, or 403 depending on the Rancher server path, but the connection must not time out.
Risk: None. This is an outbound read-only probe.
If the command hangs or returns a timeout, network blocking is the likely cause. Proceed to the firewall fix below.
Check 2: Inspect the cattle-cluster-agent logs
Where to run: A machine with kubectl configured to target the downstream cluster.
Required permissions: Read access to the cattle-system namespace in the downstream cluster.
Command:
kubectl -n cattle-system get pods -l app=cattle-cluster-agent kubectl -n cattle-system logs -l app=cattle-cluster-agent --tail=100
Expected result: At least one agent pod in Running status, and recent log lines showing a successful connection or registration to the Rancher server. Look for dial timeout, connection refused, x509, or unauthorized messages.
Risk: None. Log inspection is read-only.
Check 3: Verify the cluster registration endpoint and token
Where to run: The Rancher UI, under the cluster's registration details, or the YAML manifest used to install the agent.
Required permissions: Rancher administrator or cluster owner.
What to check:
- The Rancher server FQDN in the registration command matches the address reachable from Check 1.
- The registration token has not been revoked or rotated.
- The agent Deployment image is available to the downstream cluster's container runtime.
Risk: None for inspection. Re-running registration restarts the agent, which briefly interrupts Rancher's ability to monitor the cluster but does not stop workloads.
Fixes tied to findings
| Finding | Corrective action |
|---|---|
| Port 443 unreachable from downstream nodes | Open outbound TCP 443 from the downstream cluster's node subnet to the Rancher server FQDN in your firewall, security group, or network policy. Confirm the FQDN resolves to the correct Rancher server IP. |
| x509 certificate errors | Replace expired or mismatched Rancher server certificates. If you use a custom certificate authority, ensure the downstream cluster trusts that CA. Behavior differs between Rancher versions, so confirm your server version before applying certificate procedures. |
| Invalid or revoked registration token | In the Rancher UI, re-run the cluster registration command for the affected cluster. This refreshes the agent token and restarts cattle-cluster-agent with the current endpoint. |
| Agent CrashLoopBackOff from image pull or RBAC | Correct the image pull credentials or update the agent's Role and RoleBinding in the cattle-system namespace so the service account can read secrets and update cluster status. |
Escalation criteria
Engage Rancher support or file an issue if any of the following are true:
- The agent remains unhealthy after you validate network reachability, TLS certificates, and the registration token.
- Rancher server logs show persistent WebSocket or gRPC handshake failures across multiple downstream clusters at the same time.
- You suspect a server-side database or etcd inconsistency. Do not edit the Rancher server database or etcd directly to force cluster state; restore from a validated backup instead.
Limitations and verification
Agent restart briefly interrupts Rancher's ability to monitor or manage the cluster, but workloads inside the cluster keep running. Behavior and log paths can differ between Rancher server versions and between RKE2, K3s, and other downstream installers; confirm your versions before applying version-specific commands.
To verify the result after applying a fix:
- From any node in the downstream cluster, run
curl -vI https://and confirm a TLS handshake and HTTP response on port 443. - Run
kubectl -n cattle-system get pods -l app=cattle-cluster-agentand confirm the agent pod isRunningwith recent log entries showing a successful connection to the Rancher server. - Refresh the cluster page in the Rancher UI and confirm the state transitions from
UnavailableorConnectingtoActivewithin a few minutes.
If the state does not change after several minutes, repeat Check 2 and look for new error messages in the agent logs before escalating.