Skip to content

[BUG] Impossible to index the codebase, always stuck at Indexing - Indexed 0 / 2112 blocks found #12159

@HatemMn

Description

@HatemMn

Problem (one or two sentences)

Codebase indexing stays permanently frozen at "Indexed 0 / N blocks found" when using a custom Ollama embedding model (dengcao/Qwen3-Embedding-4B:Q4_K_M), despite Ollama responding correctly to direct embedding API calls and Qdrant returning a healthy status.

Context (who is affected and when)

Affects users on macOS AND Linux (PopOs) running Roo Code v3.52.1 with a local Ollama + Qdrant setup, specifically when using community-published embedding models (non-library tags) via the Ollama provider.

For info, I tried to follow the tutorial at docs page and used the free Gemini : same issues

no error is surfaced in the UI or Output panel, making the root cause impossible to diagnose without external debugging.

Reproduction steps

Reproduction steps:

  1. Install RooCode
  2. Install Ollama and pull dengcao/Qwen3-Embedding-4B:Q4_K_M
    
  3. Start Qdrant locally via Docker with --ulimit nofile=262144:262144
    
  4. In Roo Code settings → Experimental → Codebase Indexing, set provider to Ollama, model to dengcao/Qwen3-Embedding-4B:Q4_K_M, dimension to 2560, Qdrant URL to http://localhost:6333
    
  5. Open any workspace and enable codebase indexing
    
  6. Observe the indexing status in the UI
    

Expected result

Indexing progresses through blocks (1/N, 2/N...) and eventually completes.

Actual result

Status permanently shows "Indexing - Indexed 0 / N blocks found" with no progress, no error message in the UI, and no relevant output in the Roo Code Output panel. Both Ollama (curl http://localhost:11434/api/embeddings returns valid embeddings) and Qdrant (/healthz returns ok) are confirmed working independently.

Variations tried (optional)

  • Cleared the Qdrant collection manually via DELETE /collections/{name} and re-triggered indexing — same result
    
  • Used Roo Code's built-in Clear Index button — same result
    
  • Full uninstall of Roo Code including globalStorage wipe and Qdrant collection deletion, then fresh reinstall and reconfiguration — same result
    
  • Tried Google Gemini as embedding provider (free tier) — blocked by 429 TooManyRequests quota errors due to free tier rate limits
    

App Version

latest

API Provider (optional)

None

Model Used (optional)

No response

Roo Code Task Links (optional)

No response

Relevant logs or errors (optional)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions