HydraIssues

Removing the hydrabody role leaves sunshine.exe running and listening
done bug Project: hydranode Reporter: 12 Nov 2026 20:03

Description

Removing the hydrabody role from a node stops the HydraBody scheduled task,
but it leaves sunshine.exe running and listening.

Seen on 2026-11-12 while turning the two RTX 5080 bodies into HydraBrain
providers for #1172:

node venue sunshine processes
crispy-badger-25 (node-1eb186e9) fti-experience-zone 1
zappy-cactus-6 (node-ff913390) mobile-kit 2

On both, after the role was removed:

  • schtasks /query /tn HydraBody returns nothing. The task is gone, as expected.
  • Get-Service SunshineService reads Stopped and Disabled.
  • C:\Sunshine\sunshine.exe is still running and still holds listeners on
    47984 and 47989.

So these are orphans of the old role. Nothing will restart them, and nothing
stopped them. chunky-turnip-23 behaved differently on 2026-11-09: both of its
sunshine processes stopped and did not return when the same role was removed.

Why it matters on a brain body

Both machines now hold a 12.24 GiB model in a 16 GB card, with about 1.1 GiB
spare. The GameStream pairing credentials are the same across the fleet, so a
direct Moonlight client that reaches the LAN can still pair and start an encode
on a card that has no room for one. That would take the model out of VRAM and
the provider out of discovery.

It is also the shape of an orphaned listener in general: a process with no owner
holding a port on an enrolled machine.

Asked for

  1. Decide whether hydranode should stop sunshine.exe when hydrabody goes,
    the way it stops the task. If yes, that is the fix.
  2. Until then, say whether the two orphans should be killed by hand. They were
    left running and reported rather than killed, because stopping a listener on
    an enrolled machine is an owner call.

Context: hydrabrain faf8347 on main records the same finding in
docs/runbooks/runbook.md.

Session Context

Venue
mobile-kit

Comments (2)

api 12 Nov 2026 22:39

Owner ruled: kill them. Done on 2026-11-12.

All three orphans are stopped. Stop-Process -Force through the cluster exec
channel, nothing else touched.

node PIDs stopped started sunshine processes now
crispy-badger-25 (node-1eb186e9) 3704 08:26:37 0
zappy-cactus-6 (node-ff913390) 7620, 13808 19:13:40 0

Verified after the kill on both:

  • Get-Process sunshine returns a count of 0.
  • Get-NetTCPConnection -State Listen has nothing on 47984 to 47990. The
    remaining rows for 47989 are TIME_WAIT, which is the kernel draining old
    connections, not a listener.
  • SunshineService still reads Stopped and Disabled, so nothing will
    bring it back without the hydrabody role.

Both brains survived the kill and still serve. GET /api/v1/hydrabrains
returns four providers, and a completion through each new provider's own scoped
token returned real text:

crispy-badger-25  Q3_K_XL  vram=15135/16303  120 tokens in 2.5s
zappy-cactus-6    Q3_K_XL  vram=15206/16303  120 tokens in 2.5s

Still open: hydranode should do this itself

The manual half is finished. The product half is not. Removing hydrabody
stopped the task and disabled the service but left the process running, while
chunky-turnip-23 came out clean on 2026-11-09 with the same role change. Until
that difference is understood and hydranode stops the process when the role
goes, every future brain conversion leaves listeners open on a machine whose
pairing credentials are the same as the rest of the fleet.

One thing found while verifying, not caused by the kill

crispy still runs two HydraExperienceNet.exe kiosk processes, and both make
repeated outbound connections to port 47989 on public addresses:

  • 94.224.39.25, which is the ip field of the node spicy-muffin-94-macmarchy.
  • 31.31.128.111, which appears in no node record in the cluster, in no
    session and in no district. It is not in the head config either, and nothing
    under C:\hydraheadwindows or C:\Program Files\HydraKiosk contains it.

Every attempt sits in SYN_SENT, so nothing answers. The processes started at
08:23, before the role change, so this is not a result of removing the body,
and zappy's head makes no such attempts.

Worth a separate look, because the head carries sunshine_username and
sunshine_password and the pairing credentials are fleet-wide (#549). Where a
head gets a body address that the control plane does not know is the question.

The two heads are also launched by two different supervisors: PID 10292 by
hydraheadwindows.exe with --district bxl1 --venue fti-experience-zone, and
PID 10056 by C:\Program Files\HydraKiosk\HydraKioskGuard.exe with no district
and no venue at all.

Checked and cleared while looking: the WINDOWS25H2-AppAutoFix autorun entry
on crispy is benign. It runs a vendor script that registers inbox Microsoft
Store apps from local package files, it makes no network calls, and the same
folder is on both bodies as part of the base image.

api 15 Nov 2026 07:11

Closing on the owner's call. The orphans are gone and the record is in the
runbook.

What was actually fixed: the three live orphans were stopped on 2026-11-12,
both bodies report no Sunshine process and nothing listening on 47984 to 47990,
and both brains kept serving across the kill.

What was not fixed: hydranode still does not stop sunshine.exe when the
hydrabody role is removed. It stops the task and disables the service, and
leaves the process running. chunky-turnip-23 came out clean with the same role
change on 2026-11-09, and that difference is still unexplained. So this
reproduces on the next brain conversion.

Carried forward so it is not lost with this issue:

  • hydrabrain/docs/runbooks/runbook.md says to check for orphaned listeners
    after every brain conversion
    , with the command to do it.
  • The same check is in the operator memory for 16 GB brains.

Re-open or file a fresh issue if hydranode should own the stop.