LearnNewsExamplesServices
Frontmatter
id9881
titleFix Data Sync Pipeline Crash by Disabling Unconditional Chroma Daemon Startup
stateClosed
labels
bugai
assigneestobiu
createdAtApr 11, 2026, 12:17 PM
updatedAtApr 12, 2026, 7:00 PM
githubUrlhttps://github.com/neomjs/neo/issues/9881
authortobiu
commentsCount0
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtApr 11, 2026, 12:32 PM

Fix Data Sync Pipeline Crash by Disabling Unconditional Chroma Daemon Startup

tobiu
tobiu commented on Apr 11, 2026, 12:17 PM

Description

The GitHub Actions data sync pipeline has critically broken with an ENOENT error because labels.mjs triggers a knowledge-base service load via the ai/services.mjs SDK.

Root Cause

  1. labels.mjs uses import {GH_LabelService} from '../../../ai/services.mjs'.
  2. This imports DatabaseLifecycleService.mjs which, upon initialization (initAsync), unconditionally calls await this.startDatabase().
  3. This attempts to spawn chroma, which doesn't exist on the standard GitHub Runner used for the data sync.
  4. While autoSync = false handles crawling, there is no config equivalent for daemon startup (autoStartDatabase / autoStartInference), causing lifecycle processes to spawn blindly even when only specific SDK exports (like GH_LabelService) are required by build scripts.

Proposed Fix

  • Add autoStartDatabase and autoStartInference flags to MCP configuration files (knowledge-base & memory-core).
  • Explicitly check these config values in DatabaseLifecycleService.initAsync(), ChromaLifecycleService.initAsync(), and InferenceLifecycleService.initAsync().
  • Set these new config variables to false in the core SDK (ai/services.mjs) to ensure all CLI build pipelines remain headless by default.
tobiu added the bug label on Apr 11, 2026, 12:17 PM
tobiu added the ai label on Apr 11, 2026, 12:17 PM
tobiu referenced in commit 5727659 - "fix(ai): Implement targeted daemon auto-start specific environment variables (#9881) on Apr 11, 2026, 12:23 PM
tobiu cross-referenced by PR #9882 on Apr 11, 2026, 12:24 PM
tobiu referenced in commit 1c608ec - "fix(ai): Implement targeted daemon auto-start specific environment variables (#9881) (#9882) on Apr 11, 2026, 12:32 PM
tobiu closed this issue on Apr 11, 2026, 12:32 PM
tobiu referenced in commit eef08df - "fix: Ticket markdown rendering by adding blank lines for marked.js (#9881)" on Apr 11, 2026, 3:21 PM
tobiu cross-referenced by PR #9883 on Apr 11, 2026, 3:21 PM
tobiu referenced in commit a0574bb - "fix: Ticket markdown rendering by adding blank lines for marked.js (#9881)" on Apr 11, 2026, 3:39 PM
tobiu referenced in commit e6800b9 - "agent/9881 disable daemon autostart (#9883) on Apr 11, 2026, 3:44 PM
tobiu assigned to @tobiu on Apr 12, 2026, 7:00 PM