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
{{ message }}
Repository navigation
Installation fails on v0.10.5: activation could not reserve exclusive access #1686
Running the installation script fails during activation for version 0.10.5 on Linux (amd64).
Log Output
$ curl -fsSL https://raw.githubusercontent.com/DeusData/codebase-memory-mcp/main/install.sh | bash
codebase-memory-mcp installer
os: linux
arch: amd64
target: /home/<user>/.local/bin/codebase-memory-mcp
Downloading codebase-memory-mcp-linux-amd64-portable.tar.gz...
######################################################################## 100.0%
Checksum verified.
Extracting...
Verified candidate: codebase-memory-mcp 0.10.5
codebase-memory-mcp install 0.10.5
error: activation could not reserve exclusive access; no activation was committed.
error: this is NOT a running-session problem — the reservation itself failed (coordination lock, leftover state, or permissions). Nothing needs to be closed. Check the errors above, and report this with the output of 'ls -la "${CBM_CACHE_DIR:-$HOME/.cache/codebase-memory-mcp}"' if it persists.
Cache Directory Details
As requested by the error message:
$ ls -la "${CBM_CACHE_DIR:-$HOME/.cache/codebase-memory-mcp}"
total 0
drwxrwxrwx 1 <user> <group> 4096 Aug 17 15:27 .
drwxrwxrwx 1 <user> <group> 4096 Aug 17 01:30 ..
`PS C:\Windows\system32> .\install.ps1 --ui
codebase-memory-mcp installer (Windows)
arch: amd64 target: C:\Users\yure5\AppData\Local\Programs\codebase-memory-mcp\codebase-memory-mcp.exe Downloading codebase-memory-mcp-windows-amd64.zip... Checksum verified. Extracting... Verified candidate: codebase-memory-mcp 0.10.5
codebase-memory-mcp install 0.10.5
Found 2 existing index(es). Keeping them. After install, re-index to pick up this version's improvements
error: activation could not reserve exclusive access; no activation was committed.
error: this is NOT a running-session problem ÔÇö the reservation itself failed (coordination lock, leftover state, or permissions). Nothing needs to be closed. Check the errors above, and report this with the output of 'ls -la "${CBM_CACHE_DIR:-$HOME/.cache/codebase-memory-mcp}"' if it persists.
error: installation failed (exit code 1)
PS C:\Windows\system32>`
Thank you both for the install transcripts. v0.10.6 includes the install coordination cluster and Windows ACL repair changes, so the next useful discriminator is a retry on v0.10.6 rather than another v0.10.5 trace.
Please report whether v0.10.6 succeeds. If it still fails, include the complete new activation error and the cache/runtime directory plus its immediate parent permissions, with user and machine names redacted. For the Linux report, please also say whether this is WSL or a mounted filesystem; the shown 0777 directory may connect it to #1687. I have marked this awaiting-reporter while we wait for that version-specific result. Thank you for helping distinguish one shared activation bug from two platform-specific permission failures.
Thanks for the report! To move this forward we need a bit more so we can reproduce it ourselves:
the codebase-memory-mcp --version you're on
the exact steps or command you ran
a public repo (or a small dummy snippet) that shows the problem — please don't paste proprietary code
Once that's here we'll pick it straight back up. Heads-up: issues left awaiting-reporter are automatically closed after a few weeks of silence, but a comment reopens the door anytime.
Hit this on Windows 11 with 0.10.6. Root cause found and fixed on my side — the reservation check is behaving correctly, but nothing in the error output or the requested diagnostic can lead you to the cause.
Cause: a stale cross-account ACE on the parent of the cache dir (~/.cache, not ~/.cache/codebase-memory-mcp), on a multi-user machine.
Requested output
$ ls -la "${CBM_CACHE_DIR:-$HOME/.cache/codebase-memory-mcp}"
total 0
drwxr-xr-x 1 <user> 197121 0 Aug 17 10:15 .
drwxr-xr-x 1 <user> 197121 0 Aug 17 10:15 ..
Empty, and looks perfectly healthy — that is the problem (see below).
Error
error: activation could not reserve exclusive access; no activation was committed.
error: this is NOT a running-session problem - the reservation itself failed
(coordination lock, leftover state, or permissions). Nothing needs to be closed.
error: installation failed (exit code 1)
Windows 11 Pro 10.0.26200, amd64, PowerShell 7.6.4, non-elevated, .\install.ps1, no CBM_* set. Clean machine: install dir absent, no cbm process, no cbm-install-* in %TEMP%. Failed identically every run.
Root cause
The cache dir itself was correctly hardened (protected, owner-only). Its parent was not:
=== C:\Users\<user>\.cache ===
IdentityReference FileSystemRights IsInherited
<HOST>\<user-a> FullControl True
<HOST>\<user-b> FullControl True <-- different local account
protected: False
<user-b> is a separate enabled local account, not the installing user. With FullControl on ~/.cache it can rename or replace the child directory regardless of the child's own DACL — so refusing the reservation is the right call.
The ACE was orphaned: flagged IsInherited = True, but the profile root does not carry it — left behind when the grant was removed upstream without re-propagating. Same family as #1529 / #1614 / #1571, but on the cache path rather than %TEMP%, so the Set-Acl hardening in install.ps1 (~line 152) does not cover it.
Install succeeded on the next run. No reboot, no elevation, nothing closed — removing the ACE was the only variable changed.
Two suggestions
1. The requested diagnostic cannot surface this on Windows.ls -la prints POSIX bits synthesized by MSYS; it says nothing about DACLs, and the ACE was on the parent anyway. This would have pointed straight at it:
2. The error names neither the path nor the SID. The acl-grants-cross-account-mutation to S-1-5-21-... message quoted in the install.ps1 comments is far more actionable. Also, "leftover state" reads as stale files — here it was a stale ACE.
Optional third: extend the %TEMP% ACL hardening to ~/.cache, or validate the parent chain up front and report it.
Fixed on main by #2139 (merge commit 1b067e3b042da824edb27bb173df41afb2d27beb).
Activation no longer fails on the untrusted-owner path that produced the "could not reserve exclusive" error here; untrusted owners are named rather than causing an unconditional failure. Ships in v0.10.9.
Activity
yurefr commentedon Aug 17, 2026
Same problem here on Windows.
DeusData commentedon Aug 18, 2026
Thank you both for the install transcripts. v0.10.6 includes the install coordination cluster and Windows ACL repair changes, so the next useful discriminator is a retry on v0.10.6 rather than another v0.10.5 trace.
Please report whether v0.10.6 succeeds. If it still fails, include the complete new activation error and the cache/runtime directory plus its immediate parent permissions, with user and machine names redacted. For the Linux report, please also say whether this is WSL or a mounted filesystem; the shown
0777directory may connect it to #1687. I have marked thisawaiting-reporterwhile we wait for that version-specific result. Thank you for helping distinguish one shared activation bug from two platform-specific permission failures.github-actions commentedon Aug 18, 2026
Thanks for the report! To move this forward we need a bit more so we can reproduce it ourselves:
codebase-memory-mcp --versionyou're onOnce that's here we'll pick it straight back up. Heads-up: issues left
awaiting-reporterare automatically closed after a few weeks of silence, but a comment reopens the door anytime.AlfonsoUritec commentedon Aug 18, 2026
Hit this on Windows 11 with 0.10.6. Root cause found and fixed on my side — the reservation check is behaving correctly, but nothing in the error output or the requested diagnostic can lead you to the cause.
Cause: a stale cross-account ACE on the parent of the cache dir (
~/.cache, not~/.cache/codebase-memory-mcp), on a multi-user machine.Requested output
Empty, and looks perfectly healthy — that is the problem (see below).
Error
Windows 11 Pro 10.0.26200, amd64, PowerShell 7.6.4, non-elevated,
.\install.ps1, noCBM_*set. Clean machine: install dir absent, no cbm process, nocbm-install-*in%TEMP%. Failed identically every run.Root cause
The cache dir itself was correctly hardened (protected, owner-only). Its parent was not:
<user-b>is a separate enabled local account, not the installing user. WithFullControlon~/.cacheit can rename or replace the child directory regardless of the child's own DACL — so refusing the reservation is the right call.The ACE was orphaned: flagged
IsInherited = True, but the profile root does not carry it — left behind when the grant was removed upstream without re-propagating. Same family as #1529 / #1614 / #1571, but on the cache path rather than%TEMP%, so theSet-Aclhardening ininstall.ps1(~line 152) does not cover it.Fix
Install succeeded on the next run. No reboot, no elevation, nothing closed — removing the ACE was the only variable changed.
Two suggestions
1. The requested diagnostic cannot surface this on Windows.
ls -laprints POSIX bits synthesized by MSYS; it says nothing about DACLs, and the ACE was on the parent anyway. This would have pointed straight at it:2. The error names neither the path nor the SID. The
acl-grants-cross-account-mutation to S-1-5-21-...message quoted in theinstall.ps1comments is far more actionable. Also, "leftover state" reads as stale files — here it was a stale ACE.Optional third: extend the
%TEMP%ACL hardening to~/.cache, or validate the parent chain up front and report it.Merge pull request #2139 from DeusData/fix/decision-b-win-sid-trust
DeusData commentedon Sep 12, 2026
Fixed on
mainby #2139 (merge commit1b067e3b042da824edb27bb173df41afb2d27beb).Activation no longer fails on the untrusted-owner path that produced the "could not reserve exclusive" error here; untrusted owners are named rather than causing an unconditional failure. Ships in v0.10.9.
Thanks for the detailed v0.10.5 report.
fix(install): trust the local machine's built-in Administrator; name …
fix(install): trust the local machine's built-in Administrator; name …
fix(install): trust the local machine's built-in Administrator; name …