Hello, out of nowhere Codebase indexing stopped working with “Handshake failed”. I’m trying to reindex every 5 minutes since yesterday, in total I tried 100+ times + I reinstalled Cursor 3 times already.
Here is full log:
2024-10-08 09:58:45.287 [info] Indexing job successfully done or aborted.
2024-10-08 10:03:58.803 [info] Setting indexing intent to should-index
2024-10-08 10:03:58.812 [info] Creating merkle client.
2024-10-08 10:03:58.812 [info] Done creating merkle client.
2024-10-08 10:03:58.813 [info] Doing a startup handshake.
2024-10-08 10:03:58.843 [info] Finished initializing merkle tree in 32.21340000256896 ms.
2024-10-08 10:03:58.844 [info] Doing the initial handshake with hash: 19c67b49427b9e0807f082132dc15a6ced82ad3155ae5c75a3645ea5c16f267b
2024-10-08 10:03:58.845 [info] Handshake start
2024-10-08 10:03:59.421 [info] Handshake timing: 576.3827999979258
2024-10-08 10:04:01.433 [info] Handshake start
2024-10-08 10:04:01.584 [info] Handshake timing: 153.33520000055432
2024-10-08 10:04:05.596 [info] Handshake start
2024-10-08 10:04:05.759 [info] Handshake timing: 164.4362999983132
2024-10-08 10:04:13.771 [info] Handshake start
2024-10-08 10:04:14.002 [info] Handshake timing: 234.4172000028193
2024-10-08 10:04:30.011 [info] Handshake start
2024-10-08 10:04:30.189 [info] Handshake timing: 181.76240000128746
2024-10-08 10:05:02.196 [info] Handshake start
2024-10-08 10:05:02.353 [info] Handshake timing: 160.08930000290275
2024-10-08 10:06:06.361 [error] Handshake failed:
2024-10-08 10:06:06.363 [error] Error: timeout in handshake with retry
at t.RepoClientMultiplexer.handshakeWithRetry (c:\Users\admin\AppData\Local\Programs\cursor\resources\app\extensions\cursor-retrieval\dist\main.js:2:826553)
at async w.getServerStatus (c:\Users\admin\AppData\Local\Programs\cursor\resources\app\extensions\cursor-retrieval\dist\main.js:2:841881)
at async w.startIndexingRepository (c:\Users\admin\AppData\Local\Programs\cursor\resources\app\extensions\cursor-retrieval\dist\main.js:2:844181)
2024-10-08 10:06:06.363 [error] Handshake failed.
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: Windows_NT x64 10.0.22631
WEIRD THING ON INDEXING:
Even when Indexing worked, I noticed that after you reindex the AI cannot find new files and thinks it’s missing from project root. Sometimes to the -point it tries to reinstall Next.js while it’s inside project root for weeks and project is like half done I use re-index when I create a lot of files then ask composer to rescan /folder with @codebase flags as well. And in this way it misses couple of folders and files so I specify AI with full paths that these files are there, etc.