Fly.io Machines Stopping or Not Starting (Auto-Stop)
Quick answer
Machines stop when auto_stop_machines is enabled and there is excess capacity. If they never wake up, auto_start_machines is probably false.
Most likely fix: Make start and stop settings agree
How to fix it
Try these in order — the most common fix is first.
1. Make start and stop settings agree
- In [http_service] set auto_stop_machines = "stop", auto_start_machines = true
- Set min_machines_running = 1 to keep one Machine warm (primary region only)
Did this fix it?2. Stop it from exiting immediately
- Add an explicit CMD in the Dockerfile
- Run docker run <image> locally; if it exits there, it exits on Fly
- Check fly logs for the exit code
Did this fix it?3. Reduce cold start time
- Use auto_stop_machines = "suspend" for faster resume (a few hundred ms vs about 2s)
- Be aware suspend causes brief clock skew that can break JWT nbf checks and cron timing; use "stop" if so
Did this fix it?
Symptoms
Machines go to stopped state, requests fail or the first request is slow, or Machines never stop.
Why it happens
- auto_stop_machines enabled with auto_start_machines = false
- Private apps not routed through Fly Proxy cannot trigger starts or stops
- Container process exits on its own
- Failed health checks
- min_machines_running at or above Machine count blocks stopping
This guide also covers
- fly.io machine stopped
- fly.io auto stop machines
- fly.io machine not starting
- fly.io cold start
Still not working?
If Fly.io keeps failing, you're not alone. See every Fly.io problem users report or the alternatives people switch to.
Have an app idea? Our small team builds any software: web and mobile apps, games, desktop, AI tools. Price agreed together.
Talk to usOther Fly.io errors
- Fly.io: The app is not listening on the expected address and will not be reachable by fly-proxy
- Fly.io 502 Bad Gateway
- Fly.io 503 Service Unavailable
- Fly.io Health Checks Failing
- Fly.io Out of Memory (OOM Killed)
- Fly.io Deploy Failed: Waiting for Depot Builder, Registry 401, Too Many Requests
- Fly.io Certificate Not Issuing or Custom Domain Not Working
- How to Cancel Fly.io: Delete an App, Stop Billing and Delete Your Account