Error: this app has no complete releases. Run `fly deploy` to create one and rerun this command

Hello dear community

I deleted my entire app (app servers, db server and builder app) and attempted to redeploy. Despite my best efforts, I was not able to. Always returned 503: Service unavailable or something similar when attempting to build the image.

I tried deploying the fly deploy --debug --local-only which succeeded thankfully. The only problem is that I now want to scale the deployment down but when using fly scale count 2 -a basira-website-db I keep getting the error in the subject field: Error: this app has no complete releases. Run fly deploy to create one and rerun this command.

The command fly deploy returns WARN Failed to start remote builder heartbeat: server returned a non-200 status code: 504 and WARN Remote builder did not start in time..

I get what this means, but I don’t know how to fix it.

Help. Preferably without having to re-setup the app again.

PS: I’ve deleted the above mentioned builder.

Having the same issue. Also tried the --local-only, but that did not work. Currently unable to deploy.

Getting the following error now:

Updating existing machines in 'xxx' with rolling strategy
> Updating
> Updating xxxx [app]
Error: failed to update VM xxx: request returned non-2xx status, 504 (Request ID: xxxxx-lax)

I sometimes encounter this error and my solution is to upgrade the machine to add more memory and cpu, then run it again.

I’m unable to do that too. Besides, all of a sudden, out of nowhere, fly deploy worked, and the application deployed successfully without the --local-only flag.

I attempted the command fly scale count 2 -a basira-website-db again and I got the same error Error: this app has no complete releases. Run 'fly deploy' to create one and rerun this command.

This is becoming very frustrating indeed.

Ok. I’ve been reading. Could it be that my db app is considered comprising of “standalone machines” as described here? Would this be because they were deployed with the --local-only flag? Do I simply need to add them to a fly launch or fly deploy app as described in the link above?

I’m incurring unaccounted-for costs and I would like to scale my db app down to a free tier but I can’t.

Hi @BasharLulu, it looks like you may be using Fly Postgres for your database, is that right? I wonder if this thread is of any help:

1 Like

Thank you for replying. Yes Fly Postrgres.

Yeah, I saw the fly.io knowledge base article to this effect. That’s one way of doing it, the manual way, and is fraught with risk. I’d rather not put myself, and my users, at risk at this stage.

I’d like to use fly scale vm shared-cpu-2x -a app_name to have it handled. I’m sure there’s a way to do it. I just want someone to provide me with a clear-cut guide.

I thank you for your support. I really appreciate it.

Hey @catflydotio

I owe you a debt of gratitude. While your suggested solution, to me at least, was not entirely orthodox, I did attempt it out of desperation, and thus far, it has worked.

I’m sorry I doubted you. Thank you.

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