Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Indexing Fails - Handshake failed. #1806

Closed
strueman opened this issue Sep 3, 2024 · 3 comments
Closed

Indexing Fails - Handshake failed. #1806

strueman opened this issue Sep 3, 2024 · 3 comments

Comments

@strueman
Copy link

strueman commented Sep 3, 2024

indexing fails with handshake failed message,
Delete index, restart Cursor and it completes fine, with no errors, until it doesn't and rinse and repeat.

Possible Solution:
I am thinking a workaround may be to automate a delete index and clear any cache / temp data the indexing system uses, restart the indexing system and trigger a rebuild on repeated handshake error? Not the ideal solution but I can see this has been an ongoing niggling problem throughout many versions in the old issues and forum posts.

mac os ver 14.5 (23F79)
cursor info:
Version: 0.40.3
VSCode Version: 1.91.1
Commit: 2804893a83ef162ae6c48e8254717e25c7c7c510
Date: 2024-08-29T17:42:50.254Z (4 days ago)
Electron: 29.4.0
ElectronBuildId: undefined
Chromium: 122.0.6261.156
Node.js: 20.9.0
V8: 12.2.281.27-electron.0
OS: Darwin arm64 23.5.0

Cursor Indexing and Retrieval output

2024-09-03 12:43:38.707 [info] Creating merkle client.
2024-09-03 12:43:38.707 [info] Done creating merkle client.
2024-09-03 12:43:38.707 [info] Doing a startup handshake.
2024-09-03 12:43:38.712 [info] Finished initializing merkle tree in 4.370000123977661 ms.
2024-09-03 12:43:38.712 [info] Doing the initial handshake with hash: 9a60c9b9735c0f1ce36dcbbb65f3104bcbe7641f57624eb0da4320bc00c3e69e
2024-09-03 12:43:38.713 [info] Handshake start
2024-09-03 12:43:42.725 [info] Handshake start
2024-09-03 12:43:50.730 [info] Handshake start
2024-09-03 12:44:06.735 [info] Handshake start
2024-09-03 12:44:38.739 [info] Handshake start
2024-09-03 12:45:42.747 [info] Handshake start
2024-09-03 12:46:09.391 [info] Search by message took 21.677958011627197ms for query ""
2024-09-03 12:46:09.391 [info] Search by message took 27.364166021347046ms for query ""
2024-09-03 12:46:09.391 [info] Search by sha took 21.419875144958496ms for query ""
2024-09-03 12:46:09.391 [info] Search by sha took 25.430042028427124ms for query ""
2024-09-03 12:47:50.752 [error] Handshake failed:
2024-09-03 12:47:50.753 [error] Error: timeout in handshake with retry
at t.RepoClientMultiplexer.handshakeWithRetry (/Applications/Cursor.app/Contents/Resources/app/extensions/cursor-retrieval/dist/main.js:2:817710)
at async w.getServerStatus (/Applications/Cursor.app/Contents/Resources/app/extensions/cursor-retrieval/dist/main.js:2:832927)
at async w.startIndexingRepository (/Applications/Cursor.app/Contents/Resources/app/extensions/cursor-retrieval/dist/main.js:2:835227)
2024-09-03 12:47:50.753 [error] Handshake failed.
2024-09-03 12:47:50.753 [info] Indexing job successfully done or aborted.

@AtlasPilotPuppy
Copy link

AtlasPilotPuppy commented Oct 7, 2024

I am running into a similar issue. Mine doesnt go away after a delete and restart

2024-10-07 16:19:32.366 [info] Repo client: syncing embeddings with backend:  https://repo42.cursor.sh
2024-10-07 16:19:32.366 [error] Error: Command failed: git config --get remote.origin.url

	at ChildProcess.exithandler (node:child_process:422:12)
	at ChildProcess.emit (node:events:514:28)
	at maybeClose (node:internal/child_process:1105:16)
	at Socket.<anonymous> (node:internal/child_process:457:11)
	at Socket.emit (node:events:514:28)
	at Pipe.<anonymous> (node:net:337:12)
2024-10-07 16:19:32.571 [error] NoWorkspaceUriError
2024-10-07 16:19:37.035 [info] Repo client: syncing embeddings with backend:  https://repo42.cursor.sh
2024-10-07 16:19:37.041 [error] Error: Command failed: git config --get remote.origin.url

	at ChildProcess.exithandler (node:child_process:422:12)
	at ChildProcess.emit (node:events:514:28)
	at maybeClose (node:internal/child_process:1105:16)
	at ChildProcess._handle.onexit (node:internal/child_process:305:5)
2024-10-07 16:19:37.202 [info] Not indexing because user does not want to index this workspace.
2024-10-07 16:19:39.855 [info] Repo client: syncing embeddings with backend:  https://repo42.cursor.sh
2024-10-07 16:19:39.855 [info] Not indexing because user does not want to index this workspace.
2024-10-07 16:19:43.065 [info] Setting indexing intent to should-index
2024-10-07 16:19:43.067 [info] Creating merkle client.
2024-10-07 16:19:43.067 [info] Done creating merkle client.
2024-10-07 16:19:43.067 [info] Doing a startup handshake.
2024-10-07 16:19:43.161 [info] Finished initializing merkle tree in 94.75225001573563 ms.
2024-10-07 16:19:43.162 [info] Doing the initial handshake with hash: 2bcf612fe1bbd132448cc1a0cc2f53865a2bc6f9f69cb2007383bafcb7d71c9c
2024-10-07 16:19:43.163 [info] Handshake start
2024-10-07 16:19:45.672 [info] Handshake start
2024-10-07 16:19:49.924 [info] Handshake start
2024-10-07 16:19:58.135 [info] Handshake start
2024-10-07 16:20:14.397 [info] Handshake start
2024-10-07 16:20:46.663 [info] Handshake start

@nrw303
Copy link

nrw303 commented Oct 7, 2024

I also have this issue:

Version: 0.41.3
VSCode Version: 1.91.1
Commit: 51c8aff7cb5a89f4a0e462fbacab938bdbfaf140
Date: 2024-09-25T17:13:50.377Z
Electron: 29.4.0
ElectronBuildId: undefined
Chromium: 122.0.6261.156
Node.js: 20.9.0
V8: 12.2.281.27-electron.0
OS: Darwin arm64 24.0.0

@danperks
Copy link
Collaborator

danperks commented Oct 8, 2024

Anyone with this issue, please comment in #2035 with your OS and Cursor info, thanks!

@danperks danperks closed this as not planned Won't fix, can't repro, duplicate, stale Oct 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants