| name | flyio-common-errors |
| description | Diagnose and fix common Fly.io errors including deployment failures, health check
failures, machine issues, and networking problems.
Trigger: "fly.io error", "fly deploy failed", "fly.io not working", "fly health check".
|
| allowed-tools | Read, Bash(fly:*), Bash(curl:*), Grep |
| version | 1.6.0 |
| license | MIT |
| author | Jeremy Longshore <jeremy@intentsolutions.io> |
| tags | ["saas","edge-compute","flyio"] |
| compatibility | Designed for Claude Code |
Fly.io Common Errors
Overview
Quick reference for the most common Fly.io deployment and runtime errors with solutions.
Error Reference
Health Check Failed
Error: health checks for machine e784... failed
Causes: App not listening on correct port, slow startup, missing dependencies.
Fix:
fly logs -a my-app
grep internal_port fly.toml
fly ssh console -C "curl localhost:3000/health"
[http_service.checks]
grace_period = "30s"
interval = "15s"
timeout = "5s"
Deployment Failed — Image Build
Error: failed to build: exit code 1
Fix:
docker build -t test .
docker run -p 3000:3000 test
Machine Won't Start
Error: machine e784... failed to start
Fix:
fly machine status e784...
fly scale vm shared-cpu-1x --memory 512
fly logs --instance e784...
Connection Refused on .internal
Error: connection refused my-api.internal:3000
Fix:
fly status -a my-api
fly ssh console -a my-api -C "ss -tlnp"
fly orgs list
Volume Mount Failures
Error: volume vol_xxx not found in region iad
Fix:
fly volumes list -a my-app
fly volumes create data --size 10 --region iad
Rate Limited by Machines API
HTTP 429 Too Many Requests
Fix: Implement backoff. See flyio-rate-limits.
Quick Diagnostic Commands
fly status -a my-app
fly logs -a my-app
fly machine list -a my-app
fly ssh console -a my-app
fly doctor
fly platform status
Resources
Next Steps
For comprehensive debugging, see flyio-debug-bundle.