HydraIssues

hydramirror nbg1 has 2.52 GB free of 40 GB: no real Unreal package can upload
closed bug Project: hydraperforce Reporter: cederik 31 Aug 2026 21:19

Description

Found during hydragon reconnaissance (#615) on 2026-08-31.

The nbg1 mirror is nearly full. Verified live: available_bytes 2522296320, used 35767435264. That is 2.52 GB free of 40 GB.

Why it matters

hydraperforcewatcher uploads every build archive to the mirror before it notifies hydracluster. The Gallo-Romeins packages are 5.3 GB each. A single real Unreal package will not fit in the space that is left.

hydragon Phase 1 (#623) submits a trivial proof artifact, which fits. Phase 2 (#624) submits a real packaged build, which does not. So this blocks Phase 2 and it will block the next Cyborn or Soulmade build of normal size too.

What to do

  1. Find what is holding the 35.8 GB. Old build archives are the likely answer.
  2. Decide a retention policy. Today nothing appears to expire.
  3. Free space, or grow the mirror volume.
  4. Add a free-space check to the watcher's pre-upload path, so a full mirror fails loudly instead of at the end of a long upload.

Related: #615, #624, #609 (the other silent failure in the same chain).

Comments (3)

api 18 Sep 2026 13:47

This bit production today (2026-09-18). Cyborn submitted gallo-romeins-museum CL9 (4.8 GB build.zip, "Automated deploy from Jenkins E") and every watcher upload attempt failed with HTTP 507 storage limit exceeded from nbg1.hydramirror; the watcher retried every 5 minutes since 13:09 UTC. The build never reached the mirror or the experience library.

Unblocked by deleting the stale builds/galloromeins/ tree on the nbg1 mirror (5.0 GB, 353 loose files from the 2026-08-14 standalone-box trial era, old watch name, referenced by nothing in the experience library, re-syncable from the Perforce depot). Deleted via the mirror DELETE API so files.yaml stays consistent. Store now 29.05 GB of the 32 GB max_storage; disk 6.3 GB free of 38. CL9 then uploaded and registered as library build 4 at 13:45 UTC.

Still fragile: max_storage 32GB with retention DISABLED in /var/lib/hydramirror/config.yaml, and gallo builds are ~5 GB each, so the next 1-2 Cyborn submits hit 507 again. builds/gallo-romeins-museum holds CL 1/5/8/9 (~16 GB). Options: enable retention (releases/ only, ~9.6 GB there) plus a builds/ retention policy, grow the disk, or point the watcher at bxl1 (~205 GB free).

api 7 Oct 2026 13:36

RECURRED AND BLOCKED PRODUCTION AGAIN 2026-10-07. Gallo CL10 (new 5.0 GB build, Automated deploy from Jenkins E) could not upload: nbg1 mirror at 97% (1.2 GB free of 38), store at the 32 GB cap, HTTP 507, watcher retrying every 5 min since 13:24 UTC. This is the second production hit (first was CL9 on 09-18).

Unblocked again by hand: deleted superseded gallo builds CL1/CL5/CL8 from the mirror via DELETE API (CL9 live stays; fluffy keeps local .bak trees + Perforce for rollback). Freed ~11 GB (now 68% used). CL10 then uploads.

This manual prune every ~2-3 weeks is not sustainable. gallo builds are ~5 GB each and retention is DISABLED and in any case only covers releases/, not builds/. Please pick a real fix:

  • Add a builds/ retention policy (keep N newest per experience) to hydramirror and enable it, OR
  • Grow the nbg1 mirror disk (38 GB is tiny for 5 GB Unreal builds), OR
  • Point the gallo watcher at the bxl1 mirror (far more free space), OR
  • Have the watcher prune old builds after a successful upload.
    Until one lands, every Cyborn submit risks a silent 507 (the watcher marks the CL processed and only logs WARN/ERROR, nothing alarms).
api 13 Oct 2026 20:38

FIXED AND DEPLOYED 2026-10-13. hydramirror v1.20.1 adds builds/ retention: keep the newest builds_keep builds per experience (ordered by changelist), wired into the scheduled retention loop, the prune CLI, and - the real fix - the upload path, which now reclaims superseded releases and builds before returning 507 so a near-full mirror self-heals instead of blocking a Cyborn submit. Unit tests cover the planner, Reclaim, and the PUT-reclaims-before-507 behavior.

Live on nbg1: retention enabled, keep=5, builds_keep=2 (its 38 GB disk only fits two ~5 GB gallo builds), interval 6h. Startup log confirms "keeping newest 5 releases per project/channel and 2 builds per experience". Cleared a 1.36 GiB release backlog on first prune; store now 27.7 GB of the 32 GB cap (4.3 GB headroom). gallo currently holds CL9+CL10 = exactly builds_keep, so prune shows 0 builds to remove, as intended; the next build triggers the upload-path reclaim.

Two residuals, filed/noted separately: (1) the CI OCI publish still 401s on a stale SCALE_REGISTRY_TOKEN, so the container mirror scales (bxl1, bxl1-b) lag on the old version until that secret is refreshed - low impact, they have ample disk. (2) The GO_PRIVATE_TOKEN CI secret was seeded from a short-lived OAuth token to unblock the release and should be rotated to a durable PAT. Closing: the recurring 507 that blocked gallo builds is resolved.