Skip to content

Bug: Docker backend missing depends_on for ChromaDB — RAG startup race condition #1910

@mrveiss

Description

@mrveiss

Problem

In docker-compose.yml, the autobot-backend service only has depends_on for Redis:

depends_on:
  autobot-redis:
    condition: service_healthy

But backend also connects to ChromaDB for vector store operations (RAG, knowledge embedding, semantic search). If ChromaDB starts slowly, backend initialization will fail with connection errors.

The ChromaDB service has a health check defined (line 68):

healthcheck:
  test: ["CMD", "curl", "-f", "http://localhost:8000/api/v2/heartbeat"]

Fix

Add ChromaDB to backend depends_on:

depends_on:
  autobot-redis:
    condition: service_healthy
  autobot-chromadb:
    condition: service_healthy

Discovered During

Reviewing Docker containerization work on #1809

Impact

Severity: medium — Backend may fail on first startup if ChromaDB is slow. Restart resolves it, but first-time users will see errors.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions