[GH-ISSUE #3940] [Benchmark] Strata 0.2.4.1 / RTX 5070 12 GB / 47.9 GiB RAM / Windows 11 — Engine/server survives benchmark cleanup #1688

Closed
opened 2026-11-04 01:53:12 +07:00 by bsakaguchi · 2 comments
Owner

Originally created by @jpjp927 on GitHub (Oct 24, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/3940

Summary. strata bench run --profile finished the required suite (results.json status complete) but could not stop the engine and server it had started. The surviving server wrapper keeps holding port 8080 and the GPU, the machine's own user cannot kill it from the same account, and every later runtime start for the profile fails. The runner's console advice "stop it by hand before the next run" does not work when the survivor runs at a higher integrity level than the operator's shell. A second signature of the same cleanup failure was independently reported by the submitter of #3916 (different cause: an MSIX-packaged desktop app).

Environment

  • Windows 11 22631, RTX 5070 12 GB, driver 610.88, CUDA 13.3, Ryzen 5 3600, 47.9 GiB RAM.
  • Same-day update from the signed feed: Terminal 0.2.2 -> 0.2.4.1 (build 0.1.49.1), engine 0.1.47 -> 0.1.48 (6f8800aefe27+cuda13.0), Control 0.1.47 -> 0.1.49.1. The update result noted for Control: "the Terminal hands over to it from the next command". The bench run was the next command after the update.
  • The bench command ran from a plain cmd/PowerShell shell at Medium Mandatory Level (whoami /groups). Before it, strata runtime stop --profile launch-iq3_xxs-128k had reported "stopped", so the runner was starting its own engine.
  • Command: strata bench run --profile launch-iq3_xxs-128k --track default --track-notes "..." --model-revision ed59f920... --quantization IQ3_XXS --background "..." (full text in run.command of results.json). Run id 20261024T072952Z-5319fb9c.

What happened

Times local. The runner started its own server wrapper (python.exe, PID 15600, created 15:28:17) and engine child; the suite was stamped 15:29:52 after model-file hashing and finished 8 min 17 s later, 21 of 21 required requests, 12/12 sanity, 0 failed. Then the console printed:

ERROR: the engine this run started could not be stopped: taskkill for process 15600 failed (exit 128): <CP950-encoded taskkill success lines for children 22660, 20584, 25652>
... process 15600 is still running 30 s after it was told to stop. It may still hold the server port and the GPU: stop it by hand before the next run. This run is marked FAILED.
Status: complete. 21 of 21 required requests finished, 0 failed, 0 skipped. Time after the model loaded: 8 min 17 s.

The sidecar ENGINE-NOT-STOPPED.txt was auto-written with the same taskkill text, while results.json kept "status": "complete". So "This run is marked FAILED" has no machine-readable record other than the sidecar.

Afterward: attempts and observations

  • strata runtime cleanup -> "ended 0 leftover process(es)". It did not adopt the survivor the bench runner itself started.
  • Operator taskkill /T /F /PID 15600 -> the children were reported terminated, the wrapper survived, and engine children respawned: the engine log tail kept growing long after the run (files read 2,923,746 MB at run end, 8,322,340 MB a short while later; route-tail-skip 491,451 -> 1,755,731 entries). The survivor is fully serving requests.
  • Stop-Process -Id 15600 -Force from the same user -> "Access is denied". CIM reports PID 15600 with an empty CommandLine and unreadable start time - the way only higher-integrity processes normally present. whoami /groups is Medium. No Strata Windows service or scheduled task is visible on this machine (checked); the elevation mechanism could not be identified from an unelevated shell. This machine has run Strata as Administrator before (repair-access exists for exactly that case), so a leftover privileged handover is a plausible suspect, but this is a hypothesis, not a verified cause.
  • strata runtime start --profile then refuses: "this profile already has a live managed runtime", while runtime status simultaneously reports state: "failed", error: "server_exited" (its own wrapper attempt exits with "port 8080 is already in use"). A later runtime stop prints "stopped" yet netstat still shows PID 15600 LISTENING on 8080. The bookkeeping and the process table disagree.
  • A reboot is expected to clear the survivor (not yet performed here). Practical cost: the next bench run for this profile would reuse the warm orphan (disclosable per protocol, but not what the protocol intends), or needs a manual elevated kill.
  • #3916: its "Failed" section reports the same runner message and "taskkill ... access denied", caused there by launching from an MSIX-packaged desktop app; their results.json also stayed complete, and they left ENGINE-NOT-STOPPED.txt out of the submission folder.

Open questions

  1. Should a cleanup failure have a machine-readable status (e.g. a field or a non-complete value in results.json), or is the sidecar the only record? Today the console says FAILED while results.json says complete.
  2. Should runtime cleanup adopt servers/engines that the bench runner itself started, so the operator is not left with an unkillable survivor?
  3. Should the runner detect an integrity mismatch (engine/server running above the operator shell) and say so in the error, instead of a generic taskkill failure?
  4. For submissions: keep ENGINE-NOT-STOPPED.txt in the run folder unmodified (the linked results PR does), or exclude it with a body note (#3916)? A maintainer answer would settle the convention.

Submission

The results-only PR for this run (https://github.com/Niko1221/Strata/pull/3938) submits the fresh-engine run untouched: README.md, results.json, outputs.jsonl, config.json, engine.log, provenance/, plus the auto-written sidecar; every committed blob hashes identical to the runner's original file, so the raw sidecar text (CP950 taskkill output) is preserved as evidence.

Reported by the operator together with an AI coding assistant (OpenCode) running this same model on the machine.

Originally created by @jpjp927 on GitHub (Oct 24, 2026). Original GitHub issue: https://github.com/Niko1221/Strata/issues/3940 **Summary.** `strata bench run --profile` finished the required suite (`results.json` status `complete`) but could not stop the engine and server it had started. The surviving server wrapper keeps holding port 8080 and the GPU, the machine's own user cannot kill it from the same account, and every later `runtime start` for the profile fails. The runner's console advice "stop it by hand before the next run" does not work when the survivor runs at a higher integrity level than the operator's shell. A second signature of the same cleanup failure was independently reported by the submitter of #3916 (different cause: an MSIX-packaged desktop app). ## Environment - Windows 11 22631, RTX 5070 12 GB, driver 610.88, CUDA 13.3, Ryzen 5 3600, 47.9 GiB RAM. - Same-day update from the signed feed: Terminal 0.2.2 -> 0.2.4.1 (build 0.1.49.1), engine 0.1.47 -> 0.1.48 (`6f8800aefe27+cuda13.0`), Control 0.1.47 -> 0.1.49.1. The update result noted for Control: "the Terminal hands over to it from the next command". The bench run was the next command after the update. - The bench command ran from a plain cmd/PowerShell shell at Medium Mandatory Level (`whoami /groups`). Before it, `strata runtime stop --profile launch-iq3_xxs-128k` had reported "stopped", so the runner was starting its own engine. - Command: `strata bench run --profile launch-iq3_xxs-128k --track default --track-notes "..." --model-revision ed59f920... --quantization IQ3_XXS --background "..."` (full text in `run.command` of `results.json`). Run id `20261024T072952Z-5319fb9c`. ## What happened Times local. The runner started its own server wrapper (`python.exe`, PID 15600, created 15:28:17) and engine child; the suite was stamped 15:29:52 after model-file hashing and finished 8 min 17 s later, 21 of 21 required requests, 12/12 sanity, 0 failed. Then the console printed: ```text ERROR: the engine this run started could not be stopped: taskkill for process 15600 failed (exit 128): <CP950-encoded taskkill success lines for children 22660, 20584, 25652> ... process 15600 is still running 30 s after it was told to stop. It may still hold the server port and the GPU: stop it by hand before the next run. This run is marked FAILED. Status: complete. 21 of 21 required requests finished, 0 failed, 0 skipped. Time after the model loaded: 8 min 17 s. ``` The sidecar `ENGINE-NOT-STOPPED.txt` was auto-written with the same taskkill text, while `results.json` kept `"status": "complete"`. So "This run is marked FAILED" has no machine-readable record other than the sidecar. ## Afterward: attempts and observations - `strata runtime cleanup` -> "ended 0 leftover process(es)". It did not adopt the survivor the bench runner itself started. - Operator `taskkill /T /F /PID 15600` -> the children were reported terminated, the wrapper survived, and engine children respawned: the engine log tail kept growing long after the run (files read 2,923,746 MB at run end, 8,322,340 MB a short while later; route-tail-skip 491,451 -> 1,755,731 entries). The survivor is fully serving requests. - `Stop-Process -Id 15600 -Force` from the same user -> "Access is denied". CIM reports PID 15600 with an empty `CommandLine` and unreadable start time - the way only higher-integrity processes normally present. `whoami /groups` is Medium. No Strata Windows service or scheduled task is visible on this machine (checked); the elevation mechanism could not be identified from an unelevated shell. This machine has run Strata as Administrator before (`repair-access` exists for exactly that case), so a leftover privileged handover is a plausible suspect, but this is a hypothesis, not a verified cause. - `strata runtime start --profile` then refuses: "this profile already has a live managed runtime", while `runtime status` simultaneously reports `state: "failed", error: "server_exited"` (its own wrapper attempt exits with "port 8080 is already in use"). A later `runtime stop` prints "stopped" yet netstat still shows PID 15600 LISTENING on 8080. The bookkeeping and the process table disagree. - A reboot is expected to clear the survivor (not yet performed here). Practical cost: the next `bench run` for this profile would reuse the warm orphan (disclosable per protocol, but not what the protocol intends), or needs a manual elevated kill. ## Related - #3916: its "Failed" section reports the same runner message and "taskkill ... access denied", caused there by launching from an MSIX-packaged desktop app; their `results.json` also stayed `complete`, and they left `ENGINE-NOT-STOPPED.txt` out of the submission folder. ## Open questions 1. Should a cleanup failure have a machine-readable status (e.g. a field or a non-`complete` value in `results.json`), or is the sidecar the only record? Today the console says FAILED while `results.json` says complete. 2. Should `runtime cleanup` adopt servers/engines that the bench runner itself started, so the operator is not left with an unkillable survivor? 3. Should the runner detect an integrity mismatch (engine/server running above the operator shell) and say so in the error, instead of a generic taskkill failure? 4. For submissions: keep `ENGINE-NOT-STOPPED.txt` in the run folder unmodified (the linked results PR does), or exclude it with a body note (#3916)? A maintainer answer would settle the convention. ## Submission The results-only PR for this run (https://github.com/Niko1221/Strata/pull/3938) submits the fresh-engine run untouched: README.md, results.json, outputs.jsonl, config.json, engine.log, provenance/, plus the auto-written sidecar; every committed blob hashes identical to the runner's original file, so the raw sidecar text (CP950 taskkill output) is preserved as evidence. *Reported by the operator together with an AI coding assistant (OpenCode) running this same model on the machine.*
bsakaguchi 2026-11-04 01:53:12 +07:00
Author
Owner

@github-actions[bot] commented on GitHub (Oct 24, 2026):

Thanks for the issue. To keep the tracker readable, every item needs an area prefix in the title and the parts of the issue form filled in. This one is missing:

  • Start the title with its area: [Engine], [GUI], [TUI], [Benchmark], [Docs] or [Other], then a short description. Example: "[Engine] decode stops after 2 minutes".
  • Add the Strata version (Settings > About, or strata --version).
  • Add your graphics card with its VRAM, your RAM and your operating system.

Edit the issue (title and description) and this note goes away on its own. If it is still missing parts in 5 days it will be closed, which is not a rejection: fix it and comment /reopen.

Details: CONTRIBUTING.md

<!-- gh-comment-id:6382456087 --> @github-actions[bot] commented on GitHub (Oct 24, 2026): Thanks for the issue. To keep the tracker readable, every item needs an area prefix in the title and the parts of the issue form filled in. This one is missing: - [ ] Start the title with its area: [Engine], [GUI], [TUI], [Benchmark], [Docs] or [Other], then a short description. Example: "[Engine] decode stops after 2 minutes". - [ ] Add the Strata version (Settings > About, or `strata --version`). - [ ] Add your graphics card with its VRAM, your RAM and your operating system. Edit the issue (title and description) and this note goes away on its own. If it is still missing parts in 5 days it will be closed, which is not a rejection: fix it and comment `/reopen`. Details: [CONTRIBUTING.md](https://github.com/Niko1221/Strata/blob/main/CONTRIBUTING.md)
Author
Owner

@github-actions[bot] commented on GitHub (Oct 29, 2026):

Closing this issue because it still did not follow the format after 5 days. That is housekeeping, not a rejection.

To bring it back: fix the title (area prefix) and the missing parts, then comment /reopen. A check runs and reopens it, or tells you what is still missing. See CONTRIBUTING.md.

<!-- gh-comment-id:6494796219 --> @github-actions[bot] commented on GitHub (Oct 29, 2026): Closing this issue because it still did not follow the format after 5 days. That is housekeeping, not a rejection. To bring it back: fix the title (area prefix) and the missing parts, then comment `/reopen`. A check runs and reopens it, or tells you what is still missing. See [CONTRIBUTING.md](https://github.com/Niko1221/Strata/blob/main/CONTRIBUTING.md).
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Niko1221/Strata#1688
No description provided.