[GH-ISSUE #4891] [Engine] Models with vision show as not installed after the engine update prunes the old engine folder (vision.exe in the run config vs. the doctor check) #2242

Open
opened 2026-11-04 01:57:52 +07:00 by bsakaguchi · 1 comment
Owner

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

Area

[Engine] (speed, kernels, models, the server and API)

Desktop app, Terminal or source?

Desktop app (Models page), checked with the strata CLI

What happened

After going 0.2.7 → 0.2.8 → 0.2.9 (engine 0.1.52 → 0.1.54 → 0.1.55), the Models page showed every installed model as not installed and offered "Download and prepare 128 GB" again. The model files are fine: all packs are on disk with their shards and pack/ prepared.

This is a follow-up to #4658. That report was about the runtime still starting the reader from the old engine folder (fixed in 0.2.9 and closed). This one is the case where the old engine folder has since been pruned, so the stale path stops resolving at all and the model list breaks.

The run configs still name the picture reader and the expert profile as absolute paths into one engine/control folder:

"vision": { "exe": "C:\\Users\\admin\\AppData\\Local\\Strata\\components\\engine\\0.1.52-windows-x86_64-cuda-cuda13\\strata-vision.exe" },
"args": [ ..., "--expert-profile", "C:\\Users\\admin\\AppData\\Local\\Strata\\components\\control\\0.1.53\\data\\expert-profile.bin", ... ],
"cwd": "C:\\Users\\admin\\AppData\\Local\\Strata\\components\\control\\0.1.53"

components\engine now holds only 0.1.54-windows-x86_64-cuda-cuda13 and 0.1.55-windows-x86_64-cuda-cuda13, and components\control no longer has 0.1.53. So vision.exe and --expert-profile point at folders the updater deleted.

The chain that turns that into "this model is not installed":

  • strata_control/doctor.py:210-218 adds vision/exe (and vision/mmproj, vision/model) as required components, and _item() (doctor.py:45-54) reports missing when path.is_file() is false;
  • strata_control/doctor.py:225-227 turns every required missing/invalid component into a COMPONENT_<STATUS> error, and doctor.py:238 sets report["ok"] = False;
  • strata_control/models.py:169 maps that to component_status: "missing_or_invalid";
  • host/server/native-control.mjs:125 sets ready: m.component_status === 'present' && ..., so the card falls back to the download offer.

The 0.2.9 fix covers the runtime (the reader is started from the engine folder in use), but the config is never rewritten and the doctor check still reads the stale absolute path — so the two now disagree about which file the picture reader is.

strata models list --installed on a copy of the broken strata-nvfp4-nvfp4.json (identical to the real one before I edited it):

{
  "id": "nvfp4-nvfp4",
  "component_status": "missing_or_invalid",
  "issue_codes": ["COMPONENT_MISSING"],
  "missing": [{"part": "vision/exe", "file": "strata-vision.exe", "status": "missing"}]
}

Before the fix, 4 of 6 models were in that state (iq3_s, nvfp4-nvfp4, unsloth-q8_0, unsloth-ud-iq4_xs); unsloth-ud-iq4_xs additionally missed --expert-profile. Pointing every stale path at the active 0.1.55 folders made all 6 present again with missing: [], without touching a single model file.

Expected: vision.exe, --expert-profile and cwd should follow the active component the way exe already does ("exe": "component:strata-engine"). Either the updater rewrites them in run configs that point into the old folders, or they are resolved against the active component at load and in the doctor check, so models list cannot report a model as missing because the updater moved the engine.

Smallest steps or command that reproduce it

  1. On engine 0.1.52, set up any model with vision — the run config gets vision.exe under components\engine\0.1.52-... (same for --expert-profile under components\control\0.1.53).
  2. Update twice (0.1.52 → 0.1.54 → 0.1.55) so the 0.1.52 folder is pruned and only 0.1.54 / 0.1.55 remain.
  3. Open the Models page: the model shows as not installed and offers to download it again.
  4. strata models list --installed --install-dir <app install dir> → component_status: "missing_or_invalid", COMPONENT_MISSING, part: vision/exe.

Reproduction status

Reproduced locally

Strata version

0.2.9, Control 0.1.55, engine 0.1.55-windows-x86_64-cuda-cuda13 (updated from 0.2.7 / Control 0.1.53 / engine 0.1.52)

Graphics card, memory and system

RTX PRO 6000 Blackwell Workstation Edition 96 GB (driver 610.74), 256 GB RAM, Windows 11 Pro

Model, size and settings

Qwen3.8-Flash-Next NVFP4 GPTQ (also IQ3_S, Unsloth Q8_0, Unsloth UD-IQ4_XS), vision on, --max-context 262144, --kv int8, --spec 6, --spec-min-p 0.5, expert cache 24576 slots

Logs

# before the fix
$ strata.py models list --installed --install-dir "...\Programs\Strata\install" --output json
model_count: 6
 - deepseek-v4.1-flash-ist-das-2.25bpw   present
 - iq2_xs                                present
 - iq3_s                                 missing_or_invalid   missing=[vision/exe]
 - nvfp4-nvfp4                           missing_or_invalid   missing=[vision/exe]
 - unsloth-q8_0                          missing_or_invalid   missing=[vision/exe]
 - unsloth-ud-iq4_xs                     missing_or_invalid   missing=[vision/exe, --expert-profile]

# after pointing those paths at components\engine\0.1.55-windows-x86_64-cuda-cuda13
# and components\control\0.1.55
 - all 6                                 present              missing=[]

# engine folders present at that moment
components\engine\0.1.54-windows-x86_64-cuda-cuda13
components\engine\0.1.55-windows-x86_64-cuda-cuda13

# stale paths found in the four run configs (backup copies)
engine\0.1.52-windows-x86_64-cuda-cuda13\strata-vision.exe   (x3)
engine\0.1.50-windows-x86_64-cuda-cuda13\strata-vision.exe   (x1)
control\0.1.53\data\expert-profile.bin                       (x1)
control\0.1.53  (cwd)                                        (x2)
Originally created by @beastrobin on GitHub (Nov 1, 2026). Original GitHub issue: https://github.com/Niko1221/Strata/issues/4891 ### Area [Engine] (speed, kernels, models, the server and API) ### Desktop app, Terminal or source? Desktop app (Models page), checked with the `strata` CLI ### What happened After going 0.2.7 → 0.2.8 → 0.2.9 (engine 0.1.52 → 0.1.54 → 0.1.55), the Models page showed **every installed model as not installed** and offered "Download and prepare 128 GB" again. The model files are fine: all packs are on disk with their shards and `pack/` prepared. This is a follow-up to #4658. That report was about the runtime still *starting* the reader from the old engine folder (fixed in 0.2.9 and closed). This one is the case where the old engine folder has since been **pruned**, so the stale path stops resolving at all and the model list breaks. The run configs still name the picture reader and the expert profile as absolute paths into one engine/control folder: ```json "vision": { "exe": "C:\\Users\\admin\\AppData\\Local\\Strata\\components\\engine\\0.1.52-windows-x86_64-cuda-cuda13\\strata-vision.exe" }, "args": [ ..., "--expert-profile", "C:\\Users\\admin\\AppData\\Local\\Strata\\components\\control\\0.1.53\\data\\expert-profile.bin", ... ], "cwd": "C:\\Users\\admin\\AppData\\Local\\Strata\\components\\control\\0.1.53" ``` `components\engine` now holds only `0.1.54-windows-x86_64-cuda-cuda13` and `0.1.55-windows-x86_64-cuda-cuda13`, and `components\control` no longer has `0.1.53`. So `vision.exe` and `--expert-profile` point at folders the updater deleted. The chain that turns that into "this model is not installed": - `strata_control/doctor.py:210-218` adds `vision/exe` (and `vision/mmproj`, `vision/model`) as **required** components, and `_item()` (`doctor.py:45-54`) reports `missing` when `path.is_file()` is false; - `strata_control/doctor.py:225-227` turns every required missing/invalid component into a `COMPONENT_<STATUS>` error, and `doctor.py:238` sets `report["ok"] = False`; - `strata_control/models.py:169` maps that to `component_status: "missing_or_invalid"`; - `host/server/native-control.mjs:125` sets `ready: m.component_status === 'present' && ...`, so the card falls back to the download offer. The 0.2.9 fix covers the runtime (the reader is started from the engine folder in use), but the config is never rewritten and the doctor check still reads the stale absolute path — so the two now disagree about which file the picture reader is. `strata models list --installed` on a copy of the broken `strata-nvfp4-nvfp4.json` (identical to the real one before I edited it): ```json { "id": "nvfp4-nvfp4", "component_status": "missing_or_invalid", "issue_codes": ["COMPONENT_MISSING"], "missing": [{"part": "vision/exe", "file": "strata-vision.exe", "status": "missing"}] } ``` Before the fix, 4 of 6 models were in that state (`iq3_s`, `nvfp4-nvfp4`, `unsloth-q8_0`, `unsloth-ud-iq4_xs`); `unsloth-ud-iq4_xs` additionally missed `--expert-profile`. Pointing every stale path at the active 0.1.55 folders made all 6 `present` again with `missing: []`, without touching a single model file. Expected: `vision.exe`, `--expert-profile` and `cwd` should follow the active component the way `exe` already does (`"exe": "component:strata-engine"`). Either the updater rewrites them in run configs that point into the old folders, or they are resolved against the active component at load **and** in the doctor check, so `models list` cannot report a model as missing because the updater moved the engine. ### Smallest steps or command that reproduce it 1. On engine 0.1.52, set up any model with vision — the run config gets `vision.exe` under `components\engine\0.1.52-...` (same for `--expert-profile` under `components\control\0.1.53`). 2. Update twice (0.1.52 → 0.1.54 → 0.1.55) so the 0.1.52 folder is pruned and only 0.1.54 / 0.1.55 remain. 3. Open the Models page: the model shows as not installed and offers to download it again. 4. `strata models list --installed --install-dir <app install dir>` → `component_status: "missing_or_invalid"`, `COMPONENT_MISSING`, `part: vision/exe`. ### Reproduction status Reproduced locally ### Strata version 0.2.9, Control 0.1.55, engine 0.1.55-windows-x86_64-cuda-cuda13 (updated from 0.2.7 / Control 0.1.53 / engine 0.1.52) ### Graphics card, memory and system RTX PRO 6000 Blackwell Workstation Edition 96 GB (driver 610.74), 256 GB RAM, Windows 11 Pro ### Model, size and settings Qwen3.8-Flash-Next NVFP4 GPTQ (also IQ3_S, Unsloth Q8_0, Unsloth UD-IQ4_XS), vision on, `--max-context 262144`, `--kv int8`, `--spec 6`, `--spec-min-p 0.5`, expert cache 24576 slots ### Logs ``` # before the fix $ strata.py models list --installed --install-dir "...\Programs\Strata\install" --output json model_count: 6 - deepseek-v4.1-flash-ist-das-2.25bpw present - iq2_xs present - iq3_s missing_or_invalid missing=[vision/exe] - nvfp4-nvfp4 missing_or_invalid missing=[vision/exe] - unsloth-q8_0 missing_or_invalid missing=[vision/exe] - unsloth-ud-iq4_xs missing_or_invalid missing=[vision/exe, --expert-profile] # after pointing those paths at components\engine\0.1.55-windows-x86_64-cuda-cuda13 # and components\control\0.1.55 - all 6 present missing=[] # engine folders present at that moment components\engine\0.1.54-windows-x86_64-cuda-cuda13 components\engine\0.1.55-windows-x86_64-cuda-cuda13 # stale paths found in the four run configs (backup copies) engine\0.1.52-windows-x86_64-cuda-cuda13\strata-vision.exe (x3) engine\0.1.50-windows-x86_64-cuda-cuda13\strata-vision.exe (x1) control\0.1.53\data\expert-profile.bin (x1) control\0.1.53 (cwd) (x2) ```
Author
Owner

@Amuras-75 commented on GitHub (Nov 1, 2026):

Second face of the same root cause: strata launch dies before the engine says anything (NotADirectoryError, WinError 267), and the launcher shows the vision reader's CUDA line instead

Windows 11, RTX 5080 (16 GB), driver 615.78.05 (CUDA UMD 13.4). Updated to Control 0.1.55 / engine 0.1.55-windows-x86_64-cuda-cuda13; the run configs were written while Control 0.1.47 / engine 0.1.47 were in use.

Reproduction chain:

  1. Set up a model with vision — install\strata-<model>.json (and the per-launch copies in launch\, and install\run-<model>.bat) get cwd, --expert-profile and vision.exe written as absolute paths into components\control\0.1.47 / components\engine\0.1.47-....
  2. Update so 0.1.47 is pruned (only the two newest component folders remain: 0.1.53, 0.1.55).
  3. strata launch — the engine exe resolves fine (component:strata-engine), but CreateProcess dies on the config's cwd:
File "C:\Users\...\Strata\components\control\0.1.55\serve\server.py", line 9278, in main
    engine = StrataEngine(exe, engine_args(cfg) + (effort_end or []), cwd=cfg.get("cwd"), log=cfg.get("log"), ...)
...
NotADirectoryError: [WinError 267] Der Verzeichnisname ist ungültig

The cause line the launcher shows is the vision reader's ggml_cuda_init: failed to initialize CUDA: no CUDA-capable device is detected (the reader is configured for the CPU), so a person with a healthy GPU reads "No CUDA Device found" and goes down the wrong trail.

Workaround that works: rebase the 0.1.47 paths in install\strata-<model>.json, launch\<profile>.json and install\run-<model>.bat to the active component — every control package ships the same data files, so the same path of the control in use stands in. But it breaks again at the next update that prunes the folder the config points into.

Fix (patch available): rebase at load time, the way the vision reader already does —

  • serve/server.py: with_current_control_paths() inside with_component_engine() — a cwd or an engine argument (--expert-profile) that points into a control component folder that is not the one in use is answered by the same path of the control in use, printed like the reader's rebases are;
  • strata_control/doctor.py: _location() answers a component path that is gone with the same file of the control/engine in use, so strata models list and the Models page keep answering "installed" (the first half of this issue).

Tests: new serve/test_control_paths_follow_control.py (5 tests) and Issue4891StaleComponentPaths in tests/terminal/test_issues_022.py (4 tests); the existing serve.test_reader_follows_engine, tests.terminal.test_issues_022, test_component_start, test_profiles and test_hipblaslt_tuning all pass.

Fix for both faces in #4899: https://github.com/Niko1221/Strata/pull/4899

<!-- gh-comment-id:6556469056 --> @Amuras-75 commented on GitHub (Nov 1, 2026): **Second face of the same root cause: `strata launch` dies before the engine says anything (`NotADirectoryError`, `WinError 267`), and the launcher shows the vision reader's CUDA line instead** Windows 11, RTX 5080 (16 GB), driver 615.78.05 (CUDA UMD 13.4). Updated to Control 0.1.55 / engine 0.1.55-windows-x86_64-cuda-cuda13; the run configs were written while Control 0.1.47 / engine 0.1.47 were in use. Reproduction chain: 1. Set up a model with vision — `install\strata-<model>.json` (and the per-launch copies in `launch\`, and `install\run-<model>.bat`) get `cwd`, `--expert-profile` and `vision.exe` written as absolute paths into `components\control\0.1.47` / `components\engine\0.1.47-...`. 2. Update so `0.1.47` is pruned (only the two newest component folders remain: `0.1.53`, `0.1.55`). 3. `strata launch` — the engine exe resolves fine (`component:strata-engine`), but `CreateProcess` dies on the config's `cwd`: ``` File "C:\Users\...\Strata\components\control\0.1.55\serve\server.py", line 9278, in main engine = StrataEngine(exe, engine_args(cfg) + (effort_end or []), cwd=cfg.get("cwd"), log=cfg.get("log"), ...) ... NotADirectoryError: [WinError 267] Der Verzeichnisname ist ungültig ``` The cause line the launcher shows is the vision reader's `ggml_cuda_init: failed to initialize CUDA: no CUDA-capable device is detected` (the reader is configured for the CPU), so a person with a healthy GPU reads "No CUDA Device found" and goes down the wrong trail. Workaround that works: rebase the `0.1.47` paths in `install\strata-<model>.json`, `launch\<profile>.json` and `install\run-<model>.bat` to the active component — every control package ships the same data files, so the same path of the control in use stands in. But it breaks again at the next update that prunes the folder the config points into. Fix (patch available): rebase at load time, the way the vision reader already does — - `serve/server.py`: `with_current_control_paths()` inside `with_component_engine()` — a `cwd` or an engine argument (`--expert-profile`) that points into a control component folder that is not the one in use is answered by the same path of the control in use, printed like the reader's rebases are; - `strata_control/doctor.py`: `_location()` answers a component path that is gone with the same file of the control/engine in use, so `strata models list` and the Models page keep answering "installed" (the first half of this issue). Tests: new `serve/test_control_paths_follow_control.py` (5 tests) and `Issue4891StaleComponentPaths` in `tests/terminal/test_issues_022.py` (4 tests); the existing `serve.test_reader_follows_engine`, `tests.terminal.test_issues_022`, `test_component_start`, `test_profiles` and `test_hipblaslt_tuning` all pass. Fix for both faces in **#4899**: https://github.com/Niko1221/Strata/pull/4899
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#2242
No description provided.