Skip to content

Standalone dashboard (--ui=true) dies silently within seconds, no stderr output #909

Open

Description

@JoseVallejoMorey

Version

codebase-memory-mcp 0.8.1

Platform

Windows (x64)

Install channel

GitHub release archive / install.sh / install.ps1

Binary variant

ui

What happened, and what did you expect?

The standalone UI dashboard (--ui=true --port=<port>) exits silently within
seconds of launch, with no error printed to stderr. This happens specifically
when another process (a long-lived Claude Code stdio MCP session) already has
the same project's graph.db open. I confirmed it's not a port-conflict/TIME_WAIT
issue by reproducing it on a never-before-used port (29749) with identical
results.

I expected the standalone dashboard to either work correctly alongside an active
stdio session on the same project, or — if concurrent access to graph.db isn't
supported — to fail with a clear error message explaining why, instead of dying
silently with no diagnostic output.

Reproduction

  1. Code being indexed: Not code-content-dependent — this appears to be pure
    process/lock contention, not related to file content. Our repro used a
    private ~1650-node / ~5700-edge Python/FastAPI repo, but any indexed
    project (including a minimal public one) should reproduce it identically.

  2. Exact steps:
    a. Index any project via an MCP stdio session (e.g. Claude Code):
    "Index this project" → calls index_repository.
    b. Leave that session open and connected — its stdio server process keeps
    graph.db open.
    c. In a separate terminal, launch the standalone dashboard against the
    SAME indexed project:
    codebase-memory-mcp.exe --ui=true --port=9749
    d. Process exits on its own within 1-20 seconds. No stderr output.
    e. Reproduced identically on a never-before-used port (29749), ruling out
    TIME_WAIT / port reuse as the cause.

  3. Output vs expected:
    Actual: silent exit, nothing printed to stderr, nothing retrievable via
    GET /api/logs (server is already dead by the time you'd query it).
    Expected: either successful concurrent access to graph.db from both
    processes, or a clear error on stderr (e.g. "graph.db locked by another
    process") instead of a silent, undiagnosable exit.

Logs

level=info msg=mem.init budget_mb=8131 total_ram_mb=16263
(nothing else printed before the process exits — no warning, no error, no
signal info; this is the entirety of stderr output captured before the
silent exit)

Diagnostics trajectory (memory / performance / leak issues)

Not collected — this is a crash-on-startup rather than a memory/performance
issue, so we didn't capture this initially. Happy to reproduce with
CBM_DIAGNOSTICS=1 if it would help triage.

Project scale (if relevant)

~1651 nodes / ~5715 edges, graph.db ≈ 7.1 MB (7,471,104 bytes).

Confirmations

  • I searched existing issues and this is not a duplicate.
  • My reproduction uses shareable code (a dummy snippet or a public OSS repository), not proprietary code.

Activity

  1. LoveDoLove commented on Jul 7, 2026

    @LoveDoLove

    Just go web browser open the localhost:port

  2. sniperrenren commented on Jul 7, 2026

    @sniperrenren

    it`s mine:
    codebase-memory-mcp --ui=true --port=9749
    level=info msg=mem.init budget_mb=8192 total_ram_mb=16384
    [1] 1965 killed codebase-memory-mcp --ui=true --port=9749
    putout nothing

  3. added
    windowsWindows-specific issues
    ux/behaviorDisplay bugs, docs, adoption UX
    stability/performanceServer crashes, OOM, hangs, high CPU/memory
    priority/highNeeds near-term maintainer attention; high-impact bug, regression, safety issue, or release blocker.
    on Jul 7, 2026
  4. DeusData commented on Jul 7, 2026

    @DeusData
    Owner

    Thanks for the clear standalone UI repro. Triage: high-priority Windows/UI stability bug under #394/#396.

    If concurrent stdio and UI access to the same graph cannot be supported in this path, the binary must fail with an actionable local diagnostic rather than exiting silently. Review should also check whether the project-locking work now in flight covers this case.

  5. added this to the 0.9.1-rc milestone on Jul 8, 2026
  6. DeusData commented on Jul 11, 2026

    @DeusData
    Owner

    v0.9.0 shipped a substantial rework of the standalone UI server path (process lifecycle, port handling, error surfacing — the Windows '--ui=true never listens' report #707 was confirmed fixed by its reporter on v0.9.0). There's a fair chance the silent-death-within-seconds you hit is the same underlying class. Could you retest with v0.9.0? If it still dies, please attach the last lines of stderr/terminal plus your OS and how you launched it — with v0.9.0 the process should now either serve or fail with an actionable diagnostic, so a silent exit would be exactly the evidence we need.

  7. added
    awaiting-reporterWaiting on the reporter for info/repro; stale bot will warn then close
    on Jul 11, 2026
  8. github-actions commented on Jul 11, 2026

    @github-actions

    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.

  9. github-actions commented on Aug 1, 2026

    @github-actions

    This issue has been waiting on more information for 21 days (a version, exact steps, or a public repro), so it's now marked stale. It will not be closed automatically — a maintainer reviews stale issues by hand. Adding a comment with the details clears the label and puts it straight back in the queue. We're happy to pick it back up the moment we can reproduce it.

  10. added
    staleNo activity after an info request; will be closed soon
    on Aug 1, 2026
  11. DeusData commented on Sep 19, 2026

    @DeusData
    Owner

    Thank you for the original report. We have not verified that the standalone Windows UI exit described here is fixed, so I am keeping this open rather than treating the elapsed time as resolution.

    Could you retest on v0.11.0 and let us know whether the UI still exits while the MCP client is running? Please include the exact launch command, whether you use the UI release variant, and any sanitized stderr/daemon log around the exit. Do not include repository content or credentials. The release is available at https://github.com/DeusData/codebase-memory-mcp/releases/tag/v0.11.0. Thank you for taking another look.

  12. removed
    staleNo activity after an info request; will be closed soon
    on Sep 19, 2026
  13. github-actions commented on Oct 11, 2026

    @github-actions

    This issue has been waiting on more information for 21 days (a version, exact steps, or a public repro), so it's now marked stale. It will not be closed automatically — a maintainer reviews stale issues by hand. Adding a comment with the details clears the label and puts it straight back in the queue. We're happy to pick it back up the moment we can reproduce it.

  14. added
    staleNo activity after an info request; will be closed soon
    on Oct 11, 2026
  15. DeusData commented on Oct 19, 2026

    @DeusData
    Owner

    Thank you again for reporting the silent UI exit. Checking back on the requested retest: does it still happen on your current CBM version while the MCP client is running? The exact launch command and a short redacted error/log excerpt would help if it does. There is no newly verified fix to claim from this sweep.

  16. removed
    staleNo activity after an info request; will be closed soon
    on Oct 20, 2026
  17. DeusData commented on Oct 25, 2026

    @DeusData
    Owner

    Thank you again for the report. If you have already retested the silent dashboard exit, please share the exact version and outcome; the earlier log request remains sufficient.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    awaiting-reporterWaiting on the reporter for info/repro; stale bot will warn then closebugSomething isn't workingpriority/highNeeds near-term maintainer attention; high-impact bug, regression, safety issue, or release blocker.stability/performanceServer crashes, OOM, hangs, high CPU/memoryux/behaviorDisplay bugs, docs, adoption UXwindowsWindows-specific issues

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions