Keep getting 408 on deployment to Fly.io

I keep seeing:

✖ Failed to create canary machine: error creating a new machine: failed to launch VM: request returned non-2xx status: 408: 


Error: error creating a new machine: failed to launch VM: request returned non-2xx status: 408:  (Request ID: 01KM3H48PBQA366SHZPCCEPZ3P-ord) (Trace ID: 14c5157fa98298413847f82c34bbf145)

I checked the
curl -s ``https://api.machines.dev/v1/platform/regions`` | jq -c ‘.Regions | {“name”:.name,“code”:.code,“capacity”:.capacity}’
and the latest response shows a lot of negative capacities:
{“name”:“Amsterdam, Netherlands”,“code”:“ams”,“capacity”:-317}
{“name”:“Stockholm, Sweden”,“code”:“arn”,“capacity”:841}
{“name”:“Mumbai, India”,“code”:“bom”,“capacity”:77}
{“name”:“Paris, France”,“code”:“cdg”,“capacity”:1390}
{“name”:“Dallas, Texas (US)”,“code”:“dfw”,“capacity”:-2426}
{“name”:“Secaucus, NJ (US)”,“code”:“ewr”,“capacity”:-896}
{“name”:“Frankfurt, Germany”,“code”:“fra”,“capacity”:-253}
{“name”:“Sao Paulo, Brazil”,“code”:“gru”,“capacity”:910}
{“name”:“Ashburn, Virginia (US)”,“code”:“iad”,“capacity”:-6846}
{“name”:“Johannesburg, South Africa”,“code”:“jnb”,“capacity”:227}
{“name”:“Los Angeles, California (US)”,“code”:“lax”,“capacity”:-1137}
{“name”:“London, United Kingdom”,“code”:“lhr”,“capacity”:888}
{“name”:“Tokyo, Japan”,“code”:“nrt”,“capacity”:-493}
{“name”:“Chicago, Illinois (US)”,“code”:“ord”,“capacity”:-4439}
{“name”:“Singapore, Singapore”,“code”:“sin”,“capacity”:-1280}
{“name”:“San Jose, California (US)”,“code”:“sjc”,“capacity”:-1265}
{“name”:“Sydney, Australia”,“code”:“syd”,“capacity”:-317}
{“name”:“Toronto, Canada”,“code”:“yyz”,“capacity”:659}
So my main question is - if I can’t get anything deployed right now (assuming my error is actually related to this capacity issue) what should I do?
Option A: Migrate to Toronto (seems ridiculous to have to do)
Option B: Migrate to AWS because why live with this if this can keep happening?
Option C: Just wait because they’re on it and are going to make available more capacity?

Any guidance would be much appreciated. First time using flyio.

Hi… The capacity API is no longer accurate, unfortunately. See the following other recent forum thread for more context:

https://community.fly.io/t/persistent-could-not-reserve-resource-error-in-ord/27356

I have been having the same issue, and have had luck deploying to multiple regions. SJC and EWR have been better at coming online then ORD has been. I use the following command to get my deployments in new regions, and the inverse to get them out of regions where I can’t deploy. Its been a pain, but its kept me online

fly volume create jobs --size 30 --vm-cpu-kind performance --vm-cpus 4 --vm-memory 16384 --region ewr
fly scale count 1 -r ewr -g jobs
1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.