[GH-ISSUE #4872] [Engine]升级引擎时提示有模型在运行,不能升级 #2237

Closed
opened 2026-11-04 01:57:48 +07:00 by bsakaguchi · 4 comments
Owner

Originally created by @engineerlzk on GitHub (Nov 1, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/4872

更新检测时提示引擎有可用更新,于是点击更新,却提示如下信息:A model is running, so nothing was changed. Unload the model in Models, then press Update engine in Settings.单事实上我并没有加载任何模型。请问我如何才能成功升级?谢谢!

Image
Originally created by @engineerlzk on GitHub (Nov 1, 2026). Original GitHub issue: https://github.com/Niko1221/Strata/issues/4872 更新检测时提示引擎有可用更新,于是点击更新,却提示如下信息:A model is running, so nothing was changed. Unload the model in Models, then press Update engine in Settings.单事实上我并没有加载任何模型。请问我如何才能成功升级?谢谢! <img width="1860" height="1390" alt="Image" src="https://github.com/user-attachments/assets/0e4498bd-baac-48fb-a291-aec927c29d05" />
Author
Owner

@github-actions[bot] commented on GitHub (Nov 1, 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".

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:6553276831 --> @github-actions[bot] commented on GitHub (Nov 1, 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". 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

@XiaoBinGan commented on GitHub (Nov 1, 2026):

The screenshot's failure reproduces from code without the desktop, when a runtime record from an earlier session is left behind by a host that is gone (Windows 11 / Python 3.11.16):

runtime.status("app-1")  -> {"ok": False, "state": "stale", "error": "owner_host_lost", ...}
updater.serving_now()    -> [{"profile": "app-1", "state": "stale"}]

updater.serving_now() reported every non-stopped managed-runtime record, stale ones included, and strata update turns a non-empty answer into exit 7, which the desktop shows as "A model is running, so nothing was changed. Unload the model in Models" - although nothing is loaded and the recorded owner host no longer exists. That is the state #3977's 2026-11-01 follow-up captured on a desktop and cleared by hand with runtime.stop("app-1").

Fix intent (also posted on #3977): serving_now() recovers a stale record with the same runtime.stop path that workaround used - the recorded PID, start time and command line are verified before anything is ended, and a record whose recorded child is still present is refused and still reported - then answers "nothing is serving"; starting/ready instances are reported as before. The regression test is tests/terminal/test_serving_stale.py (fails on main, passes with the change).

<!-- gh-comment-id:6556069502 --> @XiaoBinGan commented on GitHub (Nov 1, 2026): The screenshot's failure reproduces from code without the desktop, when a runtime record from an earlier session is left behind by a host that is gone (Windows 11 / Python 3.11.16): ```text runtime.status("app-1") -> {"ok": False, "state": "stale", "error": "owner_host_lost", ...} updater.serving_now() -> [{"profile": "app-1", "state": "stale"}] ``` `updater.serving_now()` reported every non-stopped managed-runtime record, stale ones included, and `strata update` turns a non-empty answer into exit 7, which the desktop shows as "A model is running, so nothing was changed. Unload the model in Models" - although nothing is loaded and the recorded owner host no longer exists. That is the state #3977's 2026-11-01 follow-up captured on a desktop and cleared by hand with `runtime.stop("app-1")`. Fix intent (also posted on #3977): `serving_now()` recovers a `stale` record with the same `runtime.stop` path that workaround used - the recorded PID, start time and command line are verified before anything is ended, and a record whose recorded child is still present is refused and still reported - then answers "nothing is serving"; `starting`/`ready` instances are reported as before. The regression test is `tests/terminal/test_serving_stale.py` (fails on `main`, passes with the change).
Author
Owner

@XiaoBinGan commented on GitHub (Nov 1, 2026):

The fix and its regression test are in #4896: https://github.com/Niko1221/Strata/pull/4896

<!-- gh-comment-id:6556106577 --> @XiaoBinGan commented on GitHub (Nov 1, 2026): The fix and its regression test are in #4896: https://github.com/Niko1221/Strata/pull/4896
Author
Owner

@github-actions[bot] commented on GitHub (Nov 6, 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:6676838571 --> @github-actions[bot] commented on GitHub (Nov 6, 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#2237
No description provided.