Remote builder did not start in time

Hello. Can’t deploy new version of my app.
[andrey@fedora2022 Giftbox]$ fly deploy
==> Verifying app config
→ Verified app config
==> Building image
WARN Remote builder did not start in time. Check remote builder logs with flyctl logs -a fly-builder-wandering-fog-4087
WARN Failed to start remote builder heartbeat: remote builder app unavailable
WARN Remote builder did not start in time. Check remote builder logs with flyctl logs -a fly-builder-wandering-fog-4087
Error failed to fetch an image or build from source: error connecting to docker: remote builder app unavailable

My fly.toml

fly.toml file generated for malav-giftbox on 2022-09-04T05:07:32+03:00

app = “malav-giftbox”
kill_signal = “SIGINT”
kill_timeout = 5
processes =

[env]

[experimental]
allowed_public_ports =
auto_rollback = true

[[services]]
http_checks =
internal_port = 8080
processes = [“app”]
protocol = “tcp”
script_checks =
[services.concurrency]
hard_limit = 25
soft_limit = 20
type = “connections”

[[services.ports]]
force_https = true
handlers = [“http”]
port = 80

[[services.ports]]
handlers = [“tls”, “http”]
port = 443

[[services.tcp_checks]]
grace_period = “1s”
interval = “15s”
restart_limit = 0
timeout = “2s”

1 Like

Same error here. Is there any workaround?

Hey there, could y’all try running LOG_LEVEL=debug fly deploy and share the output here, that may give us some more specific information on what’s going on.

==> Creating release
→ release v48 created

→ You can detach the terminal anytime without stopping the deployment
==> Monitoring deployment

1 desired, 1 placed, 1 healthy, 0 unhealthy [health checks: 1 total, 1 passing]
→ v48 deployed successfully

Wow, I tried fly deploy once more, and today it works!!!

This is the DEBUG output:

e[2mDEBUG Loaded flyctl config from/Users/leokury/.fly/config.ymle[0m
e[2mDEBUG trying remote docker daemone[0m
e[33mWARN e[0mFailed to start remote builder heartbeat: Could not find App
e[33mWARN e[0mfailed to create build in graphql: input:3: createBuild Could not find App

e[2mDEBUG Trying ‘Buildpacks’ strategy
e[0me[2mDEBUG result image: error:Could not find App
e[0me[2mDEBUG Skipping FinishBuild() gql call, because CreateBuild() failed.
e[0m

I had the same issue when running the default fly deploy command. Over several attempts, I noticed the fly cli was always trying to run the remote builder which was never available. Since I am deploying from a local repo, I ran fly deploy --local-only to force the build process to run entirely on my machine. It then pushed and deployed the built image up to fly.io.

My setup was configured to deploy using Dockerfile.