sprites become unreachable: exec 503s, console times out, reboots have no effect (platform 0.0.4)

Two of my sprites, A and B, stopped accepting exec and console connections on 3 Nov. A third sprite in the same org, C, works fine. All three are on 0.0.4.

Symptoms

  • API exec returns Expected 101 status code: 503 every time.
  • sprite exec hangs, while the same command on sprite C returns immediately.
  • sprite console fails with: failed to start sprite command: failed to connect: read tcp …:443: i/o timeout
  • I’ve triggered reboots and upgrades from the management portal several times for both sprites, and none of them had any effect. The API still reports status as running for A and cold for B, and updated_at for both is from before the failure.

Context
Both sprites were busy right before failing, with several builds running in parallel, so they may have run out of memory. I saw the same exec 503 on one of them in October, right after the 0.0.4 storage migration; a restart from the console fixed it then.

Questions

  1. Is this a known issue, and is there a way to recover from it myself?
  2. Is there a way to see whether a sprite hit an out-of-memory event or crashed?
  3. Is there anyway to restart a stuck sprite?

Any pointers would be much appreciated!

Hello @jcqc! Apologies for the experience here. Depending on the root cause, it’s certainly possible to recover a wedged sprite by either restarting it or upgrading its version from the management control plane. However, since none of your reboot/upgrade operations have succeeded yet, we’ll have to apply manual intervention on our end for recovery.

There are different reasons why a sprite might wedge, but we’ll have to look into each one to investigate.

That said, I don’t see any sprite named “A” or “B” for your org, could you please share the sprite names? Otherwise, you can also submit the sprite details via https://fly.io/contact/

Thanks very much. Details as follows:

Sprite Sprite ID Exec result First noticed
flock-2 sprite-8aa29d1d-0e96-4726-bed0-fbfb61dabc91 502, no message (503 on 3 Nov) 3 Nov, about 10:00 UTC
flock-3 sprite-3ae88dee-31fd-45ef-bda5-75ad42ef15a1 503 Storage not ready 3 Nov, about 21:45 UTC
flock-1 sprite-45bec86a-1f25-4ed8-8156-20cc1bdd6789 503 Storage not ready 3 Nov, about 22:56 UTC
flock-ci sprite-10fb0e6e-69f1-4d03-a5ea-066a616aedfc 502, no message 4 Nov, while builds were failing
clod sprite-29fccf15-07b1-4d8d-8f58-964a83ec4f19 503 Storage not ready 23 Oct, after its upgrade to 0.0.4
clart sprite-87f5ef8b-6686-46d2-9599-c8ed6829c44d 502, no message 7 Nov (not in regular use, so it may have failed earlier)

Seems all got stuck under heavy use? I’d love a way to reset them or even roll back to checkpoint in future