Look up by symptom. If you can’t find it, first check the popovers of the header pills, the proxy log and each service’s log.
Binding and certificates
| Symptom |
What to do |
| Binding 443/80 fails, the Proxy pill shows “Proxy problem”, and the popover says “already in use” |
First identify the holder: lsof -nP -iTCP:443 -sTCP:LISTEN. A common cause is an old reverse proxy (Caddy, nginx) or another devhub. After stopping it, make sure the process has really exited (for example Caddy may enter graceful shutdown after stop and still hold the port and browser connections: check with pgrep -l caddy and kill that pid if necessary), then press “Rebind”. While binding fails, http://127.0.0.1:4999 still works |
| Certificate issuance fails |
Read the error in the Proxy/certificate pill popover and the proxy log. Common causes: CLOUDFLARE_API_TOKEN not found (the user enters it in the management UI’s “Settings”, or check the cf.env path and format; an agent doesn’t ask for the token), insufficient token permissions (needs Zone:Read and DNS:Edit, covering the zone of that domain), the domain isn’t in that Cloudflare account, or Let’s Encrypt rate limits. Validate the flow with DEVHUB_ACME_ENV=staging first, and switch back to production once it works |
| The browser says the certificate is not trusted |
Make sure you aren’t running with DEVHUB_ACME_ENV=staging; browsers never trust staging certificates. When tls.mode is local-ca, you must first trust the root CA: devhub ca trust prints the commands, and after installing, restart the browser (Firefox has its own certificate store, see the certutil command in ca trust) |
local-ca: “local CA files incomplete”, “expired” or “not a pair” |
~/.config/devhub/ca/ must contain both rootCA.pem and rootCA-key.pem as a matching pair. devhub doesn’t recreate them automatically (that would invalidate trust you already installed); if you do want to recreate, delete both files, restart, and run devhub ca trust again |
custom: “certificate does not cover …”, “private key does not match the certificate” or “expired” |
Check tls.certFile/tls.keyFile: the SAN must include proxy.host, and the private key must match the certificate and be unencrypted. After swapping the files they are hot-reloaded within 12 hours, or renew manually |
Network and DNS
| Symptom |
What to do |
The browser can’t reach dev.example.com/<name>.duckdns.org (a public name resolving to 127.0.0.1 gets blocked) |
Press “Test connection” in the settings panel first; it queries public DNS to tell the cause apart. Public DNS has no A record or not 127.0.0.1: devhub sets DuckDNS automatically (on by default); when you turned that off, setting failed, or you use Cloudflare, devhub will not (could not) update your DNS records, so set the IP to 127.0.0.1 yourself at duckdns.org, or add an A record under Cloudflare DNS → Records (Proxy status: DNS only). Public DNS already says 127.0.0.1 but this machine can’t resolve it: if the test result says “negative caching” (your local DNS queried the name before the A record was set and still caches the old “no record” answer, usually for up to 10 minutes), wait for it to expire or flush the local DNS cache (Windows ipconfig /flushdns, macOS sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder, Linux sudo resolvectl flush-caches) and do not edit hosts. Only if it keeps failing and it is not a cache is it your router, corporate DNS or the browser’s DNS rebinding protection blocking public domains that resolve to private IPs; only then add a line 127.0.0.1 <your-domain> (for example 127.0.0.1 <name>.duckdns.org) to the hosts file: /etc/hosts on macOS/Linux (needs sudo), C:\Windows\System32\drivers\etc\hosts on Windows (edit it as Administrator) |
| Certificate issuance can’t get out on a corporate network |
Start with HTTPS_PROXY (and NO_PROXY if needed) and make sure Node is 22.21 or later (or 24.5 or later), see Corporate proxy. If startup prints “HTTPS_PROXY not supported”, your Node is too old |
| DuckDNS: “TXT propagation timed out” |
Both DoH and UDP lookups failed (this machine can’t reach cloudflare-dns.com/dns.google, and UDP 53 is blocked); set HTTPS_PROXY, or DuckDNS is delayed and a retry will do. Resolvers can be overridden in tls.txtResolvers, for example { "doh": ["https://dns.example.com/dns-query"], "udp": [] } (udp set to an empty array = UDP disabled). DuckDNS: “rejected” = a wrong token, or the token and subdomain don’t belong to the same account |
| The browser shows “No service on this path” at your domain |
The proxy works; nothing serves this path. The page lists the services configured now with their state, each clickable. Add a service and reload: see “Add a service” on that page or https-proxy.md. Once you give / to a service, that service answers the home page; while no service holds /, the home page redirects to the admin UI at /devhub/ by default (when server.adminViaProxy is off it shows this page and explains how to turn it on) |
| The browser shows “api: the backend is not responding” |
The service is not started or is still starting. The page shows the state devhub sees; press the button on the page and confirm the start in the admin UI, which takes you back; the page keeps checking and opens the service once it responds, or shows the reason and a “View log” link if the start fails. The page follows the browser’s preferred language |
worktree and services
| Symptom |
What to do |
| The port is held by a system process when starting or taking over |
devhub refuses to take over system processes. A typical case is macOS’s ControlCenter (AirPlay Receiver) holding 5000: System Settings → General → AirDrop & Handoff → turn off “AirPlay Receiver”, or use another port |
| A service won’t start and says a tool version or envFile is missing |
Run devhub env <service> --here (or the editor’s “Environment snapshot”): it lists the actual cwd, the source of environment variables and the tool version checks. When requires doesn’t match, switch versions with nvm/fnm/mise/asdf as suggested and then run devhub server restart (devhub inherits the PATH it was started with); mismatches auto-detected from files such as .nvmrc only warn in the log and don’t block startup |
| The header’s “worktree source” pill is orange (no worktree source) |
devhub knows no repo yet: no Orca, no repos in the config, and no agent has called devhub from inside a repo. Open the pill for the reason and the fix: add a repo from “Repo list” in the header’s “More” menu (or run devhub repo add, or add repos to the config, see getting-started.md), or install Orca. After fixing, press “Refresh worktrees” in the header’s “More” menu |
| The header shows “worktree list may be stale: …” |
orca failed this time (devhub already retried once) and the last successful list is in use; services can still start. Read the reason in the message; for session-variable related errors, make sure devhub is 0.3.1 or later (devhub server restart), since older versions inherit stale agent session environment variables |
| The header’s “worktree source” pill shows a green “worktree: git” |
Not an error: Orca isn’t available, so worktrees come from git (the config’s repos and discovered repos). To use Orca, install and start it |
| The path name is shown instead of the GitLab project name |
Normal. When glab can’t look it up (not installed, not logged in or unreachable), devhub falls back to the origin path name (5-second timeout); once fixed, press “Refresh worktrees” to update. Results are cached in .devhub/gitlab-names.json |
CLI and agents
| Symptom |
What to do |
| The CLI reports exit 4 (cannot reach devhub) |
devhub isn’t running, or the DEVHUB_URL address is wrong. Start it with the command in the error message, see agents.md |
| The CLI reports exit 5 (service claimed by another session) |
Don’t grab it. Add --wait-claim 5m to wait until the claim expires or its holder releases it, or report to the user, see agents.md |
Windows