Max number of machines reached / fly.io

I’m working on deploying to fly.io on the free tier. Just trying things out for now.

After I’ve deployed by app with fly launch, I’m not able to redeploy with fly deploy. When I try I get the message below.

Is this expected?

Running i-know-test release_command: /app/bin/migrate
  release_command 9185491f10d983 completed successfully
Updating existing machines in 'i-know-test' with rolling strategy
  [1/2] Updating 9080117ae36387 [app]
Error: failed to update VM 9080117ae36387: You have reached the maximum number of machines for this app.

To unlock more features please add credit to your org (using an admin account) from your billing page:

 https://fly.io/dashboard/cirvine/billing

Or contact us at billing@fly.io and we'll take a closer look at your account.

If I recall correctly, the free tier limits you to one machine—and fly deploy uses the rolling deployment strategy by default, which would require a second machine. Maybe try the immediate strategy if downtime and risk of an outage if there’s a build failure is acceptable?

Sounds reasonable. I can’t figure out how to do an immediate deploy yet. Do you know how?

--strategy immediate

1 Like

I just now tried:

fly deploy --strategy immediate

and still got:

Updating existing machines in 'irvine-my-app' with immediate strategy
  [1/2] Updating 9080eed2b9e958 [app]
Continuing after error: failed to update VM 9080eed2b9e958: You have reached the maximum number of machines for this app.

To unlock more features please add credit to your org (using an admin account) from your billing page:

 https://fly.io/dashboard/cirvine/billing

Or contact us at billing@fly.io and we'll take a closer look at your account.
  [2/2] Updating 9080354c599287 [app]
Continuing after error: failed to update VM 9080354c599287: You have reached the maximum number of machines for this app.

To unlock more features please add credit to your org (using an admin account) from your billing page:

 https://fly.io/dashboard/cirvine/billing

Or contact us at billing@fly.io and we'll take a closer look at your account.
  Finished deploying

Visit your newly deployed app at https://irvine-my-app.fly.dev/

Any ideas anyone? Doesn’t seem very useful if you can’t redeploy after making changes.

It could be related to this:

But I just today signed up for - I think they call it the hobby tier. It’s supposed to be free I thought. I just want to try it out a little to see if I want to use it for deployment. But if you can only deploy once, that doesn’t seem very useful. Maybe I’m missing something here.

I think you must be missing something, I know what you’ve described is exactly how I started my now-paid-plan projects on fly.io, and I was able to deploy more than once (tho stumbled through some different problems). My hypothesis about the deployment strategy definitely seems incorrect.

Perhaps it is some increased fraud prevention of some kind? I’ve occasionally seen posts of this on the public forum. I’ve always put some credits into my accounts, so never ran into it.

This problem was due to a problem on the Fly.io side. I reported the problem. When they let me know that it was fixed, deployments then started working without issue.

2 Likes