❯ fly deploy
==> Verifying app config
--> Verified app config
==> Building image
WARN Failed to start remote builder heartbeat: Couldn't allocate volume, no disks available (region: vin, size_gb: 50)
Error failed to fetch an image or build from source: error connecting to docker: Couldn't allocate volume, no disks available (region: vin, size_gb: 50)
I have upgraded to the latest fly CLI.
fly status doesn’t show any reported outages.
fly doctor seems fine:
Testing authentication token... PASSED
Testing flyctl agent... PASSED
Testing local Docker instance... PASSED
Pinging WireGuard gateway (give us a sec)... PASSED
App specific checks for blockade:
Checking that app has ip addresses allocated... PASSED
Checking A record for blockade.fly.dev... PASSED
Checking AAAA record for blockade.fly.dev... PASSED
Build checks for blockade:
Checking docker context size (this may take little bit)... PASSED (6.2 MB)
Even tried pruning my local docker volumes, just in case to free up local memory. No luck.
The remote builder is not working for deploying my existing app.
I am having the same problem deploying a Flask application
==> Verifying app config
--> Verified app config
==> Building image
Remote builder fly-builder-hidden-darkness-4256 ready
Error failed to fetch an image or build from source: app does not have a Dockerfile or buildpacks configured. See https://fly.io/docs/reference/configuration/#the-build-section
In the builder logs I see a lot of lines like that:
2023-01-05T13:50:42.064 app[3d8d3e1ce499e8] fra [info] time="2023-01-05T13:50:42.057507479Z" level=debug msg="Calling GET /v1.41/containers/json?filters=%7B%22status%22%3A%7B%22running%22%3Atrue%7D%7D&limit=0"
Hello! @ctrlaltdylan Please try deleting your remote builder instance - Fly will recreate it and hopefully resolve that issue. vin might be out of capacity, in theory a builder shouldn’t have been created there.
@liutprand Try the same thing! That’s a different error in your case, but deleting the builder (resulting in Fly recreating a new one) might clear that up.
If both/either of you have Docker installed locally (and are on Intel CPU’s instead of ARM - e.g. Mac M1/M2 computers), you can also use the --local-only flag to use your local Docker to build the image.
Thanks @fideloper-fly I didn’t realize that a remote builder was literally a temporary app instance.
Deleting the auto-generated builder app looks like that did the trick.
But just anecdotally, I did wipe all other apps from my dashboard earlier today, only my production app was left and I did still see this deployment memory error.
So for anyone else visiting this thread in the future, a builder fly app is instantiated when you start a deploy, and it will have an autogenerated name like fly-builder-white-shadow-9057 for example.
When your deployment fails, this temporary app persists. You’ll need to delete these temporary apps from your account in order to free up space on the remote builder.
Thanks @fideloper-fly - P.S. I think I read your blog back in the day on hosting PHP Laravel apps on linux, super helpful stuff. Now we’re in the world of containers, but those foundations have helped me so much. Much appreciated!
I think the vin region is “special” and shouldn’t be getting builders currently (it looks like the new one created for you is in ORD).
In that case, a new volume couldn’t be created for that builder (rather than an existing builder running out of disk space - that’s possible too, however!)
I’m glad you found that past articles and other stuff helpful! It’s helping me here too
I have deleted my free builder several times and am still getting the same error. The new builders are also in the pending state and have no volumes so perhaps there really is an issue with where they are getting deployed to (vin - in my case).
Hey!
In your case, the error was app does not have a Dockerfile or buildpacks configured - do you not have a Dockerfile, or perhaps it’s not located in the same directory as your fly.toml?
fly deploy
==> Verifying app config
--> Verified app config
==> Building image
WARN Failed to start remote builder heartbeat: Couldn't allocate volume, no disks available (region: vin, size_gb: 50)
Error failed to fetch an image or build from source: error connecting to docker: Couldn't allocate volume, no disks available (region: vin, size_gb: 50)
I am on latest fly version (fly v0.0.446 darwin/arm64 Commit: 352bd3e3 BuildDate: 2023-01-11T19:05:35Z)
I have attempted to delete the temporary builder instance with fly apps destroy a few times and the error persists
I’d suggest you to build your app locally using a Dockerfile then when deploying use --local-only
flag,
fly deploy --local-only
it will build your app using the Dockerfile and deploy without the need of a remote builder, i was having the same issue over and over, solved when did the above.