Skip to content

Troubleshooting

Start with the generic checks below, then jump to the section that matches your symptom. The sections are laid out as symptom, cause and fix.

Run these from the install checkout. They answer most questions.

Terminal window
cd /opt/openflare
export DC="docker compose --env-file /var/lib/openflare/.env -f docker-compose.all-in-one.yml"
$DC ps # state and health of every service
$DC logs --tail=100 plane # control plane
$DC logs --tail=100 cell-init # one-time cell bootstrap
$DC logs --tail=100 vrt-host cell-controller # runtime and its controller
$DC logs --tail=100 traefik # edge, TLS, ACME
curl -fsS http://127.0.0.1:8787/healthz

See Health and monitoring for what each healthcheck means.

The installer prints errors as error[E_CODE]: message and exits with a status code that classifies the failure:

Exit code Meaning
64 Usage error (bad flags)
65 Data error (a value failed validation)
66 A required input is missing and the installer could not prompt for it
69 Service unavailable (a dependency or network resource could not be reached)
78 Configuration error

After a failure that happens once the stack is starting, the installer prints the last 60 lines of the logs of postgres, plane, cell-init, vrt-host, console and traefik, with secrets redacted. Read those first. The installer is safe to re-run. It reconciles instead of starting over. See Installer options.

Code Cause Fix
E_PREFLIGHT_OS Not a Linux host Use a Linux host
E_PREFLIGHT_ARCH Not amd64 (x86_64). Release images are linux/amd64 only Use an amd64 host
E_PREFLIGHT_ROOT Not running as root Re-run with sudo or as root
E_PREFLIGHT_DEPENDENCY A required command is missing (git, curl, openssl, awk, sed, grep and other base tools, plus perl or python3, plus a CA certificate bundle) Install the missing package, then re-run
E_PREFLIGHT_RESOURCE Less than 1 GiB of RAM (the installer warns below 2 GiB), or less than 10 GiB free for the install directory and config root Add memory or free disk space
E_PREFLIGHT_NETWORK The host cannot reach GitHub, GHCR, the Cloudflare API or the ACME CA over HTTPS (and download.docker.com when installing Docker) Open outbound HTTPS or fix DNS or proxy settings
E_PREFLIGHT_CLOCK The clock differs from the GitHub Date header by more than 300 seconds Enable time sync (timedatectl set-ntp true or your NTP client)
E_PREFLIGHT_FIREWALL ufw or firewalld is active without ports 80 and 443 allowed Allow tcp/80 and tcp/443
Code Cause Fix
E_DOCKER Docker is not installed, or its daemon is unreachable Install Docker and start the daemon, or let the installer install it with --install-docker on Debian or Ubuntu
E_DOCKER_COMPOSE Compose v2.20 or newer is required Upgrade the Docker Compose plugin
E_DOCKER_INSTALL Automatic Docker installation failed. It supports Debian and Ubuntu only Install Docker yourself on other distributions
E_PORT_BUSY Another process holds tcp/80 or tcp/443 Stop the other web server, or move it, then re-run
E_PUBLIC_IP The public IPv4 address could not be determined (no consensus between probes, or the host is behind NAT) Set OPENFLARE_PUBLIC_IPV4 to the address your DNS record points at
E_IPV6_UNSUPPORTED An AAAA record exists for a host. The installer supports IPv4 only Remove the AAAA record
E_INSTALL_LOCK Another installer run holds the lock, or a stale lock could not be reclaimed (/var/lib/openflare/.install.lock) Wait for the other run. Remove the lock only after verifying no installer is running
Code Cause Fix
E_CHECKOUT_REPO The install directory exists but is not the top level of a git checkout, has no origin remote, or its origin does not match the release repository Use an empty directory or the correct checkout
E_CHECKOUT_TAG The requested release tag was not found Use an existing tag. Check Release images
E_CHECKOUT_DIRTY The checkout has tracked local modifications Revert them (git -C /opt/openflare status). Keep your configuration under /var/lib/openflare instead
E_CHECKOUT, E_REPO_URL, E_VERSION The checkout failed, the repository URL is not accepted, or the version string is invalid Read the message, then fix the URL or version
Code Cause Fix
E_CLOUDFLARE_TOKEN A token is not active Create a new token and re-run
E_CLOUDFLARE_PERMISSION The Zone Read token lacks Zone Read, or the DNS token lacks DNS Edit Fix the token permissions. See DNS and Cloudflare
E_CLOUDFLARE_ZONE The zone is not found, not visible to the token, paused, not active, or not a full setup Check the zone name, token scope and zone status
E_CLOUDFLARE_DNS A required DNS record is missing or wrong, for example the wildcard A record does not match the public IPv4, there is more than one A record, or a CNAME is shadowing it Fix the record, or pass --create-dns to let the installer create the wildcard A record. It never edits other exact records
E_DNS_CONFIRMATION A DNS change needed confirmation but none was given Confirm interactively, or pass --yes together with --create-dns
E_DNS_PROBE Public DNS does not resolve a name as expected (resolves through a CNAME, resolves to the origin while Cloudflare says proxied, or does not resolve at all) Wait for propagation or correct the record. DNS-only mode needs a direct A answer
E_CLOUDFLARE_CAA CAA records on the domain do not authorize your ACME certificate authority Add a CAA record for the CA (for example issue "letsencrypt.org"), or remove the restrictive CAA records
E_CLOUDFLARE_SSL The SSL/TLS mode is not Full (strict) (checked in every mode), or, in proxied mode, Universal SSL is not enabled or has no active certificate pack Enable Universal SSL and set the zone to Full (strict)
E_CLOUDFLARE_API The Cloudflare API was unreachable or returned an error Check outbound connectivity and retry
E_HOST_CONFLICT The console, API or webhook host is the apex or worker base domain, is not distinct from the others, or is a multi-level name below the worker base domain Choose distinct single-label hosts that are not the apex or worker base domain
Code Cause Fix
E_COMPOSE_CONFIG Compose could not render the configuration (a missing variable or bad value in the env file) Run $DC config and read the error
E_COMPOSE_PULL An image could not be pulled Check connectivity to ghcr.io and that the tag exists
E_IMAGE_DIGEST The installer could not list the compose images, or no repository digest was recorded for an image Re-run after a successful pull. Check docker image ls
E_COMPOSE_UP A one-shot container exited non-zero, a long-running service exited, or the stack was not ready within COMPOSE_WAIT_TIMEOUT_SECONDS (default 300) Read the failing service’s log in the diagnostics. On a slow host raise COMPOSE_WAIT_TIMEOUT_SECONDS
E_CELL_INIT cell-init exited non-zero or was never created $DC logs cell-init. Typical causes are an unhealthy plane or a rejected admin token
E_SERVICE_HEALTH A service did not become healthy $DC ps and the log of the unhealthy service
E_EDGE_POST_CHECK The edge verification failed. See the table below See below

Input validation errors such as E_BASE_DOMAIN, E_WORKER_BASE_DOMAIN, E_CONSOLE_HOST, E_API_HOST, E_ACME_EMAIL, E_SECRET*, E_ENV_FILE, E_CONFIG_ROOT and E_INSTALL_DIR carry a message that names the bad value. Fix the value and re-run.

After the stack is up, the installer proves the edge works (E_EDGE_POST_CHECK). It retries for up to INSTALLER_EDGE_POST_CHECK_ATTEMPTS attempts (1 to 120, default 18) at INSTALLER_EDGE_POST_CHECK_INTERVAL_SECONDS seconds apart (0 to 30, default 5).

Failed check Likely cause Fix
ACME file /acme/acme.json not created Traefik could not start issuance (bad Cloudflare DNS token, DNS-01 propagation delay, CA unreachable) $DC logs traefik. Verify the DNS token permissions and CAA records. Raise the attempt count for slow DNS
Console HTTPS /console-healthz fails Certificate not issued yet, DNS does not point at the host, or ports 80 and 443 are blocked Check DNS, firewall and Traefik logs
Origin certificate does not cover the host (proxied or mixed mode) Certificate for the wildcard is missing or still pending Wait and re-run, check Traefik logs
Probe worker fails (it expects the body openflare-install-probe-ok) The cell did not load the probe worker, or routing does not reach it Check vrt-host and cell-controller logs and that the cell acknowledged
Unknown host check fails A hostname with no worker is not answered with the expected not-found behavior Check routing configuration and Traefik logs
/api/v1 is reachable publicly The management API is exposed at the edge Fix the edge configuration. The API must return 404 publicly

Hosts behind NAT fall back to an origin-only check. The summary then prints EDGE_CHECK_ORIGIN_ONLY and DNS_CHECK_SKIPPED. The installer may also print EDGE_PROBE_RESIDUAL: ..., which means the temporary probe worker (named install-probe- plus a random suffix) could not be deleted. Remove it through the console or the management API.

Symptom Cause Fix
cell-init keeps failing The plane is not healthy yet or rejects PLANE_ADMIN_TOKEN $DC logs plane cell-init. Confirm the admin token file is intact
plane is unhealthy Database unreachable, secrets missing, boot-time schema apply failed $DC logs plane postgres. The plane refuses to start with a short PLANE_ADMIN_TOKEN, PLANE_SIGNING_SECRET or PLANE_SECRETS_KEY (fewer than 32 characters)
postgres unhealthy Volume permissions or a corrupted data directory $DC logs postgres. Restore from backup if needed. See Backups
vrt-host stays starting It waits for its metrics socket and a live workerd child (start period 20 s, up to 24 retries) $DC logs vrt-host. A very small host may need more time
redis fails at start REDIS_PASSWORD is empty or contains characters outside letters, digits and . _ ~ - Set a valid password in the env file
Service exits immediately with a missing variable The env file lacks a required key $DC config. For upgrade-related misses, see below
Symptom Cause Fix
Browser certificate warning on the console Certificate not issued yet, or Traefik fell back to its default certificate $DC logs traefik, then wait for issuance and check DNS-01 permissions
Worker hostname does not resolve Wildcard A record missing, or the worker host has more than one label Worker hostnames must be a single label under the worker base domain (for example app.workers.example.com). Check the wildcard A record
Worker hostname rejected on create The label is reserved. Defaults are console, api, www, mail, smtp, imap, pop, auth, admin, status, traefik, dashboard, hooks Pick another label, or adjust PLANE_RESERVED_WORKER_LABELS
Cloudflare 5xx errors (for example 521 or 525) in proxied mode Origin unreachable, SSL mode not Full (strict), or origin certificate missing Allow Cloudflare addresses on 80 and 443, set Full (strict)
Wrong client IPs in logs in proxied mode Cloudflare ranges missing from the trusted list Check OPENFLARE_CLOUDFLARE_EDGE_MODE and OPENFLARE_TRAEFIK_TRUSTED_IPS
Certificate renewal fails after a token change The DNS Edit token is invalid or lost its permission Replace secrets/cloudflare_dns_api_token (mode 0600) and restart traefik
ACME rate limit errors The traefik-acme volume was deleted and certificates were reissued repeatedly Wait for the limit to clear. Do not delete traefik-acme. See Backups

Rendered edge configuration lives in /var/lib/openflare/config/traefik.yml and /var/lib/openflare/config/traefik-dynamic/edge-routes.yml. See TLS certificates.

Symptom Cause Fix
Cell reports 401 on the cell channel The cell token was rotated and the cell still holds the old one Reissue with POST /api/v1/cells/:cellId/token and restart the cell services, or let cell-init reissue it
render-inputs returns 500 PLANE_SECRETS_KEY changed or was lost Restore the original key. Otherwise re-enter every secret
desired returns 404 No publication exists for the cell yet Publish once from the console
Acknowledgement returns 409 VRT_ACK_DIGEST_MISMATCH A publish raced the acknowledgement Normal. The cell retries
Acknowledgement returns 409 VRT_ACK_TERMINAL A conflicting verdict was already recorded The first verdict stands. No action
Bundle fetch returns 404 The digest is not referenced by a retained publication The cell holds a stale view. Publish again, and make sure PLANE_PUBLICATION_KEEP is not set too low
Cell refuses new work with expired snapshots The plane was down, or renewals stopped, for more than 24 hours Restore the plane, then publish a new revision
Hostname writes fail with 503 VRT_HOSTNAME_MIGRATION_REQUIRED A unique hostname index is missing or the data has duplicates Run the hostname migration. See Upgrades
Management API returns 401 or 403 Wrong or short PLANE_ADMIN_TOKEN, or a member credential without the needed role Check the token. See Management API
Console mutations rejected The X-OpenFlare-Console-Request: 1 header is missing on a Basic-authenticated request Add the header to scripted calls
Symptom Cause Fix
Publication stays pending The cell is not acknowledging. Check cell-controller $DC logs cell-controller plane. Confirm the cell token and that plane-loopback and vrt-host are healthy
Deploy fails on bundle size The bundle exceeds PLANE_MAX_BUNDLE_BYTES (default 128 MiB) Reduce the bundle
Request body rejected Management API JSON bodies are capped at 1 MiB Send smaller payloads
Worker returns 502 or 503 with a platform code See the code table in Health and monitoring Follow the table
Git-push deploy does nothing gitdeploy profile off, webhook not reaching the host, or the runner failed the build $DC logs git-runner plane. Confirm the webhook host and secret. See Git push deploy
Git builds fail or time out Builder resource limits too low, or egress denied while the build needs the network Adjust GIT_BUILDER_MEMORY, GIT_BUILDER_CPUS, GIT_BUILDER_TIMEOUT_MS or GIT_BUILDER_EGRESS

For deployment steps see Deploy a worker.

Symptom Cause Fix
The updater says the deployment is not pinned to a stable release OPENFLARE_IMAGE_TAG is a prerelease such as -rc.N, latest or a dev tag Upgrade manually. See Upgrades
Settings shows no update No complete stable release train exists newer than yours (a tag must exist on all nine images) Wait for the release to finish publishing. Check Release images
Preflight lists missing required keys or files The target release needs configuration you do not have Add the named key or file under /var/lib/openflare. Do not edit /opt/openflare. Nothing was changed
Preflight fails on a dirty checkout Tracked files changed in /opt/openflare Revert the changes. Keep configuration outside the checkout
409 INTERRUPTED_JOB_UNRESOLVED The updater restarted during a job Inspect and acknowledge the interruption. See Upgrades
409 DESIRED_OBSERVED_VERSION_MISMATCH The pin is ahead of what runs after an interrupted or failed job Retry the same pinned target (after acknowledging), or repair manually
OBSERVED_VERSION_MIXED Release containers run different versions Converge them manually with up -d, or restore the previous pin and checkout
OBSERVED_VERSION_UNREADABLE A release container uses a digest pin or an image without a stable tag Reconcile onto stable tags manually
Job failed and the log says the rollback completed The new release failed a stage and the previous one was restored Read the job log, fix the cause (often disk or network), then retry
Log says ROLLBACK FAILED Automatic rollback failed Follow the manual rollback in Upgrades. The pre-upgrade dump is in updater-state
updaterSelfRefresh is not verified The updater sidecar did not refresh itself $DC up -d updater. The core platform is unaffected
Updater does not start Env file missing, a symlink, inside the checkout, or the config root not mounted at the same path Fix the layout described in Upgrades

Gather this before you ask for help. Redact tokens and passwords first.

Terminal window
git -C /opt/openflare describe --tags
$DC ps
$DC logs --tail=200 plane cell-init cell-controller vrt-host traefik > openflare-logs.txt
cat /var/lib/openflare/image-digests.txt

For security issues, do not post logs publicly. Follow Security.