nullhub
nullhub copied to clipboard
BUG: nullhub restart of a nullboiler instance leaves zombie processes and the restart command itself hangs
Environment
- nullhub v2026.5.29 (released binary, linux-aarch64, alpine 3.24 container)
- Managed instance: nullboiler/boiler-1 (hub-installed v2026.5.29)
- Restart invoked via
nullhub restart nullboiler/boiler-1(CLI, inside container)
Reproduction
nullhub install nullboiler --name boiler-1→ instance running- Modify the instance
config.json(e.g. add aworkersarray) nullhub restart nullboiler/boiler-1(repeated, at least 4 times over ~1h)
Observed
ps inside the container after several restarts shows 7 overlapping nullboiler processes, including:
1269 /root/.nullhub/bin/nullboiler-v2026.5.29 ← old server still alive
1298 nullboiler ... history list --limit 1 --offset 0 --json ← hung child, never exits
1313 nullhub restart nullboiler/boiler-1 ← the restart command itself, wedged
Consequences observed during this state:
nullhub restartnever returns (the process remains for 15+ minutes)- Child
nullboiler history listinvocations hang indefinitely (reproduced standalone viadocker exectoo — the CLI subcommand does not honor the documented flags and behaves like a server start) - Multiple live servers contend for the SQLite DB; reads of
config.jsonmid-restart return truncated bodies (error.UnexpectedEndOfInputin boiler logs) - NullBoiler's tracker pull-mode shows silent no-claims while duplicates fight over the DB (fixed by killing all boiler processes and letting the hub supervisor bring up exactly one)
Expected
nullhub restartstops the old process tree completely (including any CLI children it spawned), returns only when the new process is healthy, and never leaves more than one server process per instance.
Notes
- The hung
history listchild may be its own bug:nullboiler history list --limit 1 --offset 0 --jsonstarts a long-running process instead of printing history and exiting (possibly flag parsing falling through to default command). - Happy to provide full logs/configs.