Machine stuck in "replacing" in ams, image pull never completes

Hi Fly team,

Our only production machine has been stuck in the replacing state for over an hour and we can’t get it out of it ourselves.

Details

  • App: stoper-io (Personal org)
  • Machine: 7843d19c3d22e8 (region ams, shared-cpu-1x / 1024 MB, attached volume)
  • Stuck since: 2026-11-22 20:31:49 UTC (still replacing at 21:53 UTC)
  • Last good release: v357 (2026-11-20 17:39 UTC, image deployment-01M7X0KYD8J40BH49MJE7B42ST)

What happens
Every deploy since v357 hangs on the machine update. Releases v358 (18:44 UTC), v359 (19:05 UTC) and v360 (20:31 UTC) are all still shown as running. The deploy (flyctl deploy, --wait-timeout 600) hangs at “Updating 7843d19c3d22e8 [app]” until our CI job times out.

The machine log shows the runner starting to pull the new image twice, with nothing after it. Neither entry is followed by a pull completion, a stop or a start:

2026-11-22T20:31:49Z runner[7843d19c3d22e8] ams Pulling container image registry.fly.io/stoper-io@sha256:d52edc404d2977080c0688a711319bc88c493c928e83b54bf6dd53fdb8ec0097
2026-11-22T20:41:50Z runner[7843d19c3d22e8] ams Pulling container image registry.fly.io/stoper-io@sha256:d52edc404d2977080c0688a711319bc88c493c928e83b54bf6dd53fdb8ec0097

Machine event log: two update events (source: user) at 20:31:49 and 20:41:50 UTC, both left in state replacing. The old v357 process is still serving traffic, so the site is up, but we can’t deploy.

What we checked

  • The new image is the same size and shape as the working one (24 layers, ~229 MB) and is present in registry.fly.io.
  • flyctl machine restart 7843d19c3d22e8 fails with:
    failed_precondition: unable to restart machine, not currently started or stopped
  • flyctl machine leases view reports no leases.
  • The status page shows no incidents.
  • The dashboard shows the app as “Suspended / no started machines”. Billing is in good standing.

Request
Could you look at the host for this machine and clear the stuck update? We’d like it to finish pulling the v360 image, or at least return to started on v357 so we can deploy again. The machine has a volume with our production database, so please don’t destroy or move it without letting us know.

Possibly related: Release machines stuck in "created" in ams, deploys failing (ams, since ~18:57 UTC today).

flyctl v0.5.8 (darwin/arm64).

Thanks!

I’m experiencing the same issue, and am suspecting something is wrong with the registry.

When manually trying to download an image from the registry, some blobs get stuck at 0.0 b/s, and I’m suspecting the same thing happens on the machines being deployed.

$ podman pull registry.fly.io/someproject:deployment-01M6JPBX42FVX5REDACTED
Trying to pull registry.fly.io/someproject:deployment-01M6JPBX42FVX5REDACTED...
Getting image source signatures
Copying blob 42b024b8eb56 done   | 
Copying blob 3c1f386a3104 done   | 
Copying blob 243e016c564b done   | 
Copying blob 38f114a3f3ed done   | 
Copying blob 6167376d7144 [--------------------------------------] 0.0b / 235.0b | 0.0 b/s
Copying blob 08b29febe6f0 done   | 
Copying blob 17247a8fdf40 done   | 
Copying blob 241e2f2d1684 done   | 
Copying blob 2cd10cd0d762 [--------------------------------------] 0.0b / 256.0b | 0.0 b/s
Copying blob 7442be2528a3 done   | 
Copying blob e96738d762b3 done   | 
Copying blob ae9bc394869b done   | 
Copying blob e11b5a269e48 done   | 
Copying blob 88cb3e67ce86 done   | 
Copying blob a6a54962ca1c done   | 
Copying blob 53ecafe9e62b done   | 
Copying blob 394d08de086e done   | 
Copying blob 0fed053670a7 done   | 
Copying blob e22c6beefc8c done   | 
Copying blob 4f4fb700ef54 [--------------------------------------] 0.0b / 32.0b | 0.0 b/s
Copying blob 3b147d01fb78 [--------------------------------------] 0.0b / 903.4KiB | 0.0 b/s
Copying blob 1d063f50b221 [--------------------------------------] 0.0b / 481.0b | 0.0 b/s
Copying blob 9c0dec4b824e [--------------------------------------] 0.0b / 27.3MiB | 0.0 b/s

Hm… If you try fly m run --region ewr registry.fly.io/someproject:deployment-01M6JPBX42FVX5REDACTED, does it pull successfully?

(Fly.io’s registry has caches in different regions, etc., and it could be just ams that’s a little haywire lately…)

Same here since ~22:17 UTC on two apps. Both stall on their ams machine, while each app’s stopped standby in fra takes the same image in ~3 s.

  • whist: machine 814e1ec9554908 (ams) has been stuck in replacing since 23:32:08 UTC. The runner logs Pulling container image registry.fly.io/whist@sha256:ee287c146f1812b6e04fcb95c08e848145102a3a893d9790a6664fcef162f12f and nothing after it; a second update at 23:37:10 stalls the same way. The old process keeps running. The same digest pulled on fra (d8dd60da3d3d18) in 2.9 s at 22:19.
    • onlinewhist: a deploy at 23:22 UTC hung on d891e961f19068 (ams) the same way (the update call never returned), while the fra standby updated at once. A manual fly machine update at 23:30 went through in 30 s, so it’s intermittent.
      The same flyctl (0.5.14) and workflow deployed fine at 17:40 UTC. It looks like the ams registry cache, as suggested above. Could someone on the Fly team look at image pulls in ams? Thanks!

Yes, running a machine in EWR was possible and the machine came up quickly.

Hey all! I believe you all (at least @Litkowicz and @paulpruteanu) are running into a known race condition with machine updates. It looks like we have a patch but it hasn’t gone out yet. I’ve asked our machines team to have a look :slight_smile:

Hi thank you so much. It is working :slight_smile:

Pozdrawiam
Piotr Litkowicz