You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
=== billion-context diagnostics ===
generated: 2026-10-16T08:30:57.963Z
bili version: 0.1.197 (commit 3aeddc1)
node: v20.20.2
platform: win32 x64
os: Windows_NT 10.0.26300
uptime: 7h 22m
--- storage ---
requested mode: shadow
effective mode: legacy
degrade reason: no SQLite engine available (node:sqlite missing, better-sqlite3 not installed)
engine: none
engine bootstrap: failed
bootstrap failure marker: at=2026-10-16T01:08:21.246Z reason="The operation was aborted due to timeout"
BILI_STORAGE_UNIFIED: (unset)
storage.unified (config file): (unset)
BILI_STORAGE_JSON_WRITER: (unset)
storage.jsonWriter (config file): (unset)
BILI_SQLITE_AUTO_DOWNLOAD: (unset)
storage.sqliteAutoDownload (config file): (unset)
BILI_ENCRYPTION_KEY set: no
sessions on disk: 11
last [storage] log lines:
2026-10-15T00:58:48.158Z [warn] [v=0.1.197] [storage] unified sidecar failed to open C:\Users\17271.local\share\billion-context\sessions/index.db (Error: [storage:node:sqlite] no SQLite engine available) — staying legacy-only; delete the file to reset the index
2026-10-15T00:59:40.965Z [warn] [v=0.1.197] [storage] unified sidecar failed to open C:\Users\17271.local\share\billion-context\sessions/index.db (Error: [storage:node:sqlite] no SQLite engine available) — staying legacy-only; delete the file to reset the index
2026-10-15T01:38:31.152Z [warn] [v=0.1.197] [storage] unified sidecar failed to open C:\Users\17271.local\share\billion-context\sessions/index.db (Error: [storage:node:sqlite] no SQLite engine available) — staying legacy-only; delete the file to reset the index
2026-10-15T01:39:56.133Z [warn] [v=0.1.197] [storage] unified sidecar failed to open C:\Users\17271.local\share\billion-context\sessions/index.db (Error: [storage:node:sqlite] no SQLite engine available) — staying legacy-only; delete the file to reset the index
2026-10-15T05:11:53.047Z [warn] [v=0.1.197] [storage] unified sidecar failed to open C:\Users\17271.local\share\billion-context\sessions/index.db (Error: [storage:node:sqlite] no SQLite engine available) — staying legacy-only; delete the file to reset the index
2026-10-16T01:08:21.254Z [warn] [v=0.1.197] [storage] unified sidecar failed to open C:\Users\17271.local\share\billion-context\sessions/index.db (Error: [storage:node:sqlite] no SQLite engine available) — staying legacy-only; delete the file to reset the index
2026-10-16T08:30:57.532Z [warn] [v=0.1.197] [storage] unified sidecar failed to open C:\Users\17271.local\share\billion-context\sessions/index.db (Error: [storage:node:sqlite] no SQLite engine available) — staying legacy-only; delete the file to reset the index
Activity
ranxianglei commentedon Oct 16, 2026
(ai: vllm-qwen/qwen3.8-27b)
查重:重复 #3338。 同症状(Node 20 + win32-x64 上 unified storage 降级 legacy-only)、同机制(引擎自下载被 10s 超时掐断 →
"The operation was aborted due to timeout"→ 6h 冷却)、同根因。先到的 #3338(2026-10-16 03:18Z 立)保留,本单后到(~08:30Z),按查重政策应打「重复」标签并关闭;本单补充证据已写入 #3338。我这边工具没有关单权限,请 owner 关闭本单(或回复授权平台处理)。这单是什么:Node ≤21 没有内置
node:sqlite,你机器也没装 better-sqlite3,bili 默认shadowunified 存储拿不到引擎,回落 legacy-only JSON。你的失败签名与 #3338 逐字一致。根因(我在你上报的确切版本 v0.1.197 @ commit 3aeddc1 上独立核对过,不是复读 issue):
BOOTSTRAP_TIMEOUT_MS = 10_000(src/storage/engine-bootstrap.ts:61,经:291的AbortSignal.timeout生效);~11MB 的 better-sqlite3 包要 10s 拉完,得在 TLS/代理开销之前持续 >1.1 MB/s——公司网络/代理下必然中途被掐,报错正是你日志里那句 timeout;src/update.ts:1666)——同类操作差 6 倍的预算缺口是缺陷核心机制,不是网络不可达;engine-bootstrap.ts:62,文件在<cacheDir>/sqlite/.bootstrap-failed.json,:128)。你的日志从 10-15T00:58Z 到 10-16T08:30Z 共 7 次 warn,正是「冷却到期→重试→再失败」循环——说明你被锁在 legacy 不是一阵子,是跨天。修复状态:PR #3348(自下载超时 10s→60s,对齐自更新器;单常量 + 回归测试)已开好、代码审查通过,等人工合并;另有两个决策待拍板(见 #3348 floor 3:① 60s 还是 30s;② 启动非阻塞化是否单开 issue)。
你现在就能做的(不用等发版):
BILI_UPDATE_REGISTRY=https://registry.npmmirror.com(或你公司内网 npm 源——自下载走的就是这个 registry,engine-bootstrap.ts:247),删掉<bili 缓存目录>/sqlite/.bootstrap-failed.json,重启 bili 会重新试;BILI_STORAGE_UNIFIED=legacy(彻底退出 unified sidecar)或BILI_SQLITE_AUTO_DOWNLOAD=0(停自动下载)。legacy JSON 一直是 source of truth,功能不受影响,数据无损。八问(按重复单视角):
.bootstrap-failed.json格式不变。BILI_UPDATE_REGISTRY镜像即覆盖本场景。结论:本单为 #3338 的重复实例,建议关闭(打「重复」标签);唯一修复入口 PR #3348,等你合并。
ranxianglei commentedon Oct 17, 2026
ework 几个问题,1. 60s没问题 2.下载问题,是否可以内置多镜像 包括npm和npmmirror的?3.提示用户升级nodesjs
ranxianglei commentedon Oct 17, 2026
继续
ranxianglei commentedon Oct 17, 2026
(ai: vllm-qwen/qwen3.8-27b)
1. 60s —— 收到,而且已经生效了:#3348 已于昨天(2026-10-17 04:24Z)合入 master(构建
0.0.515-master.74a79ab),当前 master 的src/storage/engine-bootstrap.ts:65已是BOOTSTRAP_TIMEOUT_MS = 60_000。随下一个编号版本发布;想立刻用上可装billion-context@master。此项无需再动。2. 多镜像 —— 可行,且没有新增安全风险:better-sqlite3 tarball 的 sha512 digest 是钉在仓库里、每次下载都校验的(engine-bootstrap.ts 头部注释),各镜像分发的是字节相同的文件,换源不削弱完整性。我的推荐方案如下,请拍板:
BILI_UPDATE_REGISTRY/update.registry→ 只用它(显式意图优先,不偷偷把流量引去别处);未设置 → 走内置链registry.npmjs.org → registry.npmmirror.com;src/update.ts)不动——它是 load-bearing,§5 要求改它之前先做一次 NO-OP 验证发布,且它已有自己的指数退避。更新器要多镜像就另立 issue;八问(决策请求,Q3/Q5 按选项列)
选项:A 内置链 + 显式配置独占(推荐)/ B 内置链 + 显式配置排链首(失败也落回公共源)/ C 新增可配置镜像列表字段。
BILI_UPDATE_REGISTRY);C 引入新字段(需你明确批准形状)。3. 提示升级 Node —— 不需要决策,我现在就做:缺引擎降级时,在
[storage]warn 行(src/storage/shadow.ts:100)和 diagnostics 的degrade reason:(src/storage/runtime-status.ts:88/:107)追加一句提示——当前 Node 没有内置 node:sqlite,升级到较新的 Node.js(自带 node:sqlite)即可完全跳过下载。先立项再开小 PR,链接随后补在这条线程里。另有一项仍待你拍板(沿用 #3348 floor 3 的第二个决策):启动非阻塞化是否单开 issue——现在
src/cli.ts:601同步 await ensureSqliteEngine,引擎不可用时整个进程启动被阻塞(最坏 ~2min 在多镜像方案落地后)。它与本轮改动是不同机制(启动控制流),我建议单开一条跟踪。ranxianglei commentedon Oct 17, 2026
(ai: vllm-qwen/qwen3.8-27b)
三个问题的最新状态:
1. 60s 超时 —— 已合入。 PR #3348 已于今早 04:24Z 合并进 master(自更新构建
0.0.515-master.74a79ab已发布)。升级到含此修复的版本后,引擎自下载超时即为 60 秒。2. 内置多镜像(npm + npmmirror)—— 可行,等你拍板。 上一条回复给过完整对比,这里一句话复述:
BILI_UPDATE_REGISTRY/update.registry)设置时独占生效;未设置时按内置链registry.npmjs.org → registry.npmmirror.com依次尝试,每源 60s 预算,sha512 校验不变,只改引擎自下载路径、不碰src/update.ts;选定后我立即在 #3489 的 item A 开工。
3. 提示用户升级 Node.js —— 已完成,见 PR #3491。 行为变更说明(旧→新):当运行节点没有可用 SQLite 引擎时(即你这种 Node 无内置
node:sqlite的场景),日志告警行和诊断信息/web banner 的降级原因这两处会在原文后追加一句「— hint: upgrade to a newer Node.js; recent releases ship built-in node:sqlite and skip the engine download」;有内置模块的新版 Node 上输出逐字节不变,坏库(index.db 损坏)的告警也不会误加提示。wire 结构不变、无新增配置项。等 CI + 合并。八问小结(item B):
node:sqlite普及之前,缺这条出路指引。nodeSqliteUpgradeHint()——探测当前 Node 有无内置node:sqlite,没有才追加提示句;日志告警与诊断原因共用这一个 helper。判定:item B 由 PR #3491 交付(待 CI + 人工合并);item A(多镜像)待你选 A/B/C。眼下若急着恢复 unified,仍可用上一条回复里的临时办法:设
BILI_UPDATE_REGISTRY=https://registry.npmmirror.com、删掉<cache>/sqlite/.bootstrap-failed.json再重启。ranxianglei commentedon Oct 17, 2026
(ai: vllm-qwen/qwen3.8-27b)
收到「继续」——理解为按我推荐的方案 A 实施多镜像回退(#3489 item A),开工了。若理解有偏差请指出,分支可撤。
当前状态:
BILI_UPDATE_REGISTRY/update.registry)独占生效;未设置时按registry.npmjs.org → registry.npmmirror.com依次尝试,每源独立 60s 预算,sha512 校验逐源执行(钉死在仓库里的摘要不变,镜像只换字节来源);全部失败才写既有 6h 冷却标记(原因里带上各源失败信息)。只动引擎自下载路径,不碰src/update.ts。完成后回来汇报 + 八问小结。
ranxianglei commentedon Oct 17, 2026
(ai: vllm-qwen/qwen3.8-27b)
收到「继续」——按推荐方案 A 把多镜像做完了。至此你提的三件事全部落地:
0.0.515-master.74a79ab)0d25c307ce1ffda6bc② 的实现要点(按「一个 issue 一个 PR」纪律并入既有 PR #3491,未另开):
registry.npmjs.org→registry.npmmirror.com,每个来源各自的 60s 预算;第一个成功就停,不会多发请求;BILI_UPDATE_REGISTRY的场景)保持独占——绝不静默回落到公共镜像,这条是决策时钉死的约束;八问(本轮改动部分):
src/update.ts(自更新器)未动,它有独立的退避策略,属另一条线。BILI_UPDATE_REGISTRY/update.registry语义(未设置 = 走内置链)。行为变更披露:最坏启动等待从 ~60s 升到 ~2min(60s×2 源),仅发生在「需要自下载 && 6h 窗口内首次尝试 && 第一源失败」时;文档 en/zh 已同步(含修正
BILI_UPDATE_REGISTRY条目里过时的「生产请勿设置」表述)。本地定向验证已过(bootstrap 套件 29/29,含 4 个新增用例),CI 正在跑新 head。判定:等 CI 绿 + 人工合并 #3491(合并后 #3489 自动关闭);另外 #3348 里那个「非阻塞启动」的决策问题仍待你拍板,不急。
acp_status: surface the storage degrade reason so the model relays th…
merge: sync master into #3135 storage-tail branch (#3144 conflict)
fix(storage): builtin npm+npmmirror mirror fallback + Node upgrade hi…
fix: redact storage diagnostics at the publish boundary