Windows: 0.11/0.12 fail before startup even with owner-only cache and runtime dirs; 0.10.8 works

Ouverte
#3,106 1 commentaire 0 réactions 0 personnes assignées Voir sur GitHub

Les mainteneurs répondent en général sous 1 jour

Personne n'a encore pris cette issue.

Évaluation

Difficulté
4/5
Temps estimé
3-5 jours
Accessibilité débutants
43/100
Type d'issue
Bug
Clarté
Plutôt claire
Activité
Active
Stack technique
c
Domaine
backend

Piste de recherche

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.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Description

bug editor/integration stability/performance windows

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() passes runtime_parent = NULL in product builds.
  • cbm_daemon_bootstrap_endpoint_new() does resolve the CBM_RUNTIME_DIR override, and its comment says it is "the one function every product endpoint goes through".
  • cbm_runtime_settings_init() runs earlier and fails on canonical_cache_path() for every directory tested, including fresh owner-only ones where _config.db is never created. CBM_LOG_LEVEL=debug adds no detail on this path; main.c prints the generic message for it.
  • docs/CONFIGURATION.md says CBM_RUNTIME_DIR is 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

  1. 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).
  2. Whether CBM_RUNTIME_DIR is 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.

Langage dominant
C
Étoiles
45.8k
Forks
3.8k
Merge moyen
2 j 18 h
PR mergées (30 j)
108

Préparer son environnement

Ce projet ne fournit ni conteneur de développement, ni Dockerfile, ni guide de contribution : l'installation est à votre charge. Commencez par son README, et consultez notre guide de la première contribution pour les étapes générales.

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Autres issues de DeusData/codebase-memory-mcp

Toutes les issues de DeusData/codebase-memory-mcp

Issues similaires

Plus d'issues C

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.