Unable to Index Repository

Describe the Bug

I am unable to index one of my repos (other repos work). Progress bar remains at 0% indefinitely and viewing the logs (provided in ‘Additional Information’) yields:
./package.json error: Weird error: ConnectError: [deadline_exceeded] the operation timed out

Steps to Reproduce

  1. Restrict .cursorignore to just allow package.json for testing purposes and rule out file size issues.
  2. Open Indexing & Docs section
    Delete Index
    Compute Index
  3. Indexing hangs indefinitely and log message shows error

Expected Behavior

Indexing should complete successfully in a reasonable amount of time.

Screenshots / Screen Recordings

Operating System

MacOS

Current Cursor Version (Menu → About Cursor → Copy)

Version: 1.1.2
VSCode Version: 1.96.2
Commit: 87ea1604be1f602f173c5fb67582e647fcef6c40
Date: 2025-06-13T00:26:52.696Z
Electron: 34.5.1
Chromium: 132.0.6834.210
Node.js: 20.19.0
V8: 13.2.152.41-electron.0
OS: Darwin x64 24.4.0

Additional Information

2025-06-17 13:41:34.700 [info] Creating Indexing Repo client: https://repo42.cursor.sh
2025-06-17 13:41:34.700 [info] Creating repo client with backend url: https://repo42.cursor.sh
2025-06-17 13:41:34.700 [info] Using existing keys for an index
2025-06-17 13:41:34.700 [info] InternalRepoInfo constructor with preferredEmbeddingModel 0
2025-06-17 13:41:34.700 [warning] Failed to get symbolic ref: Failed to execute git
2025-06-17 13:41:34.741 [info] Picked default branch from method 1.
2025-06-17 13:41:34.872 [info] Using existing keys for an index
2025-06-17 13:41:34.872 [info] InternalRepoInfo constructor with preferredEmbeddingModel 0
2025-06-17 13:41:34.884 [info] Doing a startup handshake.
2025-06-17 13:41:34.884 [info] Skipping git indexing because user is in privacy mode
2025-06-17 13:41:34.931 [info] Finished computing merkle tree in 4.150540999999976 ms.
2025-06-17 13:41:34.932 [info] Doing the initial handshake with hash: 48593b057f2ca2defa7b295863496fe911ddf457e1d20cbf6f827f23a9b77f51
2025-06-17 13:41:34.937 [info] Computed simhash vector of length: 256
2025-06-17 13:41:34.937 [info] Path key hash: 054adedfb765ab3611addebd937c63a82a6b257c03513365af06d7d4242e2d21
2025-06-17 13:41:34.937 [info] Handshake start
2025-06-17 13:41:35.260 [info] Handshake timing: 326.6088239999999, response: {“status”:“STATUS_SUCCESS”,“codebases”:[{“codebaseId”:“371fa142-b8d4-4ca9-8f8a-7334f67e3035”,“status”:“STATUS_EMPTY”,“copyTaskHandle”:“”}]}
2025-06-17 13:41:35.260 [info] Handshake result: {“status”:“STATUS_SUCCESS”,“codebases”:[{“codebaseId”:“371fa142-b8d4-4ca9-8f8a-7334f67e3035”,“status”:“STATUS_EMPTY”,“copyTaskHandle”:“”}]}
2025-06-17 13:41:35.260 [info] Starting fast remote sync.
2025-06-17 13:41:35.261 [info] Total num embeddable files: 1
2025-06-17 13:41:35.268 [info] Root hash: 48593b057f2ca2defa7b295863496fe911ddf457e1d20cbf6f827f23a9b77f51
2025-06-17 13:41:35.268 [info] Starting repository upload from scratch.
2025-06-17 13:41:35.274 [info] Uploading 1 files.
2025-06-17 13:41:35.276 [info] Total number of files to embed: 1
2025-06-17 13:41:35.276 [info] Not aborted
2025-06-17 13:41:35.276 [info] Starting while loop.
2025-06-17 13:44:35.291 [warning] Completed job unsuccessfully, will retry: ./package.json error: Weird error: ConnectError: [deadline_exceeded] the operation timed out
2025-06-17 13:46:34.885 [info] multiCodebaseIndexingJob dispose
2025-06-17 13:46:34.885 [info] Aborting indexing job.
2025-06-17 13:46:34.885 [info] Doing a startup handshake.
2025-06-17 13:46:34.886 [warning] Completed job unsuccessfully, will retry: ./package.json error: Bad unexpected error
2025-06-17 13:46:34.886 [info] Indexing job successfully done or aborted.
2025-06-17 13:46:34.898 [info] Finished computing merkle tree in 5.497122999979183 ms.
2025-06-17 13:46:34.898 [info] Doing the initial handshake with hash: 48593b057f2ca2defa7b295863496fe911ddf457e1d20cbf6f827f23a9b77f51
2025-06-17 13:46:34.900 [info] Computed simhash vector of length: 256
2025-06-17 13:46:34.900 [info] Path key hash: 054adedfb765ab3611addebd937c63a82a6b257c03513365af06d7d4242e2d21
2025-06-17 13:46:34.900 [info] Handshake start
2025-06-17 13:46:34.980 [info] Handshake timing: 81.5889619999798, response: {“status”:“STATUS_SUCCESS”,“codebases”:[{“codebaseId”:“371fa142-b8d4-4ca9-8f8a-7334f67e3035”,“status”:“STATUS_EMPTY”,“copyTaskHandle”:“”}]}
2025-06-17 13:46:34.981 [info] Handshake result: {“status”:“STATUS_SUCCESS”,“codebases”:[{“codebaseId”:“371fa142-b8d4-4ca9-8f8a-7334f67e3035”,“status”:“STATUS_EMPTY”,“copyTaskHandle”:“”}]}
2025-06-17 13:46:34.981 [info] Starting fast remote sync.
2025-06-17 13:46:34.981 [info] Total num embeddable files: 1
2025-06-17 13:46:34.982 [info] Root hash: 48593b057f2ca2defa7b295863496fe911ddf457e1d20cbf6f827f23a9b77f51
2025-06-17 13:46:34.982 [info] Starting repository upload from scratch.
2025-06-17 13:46:34.982 [info] Uploading 1 files.
2025-06-17 13:46:34.983 [info] Total number of files to embed: 1
2025-06-17 13:46:34.983 [info] Not aborted
2025-06-17 13:46:34.983 [info] Starting while loop.
2025-06-17 13:49:34.996 [warning] Completed job unsuccessfully, will retry: ./package.json error: Weird error: ConnectError: [deadline_exceeded] the operation timed out

Should be good now

https://forum.cursor.com/t/indexing-codebase-stuck-at-0/104831/20

Yes, it’s fixed for me! Thanks