[GH-ISSUE #3977] [Engine] I cannot update strata #1708

Open
opened 2026-11-04 01:53:22 +07:00 by bsakaguchi · 9 comments
Owner

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

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
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:

  • 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:6385860846 --> @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: - [ ] 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 24, 2026):

Thanks, this follows the format now.

<!-- gh-comment-id:6386176705 --> @github-actions[bot] commented on GitHub (Oct 24, 2026): Thanks, this follows the format now.
Author
Owner

@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

<!-- gh-comment-id:6396691864 --> @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
Author
Owner

@Niko1221 commented on GitHub (Oct 29, 2026):

Next time it says "A model is running", check Task Manager for any strata*.exe (also strata-vision.exe) after Unload, and send the diagnostics export from Settings.

<!-- gh-comment-id:6492001698 --> @Niko1221 commented on GitHub (Oct 29, 2026): Next time it says "A model is running", check Task Manager for any `strata*.exe` (also `strata-vision.exe`) after Unload, and send the diagnostics export from Settings.
Author
Owner

@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:

[shell] Strata desktop 0.2.9 starting
[host] inference · Strata engine 0.1.54 is installed; no model is loaded yet
[host] update · update-engine started (app 0.2.9)
[host] update · update-engine failed: app-1 is serving. Stop it (or wait until it is idle) and run the update again; the update never replaces or tests an engine while one is serving.

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-1 no longer existed. Using the shipped Control Python from its own directory:

from strata_control import runtime, updater
print(runtime.status("app-1"))
print(updater.serving_now())

Actual results before cleanup:

{"ok": false, "profile": "app-1", "state": "stale", "error": "owner_host_lost", "next_action": "runtime start will recover after the owned child exits", "exit_code": 6}
[{"profile": "app-1", "state": "stale"}]

The shipped runtime's child-ownership check also returned False for 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:

{"ok": true, "profile": "app-1", "state": "stopped", "recovered": true, "ended": [], "leftover_unverified": [], "exit_code": 0}

Then runtime.status("app-1") returned stopped, and updater.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 not stopped, including stale. In strata_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.

<!-- gh-comment-id:6553215017 --> @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: ```text [shell] Strata desktop 0.2.9 starting [host] inference · Strata engine 0.1.54 is installed; no model is loaded yet [host] update · update-engine started (app 0.2.9) [host] update · update-engine failed: app-1 is serving. Stop it (or wait until it is idle) and run the update again; the update never replaces or tests an engine while one is serving. ``` 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-1` no longer existed. Using the shipped Control Python from its own directory: ```python from strata_control import runtime, updater print(runtime.status("app-1")) print(updater.serving_now()) ``` Actual results before cleanup: ```json {"ok": false, "profile": "app-1", "state": "stale", "error": "owner_host_lost", "next_action": "runtime start will recover after the owned child exits", "exit_code": 6} [{"profile": "app-1", "state": "stale"}] ``` The shipped runtime's child-ownership check also returned `False` for 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: ```json {"ok": true, "profile": "app-1", "state": "stopped", "recovered": true, "ended": [], "leftover_unverified": [], "exit_code": 0} ``` Then `runtime.status("app-1")` returned `stopped`, and `updater.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 not `stopped`, including `stale`. In `strata_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.
Author
Owner

@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 state done, no error, and no loaded instances; Control independently selects engine 0.1.55 and serving_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.

<!-- gh-comment-id:6553229461 --> @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 state `done`, no error, and no loaded instances; Control independently selects engine 0.1.55 and `serving_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.
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:6556069915 --> @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:6556106374 --> @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

@aquarius004 commented on GitHub (Nov 6, 2026):

I can reproduce what appears to be the same issue on Windows.

Environment:

  • Windows 11 (10.0.26200)
  • NVIDIA RTX PRO 2000 Blackwell Generation Laptop GPU, 8 GB VRAM
  • 32 GB system RAM
  • Strata Desktop 0.2.10 / Control 0.1.55

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 yet

However, 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 running

The workaround was:

  1. Actually load the model once.
  2. Unload the model.
  3. Try the engine update again.

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.

<!-- gh-comment-id:6673176238 --> @aquarius004 commented on GitHub (Nov 6, 2026): I can reproduce what appears to be the same issue on Windows. Environment: - Windows 11 (10.0.26200) - NVIDIA RTX PRO 2000 Blackwell Generation Laptop GPU, 8 GB VRAM - 32 GB system RAM - Strata Desktop 0.2.10 / Control 0.1.55 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 yet` However, 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 running` The workaround was: 1. Actually load the model once. 2. Unload the model. 3. Try the engine update again. 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.
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#1708
No description provided.