Troubleshooting

First checks#

cloudify --version && cloudflared --version
cloudify tunnel list                 # status, routes, auto-start, and whether each tunnel still exists in Cloudflare
cloudify tunnel status <name>        # process, connections to Cloudflare, routes

Logs:

  • Tunnels started directly: ~/.cloudflared/logs/<name>.log
  • systemd: journalctl --user -u cloudflared-tunnel-<name>
  • macOS: ~/Library/Logs/cloudflared-tunnel-<name>.error.log
  • Docker: docker logs cloudify

Installation#

Symptom Fix
cloudify: command not found after installing Open a new terminal, or run export PATH="$HOME/.local/bin:$PATH".
Python 3.8 or newer is required Install a newer Python (e.g. python3.11) next to the system one. See Linux install.
Arch: pacman could not install ... sudo pacman -Syu python python-pipx git, then rerun the installer.
Installing system packages needs root Run as a user with sudo, or have an administrator install the listed packages.
The downloaded cloudflared doesn't run on this system Install cloudflared from your distribution or Cloudflare's packages, then rerun the installer with --skip-cloudflared.
cloudflared ... is managed by your package manager sudo apt upgrade cloudflared or sudo dnf upgrade cloudflared.
macOS asks for the Command Line Tools Accept, wait, rerun the installer.
pipx could not install Cloudify, with dataclass() got an unexpected keyword argument 'slots' Rerun the current installer. By hand: pipx install git+https://github.com/VickyDev810/Cloudify-Tunnel-Manager.git without --python.
Anything else Rerun with --verbose.

Cloudflare login#

Symptom Fix
The login link never completes Open it in a browser signed in to the right Cloudflare account and click the domain. Retry with cloudify account connect example.com. Log: ~/.cloudflared/cloudify/login.log.
The domain isn't listed on the Cloudflare page The domain must be in that account and active (nameservers switched to Cloudflare).
cloudify account list shows (unknown) as domain cloudify account domain default example.com

Tunnels and routes#

Symptom Fix
Cloudflare error 1033 cloudify tunnel start <name>, then check its log.
Tunnel of a connected domain never starts, log says tunnel credentials file not found Update Cloudify and start the tunnel. Or: mv ~/.cloudflared/cloudify/certs/<tunnel-id>.json ~/.cloudflared/. Docker: docker exec cloudify sh -c 'mv /root/.cloudflared/cloudify/certs/*-*-*-*-*.json /root/.cloudflared/'.
502 Bad Gateway Check the service on the server: curl http://localhost:PORT. A container must publish its port. With bridge networking, use host.docker.internal or the container's name instead of localhost. See Docker.
404 for a hostname No route on this tunnel. Check cloudify route list -t <name>.
DNS_PROBE_FINISHED_NXDOMAIN, hostname doesn't resolve cloudify route check -t <name>, then cloudify route repair <hostname> -t <name>. New records can take a minute.
An A, AAAA, or CNAME record with that host already exists cloudify route repair <hostname> -t <name> --overwrite, or delete the record in Cloudflare.
Old hostnames still show Cloudflare's error page Delete their DNS records in the Cloudflare dashboard, or turn on DNS cleanup (Getting started).
tunnel list says No (deleted) under Exists Delete the tunnel in Cloudify too, or reconnect its domain.
Tunnel doesn't come back after reboot cloudify tunnel autostart <name> --status. Linux: loginctl show-user $USER -p Linger must say yes. macOS: tunnels start at login. Docker: needs restart: unless-stopped and Docker starting at boot.
Tunnel is a replica when editing routes Change routes on the exporting machine, export again, import here.
Delete refused because replicas are attached Remove the replicas on the other machines first (Redundancy page).

Dashboard#

Symptom Fix
Can't open it from another computer sudo ufw allow 8765/tcp. On AWS or Azure, allow TCP 8765 in the security group. With --secure: ssh -L 8765:localhost:8765 user@server. See Security.
The setup page asks for a setup code cloudify serve prints it at start. Look in its terminal, journalctl --user -u cloudify-dashboard or docker logs cloudify.
Refusing to serve plain HTTP on ... in secure mode Add --ssl-certfile/--ssl-keyfile, or --insecure-http behind a TLS proxy or on a trusted network.
This dashboard runs in secure mode and can't be opened as ... Open it by IP address or localhost, or add --allowed-host NAME. Quick tunnels: --allowed-host '*.trycloudflare.com' or CLOUDIFY_ALLOWED_HOSTS=*.trycloudflare.com.
Address already in use cloudify serve --serve-port 9000
Signed out unexpectedly Sign in again. Sessions end after 7 days, on a password change, and on a dashboard restart.
Forgot the password See Files and data.
Page looks broken after an update Hard-reload: Ctrl+Shift+R or Cmd+Shift+R.

Temporary tunnels and SSH sharing#

Symptom Fix
cloudify -p prints no URL Try again. Check outbound HTTPS.
Temporary URL shows error 1033 The process was stopped. Start it again.
SSH sharing problems See SSH sharing.
Is anything still reachable from the internet? Run the safety check.

Restricted networks#

  • Firewall: allow outbound port 7844, UDP and TCP, to Cloudflare.
  • HTTP proxy: set HTTPS_PROXY for the dashboard's update checks. Tunnel traffic does not use HTTP proxies.

Still stuck?#

Open an issue with cloudify --version, cloudflared --version, your OS, the exact command and the error. Remove hostnames, tokens and IDs you don't want to share.

Why these failures happen: The idea behind it.