Remote builder failures block deployment

Hello Fly.io team. On October 23, 2026, deployments of pimple-relay-homologacao in GRU failed. With Depot enabled, flyctl deploy returned failed to fetch an image or build from source: error building: resolve: Access denied (the CLI displayed “Acesso negado”).

With --depot=false, the remote builder timed out while requesting the Machines API; its logs reported a machine lease held by the Fly.io system. After --recreate-builder, a new builder started and Docker became available, but the deploy stayed at Building image with Docker without progress. I canceled before a release was created. The app remains on v32, with one machine started in GRU and its health check passing.

Could you inspect the remote builder or lease state for this account and advise the supported recovery path? The installed flyctl version is v0.4.71.

Can you share the exact output from the build command? Just showing “Error” doesn’t have enough detail for me to figure out what’s going on.

If your builders are in GRU, try using another region as well, let me know if that works around the problem.

Thanks. I tested with the legacy remote builder.

Setting FLY_REMOTE_BUILDER_REGION=gig failed because Fly reports that gig is deprecated and cannot provision new resources.

I then ran a build-only attempt in iad with --depot=false and --recreate-builder. The builder fly-builder-starlit-songbird-473 started in iad, and flyctl reported:

Remote builder fly-builder-starlit-songbird-473 ready
==> Building image with Docker
→ docker host: 24.0.7 linux x86_64

The build produced no further output or progress, so I canceled it. This was a build-only attempt; no release was created. The app remains on v32, with its machine in gru and health check passing.

Could you investigate why the build hangs after the iad builder and Docker become ready, and advise the next supported step?

Hi Airton,

gig is indeed deprecated and has been for more than a year. Why are you trying to use that region?

Try relocating your Depot builder to dfw or iad, you can do this in your dashboard settings.

Update: I changed the app-specific Depot builder for pimple-relay-homologacao from SA to IAD (Ashburn) in the dashboard. The shared organization builder was already in IAD.

I retried with a build-only command using the app-scoped Depot builder:

flyctl deploy --build-only --depot=true --depot-scope app -c fly.toml

The config validation passed, but the build failed before producing an image:

Error: failed to fetch an image or build from source: error building: resolve : Acesso negado.

No image or release was created; the app remains on v32. Could you investigate why Depot source resolution still returns Access denied for this app-scoped builder in IAD?

Hi, those access denied errors sound like a different thing. Can you set LOG_LEVEL=debug and then share the full output? (it’ll be long, api calls/request/responses).

Did you confirm your flyctl is properly authenticated? fly auth whoami, fly apps list should all work. If these error, try fly auth logout and then fly auth login. Make sure FLY_API_TOKEN is unset.

Thanks. All the authentication checks succeeded:

  • FLY_API_TOKEN is unset.
  • flyctl auth whoami succeeded (I am omitting the account identity here).
  • flyctl apps list succeeded and shows pimple-relay-homologacao as deployed.
    I did not log out or back in because authentication is working.

I reran the build-only command with LOG_LEVEL=debug:

flyctl deploy --build-only --depot=true --depot-scope app -c fly.toml

The command made two Depot attempts; both failed the same way. Below is the complete build-related request/response trace with temporary build tokens and account/local identifiers redacted:

GET /v1/apps/pimple-relay-homologacao → HTTP 200
GET /api/v1/organizations/[REDACTED] → HTTP 200

POST /api/v1/builds
Request: {“app_name”:“pimple-relay-homologacao”,“builder_type”:“depot.dev”,“strategies_available”:[“depot.dev”]}
Response: HTTP 200 {“status”:“started”}

POST /api/v1/builds/depot_builder
Request: {“app_name”:“pimple-relay-homologacao”,“builder_scope”:“app”,“region”:“”}
Response: HTTP 200 {“build_id”:“[REDACTED]”,“build_token”:“[REDACTED]”}

Depot result: error building: resolve : Acesso negado.

POST /api/v1/builds/finish
Request summary: status=failed; strategy=depot.dev; machine_id empty; builder_meta has no remote app or machine; final_image empty; push_ms=-1.
Response: HTTP 200 {“status”:“failed”}

The same sequence repeated for the second attempt, with the same result. No image or release was created; the app remains on v32.

The dashboard now shows the app-specific builder in IAD (Ashburn), but the debug request to /depot_builder still sent an empty region. Is that expected? Could you investigate why the Depot resolve step returns Access denied even though the Fly API calls succeed?

Following up: I completed the requested LOG_LEVEL=debug build-only run. Authentication and Fly API calls succeeded, but Depot source resolution failed with Access denied on both attempts. No image or release was created, and the app remains on v32.

The dashboard shows the app-specific builder in IAD, while the /depot_builder request still contains an empty region. Could you confirm whether that is expected and recommend the next safe diagnostic or build strategy? We are holding off on another deployment until we understand this failure.

Hi, how about a local build?

fly deploy --local-only. Assumes you have Docker installed.

About the debug build it’d be good to see the verbatim log :slightly_smiling_face: feel free to elide app names, anything looking sensitive/key-like, but I do need the exact API call that’s failing (request/response). Verbatim, please, with elision if necessary.

Hi, the Depot engineers helped me debug this and , plot twist, the error is not from Depot but from Flyctl and ultimately from your operating system (“Acceso negado” can’t come from flyctl as it’s not localized). And the underlying cause seems to be some files flyctl cant’ read, you’ll need to review and fix their permissions.

before flycl sends anything, flyctl calls fsutil.NewFS on the Dockerfile directory and the build context, and that fails on filepath.EvalSymlinks. fsutil overwrites the path variable when that call fails, which is why it prints resolve : with no path.

The message you are getting is from Windows, where one of the folders on the local system denies access. Fixing the folder permissions or running from a directory they fully own should get them past it.