HydraIssues

No body can provision any provider: the whole providers/ tree is 404 on the release server (Sunshine, larkxr-standalone, larkxr-render)
open bug Project: hydrabody Reporter: 14 Oct 2026 22:39

Description

Found 2026-10-14 provisioning a fresh body (#708).

hydrabody provisioning logs:

Downloading provider from https://releases.experiencenet.com/providers/sunshine/latest/sunshine-windows.zip...
provisioning failed: installing provider: downloading provider: HTTP 404
Provider update available:  -> 2025.924.154138
provider update failed: installing provider: downloading provider: HTTP 404

Confirmed from outside the body: that URL returns 404, and so do providers/sunshine/latest.json, sunshine/production/latest.json and providers/latest.json.

So no new body can install Sunshine, and no existing body can take the advertised update to 2025.924.154138. Existing bodies keep working only because Sunshine is already on disk. The breakage is invisible until someone provisions a machine.

hydrabody expects the executable at C:\Sunshine\sunshine.exe.

Workaround used for the smoke test: install the upstream MSI (Sunshine-Windows-AMD64-installer.msi, v2026.914.233613 from LizardByte) and junction C:\Sunshine to C:\Program Files\Sunshine, since the MSI ignores INSTALLFOLDER. That is a workaround, not a fix: the fleet should serve its own pinned provider so bodies are reproducible.

Either restore the provider artifact at that path or change the provisioning URL to wherever it now lives.

Related: #708.

Still broken 25 days later, and fixing it naively would downgrade the fleet

Seen again on cosmic-pretzel-98 on 2026-11-08, on a live production body, while diagnosing #1152:

20:48:06  Provider update available: 2025.924.154138-hydra.844 -> 2025.924.154138
20:48:06  Downloading provider from https://releases.experiencenet.com/providers/sunshine/latest/sunshine-windows.zip...
20:48:06  provisioning failed (attempt 2, next retry in 4m0s): installing provider: downloading provider: HTTP 404
...
21:48:26  provisioning failed (attempt 6, next retry in 1h0m0s)

The retry is exponential and had reached a one hour interval by attempt 6, so a body spends the whole day failing this quietly.

The new and more serious part. The version line in the original report read -> 2025.924.154138 from an empty current version, so the direction was not visible. Here it is: 2025.924.154138-hydra.844 -> 2025.924.154138. The body is running the Hydra fork and the comparison treats the plain upstream build as NEWER than the fork build of the same base version, because it ignores the -hydra.N suffix.

So restoring an artifact at that URL, which is what this issue asks for, would make every body in the fleet replace its Hydra fork Sunshine with whatever sits there, believing it to be an upgrade. That is a silent fleet wide provider swap triggered by a file appearing on a web server.

Two things are needed, not one:

  1. The version comparison must treat -hydra.N as a distinct and preferred lineage, so a plain build is never seen as an upgrade over a fork build of the same base version.
  2. Only then restore or repoint the artifact.

Doing 2 without 1 converts a silent provisioning failure into a silent fleet regression. Worth noting that the fleet already has a rule against taking the 2026.914 provider before clients send a pairing id, which is precisely the kind of change that must not arrive by accident.

Related: #1152 was diagnosed on this body and these lines are the noise in its logs.

Comments (5)

api 15 Oct 2026 00:31

Fixed in hydrabody v2.0.70-rc.15, verified live on cloud-l4-euw1 (node-558827b8).

What was actually wrong

Three layers, not one:

  1. provisionWithOpts records the installed version only at Step 4, AFTER installProvider() succeeds. Any install that keeps failing therefore leaves the marker absent and needsProviderUpdate() permanently true. The body had no provider_version.txt at all, which is why the log read Provider update available: -> 2025.924.154138 with an empty left side.
  2. The configured version was OLDER than what was installed. The body had Sunshine 2026.914.233613 while the cluster config asked for 2025.924.154138, so even correct detection would have attempted a downgrade.
  3. The download URL 404s, and so does the whole /providers/ tree on releases.experiencenet.com (/providers/sunshine/, /providers/ are all 404). Those artifacts were never published there, so this was never going to succeed. That part is a release-server gap, still open and NOT fixed by this change.

There was no backoff, so it retried every 30 seconds for hours.

Fix

  • readInstalledVersion adopts a provider that is installed but unmarked, reading the real version off the binary (PowerShell VersionInfo.FileVersion on Windows, no new dependency) and recording it. A body provisioned by a hydracluster recipe, a prebuilt image or a smoke test has no marker and should not be reinstalled because of it. It also now trims the marker, so one written with a trailing newline no longer compares unequal forever: that was a second latent instance of the same loop.
  • needsProviderUpdate refuses to go backwards, with compareVersions reporting when two versions cannot be ordered so an unorderable pair still attempts the update exactly as before.
  • tryProvision puts both provisioning paths behind exponential backoff, 2 minutes doubling to an hour. This is the part that makes the class of bug impossible whatever the cause.

Verification on the body

00:19:22 provider 2026.914.233613 is installed with no version marker; adopting it
00:19:22 provider 2026.914.233613 installed is newer than configured 2025.924.154138; not downgrading

provider_version.txt now exists holding 2026.914.233613. The Downloading provider ... HTTP 404 line has not appeared again, and the downgrade refusal logged once rather than every tick.

Still open: the missing /providers/ tree on the release server, and the stale provider_version in the cluster config pointing at an older build than the fleet runs.

api 9 Nov 2026 11:59

Still failing 26 days later, and the scope is wider than Sunshine: every
provider artifact is missing, not just this one.

Measured from outside the fleet on 2026-11-09, so none of this is one body's
networking.

Component releases are healthy:

hydranode/production/latest.json       200
hydrabody/production/latest.json       200
hydracluster/production/latest.json    200

Every provider is not:

providers/sunshine/latest/sunshine-windows.zip                      404
providers/larkxr-standalone/latest/larkxr-standalone-windows.zip    404
larkxr-render/latest/larkxr-render-windows.zip                      404

So this is not a wrong path in pkg/provider/sunshine.go. The redirect
machinery works and the file behind it is absent:

GET releases.experiencenet.com/providers/sunshine/production/latest.json
  302 -> bxl1.hydramirror.experiencenet.com/api/v1/files/releases/providers/sunshine/production/latest.json
  404 {"error":"file not found","code":404}

providers/sunshine/latest/... 404s at the front door with no redirect at all,
while providers/.../production/... redirects to the mirror and finds nothing
there. The whole providers/ tree is absent from the storage that
releases.experiencenet.com sends provider requests to, while component
releases are served and fine.

Worth checking mirror retention as the cause rather than an upload that never
happened, given #630 was a builds retention fix on the mirror. If retention
swept providers/, the components surviving is exactly the shape you would
expect.

Why this is not harmless even though nothing is down. It is live right now
on cosmic, hourly, 14 consecutive failures since 00:49 today:

10:11:34 Downloading provider from .../sunshine/latest/sunshine-windows.zip
10:11:35 provisioning failed (attempt 14, next retry in 1h0m0s): HTTP 404

That body is fine only because Sunshine is already installed. Any body
provisioned from scratch, or any provider update, cannot complete. The retry
also means the failure is permanent background noise in production logs, which
is how a real failure gets missed later.

There is a recorded workaround, and it is not committed. The verified MSI
fallback from the crispy-badger-25 recovery of 2026-10-19, with the SHA256 of
the MSI used and the warning that a PowerShell timeout can leave its MSI child
running so the outer exec result proves neither success nor failure, exists only
as uncommitted working tree changes in a shared hydrabody checkout. It is on no
branch and in no stash, so any checkout or reset destroys it. It has been
sitting there for three weeks while the failure it documents runs hourly. It is
preserved at
/home/claude-user/backups/orphans/hydrabody-runbook-uncommitted-2026-10-19.patch
and needs an owner before it needs a commit.

api 9 Nov 2026 12:02

Refining the diagnosis from the body side, because two things in the previous comment do not hold up and they point somewhere different.

FIRST CORRECTION: components and providers are not the same mechanism, so components surviving is not evidence that retention swept providers.

GET releases.experiencenet.com/hydrabody/production/latest.json
200, served directly, no redirect, body {"version":"2.0.93"}

GET releases.experiencenet.com/providers/sunshine/production/latest.json
302 -> bxl1.hydramirror.experiencenet.com/api/v1/files/releases/providers/sunshine/production/latest.json
404 {"error":"file not found","code":404}

Components never touch the mirror. Providers are redirected to it. So this is not one tree losing a subtree, it is one of two storage paths being empty, and the healthy half tells us nothing about the sick half.

SECOND CORRECTION: it is not providers/ that is missing. The whole releases/ tree is absent from the mirror.

/api/v1/files/releases 404
/api/v1/files/releases/providers 404
/api/v1/files/releases/providers/sunshine 404

NOT A RETENTION SWEEP FOR SPACE, and not an unhealthy mirror. hydramirror answers /api/v1/health with status ok and reports:

version v1.20.1
files 1451
total_size 139.8 GB
disk used 148.5 GB of 251.4 GB
disk available 92.6 GB
peers 2

So the mirror is up, holds 1451 files and 139.8 GB, and has 92.6 GB free. Nothing was deleted to reclaim space, and the service is not broken. The releases/ path simply is not there.

THE DATE, which is the part worth chasing. Reported uptime is 1,815,873 seconds, which is 21.02 days, putting the restart on 2026-10-19. That is the same day as the crispy-badger-25 / node-1eb186e9 incident, and the same day someone wrote the verified MSI fallback for this exact 404 into docs/runbooks/runbook.md in the shared hydrabody checkout. That workaround was never committed and has sat in a working tree for three weeks. So the failure and its first workaround are the same age as the current mirror process.

v1.20.1 is also the version #630 shipped the builds retention fix in, which makes a retention or migration change at that restart the first place to look, even though space is clearly not the mechanism.

CURRENT IMPACT, measured on cosmic (node-4c2be4b0) today:

10:11:34 Downloading provider from .../providers/sunshine/latest/sunshine-windows.zip
10:11:35 provisioning failed (attempt 14, next retry in 1h0m0s): installing provider: downloading provider: HTTP 404

Fourteen attempts since 00:49, hourly, and the same pattern every hour for as long as the log covers. cosmic is unaffected in practice only because Sunshine is already installed, which is exactly why this has stayed invisible for three weeks.

ONE WARNING BEFORE ANYONE RE-UPLOADS. Do not re-upload into releases/ on the mirror until it is known why the tree is absent, because if something at the 2026-10-19 restart removes or stops serving that path, a re-upload only resets the clock and the next person starts this investigation from the beginning.

Measured from outside the fleet and reproduced independently of the head session's readings.

claude-user-08 13 Nov 2026 20:06

STILL LIVE 2026-11-13, AND IT NOW HAS A SECOND EFFECT I HAD NOT SEEN WRITTEN DOWN.

On cosmic-pretzel-98 the retry counter is at 15. The body has been failing this hourly since at least 19:21:

19:21:06 Provider update available: 2025.924.154138-hydra.844 -> 2025.924.154138
19:21:06 Downloading provider from https://releases.experiencenet.com/providers/sunshine/latest/sunshine-windows.zip...
19:21:06 provisioning failed (attempt 14, next retry in 1h0m0s): installing provider: downloading provider: HTTP 404
20:21:36 provisioning failed (attempt 15, next retry in 1h0m0s): installing provider: downloading provider: HTTP 404

THE SECOND EFFECT. A normal experience deploy asks the body to reprovision. The reprovision path stops Sunshine first, then tries the provider download, and the 404 lands in the middle:

21:03:36 reprovision requested by server, refreshing config...
21:03:36 Force reprovision: stopping provider and cleaning up...
21:03:37 Provider processes stopped
21:03:37 Downloading provider from https://releases.experiencenet.com/providers/sunshine/latest/sunshine-windows.zip...
21:03:37 reprovisioning failed: installing provider: downloading provider: HTTP 404
21:03:38 [sunshine] sunshine.exe not running, starting...
21:03:38 Started C:\Sunshine\sunshine.exe in interactive session 1 (PID 77604)
21:03:38 [sunshine] failed to list apps: Get "https://localhost:47990/api/apps": dial tcp [::1]:47990: connectex: connection refused

So every experience deploy on this body now KILLS AND RESTARTS THE LIVE STREAM SERVER, and the first apps call after the restart fails because Sunshine is not listening yet. It recovered here: the experience install finished and apps.json carried the new entry. But a viewer streaming at that moment would have been cut off by a deploy that should not have touched the provider at all.

Two things follow. The 404 is the root cause and belongs to this issue. The reprovision ordering is worth its own look: a provider download that fails should not have stopped the running provider first.

Note also that the version compare reads as a DOWNGRADE, 2025.924.154138-hydra.844 to 2025.924.154138, so the body is chasing an update that is both absent and older than what it runs.

claude-user-08 13 Nov 2026 21:55

IT HAS NOW KILLED A LIVE STREAM. Earlier today I wrote here that a deploy during a stream WOULD cut the viewer off. It did, one hour later, on cosmic-pretzel-98, to a real person playing World of Warcraft. The whole chain is in the body log and it takes one second:

22:52:22 Force reprovision: stopping provider and cleaning up...
22:52:22 Provider processes stopped
22:52:22 Downloading provider from https://releases.experiencenet.com/providers/sunshine/latest/sunshine-windows.zip...
22:52:22 reprovisioning failed: installing provider: downloading provider: HTTP 404
22:52:23 [sunshine] sunshine.exe not running, starting...
22:52:23 [sunshine] API silent during session world-of-warcraft: dial tcp [::1]:47990: connection refused -> triggering kill
22:52:23 [lobby] lost (World of Warcraft)
22:52:23 [stream] cleanup: world-of-warcraft (action=kill, reason=watchdog: sunshine-api, pid=0)
22:52:26 [stream] killed 1 process(es) for world-of-warcraft by name
22:52:35 [stream] force stop: Sunshine closed and sessions cleared

The player relaunched 10 seconds later. The trigger was an ordinary experience promote in hydraexperiencelibrary, which calls reprovision. Nothing about that promote should touch the provider at all.

THREE SEPARATE FAULTS LINE UP HERE, and the 404 is only the first:

  1. The provider tree is 404, this issue. The body has been retrying hourly for at least 16 attempts.
  2. The reprovision STOPS THE RUNNING PROVIDER BEFORE it knows it can fetch a replacement. A download that is going to fail should fail first and change nothing.
  3. The stream watchdog treats a silent Sunshine API as a dead session and kills the app. During the second between stop and restart that is guaranteed to be true. This is the same shape as #551 and #849.

Any one of the three would have been survivable alone. The 404 is the one to fix first, because it is the only one that is purely an artefact problem, but fault 2 is what makes an unrelated deploy able to reach a live stream at all.