[GH-ISSUE #4598] [Engine] 0.1.52 update fails at test-start: --eos regression + DeepSeek config chosen for the standard engine / 引擎 0.1.52 更新在测试启动失败 #2083

Closed
opened 2026-11-04 01:56:32 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @Jacky-Yan040212 on GitHub (Oct 29, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/4598

Strata Bug Report / Strata 问题报告

Date / 日期: 2026-10-29
Reporter environment / 报告环境: Windows 10.0.22631, NVIDIA RTX 5070 Ti (sm_120), Driver 596.49


Bug 1: Engine 0.1.52 update fails at test-start — --eos argument regression

问题 1:引擎 0.1.52 更新在"测试启动"阶段失败 —— --eos 参数回归

Summary / 摘要

The engine update from 0.1.50 to 0.1.52 downloads and verifies successfully, but fails at the
test-start step. Control 0.1.53 still passes the legacy --eos 1 argument to the engine, but
engine 0.1.52 no longer accepts --eos. The engine prints unknown argument: --eos and exits,
so Strata rolls back to 0.1.50 and marks 0.1.52 as failed.

引擎从 0.1.50 升级到 0.1.52 时,下载和校验都成功,但在"测试启动"步骤失败。控制组件 0.1.53
仍然向引擎传入已废弃的 --eos 1 参数,而引擎 0.1.52 已不再接受 --eos。引擎打印
unknown argument: --eos 后退出,于是 Strata 回退到 0.1.50 并将 0.1.52 标记为失败。

Reproduction / 复现

  1. On a CUDA machine, install Strata desktop 0.2.7 with engine 0.1.50 and control 0.1.53.
  2. Run strata update (or press "Update engine" in Settings → About).
  3. The engine archive downloads fully, then the test-start fails.

在 CUDA 机器上安装 Strata 桌面版 0.2.7(引擎 0.1.50、控制组件 0.1.53),运行
strata update(或在「设置 → 关于」中点击"更新引擎")。引擎压缩包完整下载后,测试启动失败。

Evidence / 证据

Test-start log fragment (components/.updates/logs/test-start-0.1.52.log):

engine started: ...\0.1.52-windows-x86_64-cuda-cuda13\strata.exe --serve \
  --pack D:\strata\Strata-data\packs\deepseek-v4.1-flash-ist-das-2.00bpw \
  --max-context 4096 --eos 1 --dspark auto --dspark-conf 0.65
unknown argument: --eos

state.json stores the failure:

"engine": {
  "active": "0.1.50-windows-x86_64-cuda-cuda13",
  "failed": {
    "0.1.52": {
      "reason": "it did not answer a one-token probe (server_exited) | ..."
    }
  }
}

Root cause / 根因

  • control/0.1.53/setup.py:8451 (and also control/0.1.51/setup.py:8248) still writes
    "--eos", "1" into the engine's run config / start args.

  • Engine 0.1.52 dropped --eos (the help text now only mentions --eos-ids, see
    serve/server.py:855 EOS_IDS = {248044, 248046} # the engine's default --eos-ids).

  • So the two components shipped together are internally incompatible.

  • control/0.1.53/setup.py:8451(以及 control/0.1.51/setup.py:8248)仍把 "--eos", "1"
    写入引擎的运行配置/启动参数。

  • 引擎 0.1.52 已移除 --eos(帮助文本现在只提到 --eos-ids,见
    serve/server.py:855 EOS_IDS = {248044, 248046} # the engine's default --eos-ids)。

  • 因此一同发布的这两个组件内部不兼容。

Root cause (verified / 已验证根因)

Actually TWO defects combine here / 实际是两个缺陷叠加:

  1. --eos regression: setup.py still writes --eos 1, engine 0.1.52 dropped it.
    --eos 回归:setup.py 仍写 --eos 1,引擎 0.1.52 已删除该参数。

  2. discover_run_config() picks the wrong model's run config: it selects the first
    present model, which on this PC is the DeepSeek model (arch: deepseek41,
    pack = a DeepSeek pack, args include --dspark/--dspark-conf). The staged standard
    engine (strata.exe, a Qwen build) cannot load a deepseek41 pack at all — so even after
    fixing --eos, the test start cannot pass.
    discover_run_config() 选错模型配置:它选第一个 present 模型,本机是 DeepSeek
    模型(arch: deepseek41,pack 是 DeepSeek 的,args 含 --dspark/--dspark-conf)。
    staged 的标准引擎(strata.exe,Qwen 版本)根本加载不了 deepseek41 的 pack,
    所以即使修了 --eos 也过不了。

Verified fix (worked on this PC / 本机已验证可行)

Both changes in control/0.1.53/strata_control/updater.py:

  1. Add --eos to the test-start drop list:
_TEST_DROP_WITH_VALUE = ("--kv-resident", "--vision-tokens", "--eos")
  1. Skip dsv41 (DeepSeek-arch) configs in model discovery:
def _is_dsv41_config(source):
    if not source:
        return False
    try:
        with open(source, encoding="utf-8-sig") as fh:
            return json.load(fh).get("arch") == "deepseek41"
    except (OSError, ValueError):
        return False

# inside discover_run_config():
ready = [m for m in ready if not _is_dsv41_config(m.get("source_config"))]

After both edits + clearing engine.failed in state.json, strata update --no-control
succeeded: the test start loaded the Qwen model, answered the one-token probe, and the
engine switched 0.1.50 → 0.1.52.

两处修改后(并清掉 state.json 里的 engine.failed),strata update --no-control 成功:
测试启动加载了 Qwen 模型、回答了一个 token,引擎从 0.1.50 切到 0.1.52。

Suggested upstream fix / 建议上游修复

  • Stop writing --eos 1 in setup.py (engine 0.1.52 uses --eos-ids; default 248044/248046).

  • Make light_test_args() drop legacy/unknown flags (--eos, --dspark, --dspark-conf).

  • Make discover_run_config() skip configs whose arch the staged engine cannot load
    (e.g. skip deepseek41 when test-starting the standard strata-engine component).

  • setup.py 不再写 --eos 1;

  • light_test_args() 剔除遗留/未知参数(--eos、--dspark、--dspark-conf);

  • discover_run_config() 跳过 staged 引擎无法加载的架构配置(例如测试标准
    strata-engine 组件时跳过 deepseek41)。


Bug 2 (previously reported / 之前已上报): update check fails without network — generic error wording

问题 2(之前已上报):无网络时更新检查失败 —— 错误提示笼统

Summary / 摘要

When GitHub is unreachable (common in mainland China without a working accelerator), the
"About" page shows only the generic sentence
"Couldn't check for updates. Try again in a moment." with no indication that the real cause
is network inability to reach github.com / the update feed. This happens because
checkComponentUpdates in host/server/updates.mjs only special-cases error headlines matching
/update server|aren't available|No internet/; a plain URLError: WinError 10060 timeout does
not match, so the user only sees the generic text.

当 GitHub 无法访问时(在大陆无可用加速器时很常见),「关于」页只显示笼统的
"Couldn't check for updates. Try again in a moment.",没有提示真正的网络原因。这是因为
host/server/updates.mjs 的 checkComponentUpdates 只对匹配
/update server|aren't available|No internet/ 的错误标题做特殊处理;普通的
URLError: WinError 10060 超时不匹配,用户只能看到笼统文案。

Evidence / 证据

host/server/updates.mjs:59:

const message = /update server|aren't available|No internet/.test(plain.headline)
  ? plain.message
  : `Couldn't check for updates. Try again in a moment.`;

Actual underlying error returned by control:

{"ok": false, "error": {"code": 6, "message": "the update feed could not be read: could not read
https://github.com/Niko1221/Strata/releases/latest/download/strata-feed.json
(URLError: [WinError 10060] ... connection attempt failed ...)"}}

Suggested fix / 建议修复

  • Let looksOffline() / plainUpdateError() recognize the Windows timeout/network error
    classes (WinError 10060, 10061, 11001, getaddrinfo, URLError: <urlopen error ...>)
    as offline/network, so the UI can say "No internet connection" or "Couldn't reach the update
    server" instead of the generic sentence.

  • 让 looksOffline() / plainUpdateError() 识别 Windows 超时/网络错误类别
    (WinError 10060、10061、11001、getaddrinfo、URLError: <urlopen error ...>)为
    离线/网络问题,从而 UI 显示"无网络连接"或"无法连接更新服务器"而非笼统文案。


Bug 3 (previously reported / 之前已上报): public mirror downloader struggles with gh-proxy range handling

问题 3(之前已上报):公共镜像下载器对 gh-proxy 的 Range 处理不稳

Summary / 摘要

When reaching GitHub via a public proxy such as gh-proxy.com, the proxy intermittently ignores
Range: bytes=... and returns HTTP 200 (full body) instead of 206. Client downloaders that
blindly append to the partial file then corrupt it (file size shrinks / restarts). Observed while
downloading the ~592 MB engine archive and ~107 MB setup.exe.

当通过 gh-proxy.com 等公共代理访问 GitHub 时,代理会间歇地忽略 Range: bytes=... 并返回
HTTP 200(整个文件)而非 206。盲目追加写入 .part 文件的客户端会因此损坏文件
(文件大小回退/重新开始)。在下载约 592 MB 引擎包和 107 MB 安装包时观察到。

Suggested fix / 建议修复

  • When a resumed GET returns 200 instead of 206, discard any full-body bytes and retry, never
    append a full response to an existing partial file (Strata's own transfer._transfer already
    guards this correctly — good reference implementation).

  • 当断点续传请求返回 200 而非 206 时,应丢弃整段响应并重试,绝不把完整响应追加到已有的
    部分文件之后(Strata 自带的 transfer._transfer 已正确防护这一点——可作为参考实现)。

Originally created by @Jacky-Yan040212 on GitHub (Oct 29, 2026). Original GitHub issue: https://github.com/Niko1221/Strata/issues/4598 # Strata Bug Report / Strata 问题报告 **Date / 日期**: 2026-10-29 **Reporter environment / 报告环境**: Windows 10.0.22631, NVIDIA RTX 5070 Ti (sm_120), Driver 596.49 --- ## Bug 1: Engine 0.1.52 update fails at test-start — `--eos` argument regression ## 问题 1:引擎 0.1.52 更新在"测试启动"阶段失败 —— `--eos` 参数回归 ### Summary / 摘要 The engine update from 0.1.50 to 0.1.52 downloads and verifies successfully, but fails at the test-start step. Control 0.1.53 still passes the legacy `--eos 1` argument to the engine, but engine 0.1.52 no longer accepts `--eos`. The engine prints `unknown argument: --eos` and exits, so Strata rolls back to 0.1.50 and marks 0.1.52 as failed. 引擎从 0.1.50 升级到 0.1.52 时,下载和校验都成功,但在"测试启动"步骤失败。控制组件 0.1.53 仍然向引擎传入已废弃的 `--eos 1` 参数,而引擎 0.1.52 已不再接受 `--eos`。引擎打印 `unknown argument: --eos` 后退出,于是 Strata 回退到 0.1.50 并将 0.1.52 标记为失败。 ### Reproduction / 复现 1. On a CUDA machine, install Strata desktop 0.2.7 with engine 0.1.50 and control 0.1.53. 2. Run `strata update` (or press "Update engine" in Settings → About). 3. The engine archive downloads fully, then the test-start fails. 在 CUDA 机器上安装 Strata 桌面版 0.2.7(引擎 0.1.50、控制组件 0.1.53),运行 `strata update`(或在「设置 → 关于」中点击"更新引擎")。引擎压缩包完整下载后,测试启动失败。 ### Evidence / 证据 Test-start log fragment (`components/.updates/logs/test-start-0.1.52.log`): ``` engine started: ...\0.1.52-windows-x86_64-cuda-cuda13\strata.exe --serve \ --pack D:\strata\Strata-data\packs\deepseek-v4.1-flash-ist-das-2.00bpw \ --max-context 4096 --eos 1 --dspark auto --dspark-conf 0.65 unknown argument: --eos ``` `state.json` stores the failure: ```json "engine": { "active": "0.1.50-windows-x86_64-cuda-cuda13", "failed": { "0.1.52": { "reason": "it did not answer a one-token probe (server_exited) | ..." } } } ``` ### Root cause / 根因 - `control/0.1.53/setup.py:8451` (and also `control/0.1.51/setup.py:8248`) still writes `"--eos", "1"` into the engine's run config / start args. - Engine 0.1.52 dropped `--eos` (the help text now only mentions `--eos-ids`, see `serve/server.py:855` `EOS_IDS = {248044, 248046} # the engine's default --eos-ids`). - So the two components shipped together are internally incompatible. - `control/0.1.53/setup.py:8451`(以及 `control/0.1.51/setup.py:8248`)仍把 `"--eos", "1"` 写入引擎的运行配置/启动参数。 - 引擎 0.1.52 已移除 `--eos`(帮助文本现在只提到 `--eos-ids`,见 `serve/server.py:855` `EOS_IDS = {248044, 248046} # the engine's default --eos-ids`)。 - 因此一同发布的这两个组件内部不兼容。 ### Root cause (verified / 已验证根因) Actually TWO defects combine here / 实际是两个缺陷叠加: 1. **`--eos` regression**: `setup.py` still writes `--eos 1`, engine 0.1.52 dropped it. **`--eos` 回归**:`setup.py` 仍写 `--eos 1`,引擎 0.1.52 已删除该参数。 2. **`discover_run_config()` picks the wrong model's run config**: it selects the first `present` model, which on this PC is the **DeepSeek** model (`arch: deepseek41`, pack = a DeepSeek pack, args include `--dspark`/`--dspark-conf`). The staged **standard** engine (`strata.exe`, a Qwen build) cannot load a deepseek41 pack at all — so even after fixing `--eos`, the test start cannot pass. **`discover_run_config()` 选错模型配置**:它选第一个 `present` 模型,本机是 **DeepSeek** 模型(`arch: deepseek41`,pack 是 DeepSeek 的,args 含 `--dspark`/`--dspark-conf`)。 staged 的**标准**引擎(`strata.exe`,Qwen 版本)根本加载不了 deepseek41 的 pack, 所以即使修了 `--eos` 也过不了。 ### Verified fix (worked on this PC / 本机已验证可行) Both changes in `control/0.1.53/strata_control/updater.py`: 1. Add `--eos` to the test-start drop list: ```python _TEST_DROP_WITH_VALUE = ("--kv-resident", "--vision-tokens", "--eos") ``` 2. Skip dsv41 (DeepSeek-arch) configs in model discovery: ```python def _is_dsv41_config(source): if not source: return False try: with open(source, encoding="utf-8-sig") as fh: return json.load(fh).get("arch") == "deepseek41" except (OSError, ValueError): return False # inside discover_run_config(): ready = [m for m in ready if not _is_dsv41_config(m.get("source_config"))] ``` After both edits + clearing `engine.failed` in `state.json`, `strata update --no-control` succeeded: the test start loaded the **Qwen** model, answered the one-token probe, and the engine switched 0.1.50 → 0.1.52. 两处修改后(并清掉 `state.json` 里的 `engine.failed`),`strata update --no-control` 成功: 测试启动加载了 **Qwen** 模型、回答了一个 token,引擎从 0.1.50 切到 0.1.52。 ### Suggested upstream fix / 建议上游修复 - Stop writing `--eos 1` in `setup.py` (engine 0.1.52 uses `--eos-ids`; default `248044`/`248046`). - Make `light_test_args()` drop legacy/unknown flags (`--eos`, `--dspark`, `--dspark-conf`). - Make `discover_run_config()` skip configs whose `arch` the staged engine cannot load (e.g. skip `deepseek41` when test-starting the standard `strata-engine` component). - `setup.py` 不再写 `--eos 1`; - `light_test_args()` 剔除遗留/未知参数(`--eos`、`--dspark`、`--dspark-conf`); - `discover_run_config()` 跳过 staged 引擎无法加载的架构配置(例如测试标准 `strata-engine` 组件时跳过 `deepseek41`)。 --- ## Bug 2 (previously reported / 之前已上报): update check fails without network — generic error wording ## 问题 2(之前已上报):无网络时更新检查失败 —— 错误提示笼统 ### Summary / 摘要 When GitHub is unreachable (common in mainland China without a working accelerator), the "About" page shows only the generic sentence `"Couldn't check for updates. Try again in a moment."` with no indication that the real cause is network inability to reach `github.com` / the update feed. This happens because `checkComponentUpdates` in `host/server/updates.mjs` only special-cases error headlines matching `/update server|aren't available|No internet/`; a plain `URLError: WinError 10060` timeout does not match, so the user only sees the generic text. 当 GitHub 无法访问时(在大陆无可用加速器时很常见),「关于」页只显示笼统的 `"Couldn't check for updates. Try again in a moment."`,没有提示真正的网络原因。这是因为 `host/server/updates.mjs` 的 `checkComponentUpdates` 只对匹配 `/update server|aren't available|No internet/` 的错误标题做特殊处理;普通的 `URLError: WinError 10060` 超时不匹配,用户只能看到笼统文案。 ### Evidence / 证据 `host/server/updates.mjs:59`: ```js const message = /update server|aren't available|No internet/.test(plain.headline) ? plain.message : `Couldn't check for updates. Try again in a moment.`; ``` Actual underlying error returned by control: ``` {"ok": false, "error": {"code": 6, "message": "the update feed could not be read: could not read https://github.com/Niko1221/Strata/releases/latest/download/strata-feed.json (URLError: [WinError 10060] ... connection attempt failed ...)"}} ``` ### Suggested fix / 建议修复 - Let `looksOffline()` / `plainUpdateError()` recognize the Windows timeout/network error classes (`WinError 10060`, `10061`, `11001`, `getaddrinfo`, `URLError: <urlopen error ...>`) as offline/network, so the UI can say "No internet connection" or "Couldn't reach the update server" instead of the generic sentence. - 让 `looksOffline()` / `plainUpdateError()` 识别 Windows 超时/网络错误类别 (`WinError 10060`、`10061`、`11001`、`getaddrinfo`、`URLError: <urlopen error ...>`)为 离线/网络问题,从而 UI 显示"无网络连接"或"无法连接更新服务器"而非笼统文案。 --- ## Bug 3 (previously reported / 之前已上报): public mirror downloader struggles with gh-proxy range handling ## 问题 3(之前已上报):公共镜像下载器对 gh-proxy 的 Range 处理不稳 ### Summary / 摘要 When reaching GitHub via a public proxy such as `gh-proxy.com`, the proxy intermittently ignores `Range: bytes=...` and returns HTTP 200 (full body) instead of 206. Client downloaders that blindly append to the partial file then corrupt it (file size shrinks / restarts). Observed while downloading the ~592 MB engine archive and ~107 MB setup.exe. 当通过 `gh-proxy.com` 等公共代理访问 GitHub 时,代理会间歇地忽略 `Range: bytes=...` 并返回 HTTP 200(整个文件)而非 206。盲目追加写入 `.part` 文件的客户端会因此损坏文件 (文件大小回退/重新开始)。在下载约 592 MB 引擎包和 107 MB 安装包时观察到。 ### Suggested fix / 建议修复 - When a resumed GET returns 200 instead of 206, discard any full-body bytes and retry, never append a full response to an existing partial file (Strata's own `transfer._transfer` already guards this correctly — good reference implementation). - 当断点续传请求返回 200 而非 206 时,应丢弃整段响应并重试,绝不把完整响应追加到已有的 部分文件之后(Strata 自带的 `transfer._transfer` 已正确防护这一点——可作为参考实现)。
Author
Owner

@Niko1221 commented on GitHub (Nov 5, 2026):

Thanks for taking the time to report this.

Strata has changed a lot since this was opened, and 0.2.11 is out now, so many older reports no longer apply. We're closing issues older than a week that have had no new reports in the last week. Closed here does not mean rejected.

To reopen it takes about two minutes:

  1. Re-test on 0.2.11. It may already be fixed. Write down what you see.
  2. Start the title with its area: [Engine], [GUI], [TUI], [Benchmark], [Docs] or [Other].
  3. Fill in the parts of the issue form: what happened, the Strata version, your graphics card, memory and system.
  4. Comment /reopen. A check runs and either reopens the issue or lists what is still missing.

The rules are in CONTRIBUTING.md.

<!-- gh-comment-id:6660772996 --> @Niko1221 commented on GitHub (Nov 5, 2026): Thanks for taking the time to report this. Strata has changed a lot since this was opened, and 0.2.11 is out now, so many older reports no longer apply. We're closing issues older than a week that have had no new reports in the last week. Closed here does not mean rejected. To reopen it takes about two minutes: 1. Re-test on 0.2.11. It may already be fixed. Write down what you see. 2. Start the title with its area: [Engine], [GUI], [TUI], [Benchmark], [Docs] or [Other]. 3. Fill in the parts of the issue form: what happened, the Strata version, your graphics card, memory and system. 4. Comment `/reopen`. A check runs and either reopens the issue or lists what is still missing. The rules are in [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#2083
No description provided.