mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #3977] [Engine] I cannot update strata #1708
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#1708
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Squale972 on GitHub (Oct 24, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/3977
When I try to update Strata from 0.2.3 to 0.2.4 it cannot.
I have this message "A model is running, so nothing was changed. Unload the model in Models, then press Update engine in Settings." although I load and unload a model
When I click on Check again in About it says
Strata
0.2.3
Strata is up to date.
Up to date
Engine
0.1.48
The engine is up to date.
My specs
GPU: RTX 4070 Ti 12Go
RAM: 64Go
Windows 11
@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:
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
@github-actions[bot] commented on GitHub (Oct 24, 2026):
Thanks, this follows the format now.
@Squale972 commented on GitHub (Oct 25, 2026):
Strangely, a day after after restarting my PC, it worked again but there's definitely some issue here as it's not the first time i have this bug
@Niko1221 commented on GitHub (Oct 29, 2026):
Next time it says "A model is running", check Task Manager for any
strata*.exe(alsostrata-vision.exe) after Unload, and send the diagnostics export from Settings.@spideytznn commented on GitHub (Nov 1, 2026):
Additional locally confirmed evidence on desktop 0.2.9 / Control 0.1.55 / installed engine 0.1.54, observed on 2026-11-01. A stale runtime record caused this message even though no model was running.
Environment and observed behavior
Windows (shell log:
windows 10.0.26300), NVIDIA GeForce RTX 5090, 96 GB system RAM. Desktop had just been updated from 0.2.8 to 0.2.9. No model was loaded. Clicking Settings → Update engine failed repeatedly.Sanitized host log:
The failure appeared three times. The event that originally left the record behind is unknown; the app upgrade is context, not a proven cause.
Runtime evidence
Process inspection found the desktop, its Node host, and its MCP Python process, but no Strata inference engine. The recorded owner PID and model child PID for
app-1no longer existed. Using the shipped Control Python from its own directory:Actual results before cleanup:
The shipped runtime's child-ownership check also returned
Falsefor the recorded child.Workaround verified locally
After backing up the runtime JSON records, we called the shipped
runtime.stop("app-1", timeout=30). It recovered the stale state without terminating any process:Then
runtime.status("app-1")returnedstopped, andupdater.serving_now()returned[].This verifies removal of the false busy condition. A complete engine update after cleanup was not verified.
Suspected code path / expected behavior
In the shipped
strata_control/runtime.py,active_managed_instances()includes every record whose state is notstopped, includingstale. Instrata_control/updater.py,serving_now()returns that nonempty list, and the busy check reports that the profile “is serving.” The desktop then asks the user to unload a model it has not loaded.Could the update path safely recover stale records using the existing ownership/lease checks before deciding an engine is serving, or expose a recovery action with an accurate stale-runtime message? Merely ignoring all stale records would need care because a lost owner can still leave a live child.
Reproduction status: observed locally with the stale record already present; repeated update failures and before/after cleanup results were captured. We did not deliberately reproduce the owner crash or test a production code change. No installed source files were modified during diagnosis. This report was prepared with AI assistance using the actual local command output.
@spideytznn commented on GitHub (Nov 1, 2026):
Follow-up: the complete desktop engine update after stale-record recovery is now verified. The latest update job finished successfully at 2026-11-01 04:07:35 UTC (12:07:35 Hong Kong), upgrading 0.1.54 → 0.1.55. Its full test-start result is
state: ready,generation_ready: true,detail: started, answered a one-token probe, stopped. The desktop's refreshed native API reports engine 0.1.55, latest update statedone, no error, and no loaded instances; Control independently selects engine 0.1.55 andserving_now()returns[]. The old failed jobs remain in the job history. Thus the stale runtime cleanup did unblock the complete update on this machine, and no new stale record was observed after the successful self-test.@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):
updater.serving_now()reported every non-stopped managed-runtime record, stale ones included, andstrata updateturns 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 withruntime.stop("app-1").Fix intent (also posted on #3977):
serving_now()recovers astalerecord with the sameruntime.stoppath 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/readyinstances are reported as before. The regression test istests/terminal/test_serving_stale.py(fails onmain, passes with the change).@XiaoBinGan commented on GitHub (Nov 1, 2026):
The fix and its regression test are in #4896: https://github.com/Niko1221/Strata/pull/4896
@aquarius004 commented on GitHub (Nov 6, 2026):
I can reproduce what appears to be the same issue on Windows.
Environment:
Immediately after starting Strata, no model was actually loaded, and the host log explicitly reported:
Strata engine 0.1.55 is installed; no model is loaded yetHowever, attempting to update the engine failed repeatedly with:
A model is running, so nothing was changed.and reported:
qwen3.8-flash-next-coder-iq1_m is runningThe workaround was:
After doing this, the stale "model is running" state was cleared and the update could proceed.
So this looks consistent with a stale runtime/model state surviving even though no inference model is actually loaded.
I have a diagnostics export from the occurrence if it would be useful.