Handshake Failed (Version: 0.48.6)

Cursor:
“Version: 0.48.6 (user setup)
VSCode Version: 1.96.2
Commit: 1649e229afdef8fd1d18ea173f063563f1e722e0
Date: 2025-03-31T05:21:50.407Z
Electron: 34.3.4
Chromium: 132.0.6834.210
Node.js: 20.18.3
V8: 13.2.152.41-electron.0
OS: Windows_NT x64 10.0.22631”

error:

" 2025-03-31 23:58:25.960 [info] Creating Indexing Repo client: https://repo42.cursor.sh

2025-03-31 23:58:25.960 [info] Creating repo client with backend url: https://repo42.cursor.sh

2025-03-31 23:58:25.960 [error] Git command failed: git config --get remote.origin.url Command failed: git config --get remote.origin.url

2025-03-31 23:58:25.960 [error] Error getting repo info: Command failed: git config --get remote.origin.url

2025-03-31 23:58:25.960 [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 ChildProcess.emit (node:domain:489:12)

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 Socket.emit (node:domain:489:12)

at Pipe.<anonymous> (node:net:343:12)

2025-03-31 23:58:25.960 [info] Using existing keys for an index

2025-03-31 23:58:25.960 [info] InternalRepoInfo constructor with preferredEmbeddingModel 0

2025-03-31 23:58:25.960 [info] Doing a startup handshake.

2025-03-31 23:58:26.146 [info] Finished computing merkle tree in 201.40879999999925 ms.

2025-03-31 23:58:26.211 [info] Doing the initial handshake with hash: 65047fddc8e7e6bd8cff4359b05c18263d7d66dd38f42e4a0573e0d4ee719532

2025-03-31 23:58:26.285 [info] Computed simhash vector of length: 256

2025-03-31 23:58:26.285 [info] Path key hash: f7c03970ec830fe4bb00ffeafb7dc6763e15f3c81fc0b3cc2e905c97117d0c53

2025-03-31 23:58:26.285 [info] Handshake start

2025-03-31 23:58:30.287 [warning] Retrying handshake with timeout 4000. Error: [deadline_exceeded] the operation timed out

2025-03-31 23:58:30.287 [info] Handshake start

2025-03-31 23:58:38.315 [warning] Retrying handshake with timeout 8000. Error: [deadline_exceeded] the operation timed out

2025-03-31 23:58:38.315 [info] Handshake start

2025-03-31 23:58:54.330 [warning] Retrying handshake with timeout 16000. Error: [deadline_exceeded] the operation timed out

2025-03-31 23:58:54.331 [info] Handshake start

2025-03-31 23:59:26.356 [warning] Retrying handshake with timeout 32000. Error: [deadline_exceeded] the operation timed out

2025-03-31 23:59:26.356 [info] Handshake start

2025-04-01 00:00:30.386 [warning] Retrying handshake with timeout 64000. Error: [deadline_exceeded] the operation timed out

2025-04-01 00:00:30.386 [info] Handshake start

2025-04-01 00:02:38.403 [warning] Retrying handshake with timeout 128000. Error: [deadline_exceeded] the operation timed out

2025-04-01 00:02:38.403 [error] Handshake failed:

2025-04-01 00:02:38.403 [error] Error: timeout in handshake with retry

at A.RepoClientMultiplexer.tryHandshake (c:\Users\vie4e\AppData\Local\Programs\cursor\resources\app\extensions\cursor-retrieval\dist\main.js:4:1373725)

at A.RepoClientMultiplexer.handshakeWithRetry (c:\Users\vie4e\AppData\Local\Programs\cursor\resources\app\extensions\cursor-retrieval\dist\main.js:4:1371346)

at T.getServerStatus (c:\Users\vie4e\AppData\Local\Programs\cursor\resources\app\extensions\cursor-retrieval\dist\main.js:4:1383646)

at T.startIndexingRepository (c:\Users\vie4e\AppData\Local\Programs\cursor\resources\app\extensions\cursor-retrieval\dist\main.js:4:1385253)

2025-04-01 00:02:38.403 [error] Handshake failed.

2025-04-01 00:02:38.403 [info] Indexing job successfully done or aborted.

2025-04-01 00:03:24.901 [info] multiCodebaseIndexingJob dispose

2025-04-01 00:03:24.901 [info] Aborting indexing job.

2025-04-01 00:03:24.901 [info] Doing a startup handshake.

2025-04-01 00:03:24.915 [info] Finished computing merkle tree in 11.003199999977369 ms.

2025-04-01 00:03:24.917 [info] Doing the initial handshake with hash: 65047fddc8e7e6bd8cff4359b05c18263d7d66dd38f42e4a0573e0d4ee719532

2025-04-01 00:03:24.919 [info] Computed simhash vector of length: 256

2025-04-01 00:03:24.919 [info] Path key hash: f7c03970ec830fe4bb00ffeafb7dc6763e15f3c81fc0b3cc2e905c97117d0c53

2025-04-01 00:03:24.920 [info] Handshake start

2025-04-01 00:03:28.944 [warning] Retrying handshake with timeout 4000. Error: [deadline_exceeded] the operation timed out

2025-04-01 00:03:28.944 [info] Handshake start

2025-04-01 00:03:36.964 [warning] Retrying handshake with timeout 8000. Error: [deadline_exceeded] the operation timed out

2025-04-01 00:03:36.965 [info] Handshake start

2025-04-01 00:03:52.979 [warning] Retrying handshake with timeout 16000. Error: [deadline_exceeded] the operation timed out

2025-04-01 00:03:52.979 [info] Handshake start

2025-04-01 00:03:53.098 [info] Handshake timing: 120.2839999999851, response: {"status":"STATUS_SUCCESS","codebases":[{"codebaseId":"2b6523ba-5e43-4bb4-8aba-dd3e47467b1c","status":"STATUS_OUT_OF_SYNC"}]}

2025-04-01 00:03:53.098 [info] Handshake result: {"status":"STATUS_SUCCESS","codebases":[{"codebaseId":"2b6523ba-5e43-4bb4-8aba-dd3e47467b1c","status":"STATUS_OUT_OF_SYNC"}]}

2025-04-01 00:03:53.098 [info] Starting fast remote sync.

2025-04-01 00:03:53.099 [info] Total num embeddable files: 177

2025-04-01 00:03:53.100 [info] Root hash: 65047fddc8e7e6bd8cff4359b05c18263d7d66dd38f42e4a0573e0d4ee719532

2025-04-01 00:03:53.100 [info] In the out of sync case.

2025-04-01 00:03:53.102 [info] Waiting on semaphore to be released 1

2025-04-01 00:03:53.304 [info] Waiting on semaphore to be released 1

2025-04-01 00:03:53.505 [info] setting numJobsToGo to 1

2025-04-01 00:03:53.506 [info] [startSync]: numJobs: 1

2025-04-01 00:03:53.506 [info] Uploading 1 files.

2025-04-01 00:03:53.508 [info] Total number of files to embed: 177

2025-04-01 00:03:53.508 [info] Not aborted

2025-04-01 00:03:53.508 [info] Starting while loop.

2025-04-01 00:03:53.508 [info] fileQueue.length: 1

2025-04-01 00:03:53.508 [info] fileQueue.length: 0

2025-04-01 00:03:53.508 [info] Waiting for jobs to finish. currentIndexingJobs.length: 1 concurrentUploads.current: 2 fileQueue.length: 0

2025-04-01 00:03:56.125 [info] Completed job successfully: 2b6523ba-5e43-4bb4-8aba-dd3e47467b1c .\components\WelcomeSection.tsx

2025-04-01 00:03:56.125 [info] Waiting for jobs to finish. currentIndexingJobs.length: 0 concurrentUploads.current: 3 fileQueue.length: 0

2025-04-01 00:04:00.142 [warning] Retrying ensure index created with timeout 4000. Error: [deadline_exceeded] the operation timed out

2025-04-01 00:04:03.622 [info] Finishing sync (hasUpdates: true, isErr: false)"

Is the server down?

Also not working on my 0.46.8 and 0.45 version

interesting, can you provide console log too?

"2025-04-01 00:05:03.713 [info] Indexing job successfully done or aborted.

2025-04-01 00:07:29.761 [info] Search by sha took 42.720900000073016ms for query “menu???”

2025-04-01 00:07:29.817 [info] Search by message took 109.5291000000434ms for query “menu???”

2025-04-01 00:07:32.977 [info] Search by sha took 33.869199999957345ms for query “I”

2025-04-01 00:07:33.019 [info] Search by message took 82.70150000008289ms for query “I”

2025-04-01 00:07:33.383 [info] Search by sha took 24.36199999996461ms for query “I”

2025-04-01 00:07:33.415 [info] Search by message took 60.08010000002105ms for query “I”

2025-04-01 00:07:34.286 [info] Search by sha took 23.585599999991246ms for query “Change”

2025-04-01 00:07:34.326 [info] Search by message took 71.39569999999367ms for query “Change”

2025-04-01 00:07:35.020 [info] Search by sha took 26.610300000058487ms for query “to”

2025-04-01 00:07:35.047 [info] Search by message took 60.1875ms for query “to”

2025-04-01 00:07:35.534 [info] Search by sha took 24.20299999997951ms for query “be”

2025-04-01 00:07:35.561 [info] Search by message took 60.338499999954365ms for query “be”

2025-04-01 00:07:36.824 [info] Search by sha took 25.169699999969453ms for query “a”

2025-04-01 00:07:36.848 [info] Search by message took 55.55319999996573ms for query “a”

2025-04-01 00:07:37.634 [info] Search by sha took 25.175000000046566ms for query “al”

2025-04-01 00:07:37.664 [info] Search by message took 61.133700000005774ms for query “al”

2025-04-01 00:07:37.859 [info] Search by sha took 19.820399999967776ms for query “a”

2025-04-01 00:07:37.890 [info] Search by message took 55.70659999991767ms for query “a”

2025-04-01 00:07:38.278 [info] Search by sha took 26.300500000012107ms for query “b”

2025-04-01 00:07:38.301 [info] Search by message took 56.96500000008382ms for query “b”

2025-04-01 00:07:39.650 [info] Search by sha took 18.813500000047497ms for query “be”

2025-04-01 00:07:39.682 [info] Search by message took 54.76110000000335ms for query “be”

2025-04-01 00:07:42.503 [info] Search by sha took 23.801600000006147ms for query “dropdow”

2025-04-01 00:07:42.531 [info] Search by message took 58.021999999997206ms for query “dropdow”

2025-04-01 00:07:42.774 [info] Search by sha took 28.78489999996964ms for query “dropdown”

2025-04-01 00:07:42.800 [info] Search by message took 61.690800000098534ms for query “dropdown”

2025-04-01 00:07:43.236 [info] Search by sha took 26.304000000003725ms for query “menu”

2025-04-01 00:07:43.261 [info] Search by message took 59.36860000004526ms for query “menu”

2025-04-01 00:07:43.451 [info] Search by sha took 23.693800000008196ms for query “menu,”

2025-04-01 00:07:43.484 [info] Search by message took 63.61349999997765ms for query “menu,”

2025-04-01 00:07:44.359 [info] Search by sha took 26.73769999993965ms for query “alr”

2025-04-01 00:07:44.385 [info] Search by message took 59.789199999999255ms for query “alr”

2025-04-01 00:07:44.760 [info] Search by sha took 23.870400000014342ms for query “aler”

2025-04-01 00:07:44.786 [info] Search by message took 57.505200000014156ms for query “aler”

2025-04-01 00:07:46.063 [info] Search by sha took 23.66820000007283ms for query “sh”

2025-04-01 00:07:46.090 [info] Search by message took 57.35600000002887ms for query “sh”

2025-04-01 00:07:46.479 [info] Search by sha took 22.323499999940395ms for query “menu,”

2025-04-01 00:07:46.508 [info] Search by message took 56.14950000005774ms for query “menu,”

2025-04-01 00:07:47.089 [info] Search by sha took 34.82310000003781ms for query “i”

2025-04-01 00:07:47.111 [info] Search by message took 63.77319999993779ms for query “i”

2025-04-01 00:07:48.928 [info] Search by sha took 23.89110000000801ms for query “an”

2025-04-01 00:07:48.960 [info] Search by message took 62.521300000022165ms for query “an”

2025-04-01 00:07:49.362 [info] Search by sha took 22.20719999994617ms for query “ale”

2025-04-01 00:07:49.388 [info] Search by message took 57.677900000009686ms for query “ale”

2025-04-01 00:07:51.576 [info] Search by sha took 24.50900000007823ms for query “ugly”

2025-04-01 00:07:51.615 [info] Search by message took 71.38840000005439ms for query “ugly”

2025-04-01 00:08:24.915 [info] multiCodebaseIndexingJob dispose

2025-04-01 00:08:24.915 [info] Aborting indexing job.

2025-04-01 00:08:24.915 [info] Doing a startup handshake.

2025-04-01 00:08:24.924 [info] Finished computing merkle tree in 6.816300000064075 ms.

2025-04-01 00:08:24.925 [info] Doing the initial handshake with hash: 341e7062b9180a445458b7e9d7a76b6db9097e2a8e804a4d8154fe1533c7b46e

2025-04-01 00:08:24.927 [info] Computed simhash vector of length: 256

2025-04-01 00:08:24.927 [info] Path key hash: f7c03970ec830fe4bb00ffeafb7dc6763e15f3c81fc0b3cc2e905c97117d0c53

2025-04-01 00:08:24.927 [info] Handshake start

2025-04-01 00:08:28.942 [warning] Retrying handshake with timeout 4000. Error: [deadline_exceeded] the operation timed out

2025-04-01 00:08:28.943 [info] Handshake start

2025-04-01 00:08:36.949 [warning] Retrying handshake with timeout 8000. Error: [deadline_exceeded] the operation timed out

2025-04-01 00:08:36.949 [info] Handshake start

2025-04-01 00:08:37.956 [info] Creating Indexing Repo client: https://repo42.cursor.sh

2025-04-01 00:08:37.956 [info] Creating repo client with backend url: https://repo42.cursor.sh

2025-04-01 00:08:42.956 [info] Creating Indexing Repo client: https://repo42.cursor.sh

2025-04-01 00:08:42.956 [info] Creating repo client with backend url: https://repo42.cursor.sh

2025-04-01 00:08:45.966 [warning] Retrying handshake with timeout 16000. Error: [canceled] This operation was aborted

2025-04-01 00:08:45.966 [info] Handshake start

2025-04-01 00:09:00.982 [info] Creating Indexing Repo client: https://repo42.cursor.sh

2025-04-01 00:09:00.982 [info] Creating repo client with backend url: https://repo42.cursor.sh

2025-04-01 00:09:16.998 [warning] Retrying handshake with timeout 32000. Error: [canceled] This operation was aborted

2025-04-01 00:09:16.998 [info] Handshake start

2025-04-01 00:09:59.247 [warning] Retrying handshake with timeout 64000. Error: [unavailable] HTTP 504

2025-04-01 00:09:59.248 [info] Handshake start

2025-04-01 00:11:13.331 [warning] Retrying handshake with timeout 128000. Error: [unavailable] HTTP 504

2025-04-01 00:11:13.331 [error] Handshake failed:

2025-04-01 00:11:13.331 [error] Error: timeout in handshake with retry

at A.RepoClientMultiplexer.tryHandshake (c:\Users\vie4e\AppData\Local\Programs\cursor\resources\app\extensions\cursor-retrieval\dist\main.js:4:1373725)

at A.RepoClientMultiplexer.handshakeWithRetry (c:\Users\vie4e\AppData\Local\Programs\cursor\resources\app\extensions\cursor-retrieval\dist\main.js:4:1371346)

at T.getServerStatus (c:\Users\vie4e\AppData\Local\Programs\cursor\resources\app\extensions\cursor-retrieval\dist\main.js:4:1383646)

at T.startIndexingRepository (c:\Users\vie4e\AppData\Local\Programs\cursor\resources\app\extensions\cursor-retrieval\dist\main.js:4:1385253)

2025-04-01 00:11:13.332 [error] Handshake failed.

2025-04-01 00:11:13.332 [info] Indexing job successfully done or aborted.
"
Im also getting this too

i have same error when indexing

interesting

Hey, unfortunately, we are currently facing some issues with codebase indexing, which may cause the Handshake Failed error, and some degraded performance in the features that rely on it.

We hope to have those solved soon, but you can track the status of this on status.cursor.com

Apologies for any inconvenience this may cause!

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