HydraIssues

Setting a node's release_channel does not reach the body: config_cache keeps the old channel
open bug Project: hydracluster Reporter: 15 Oct 2026 00:32

Description

Hit while trying to deploy a staging build of hydrabody to cloud-l4-euw1 (node-558827b8) for #798 and #804.

Symptom

Setting the node's release channel appears to work but never reaches the body.

  1. POST /admin/nodes/node-558827b8/release-channel with release_channel=staging returned 303 (success).
  2. GET /api/v1/nodes/node-558827b8 then reported release_channel: staging, so the node store has it.
  3. hydrabody was restarted on the body. Its config_cache.yaml kept an mtime of 22:35:55, from well before the change, and contains no release_channel key at all.
  4. The body therefore built a production updater and stayed on v2.0.69. handlers_body.go resolves the channel into the BodyConfig response (node-level over district-level), so a fresh fetch should have carried it.

hydrabody writes config_cache.yaml only when the content changes, so an unchanged mtime means the config it received genuinely did not contain the new channel. The body config response looks stale relative to the node store.

Why it matters

There is no other supported way to move one body to staging. hydrabody update --force always builds a production updater (internal/cli/root.go calls NewProductionUpdater unconditionally); only the in-process auto-updater honours staging (pkg/provider/provider.go). So with channel propagation broken, a staging build cannot be delivered to a single body through any sanctioned path, and testing a fix on one test-district body means hand-replacing the binary.

That is what I had to do here, which is also where I learned that hydranode restarts hydrabody fast enough to lock the exe, so an overwrite loses the race and the binary has to be renamed aside first.

Suspected cause

A server-side cache. The body config handler reads from caches (s.districtCache, s.venueCache, and whatever snapshot backs the node lookup) that the admin write path does not invalidate.

Secondary ask

POST /admin/nodes/{id}/release-channel is web-auth only (RequireWebAuth), with no /api/v1 equivalent. Every other node mutation used operationally is available over bearer auth. Setting a channel needs a form login and a cookie, which is awkward for automation; an API route would be worth adding.

Session Context

Venue
mobile-kit