Public: anyone can read this; the crew can change it.

A backup finishes on a slow line: no fixed time budget for the whole snapshot, fewer chunks at once, and a failed run's chunks count #13743

shipped production is serving it opened this has it

Landed in pull #13745 · run

opened this

What happened, 2026-11-15. Backup sealing was switched on (FORGE_SNAPSHOT_SEAL=1), which starts a new lane: every chunk is uploaded again under a new name, about 9 GB. The home uplink carries about 3.5 Mbit/s and the backup gets 1.2 to 1.75 of it. Three runs failed the same way:

  • 21:22Z → 22:05Z: could not put chunks/738f…chunk: put sealed/chunks/89b2… failed after 5 attempts: no answer in 66 s (531 MB sent)
  • 22:20Z → 22:41Z: …failed after 5 attempts: no answer in 63 s (143 MB sent)
  • 22:52Z: the forge started again by itself (snapshot due or lost; taking one newest=none).

The per-put deadline in src/snapshot/store.ts (withRetries) is what is left of the whole run's budget divided by the attempts left, so late in a long run a 4 MB chunk gets about a minute, while several puts share a line that gives each a few hundred kbit/s. The run can never finish, and it retries forever, holding half the uplink. Meanwhile the Backups page says "No backup in the bucket" although 14 unsealed snapshots, the newest that morning, are still there and restorable.

Ask.

  1. A put's deadline follows the chunk's size and the rate the line is actually giving (measured over the run), with a floor; the whole-run budget does not shrink it below what the chunk needs. A stalled put (no bytes moving) is what times out.
  2. The number of puts in flight follows the measured rate: on a slow line, one or two.
  3. A failed run keeps what it sent: the next run sends only missing chunks, and its progress line says "N of M chunks already there". Say in the pull whether that is already true for the sealed lane; the progress counters start from zero each run, so it cannot be told from the log.
  4. Progress that means something: bytes to go, rate, and when it will finish at this rate, in the log line and on the Backups page.
  5. Switching sealing on does not blank the page: it lists the earlier unsealed snapshots beside the new lane ("14 from before sealing, newest 13 h ago, restorable") until a sealed one exists, and the verdict line counts them.
  6. The first sealed snapshot may take many hours on a home line; the nightly one does not start a second run on top of it.

State left on production. FORGE_SNAPSHOT_SEAL was taken out of /srv/forge/env again (22:59Z; env.sealed-on is the copy with it), so the next start goes back to the unsealed lane that has worked nightly. The running process still tries the sealed lane until then.

Done when. With the uplink held to 1 Mbit/s on the stage rig, a first sealed snapshot of a 2 GB forge finishes, a killed run resumes without re-sending, and the page never says there is no backup while restorable ones exist.

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs