Tunnel

Last updated Sep 2, 2026 Explore common issues and solutions for Cloudflare Tunnel.

I see cloudflared service is already installed.

If you see this error when installing a remotely-managed tunnel, ensure that no other cloudflared instances are running as a service on this machine. Only a single instance of cloudflared may run as a service on any given machine. Instead, add additional routes to your existing tunnel. Alternatively, you can run sudo cloudflared service uninstall to uninstall cloudflared.

I see An A, AAAA, or CNAME record with that host already exists.

If you are unable to save your tunnel's public hostname, choose a different hostname or delete the existing DNS record. Check the DNS records for your domain from the Cloudflare dashboard ↗︎.

Tunnel credentials file does not exist or is not a file.

If you encounter the following error when running a tunnel, double check your config.yml file and ensure that the credentials-file points to the correct location. You may need to change /root/ to your home directory.

cloudflared tunnel run
2021-06-04T06:21:16Z INF Starting tunnel tunnelID=928655cc-7f95-43f2-8539-2aba6cf3592d
Tunnel credentials file '/root/.cloudflared/928655cc-7f95-43f2-8539-2aba6cf3592d.json' doesn't exist or is not a file

My tunnel fails to authenticate.

To start using Cloudflare Tunnel, a super administrator in the Cloudflare account must first log in through cloudflared login. The client will launch a browser window and prompt the user to select a hostname in their Cloudflare account. Once selected, Cloudflare generates a certificate that consists of three components:

  • The public key of the origin certificate for that hostname
  • The private key of the origin certificate for that domain
  • A token that is unique to Cloudflare Tunnel

Those three components are bundled into a single PEM file that is downloaded one time during that login flow. The host certificate is valid for the root domain and any subdomain one-level deep. Cloudflare uses that certificate file to authenticate cloudflared to create DNS records for your domain in Cloudflare.

The third component, the token, consists of the zone ID (for the selected domain) and an API token scoped to the user who first authenticated with the login command. When user permissions change (if that user is removed from the account or becomes an admin of another account, for example), Cloudflare rolls the user's API key. However, the certificate file downloaded through cloudflared retains the older API key and can cause authentication failures. The user will need to login once more through cloudflared to regenerate the certificate. Alternatively, the administrator can create a dedicated service user to authenticate.

I see an error: x509: certificate signed by unknown authority.

This means the origin is using a certificate that cloudflared does not trust. For example, you may get this error if you are using SSL/TLS inspection in a proxy between your server and Cloudflare. To resolve:

  • Add the CA certificate to the system trust store, then restart cloudflared.
  • Set caPool to a local PEM file that contains the CA certificate.
  • As a temporary last resort, set noTLSVerify to true. Turn it off after you fix the certificate trust chain.

The --origin-ca-pool and --no-tls-verify command-line flags apply only when you define a single origin with --url. For ingress rules, configure these settings under originRequest.

I see an error 1033 when attempting to run a tunnel.

A 1033 error indicates your tunnel is not connected to Cloudflare's network because Cloudflare's network cannot find a healthy cloudflared instance to receive the traffic.

First, review whether your tunnel is listed as Active in the Cloudflare dashboard ↗︎ by going to Networking > Tunnels or run cloudflared tunnel list. If the tunnel is not Active, review the following and take the action necessary for your tunnel status:

Status Meaning Recommended Action
Healthy The tunnel is active and serving traffic through four connections to the Cloudflare global network. No action is required. Your tunnel is running correctly.
Inactive The tunnel has been created (via the API or dashboard) but the cloudflared connector has never been run to establish a connection. Install and run cloudflared on your origin server to connect the tunnel to Cloudflare. You can find the installation command in the Cloudflare dashboard under Networking > Tunnels — select your tunnel, then on the Overview tab select Add a replica. For API-based setup, refer to Install and run the tunnel.
Down The tunnel was previously connected but is currently disconnected because the cloudflared process has stopped. 1. Ensure the cloudflared service or process is actively running on your server. <br> 2. Check for server-side issues, such as the machine being powered off, an application crash, or recent network changes.
Degraded The cloudflared connector is running and the tunnel is serving traffic, but at least one individual connection has failed. Further degradation in tunnel availability could risk the tunnel going down and failing to serve traffic. 1. Review your cloudflared logs for connection failures or error messages. <br> 2. Investigate local network and firewall rules to ensure they are not blocking connections to the Cloudflare Tunnel IPs and ports. <br>

If your tunnel is Active but you still receive 1033 errors, verify that your DNS record points to the correct tunnel subdomain. On accounts in Cloudflare's FedRAMP High ↗︎ environment, CNAME records must point to <UUID>.fed-cfargotunnel.com. A CNAME record that points to <UUID>.cfargotunnel.com returns 1033 errors even when the tunnel is healthy. For more information, refer to DNS records.

For more information, refer to the comprehensive list of Cloudflare 1xxx errors.

I see a 502 Bad Gateway error when connecting to an HTTP or HTTPS application through tunnel.

A 502 Bad Gateway error with Unable to reach the origin service. The service may be down or it may not be responding to traffic from cloudflared on a tunnel route means the tunnel itself is connected to the Cloudflare network, but cloudflared cannot reach the origin service defined in your ingress rule. Unlike error 1033, which indicates the tunnel is not connected to Cloudflare, a 502 error indicates the problem is between cloudflared and your local service.

To identify the specific cause, review your Tunnel logs for error-level messages. Common causes include:

Origin service is not running

If the origin service has stopped or never started, cloudflared logs will show an error similar to:

error="dial tcp [::1]:8080: connect: connection refused"

To resolve, verify the service is running and listening on the expected port:

curl -v http://localhost:8080

If the service is not running, start or restart it. You can confirm the service is listening by running ss -tlnp | grep <PORT> (Linux) or lsof -iTCP -sTCP:LISTEN -nP | grep <PORT> (macOS).

Origin service URL uses the wrong protocol

If the origin expects HTTPS but the tunnel route specifies http://, or vice versa, cloudflared logs will show an error similar to:

error="net/http: HTTP/1.x transport connection broken: malformed HTTP response \"\x15\x03\x01\x00\x02\x02\""

To resolve, update the service URL in your tunnel route to match the protocol your origin expects. For example, change http://localhost:8080 to https://localhost:8080. If you are using a locally-managed tunnel, update your ingress rule in the configuration file.

Origin service URL points to the wrong port

If the port in your tunnel route does not match the port your service is listening on, cloudflared will log a connection refused error for that port. Double-check the service URL in your ingress rule and compare it against the port your application is bound to.