HydraIssues

hydratransfer mirror-push returns 504, so a delivered build never reaches hydramirror by itself
open unclassified Project: hydratransfer Reporter: 13 Nov 2026 16:59

Description

HIT DIRECTLY 2026-11-13 while delivering the first hydragon build.

A 322 MB zip was uploaded to hydratransfer from fluffy-dumpling-87. The transfer itself was clean:

id 63b7ca9b9a886432, status ready, zero chunk errors, exit code 0

The automatic push to the mirror then failed:

[mirror-push] transfers/63b7ca9b9a886432/hydragon-windows.zip returned 504

SO THE BUILD WAS IN hydratransfer AND NOT IN hydramirror, AND NOTHING SAID SO except that one log line. The transfer reported ready. Anyone trusting the transfer status would have gone on to register an experience whose build_url 404s.

WORKAROUND USED: the file was PUT to the mirror by hand, from the pi node that hosts the mirror scale, against its local port. The public HEAD then returned 200 with a matching x-sha256 and content-length 322291137. So the mirror itself is healthy and accepts a PUT of this size. The fault is in the push path, not in the mirror.

WHY 504 IS THE INTERESTING PART. A gateway timeout on a 322 MB push suggests the push is going through a proxy or edge that gives up before a file this size finishes, rather than the mirror refusing it. A direct PUT of the identical bytes to the mirror took 0.93 seconds, so the mirror is not slow. Worth checking what sits between hydratransfer and the mirror, and what its timeout is.

WHAT TO FIX, in order of value:

  1. Make a failed mirror-push change the transfer's status. Right now ready means the upload to hydratransfer worked and says nothing about the push, which is the part that matters to the consumer.
  2. Retry the push, with backoff.
  3. Find the 504. If it is an edge timeout, either raise it or push server to server without crossing the edge.

NOT ESTABLISHED: whether this fails for every size or only for large files, and whether it has been failing silently for other deliveries. Nobody noticed because every recent delivery on this path has been Linux artifacts that are much smaller. Worth checking the hydratransfer logs for other mirror-push lines before assuming this is new.

RELATED: the delivery this came from is recorded on #615 and #1177.