Codebase Indexing Taking Too Long


The codebase indexing has not completed even after two
hours. This is taking an unusually long time and may indicate
an issue with the indexing process or the size and
complexity of the codebase.

OS: Ubuntu 22.04.3 LTS
Cursor: 0.45.14

Exact same problem here:

Completed job unsuccessfully, will retry: ./llm-workflow/src/llm/LLMServiceFactory.ts error: Bad unexpected error

The codebase indexing encounters Bad unexpected error errors, and resubmits the errored files again, and again, and again, and…

I have to pause the indexation otherwise it never ends, eating a lot of CPU resources in the process.

Notes:

  • I tried removing the index and restarting it from scratch;
  • indexing handshake completes successfully, I have no other errors other than those “bad unexpected errors” ones;
  • I tried editing my gitignore/cursorignore files to limit the scopes of files to index to the maximum

Cursor: 0.46.2
Ubuntu 24.10

1 Like

I downgraded Cursor to v0.45.14.
Then I unpaused the codebase indexing: same “bad unexpected error” errors.

I removed the index and restarted it from scratch: indexing completed successfully.

I have little information about what’s going on but this seems to suggest that newer versions somehow corrupt indexes.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.