Windows: 0.11/0.12 fail before startup even with owner-only cache and runtime dirs; 0.10.8 works
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
调研方向
Start by tracing cbm_runtime_settings_init() and canonical_cache_path() in the v0.12.1 source, then compare that startup path with main_daemon_endpoint_new() and cbm_daemon_bootstrap_endpoint_new(). Check how the cache and CBM_RUNTIME_DIR are resolved on Windows, and find where the settings initialization error is converted to the generic message. Done means explaining the failing validation stage, exposing useful diagnostic detail, and clarifying whether the runtime override moves the endpoint.
由索引模型根据 Issue 内容生成。
描述
Environment
- Windows 11 Enterprise 22631, x64, domain-joined account
- Install: GitHub release zip, binary at
D:\tools\codebase-memory-mcp\bin\codebase-memory-mcp.exe - Works today on 0.10.8; fails on 0.11.0 and 0.12.1 (both checksum-verified release archives)
Symptoms
0.12.1 — every command (including config list) exits before MCP initialization:
codebase-memory-mcp: could not load saved runtime settings
0.11.0 — same startup, but names the stage:
codebase-memory-mcp: secure CLI coordination could not be created (endpoint)
With CBM_RUNTIME_DIR set to an owner-only directory the detail appears:
codebase-memory-mcp: secure CLI coordination could not be created (endpoint): D:\cbmt-rt\cbm-daemon-c888acc3ae367a1e: could not create or inspect the directory (Windows error 5)
(error 5 = ERROR_ACCESS_DENIED, raised while the daemon rendezvous directory does not yet exist)
What was tried
Cache and runtime directories were each tested as: default, V:\cache, D:\..., C:\Users\<user>\..., all with icacls <dir> /inheritance:r /grant:r <user>:(OI)(CI)F (owner-only, protected DACL). The account owns every directory. A live check of the same account creates subdirectories in each of these parents without error.
Result matrix:
| cache | runtime parent | 0.12.1 | 0.11.0 |
|---|---|---|---|
default (~/.cache / %LOCALAPPDATA%) |
default | fails (settings) | fails (endpoint, detail names AppData\Local ACE) |
V:\cache |
default | fails (settings) | fails (endpoint) |
V:\... |
V:\... owner-only |
fails (settings) | fails (endpoint, empty detail) |
D:\... |
D:\... owner-only |
fails (settings) | fails (endpoint, empty detail) |
D:\... |
default | fails (settings) | fails (endpoint) |
Removing the CodexSandboxUsers-style ACEs (see #2023) from %USERPROFILE%\AppData moved the 0.11 failure from "AppData\Local: DACL entry 0 grants mutation rights ..." to the generic (endpoint) error, but startup still fails.
LOCALAPPDATA pointed at a private directory does not change the outcome and creates no files.
Source observations (v0.12.1)
main_daemon_endpoint_new()passesruntime_parent = NULLin product builds.cbm_daemon_bootstrap_endpoint_new()does resolve theCBM_RUNTIME_DIRoverride, and its comment says it is "the one function every product endpoint goes through".cbm_runtime_settings_init()runs earlier and fails oncanonical_cache_path()for every directory tested, including fresh owner-only ones where_config.dbis never created.CBM_LOG_LEVEL=debugadds no detail on this path; main.c prints the generic message for it.- docs/CONFIGURATION.md says
CBM_RUNTIME_DIRis the supported escape when the default ancestry fails, but with 0.12.1 no cache directory tested passes the settings init at all.
Running the same binary from the canonical install path (...\bin\codebase-memory-mcp.exe) does not change the result.
Ask
- A way to see the validation/init detail for the 0.12.1 runtime-settings failure (the 0.11 endpoint path names it; the 0.12 settings path does not).
- Whether
CBM_RUNTIME_DIRis expected to move the endpoint on Windows and, if so, which startup stage still depends on%LOCALAPPDATA%.
Rolling the same install back to 0.10.8 restores CLI and MCP immediately, so this is a startup-gate regression between 0.10.8 and 0.11.0, not a data problem.
- 主要语言
- C
- 星标
- 45.8k
- 派生
- 3.8k
- 平均合并
- 2 天 18 小时
- 30 天内合并 PR
- 108
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
DeusData/codebase-memory-mcp 的其他 Issue
-
bug ux/behavior
难度 2/5 1-3 小时 新手友好度 70/100
DeusData/codebase-memory-mcp#3191 ·
维护者通常 1 天内回复
-
documentation enhancement parsing/quality ux/behavior
难度 1/5 1-3 小时 新手友好度 82/100
DeusData/codebase-memory-mcp#3131 · 1 条评论 · 1 个 reaction ·
维护者通常 1 天内回复
-
hook-augment: the five-row cap keeps the first five search_graph rows, so variables and modules displace function definitions (v0.12.1)可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭bug editor/integration parsing/quality ux/behavior
难度 2/5 1-3 小时 新手友好度 75/100
DeusData/codebase-memory-mcp#3062 · 2 条评论 ·
维护者通常 1 天内回复
-
bug documentation editor/integration parsing/quality
难度 2/5 1-3 小时 新手友好度 75/100
DeusData/codebase-memory-mcp#3050 · 1 条评论 ·
维护者通常 1 天内回复
-
editor/integration parsing/quality
难度 2/5 1-3 小时 新手友好度 68/100
DeusData/codebase-memory-mcp#2286 ·
维护者通常 1 天内回复
查看 DeusData/codebase-memory-mcp 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 70/100
维护者通常 2 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
-
难度 2/5 1-3 小时 新手友好度 85/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
NVIDIA/open-gpu-kernel-modules#1635 ·
维护者通常 1 天内回复
-
iOS: the "Edit controls" button never hides, even with a controller connected, and covers the game未关闭game: 010065A014024000 ios
难度 2/5 1-3 小时 新手友好度 76/100
seedds/nxnative#3714 · 1 条评论 ·
维护者通常 2 天内回复