nullhub icon indicating copy to clipboard operation
nullhub copied to clipboard

BUG: nullhub restart of a nullboiler instance leaves zombie processes and the restart command itself hangs

Open vernonstinebaker opened this issue 2 months ago • 0 comments

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

  1. nullhub install nullboiler --name boiler-1 → instance running
  2. Modify the instance config.json (e.g. add a workers array)
  3. 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 restart never returns (the process remains for 15+ minutes)
  • Child nullboiler history list invocations hang indefinitely (reproduced standalone via docker exec too — 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.json mid-restart return truncated bodies (error.UnexpectedEndOfInput in 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 restart stops 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 list child may be its own bug: nullboiler history list --limit 1 --offset 0 --json starts a long-running process instead of printing history and exiting (possibly flag parsing falling through to default command).
  • Happy to provide full logs/configs.

vernonstinebaker avatar Sep 28 '26 12:09 vernonstinebaker