# Failed handshake with codebase indexing

**URL:** <https://forum.cursor.com/t/failed-handshake-with-codebase-indexing/65620>\
**Category:** Bug Reports\
**Created:** [March 17, 2025, 6:38pm UTC](https://forum.cursor.com/t/failed-handshake-with-codebase-indexing/65620 "2025-03-17T18:38:24Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![uncleferassi](https://avatars.discourse-cdn.com/v4/letter/u/a587f6/32.png) [@uncleferassi](https://forum.cursor.com/u/uncleferassi)\
**Post date:** [March 17, 2025, 6:38pm UTC](https://forum.cursor.com/t/failed-handshake-with-codebase-indexing/65620/1 "2025-03-17T18:38:24Z")

</div>

Getting this output in the logs when updating codebase index and it loops. its stuck on setting up indexing…, I already tried disabling http2 via the cursor settings

2025-03-17 11:35:56.290 [info] Handshake start

2025-03-17 11:35:58.626 [warning] Retrying handshake with timeout 4000. Error: [internal] internal error

2025-03-17 11:35:58.626 [info] Handshake start

2025-03-17 11:36:02.965 [warning] Retrying handshake with timeout 8000. Error: [internal] internal error

2025-03-17 11:36:02.965 [info] Handshake start

2025-03-17 11:36:08.312 [info] Creating Indexing Repo client: [https://repo42.cursor.sh](https://repo42.cursor.sh)

2025-03-17 11:36:08.312 [info] Creating repo client with backend url: [https://api2.cursor.sh](https://api2.cursor.sh)

2025-03-17 11:36:11.313 [warning] Retrying handshake with timeout 16000. Error: [internal] internal error

2025-03-17 11:36:11.313 [info] Handshake start

 ![image](https://us1.discourse-cdn.com/cursor1/original/3X/c/8/c82a9f71697abc6c94aa0d49f44f0bf5d0416f36.png)

 ![image](https://us1.discourse-cdn.com/cursor1/original/3X/5/a/5afd1cb1ca68e8f801fd8e6fc7a9a8e12472e9c3.png)

 ![image](https://us1.discourse-cdn.com/cursor1/original/3X/4/8/481064d399f9d1809ed322811d91abb10a9e30ed.jpeg)

---

<div class="post-metadata">

**Author:** ![aksakal](https://avatars.discourse-cdn.com/v4/letter/a/bb73d2/32.png) [@aksakal](https://forum.cursor.com/u/aksakal)\
**Post date:** [March 17, 2025, 6:47pm UTC](https://forum.cursor.com/t/failed-handshake-with-codebase-indexing/65620/2 "2025-03-17T18:47:56Z")

</div>

Same here.

2025-03-17 21:46:00.108 [info] Handshake start

2025-03-17 21:46:25.164 [info] multiCodebaseIndexingJob dispose

2025-03-17 21:46:25.164 [info] Aborting indexing job.

2025-03-17 21:46:25.166 [info] Indexing job successfully done or aborted.

2025-03-17 21:46:30.237 [info] Creating Indexing Repo client: [https://repo42.cursor.sh](https://repo42.cursor.sh)

2025-03-17 21:46:30.237 [info] Creating repo client with backend url: [https://repo42.cursor.sh](https://repo42.cursor.sh)

2025-03-17 21:46:30.237 [error] Git command failed: git config --get remote.origin.url Command failed: git config --get remote.origin.url

2025-03-17 21:46:30.237 [error] Error getting repo info: Command failed: git config --get remote.origin.url

2025-03-17 21:46:30.237 [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. (node:internal/child\_process:456:11)

at Socket.emit (node:events:518:28)

at Pipe. (node:net:343:12)

2025-03-17 21:46:30.380 [info] InternalRepoInfo constructor with preferredEmbeddingModel 0

2025-03-17 21:46:30.448 [info] Doing a startup handshake.

2025-03-17 21:46:30.672 [info] Finished computing merkle tree in 171.13320899999962 ms.

2025-03-17 21:46:30.673 [info] Doing the initial handshake with hash: bdb8da405644b5e7d49a0495ce63f660fabbf3a6ac673d81b01a7b08b611b00b

2025-03-17 21:46:30.675 [info] Handshake start

2025-03-17 21:46:31.922 [info] Creating Indexing Repo client: [https://repo42.cursor.sh](https://repo42.cursor.sh)

2025-03-17 21:46:31.922 [info] Creating repo client with backend url: [https://repo42.cursor.sh](https://repo42.cursor.sh)

2025-03-17 21:46:31.922 [info] multiCodebaseIndexingJob dispose

2025-03-17 21:46:31.922 [info] Aborting indexing job.

2025-03-17 21:46:31.922 [info] InternalRepoInfo constructor with preferredEmbeddingModel 0

2025-03-17 21:46:31.923 [info] Indexing job successfully done or aborted.

2025-03-17 21:46:31.924 [info] Doing a startup handshake.

2025-03-17 21:46:31.961 [info] Finished computing merkle tree in 26.607750000000124 ms.

2025-03-17 21:46:31.962 [info] Doing the initial handshake with hash: bdb8da405644b5e7d49a0495ce63f660fabbf3a6ac673d81b01a7b08b611b00b

2025-03-17 21:46:31.962 [info] Handshake start

2025-03-17 21:46:34.321 [warning] Retrying handshake with timeout 4000. Error: [unavailable] HTTP 502

2025-03-17 21:46:34.321 [info] Handshake start

2025-03-17 21:46:38.507 [warning] Retrying handshake with timeout 8000. Error: [unavailable] HTTP 502

2025-03-17 21:46:38.507 [info] Handshake start

2025-03-17 21:46:46.696 [warning] Retrying handshake with timeout 16000. Error: [unavailable] HTTP 502

2025-03-17 21:46:46.696 [info] Handshake start

2025-03-17 21:47:02.884 [warning] Retrying handshake with timeout 32000. Error: [unavailable] HTTP 502

2025-03-17 21:47:02.885 [info] Handshake start

2025-03-17 21:47:31.929 [info] multiCodebaseIndexingJob dispose

2025-03-17 21:47:31.929 [info] Aborting indexing job.

2025-03-17 21:47:31.929 [info] Doing a startup handshake.

2025-03-17 21:47:31.929 [info] Indexing job successfully done or aborted.

2025-03-17 21:47:32.016 [info] Finished computing merkle tree in 62.5637080000015 ms.

2025-03-17 21:47:32.016 [info] Doing the initial handshake with hash: bdb8da405644b5e7d49a0495ce63f660fabbf3a6ac673d81b01a7b08b611b00b

2025-03-17 21:47:32.017 [info] Handshake start

2025-03-17 21:47:34.211 [warning] Retrying handshake with timeout 4000. Error: [unavailable] HTTP 502

2025-03-17 21:47:34.211 [info] Handshake start

2025-03-17 21:47:38.415 [warning] Retrying handshake with timeout 8000. Error: [unavailable] HTTP 502

2025-03-17 21:47:38.415 [info] Handshake start

---

<div class="post-metadata">

**Author:** ![aksakal](https://avatars.discourse-cdn.com/v4/letter/a/bb73d2/32.png) [@aksakal](https://forum.cursor.com/u/aksakal)\
**Post date:** [March 17, 2025, 6:48pm UTC](https://forum.cursor.com/t/failed-handshake-with-codebase-indexing/65620/3 "2025-03-17T18:48:37Z")

</div>

It happened after i updated to latest version.

---

<div class="post-metadata">

**Author:** ![uncleferassi](https://avatars.discourse-cdn.com/v4/letter/u/a587f6/32.png) [@uncleferassi](https://forum.cursor.com/u/uncleferassi)\
**Post date:** [March 17, 2025, 6:56pm UTC](https://forum.cursor.com/t/failed-handshake-with-codebase-indexing/65620/4 "2025-03-17T18:56:58Z")

</div>

it resolved on its own after 1hr

---

<div class="post-metadata">

**Author:** ![condor](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/condor/32/73148_2.png) [@condor](https://forum.cursor.com/u/condor)\
**Post date:** [March 17, 2025, 7:10pm UTC](https://forum.cursor.com/t/failed-handshake-with-codebase-indexing/65620/5 "2025-03-17T19:10:51Z")

</div>

Thats very likely, you should mark your case as solved. I imagine cursors API was busy with so many people upgrading to newever version and adding projects.

---

<div class="post-metadata">

**Author:** ![system](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/system/32/99069_2.png) [@system](https://forum.cursor.com/u/system)\
**Post date:** [April 16, 2025, 7:11pm UTC](https://forum.cursor.com/t/failed-handshake-with-codebase-indexing/65620/6 "2025-04-16T19:11:13Z")

</div>

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