Troubleshooting and FAQ
Troubleshooting
| Symptom | Likely cause | Fix |
|---|---|---|
Cannot connect to the Docker daemon | Docker 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 port | The host port is already taken | Change 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 unreachable | Caddy is missing or stopped. It is optional locally but required on a remote nest, where deploys are refused until it answers | ant nest tools caddy status, ant nest tools install caddy; for one local run, ant trail deploy local --no-caddy |
*.localhost domains do not resolve | The 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 NodeID | The 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 fails | The CLI and worker speak different protocol versions; mixed versions fail closed | Update 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-side | Create 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 fails | The machine is down, its NodeID changed, the network blocks outbound UDP/DNS, or the binary has no transport | Check 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 stuck | Remote deploys are serialized per machine, and a source deploy uploads the context before it builds; a health gate waits for the configured checks | Watch 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 deploys | Old app image tags, dangling layers, the build cache, stopped containers, and unused volumes accumulate | ant 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 Alpine | Release binaries link glibc dynamically; musl distributions cannot run them | Build 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.