Skip to content

"attempting to index 0 total files" #487

@skogstall

Description

@skogstall

When following along with the deploy guide, I cannot get the indexing to work

I simply run

docker run `
    -p 3000:3000 `
    --pull=always `
    --rm `
    -v ${PWD}:/data `
    -e CONFIG_PATH=/data/config.json `
    --name sourcebot `
    ghcr.io/sourcebot-dev/sourcebot:latest

With the following config file:

{
  "$schema": "https://raw.githubusercontent.com/sourcebot-dev/sourcebot/main/schemas/v3/index.json",
  "connections": {
    "starter-connection": {
      "type": "github",
      "repos": ["sourcebot-dev/sourcebot"]
    },
     "test-connection": {
      "type": "github",
      "repos": ["ollama/ollama"]
    },
    "test-generic":{
        "type": "git",
        "url": "https://github.com/sourcebot-dev/sourcebot"
    }
    
  },
   "models": [
        {
            "provider": "openai-compatible",
            "baseUrl": "http://host.docker.internal:11434/v1",
            "model": "gpt-oss:20b",
            "displayName": "gpt-oss"
        },
    ]
}

It just refuses to index?

It seems to clone the repos just fine, and in the UI it says everything is A-OK, but when checking the logs you can see that 0 files are sent to be indexed

[backend] | 2025-09-04T12:00:35.524Z info: [repo-manager] Added 3 jobs to indexQueue for org 1 with priority 1
[backend] | 2025-09-04T12:00:35.525Z info: [repo-manager] Running index job (id: 1) for repo ollama/ollama
[backend] | 2025-09-04T12:00:35.527Z info: [repo-manager] Running index job (id: 2) for repo sourcebot-dev/sourcebot
[backend] | 2025-09-04T12:00:35.527Z info: [repo-manager] Running index job (id: 3) for repo github.com/sourcebot-dev/sourcebot
[backend] | 2025-09-04T12:00:35.535Z info: [repo-manager] Cloning sourcebot-dev/sourcebot...
[backend] | 2025-09-04T12:00:35.537Z info: [repo-manager] Cloning github.com/sourcebot-dev/sourcebot...
[backend] | 2025-09-04T12:00:35.550Z info: [repo-manager] Cloning ollama/ollama...
[backend] |
[backend] | 2025-09-04T12:00:41.813Z info: [repo-manager] Cloned sourcebot-dev/sourcebot in 6.278s
[backend] |
[backend] | 2025-09-04T12:00:42.264Z info: [repo-manager] Cloned github.com/sourcebot-dev/sourcebot in 6.727s
[backend] | 2025-09-04T12:00:42.264Z info: [repo-manager] Indexing github.com/sourcebot-dev/sourcebot...
[backend] | 2025-09-04T12:00:42.432Z error: [zoekt] 2025/09/04 12:00:42 attempting to index 0 total files
[backend] | 2025-09-04T12:00:42.432Z error: [zoekt] 2025/09/04 12:00:42 symbol analysis finished for shard statistics: duration=0s symbols=0 bytes=0
[backend] | 2025-09-04T12:00:42.432Z error: [zoekt] 2025/09/04 12:00:42 finished shard /data/.sourcebot/index/1_3_v16.00000.zoekt: 1192 index bytes (overhead 1192.0), 0 files processed
[backend] | 2025-09-04T12:00:42.432Z info: [repo-manager] Indexed github.com/sourcebot-dev/sourcebot in 0.168s
[backend] | 2025-09-04T12:00:42.433Z info: [repo-manager] Repo index job for repo github.com/sourcebot-dev/sourcebot (id: 3, jobId: 3) completed
[backend] | 2025-09-04T12:00:42.613Z info: [repo-manager] Indexing sourcebot-dev/sourcebot...
[backend] | 2025-09-04T12:00:42.729Z error: [zoekt] 2025/09/04 12:00:42 attempting to index 0 total files
[backend] | 2025-09-04T12:00:42.729Z error: [zoekt] 2025/09/04 12:00:42 symbol analysis finished for shard statistics: duration=0s symbols=0 bytes=0
[backend] | 2025-09-04T12:00:42.729Z error: [zoekt] 2025/09/04 12:00:42 finished shard /data/.sourcebot/index/1_2_v16.00000.zoekt: 1748 index bytes (overhead 1748.0), 0 files processed
[backend] | 2025-09-04T12:00:42.729Z info: [repo-manager] Indexed sourcebot-dev/sourcebot in 0.116s
[backend] | 2025-09-04T12:00:42.729Z info: [repo-manager] Repo index job for repo sourcebot-dev/sourcebot (id: 2, jobId: 2) completed
[backend] |
[backend] | 2025-09-04T12:00:54.347Z info: [repo-manager] Cloned ollama/ollama in 18.797s
[backend] | 2025-09-04T12:00:55.087Z info: [repo-manager] Indexing ollama/ollama...
[backend] | 2025-09-04T12:00:55.217Z error: [zoekt] 2025/09/04 12:00:55 attempting to index 0 total files
[backend] | 2025-09-04T12:00:55.217Z error: [zoekt] 2025/09/04 12:00:55 symbol analysis finished for shard statistics: duration=0s symbols=0 bytes=0
[backend] | 2025-09-04T12:00:55.217Z error: [zoekt] 2025/09/04 12:00:55 finished shard /data/.sourcebot/index/1_1_v16.00000.zoekt: 1686 index bytes (overhead 1686.0), 0 files processed
[backend] | 2025-09-04T12:00:55.217Z info: [repo-manager] Indexed ollama/ollama in 0.129s
[backend] | 2025-09-04T12:00:55.218Z info: [repo-manager] Repo index job for repo ollama/ollama (id: 1, jobId: 1) completed
[zoekt] | 2025/09/04 12:01:31 [INFO] loading 3 shard(s): 1_1_v16.00000.zoekt, 1_2_v16.00000.zoekt, 1_3_v16.00000.zoekt

I have tried this on two separate windows 11 installs, one on my work computer and one on my personal home desktop, and I get the exact same issue on both

Metadata

Metadata

Labels

help wantedExtra attention is needed

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions