HydraIssues

hydrarelease: publish API's hydramirror proxy rejects binary uploads (broke hydratam v0.1.16 release)
open bug Project: hydrarelease Reporter: 14 Oct 2026 20:20

Description

Tagging hydratam v0.1.16 on 2026-10-01 (GitHub Actions run 36915641388) failed at the "Publish to release server" step: curl -sf ... $SERVER/api/v1/publish/hydratam/production/v0.1.16/hydratam-darwin-amd64 exited 22 (HTTP error). Tests, binary builds, and the GitHub Release itself all succeeded; the separate Publish OCI image job also succeeded in full, so hydratam's actual production deployment (a container scale on pi-node-001) is unaffected -- this only breaks the legacy binary channel (host installs, hydratam update CLI, hydrarelease verify --project hydratam).

Root cause, read from hydrarelease's own source (internal/api/handlers_publish.go, handleUploadBinary): the publish API no longer writes to /var/www/releases/ directly -- it proxies every upload to a separate hydramirror backend (s.MirrorURL, PUT to {MirrorURL}/api/v1/files/releases/...). If MirrorURL is empty it 503s ("mirror not configured"); if the mirror PUT fails or returns a non-200/201 it 502s ("mirror returned %d" / "failed to upload to mirror"). Either produces the >=400 curl saw. releases.experiencenet.com itself is up and routing correctly (confirmed live: GET on the publish endpoint returns a clean 405 Method Not Allowed, not a connection failure or 5xx), so the fault is in the hydramirror leg specifically.

Not a duplicate of #494: #494 was the older rsync-over-SSH upload breaking on a dead RELEASES_SSH_KEY, fixed by migrating to this publish API. This is a regression in that newer path's own hydramirror dependency, introduced sometime after #494 closed out across the fleet.

Next step: check hydramirror's health/config on the release server (46.225.120.7) -- is MirrorURL set at all for the publish handler, and if so is hydramirror itself reachable from there.

Session Context