Free ops runbook · Cloudflare Tunnel

Cloudflare Tunnel HA: the restart that becomes a 1033 for everyone

A tunnel is one object. The connectors behind it are processes you run, feed and watch. When the only connector restarts, Cloudflare has no healthy instance to hand the request to and returns 1033 — the tunnel was never the thing that failed.

This page is free. It separates the tunnel, the connector and the origin, shows the read-only checks that say which of the three is down, and lists the ways a second replica quietly makes things worse.

Scope: reviewed from the Cloudflare Tunnel documentation, no live reproduction
Verified against the Cloudflare Tunnel overview, troubleshooting, error 1033 and tunnel metrics documentation on 2026-12-03. Command output below is the expected shape, not a capture from a live tunnel. Confirm behaviour against your installed cloudflared version.
Read the state

Tunnel, connector, origin

One tunnel, many connectors

The tunnel is a UUID and a DNS target. A connector is a cloudflared process attached to it. You can run several connectors per tunnel; deleting a connector does not delete the tunnel.

1033 is "no healthy connector"

Cloudflare could not find a cloudflared instance to accept the request. A 502 is different: a connector accepted it and the origin behind it did not answer.

Status is a connection count

Healthy or Degraded reflects how many connections the edge currently holds, not whether each origin behind them serves the right app. A connected replica can still route to the wrong port.

Local config is per host

With a locally-managed tunnel, the ingress rules live in each connector's own configuration file. Editing one host does not update the others; that is the most common replica drift.

Detect

Read-only checks, in order

Command or viewWhat it tells you
cloudflared tunnel listTunnel ID, status and connection count. Zero connections means nothing can receive traffic, whatever the dashboard last cached.
cloudflared tunnel info <name>Each connector's ID, edge location and protocol. Compare the list with the hosts you believe are running it.
cloudflared tunnel ingress validateParses the local configuration and enforces the required final catch-all rule. Run it on every host, not just the one you edited.
cloudflared tunnel ingress rule https://app.internal/pathWhich rule a URL matches. Rules are evaluated in order and the first match wins, so a broad rule above a specific one hides the specific one.
curl -s http://127.0.0.1:20241/metrics | grep cloudflared_tunnel_ha_connectionsCurrent HA connections for this connector. The metrics server binds the first free port in 20241–20245 unless --metrics sets one.
systemctl status cloudflared; journalctl -u cloudflared -n 100 --no-pagerRestart loop, credential failure, configuration parse error, or a connector that exited and was never restarted.
dig +short app.internalMust be a proxied CNAME to the current tunnel's <uuid>.cfargotunnel.com. An old UUID gives 1033 while the tunnel itself is healthy.
curl -sI https://app.internalThe public path: 1033, 502 or the origin's own status. This is the only check that sees what a user sees.
Failure modes

Seven ways a healthy tunnel still fails

#Failure modeWhat you seeWhat to do
1One connector and no second hostA kernel update or a reboot takes the only connector down, and every hostname returns 1033 until it is back.Run at least two connectors on separate hosts, each with a restart policy and its own alert.
2A replica with a stale local configHalf the requests return 502 or the wrong app; the connector is connected and its own logs look normal.Render the configuration from one source per host, mount it read-only, and validate on every deploy.
3A loopback origin from a containerThe connector is healthy and the origin is another container, so 127.0.0.1 inside the connector's namespace is not the app.Point the service at the shared network name or the host address, not loopback.
4The unit is not enabled to restartThe process exits on a credential or config error, the tunnel goes Degraded and then Down, and nothing restarts it.Use Restart=on-failure with a bounded delay, and alert on a restart counter, not only on uptime.
5A recreated tunnel with the old DNS targetThe new tunnel is Active, the old one is gone, and the CNAME still points at the old UUID: 1033 with no connector problem.Recreate the route with cloudflared tunnel route dns and verify the CNAME target rather than assuming it moved.
6A missing or careless catch-allThe configuration is rejected and the connector exits; or a catch-all forwards unmatched hostnames to a default app nobody meant to publish.End the ingress list with service: http_status:404 and no hostname.
7Monitoring the origin, not the hostnameDirect origin checks pass while the public hostname returns 1033, because the check never went through Cloudflare.Probe the public hostname through the edge, and scrape the connector metrics as a second signal.
Design

What to decide before the next restart

DecisionQuestion to answer
Failure domainAre the connectors on different hosts, racks or providers, or do they share the same hypervisor and the same maintenance window?
Config sourceIs there one template rendered per host, or do people edit files in place and hope the replicas match?
Origin addressIs the service address valid inside the connector's network namespace, and does it survive a container restart?
Restart policyDoes the unit restart on failure, and is the backoff short enough to recover from a transient edge disconnect?
AlertingDoes anything page when HA connections fall below two, when the public hostname returns 1033, or when a connector restarts repeatedly?
Credential rotationCan the tunnel credentials be rotated one connector at a time, without a window where every replica is offline?
Verify

Four drills in staging

Pull one connector

Stop cloudflared on one host and confirm requests still return 200 and the remaining connection count stays above zero.

Force a stale config

Change a rule on one host only, then compare ingress rule output across hosts. The divergence should be visible before a user reports it.

Stop the origin

With the connector running, stop the app. Expect 502 rather than 1033, which proves the connector is healthy and the origin is the fault.

Repoint a staging hostname

Point a staging name at a second tunnel. Confirm 1033 with the old UUID and 200 after the CNAME update, so the DNS failure mode is familiar before production.

FAQ

Questions from the on-call channel

The dashboard says the tunnel is healthy. Why 1033?

Healthy describes the connector connections, not the hostname. Check the CNAME target, then the ingress rules on each connector. A tunnel can be connected and still have no rule that matches the hostname you requested.

Should we run two connectors per tunnel or two tunnels?

Two connectors on one tunnel is the usual HA shape: the same DNS target and the same rules, with two processes to lose. Two tunnels need two DNS targets or a load balancer, and they double the configuration you must keep in sync.

Why do only some requests fail?

Different connectors, different configs, or one origin only reachable from one host. Correlate the failing request with the connector that served it — the cf-ray and the connector logs give you that pair.

Can we just restart the tunnel service everywhere?

That fixes a stuck connector only sometimes, and it destroys the evidence. Read the exit reason and the config validation first; restarting all replicas at once turns a partial outage into a full one.

Sources

Primary sources

One connector is not high availability

The paid runbooks cover the surrounding change windows: a platform default that moves under you, a cache rule that hides a deploy, and a rollback you can actually execute.

This page is free, no checkout. Paid runbooks are $9.99 each and covered by the 7-day refund policy at /runbooks/refund.