Codebase Indexing stuck

I am using cursor version 0.46.9(Universal) and am on macos 15.3.1 (24D70) on an Apple M2 Pro.

I am unable to use the chat and it is stuck on Generating… as the codebase indexing is going on. I have disabled HTTP/2 and here are the logs from the Outputpanel:

2025-03-07 07:52:10.701 [info] Creating Indexing Repo client:  https://repo42.cursor.sh
2025-03-07 07:52:10.701 [info] Creating repo client with backend url: https://api2.cursor.sh
2025-03-07 07:52:10.701 [error] Git command failed: git config --get remote.origin.url Command failed: git config --get remote.origin.url

2025-03-07 07:52:10.701 [error] Error getting repo info: Command failed: git config --get remote.origin.url

2025-03-07 07:52:10.701 [error] Error: Command failed: git config --get remote.origin.url

    at genericNodeError (node:internal/errors:984:15)
    at wrappedFn (node:internal/errors:538:14)
    at ChildProcess.exithandler (node:child_process:422:12)
    at ChildProcess.emit (node:events:518:28)
    at maybeClose (node:internal/child_process:1104:16)
    at Socket.<anonymous> (node:internal/child_process:456:11)
    at Socket.emit (node:events:518:28)
    at Pipe.<anonymous> (node:net:343:12)
2025-03-07 07:52:10.816 [error] NoWorkspaceUriError
2025-03-07 07:52:16.509 [info] Creating Indexing Repo client:  https://repo42.cursor.sh
2025-03-07 07:52:16.509 [info] Creating repo client with backend url: https://api2.cursor.sh
2025-03-07 07:52:16.618 [info] InternalRepoInfo constructor with preferredEmbeddingModel 0
2025-03-07 07:52:16.663 [info] Doing a startup handshake.
2025-03-07 07:52:17.033 [info] Finished computing merkle tree in 97.67604100000017 ms.
2025-03-07 07:52:17.034 [info] Doing the initial handshake with hash: 1378dd24fb81c812e60771fcce94f30f9cea2095e7c1ab0072d714c0df8fa903
2025-03-07 07:52:17.035 [info] Handshake start
2025-03-07 07:52:18.779 [info] Handshake timing: 1744.9879579999997, response: {"status":"STATUS_SUCCESS","codebases":[{"codebaseId":"9d47fd08-929e-4484-9fff-f7d44a2c4723","status":"STATUS_UP_TO_DATE"}]}
2025-03-07 07:52:18.779 [info] Handshake result: {"status":"STATUS_SUCCESS","codebases":[{"codebaseId":"9d47fd08-929e-4484-9fff-f7d44a2c4723","status":"STATUS_UP_TO_DATE"}]}
2025-03-07 07:52:18.779 [info] Starting fast remote sync.
2025-03-07 07:52:18.780 [info] Total num embeddable files: 301
2025-03-07 07:52:18.780 [info] Root hash: 1378dd24fb81c812e60771fcce94f30f9cea2095e7c1ab0072d714c0df8fa903
2025-03-07 07:52:19.696 [info] Finished indexing repository.
2025-03-07 07:52:19.696 [info] Indexing job successfully done or aborted.
2025-03-07 07:53:16.667 [info] multiCodebaseIndexingJob dispose
2025-03-07 07:53:16.667 [info] Aborting indexing job.
2025-03-07 07:53:16.667 [info] Doing a startup handshake.
2025-03-07 07:53:16.707 [info] Finished computing merkle tree in 30.752707999999984 ms.
2025-03-07 07:53:16.707 [info] Doing the initial handshake with hash: 1378dd24fb81c812e60771fcce94f30f9cea2095e7c1ab0072d714c0df8fa903
2025-03-07 07:53:16.708 [info] Handshake start
2025-03-07 07:53:18.432 [info] Handshake timing: 1723.8918340000018, response: {"status":"STATUS_SUCCESS","codebases":[{"codebaseId":"9d47fd08-929e-4484-9fff-f7d44a2c4723","status":"STATUS_UP_TO_DATE"}]}
2025-03-07 07:53:18.432 [info] Handshake result: {"status":"STATUS_SUCCESS","codebases":[{"codebaseId":"9d47fd08-929e-4484-9fff-f7d44a2c4723","status":"STATUS_UP_TO_DATE"}]}
2025-03-07 07:53:18.432 [info] Starting fast remote sync.
2025-03-07 07:53:18.432 [info] Total num embeddable files: 301
2025-03-07 07:53:18.432 [info] Root hash: 1378dd24fb81c812e60771fcce94f30f9cea2095e7c1ab0072d714c0df8fa903
2025-03-07 07:53:33.441 [info] Creating Indexing Repo client:  https://repo42.cursor.sh
2025-03-07 07:53:33.441 [info] Creating repo client with backend url: https://api2.cursor.sh
2025-03-07 07:53:33.441 [error] Error in startFastRemoteSync [canceled] This operation was aborted
2025-03-07 07:53:33.441 [error] ConnectError: [canceled] This operation was aborted
    at Function.from (/Applications/Cursor.app/Contents/Resources/app/extensions/cursor-retrieval/dist/main.js:2:2986320)
    at R (/Applications/Cursor.app/Contents/Resources/app/extensions/cursor-retrieval/dist/main.js:2:2959572)
    at Object.reject (/Applications/Cursor.app/Contents/Resources/app/extensions/cursor-retrieval/dist/main.js:2:2971340)
    at EventTarget.l (/Applications/Cursor.app/Contents/Resources/app/extensions/cursor-retrieval/dist/main.js:2:2971532)
    at EventTarget.[nodejs.internal.kHybridDispatch] (node:internal/event_target:820:20)
    at EventTarget.dispatchEvent (node:internal/event_target:755:26)
    at abortSignal (node:internal/abort_controller:370:10)
    at AbortController.abort (node:internal/abort_controller:392:5)
    at EventTarget.r (/Applications/Cursor.app/Contents/Resources/app/extensions/cursor-retrieval/dist/main.js:2:3025883)
    at EventTarget.[nodejs.internal.kHybridDispatch] (node:internal/event_target:820:20)
    at EventTarget.dispatchEvent (node:internal/event_target:755:26)
    at abortSignal (node:internal/abort_controller:370:10)
    at node:internal/abort_controller:373:20
    at Set.forEach (<anonymous>)
    at abortSignal (node:internal/abort_controller:371:30)
    at AbortController.abort (node:internal/abort_controller:392:5)
    at /Applications/Cursor.app/Contents/Resources/app/extensions/cursor-retrieval/dist/main.js:2:1361855
    at u (/Applications/Cursor.app/Contents/Resources/app/extensions/cursor-retrieval/dist/main.js:2:2386483)
    at A.NetworkChangeMonitor.triggerCallbackIfDisconnectedWithoutThrottling (/Applications/Cursor.app/Contents/Resources/app/extensions/cursor-retrieval/dist/main.js:2:2393474)
    at A.NetworkChangeMonitor.triggerCallbackIfDisconnected (/Applications/Cursor.app/Contents/Resources/app/extensions/cursor-retrieval/dist/main.js:2:2393274)
2025-03-07 07:53:33.441 [info] Indexing job successfully done or aborted.
2025-03-07 07:53:38.445 [info] Creating Indexing Repo client:  https://repo42.cursor.sh
2025-03-07 07:53:38.445 [info] Creating repo client with backend url: https://api2.cursor.sh
2025-03-07 07:54:16.672 [info] multiCodebaseIndexingJob dispose
2025-03-07 07:54:16.672 [info] Aborting indexing job.
2025-03-07 07:54:16.672 [info] Doing a startup handshake.
2025-03-07 07:55:16.675 [info] multiCodebaseIndexingJob dispose
2025-03-07 07:55:16.675 [info] Aborting indexing job.
2025-03-07 07:55:16.675 [info] Doing a startup handshake.
2025-03-07 07:56:16.679 [info] multiCodebaseIndexingJob dispose
2025-03-07 07:56:16.679 [info] Aborting indexing job.
2025-03-07 07:56:16.679 [info] Doing a startup handshake.
2025-03-07 07:57:16.682 [info] multiCodebaseIndexingJob dispose
2025-03-07 07:57:16.682 [info] Aborting indexing job.
1 Like

having the same issue

2 Likes

Same here

1 Like

I am having the same issue. Incredibly annoying! I can’t do anything now