Guides

Troubleshooting and FAQ

The common failures, what causes them, and the shortest fix.

Troubleshooting

SymptomLikely causeFix
Cannot connect to the Docker daemonDocker is not running (the CLI and every build need it)Start Docker, then re-run ant nest tools: Docker reports daemon unreachable, not "not installed", when the daemon is down
A deploy fails, or the container exits immediately, and ant trail doctor reports the portThe host port is already takenChange deploy.port in ant.yaml (or the deployment's port_offset) and deploy again; ant trail doctor reports port availability, ant trail status shows the chosen port
A domain does not resolve, or the deploy warns that Caddy is unreachableCaddy is missing or stopped. It is optional locally but required on a remote nest, where deploys are refused until it answersant nest tools caddy status, ant nest tools install caddy; for one local run, ant trail deploy local --no-caddy
*.localhost domains do not resolveThe resolver does not map the name (or the group base is a real domain)Check ant nest edit domain list and ant nest tools caddy status; add the name to the hosts file (127.0.0.1 api.localhost) or reach the app through the port ant trail status prints
A machine is refused for answering as a different NodeIDThe machine's identity does not match the registered one (reprovisioned, or the wrong machine)Read the real NodeID with ant nest identity show --machine prod, then re-register it (ant nest machines remove prod followed by ant nest machines add prod --node-id <id>); ant nest machines verify records the check. Invites pin the NodeID out of band, which is the strongest join for a machine you have never contacted
peer speaks protocol v…, and every call failsThe CLI and worker speak different protocol versions; mixed versions fail closedUpdate the worker: ant nest worker update --machine prod. A machine provisioned before self-update support needs one re-provision (ant nest bootstrap --machine prod --host ADDR --ssh-key …)
An invite cannot be redeemed (expired, already used, revoked)Invites are signed, single-use, and expiring; redemption is verified server-sideCreate a new one with a short TTL: ant colony invite --role deployer --machine prod --ttl 1h; ant colony invites lists pending invites and can revoke a leaked nonce
ant nest ping failsThe machine is down, its NodeID changed, the network blocks outbound UDP/DNS, or the binary has no transportCheck ant nest machines list and retry with --timeout 30s; allow outbound UDP and DNS on both sides; a macOS/native Windows or CGO_ENABLED=0 build reports iroh unavailable, so use a Linux + CGO client
A deploy appears stuckRemote deploys are serialized per machine, and a source deploy uploads the context before it builds; a health gate waits for the configured checksWatch ant trail status and ant trail logs --tail 50; ant trail history shows recorded releases; a cancelled deploy leaves the running release in place, so re-run when ready
Disk fills up after several deploysOld app image tags, dangling layers, the build cache, stopped containers, and unused volumes accumulateant trail prune --dry-run to see what would go, then ant trail prune --all --skip-volumes --yes; remove a specific volume with ant nest volume list and ant nest volume rm NAME --yes. ant trail prune is this host only; on a remote nest, superseded app tags rotate to deploy.keep_images automatically and ant nest volume list --machine M / ant nest containers rm NAME --machine M --yes manage specific resources
exec format error, or the binary dies on AlpineRelease binaries link glibc dynamically; musl distributions cannot run themBuild from source (go build ./cmd/ant; add CGO for the transport) or use a glibc image such as debian:bookworm-slim for CI

FAQ

Is there a central server?

No. Ant is a local-first CLI. The only long-running component is ant-worker on the machines you register, and each machine's daemon holds its own roster. There is no hosted control plane and no shared auth service; the dashboard is per operator, on their own machine, reading their own ~/.ant. See Architecture.

What runs when I deploy locally?

ant trail deploy local builds the image (the configured builder, or docker compose build for compose projects) through your local Docker daemon and runs it, managing Caddy if the deployment has domains. ant haul is the build-only half. It writes only to ~/.ant and your project's ant.yaml; no worker, account, or network access is involved unless the config names a machine. See Deploy.

What happens if the iroh relay is down?

Direct QUIC connections keep working when a path can be punched; a connection that needs the relay fails until it recovers. The relay only ever forwards ciphertext, and you can point the client (relay in ~/.ant/config.json) and the worker (--relay URL) at your own. Address lookup (dns.iroh.link) is a separate service and still uses the default DNS lookup. See Transport.

Can I use my existing Dockerfile or compose file?

Yes. ant nest init detects a Dockerfile (build: dockerfile) or a compose file (run: compose) and leaves the file in charge. Compose specifics: every service that declares build: is built on the target machine, and the features Ant cannot reproduce yet (build.target, build.secrets, build.ssh, build.additional_contexts) are refused rather than ignored; prebuild the image and reference it instead. A running hand-managed stack is never adopted automatically; the cutover recipe is in Existing projects.

How do I move my account to another machine?

Export the portable credential bundle on the old machine and restore it on the new one:

ant colony export --out ant-account.json          # passphrase-encrypted by default
# copy the file to the other machine, then:
ant colony login --bundle ant-account.json

The NodeID does not change, so every machine roster that already names you keeps working. The bundle is the account key: keep it, and its passphrase, somewhere safe.

Does the dashboard need auth?

No. ant ui binds loopback and has no authentication; it is one dashboard per operator against their own ~/.ant. The trust boundary is the local account: any local user or process that can reach the loopback port can do what you can there. There is no hosted or multi-user dashboard, and machine access is still governed by each machine's colony roster. See Dashboard and Security model.

Next

Copyright © 2026