Repository navigation
Description
Describe the bug
When a specific Cloudflare edge address starts failing the control stream, cloudflared retries that same address indefinitely instead of rotating to another edge address. The connector never recovers on its own.
The failure is silent to every health signal we have:
cloudflared_tunnel_ha_connectionsstays pinned at 4/4 for the entire outage, because reconnection is immediate.- The
/readyendpoint reports unhealthy only at zero connections, so liveness never trips. - Meanwhile Cloudflare stops routing traffic to the connector, so it serves ~0 requests while reporting full health.
The edge address itself was not permanently broken. It recovered on its own and is now serving five of our connectors with zero failures. Only the connectors that were attached to it during the fault window stayed stuck — until we deleted the pods manually.
To Reproduce
We cannot trigger the edge-side fault on demand, so this is an observed production incident rather than a deterministic repro. What we saw:
- Run
cloudflaredas a Kubernetes Deployment with multiple replicas (4 HA connections per pod, the default). - An edge address begins failing the control stream.
- Affected connectors log
failed to serve tunnel connection+Retrying connection in up to 1m4sagainst the sameip=roughly every 15s, indefinitely. cloudflared_tunnel_ha_connectionsremains 4.quic_client_closed_connectionsclimbs at ~232/hour.- Traffic to those connectors drops to approximately zero. No health signal changes.
- Deleting the pod resolves it — the replacement resolves to a different edge address and is immediately stable.
Two connectors were affected simultaneously. They belonged to different tunnels and ran on different Kubernetes nodes, with the only common factor being the edge address they had attached to.
Expected behavior
After N consecutive control-stream failures against the same edge address, cloudflared should attempt a different edge address rather than retrying the same one indefinitely.
Secondarily: a connector that is registered but persistently failing its control stream should be distinguishable from a healthy one. Today cloudflared_tunnel_ha_connections reports 4/4 in both cases, which makes the condition undetectable without correlating connection-close rate against per-pod request volume.
Environment and versions
- OS: Linux (Kubernetes,
cloudflare/cloudflaredcontainer image) - Architecture: AMD64
- Version: 2026.8.2
- Transport: QUIC (one affected tunnel used
--protocol quic, the other left--protocolunset) - Replicas: 12 and 5 respectively; 4 HA connections per pod
Logs and errors
Repeating pair, ~232 times/hour per affected connector (hostnames and identifiers redacted):
WRN failed to serve tunnel connection error="control stream encountered a failure while serving" connIndex=<n> event=0
INF Retrying connection in up to 1m4s connIndex=<n> event=0 ip=198.41.192.67
Edge address distribution over a 10-minute window during the incident:
affected connector A: ip=198.41.192.67 x342 <- single address, no alternatives attempted
affected connector B: ip=198.41.192.67 x396
ip=198.41.192.77 x6
ip=198.41.200.233 x2
healthy connector: ip=198.41.192.227 x248
healthy connector: ip=198.41.192.37 x34
Connector A attempted no address other than 198.41.192.67 across 342 connection attempts.
After deleting the two pods, their replacements attached to other addresses and logged zero control-stream failures:
replacement A: ip=198.41.192.77, 198.41.200.23, 198.41.200.193, 198.41.192.167
replacement B: ip=198.41.192.77, 198.41.200.233, 198.41.200.193, 198.41.192.7
Metrics
| signal | affected connectors | healthy connectors |
|---|---|---|
cloudflared_tunnel_ha_connections |
4 (min and max, whole outage) | 4 |
quic_client_closed_connections |
~232/hour each | 0 |
cloudflared_tunnel_total_requests |
17/hour | ~30,000/hour |
quic_client_smoothed_rtt |
normal (3–5 ms) | 3–5 ms |
quic_client_lost_packets |
not elevated (5% of fleet total) | — |
Across 26 connectors, these two accounted for 100% of connection closes.
Additional context
- Duration: intermittent from
2026-10-16 21:10 UTC, sustained from2026-10-17 01:20 UTC, resolved by manual pod deletion at2026-10-17 05:30 UTC. - RTT and packet loss were normal on the affected pods throughout, and they were on different nodes from each other, so this does not appear to be local network conditions.
- A third connector on another tunnel showed the same pattern against the same address in a self-resolving one-hour burst, which is what led us to suspect the edge address rather than our infrastructure.
- Tunnel IDs and account identifiers are omitted here because this repository is public. Happy to provide them through a support channel if useful.
Activity
hamidrezaaghadash1375-cpu commentedon Oct 31, 2026
Good