Hi! My codebases, no matter where they are on my computer, won’t get indexed. This behavior persists on nightly and stable, and after multiple appcleaner uninstalls/reinstalls, AND with most extensions disabled.
The specific error I’m getting is a “ConnectError: [internal] internal error”.
Logs:
2024-01-08 05:22:55.630 [info] Not indexing because user does not want to index this workspace.
2024-01-08 05:22:59.999 [info] Setting indexing intent to should-index
2024-01-08 05:23:00.000 [info] Creating merkle client.
2024-01-08 05:23:00.000 [info] Done creating merkle client.
2024-01-08 05:23:00.000 [info] Doing a startup handshake.
2024-01-08 05:23:00.002 [info] Finished initializing merkle tree in 2.0015000104904175 ms.
2024-01-08 05:23:00.002 [info] Doing the initial handshake with hash:
2024-01-08 05:23:00.404 [info] Handshake result:
2024-01-08 05:23:00.404 [info] Starting fast remote sync.
2024-01-08 05:23:00.405 [info] Total num embeddable files: 0
2024-01-08 05:23:00.405 [info] Root hash:
2024-01-08 05:23:00.405 [info] Starting repository upload from scratch.
2024-01-08 05:23:00.405 [info] Uploading 0 files.
2024-01-08 05:23:08.053 [info] Indexing job successfully done or aborted.
2024-01-08 05:23:08.054 [info] Setting indexing intent to should-index
2024-01-08 05:23:08.054 [info] Creating merkle client.
2024-01-08 05:23:08.054 [info] Done creating merkle client.
2024-01-08 05:23:08.054 [info] Doing a startup handshake.
2024-01-08 05:23:08.056 [info] Finished initializing merkle tree in 1.8183749914169312 ms.
2024-01-08 05:23:08.056 [info] Doing the initial handshake with hash:
2024-01-08 05:23:08.146 [info] Handshake result:
2024-01-08 05:23:08.146 [info] Starting fast remote sync.
2024-01-08 05:23:08.147 [info] Total num embeddable files: 0
2024-01-08 05:23:08.147 [info] Root hash:
2024-01-08 05:23:08.148 [info] Finished indexing repository.
2024-01-08 05:23:08.148 [info] Indexing job successfully done or aborted.
2024-01-08 05:23:15.965 [info] Setting indexing intent to should-index
2024-01-08 05:23:15.965 [info] Creating merkle client.
2024-01-08 05:23:15.965 [info] Done creating merkle client.
2024-01-08 05:23:15.965 [info] Doing a startup handshake.
2024-01-08 05:23:15.967 [info] Finished initializing merkle tree in 1.9686250686645508 ms.
2024-01-08 05:23:15.968 [info] Doing the initial handshake with hash:
2024-01-08 05:23:16.110 [info] Handshake result:
2024-01-08 05:23:16.110 [info] Starting fast remote sync.
2024-01-08 05:23:16.111 [info] Total num embeddable files: 0
2024-01-08 05:23:16.111 [info] Root hash:
2024-01-08 05:23:16.111 [info] Finished indexing repository.
2024-01-08 05:23:16.112 [info] Indexing job successfully done or aborted.
2024-01-08 05:23:16.945 [info] Setting indexing intent to should-index
2024-01-08 05:23:16.946 [info] Creating merkle client.
2024-01-08 05:23:16.946 [info] Done creating merkle client.
2024-01-08 05:23:16.946 [info] Doing a startup handshake.
2024-01-08 05:23:16.947 [info] Finished initializing merkle tree in 1.1722500324249268 ms.
2024-01-08 05:23:16.947 [info] Doing the initial handshake with hash:
2024-01-08 05:23:17.041 [info] Handshake result:
2024-01-08 05:23:17.042 [info] Starting fast remote sync.
2024-01-08 05:23:17.042 [info] Total num embeddable files: 0
2024-01-08 05:23:17.042 [info] Root hash:
2024-01-08 05:23:17.042 [info] Finished indexing repository.
2024-01-08 05:23:17.042 [info] Indexing job successfully done or aborted.
2024-01-08 05:23:17.338 [info] Setting indexing intent to should-index
2024-01-08 05:23:17.339 [info] Creating merkle client.
2024-01-08 05:23:17.339 [info] Done creating merkle client.
2024-01-08 05:23:17.339 [info] Doing a startup handshake.
2024-01-08 05:23:17.342 [info] Finished initializing merkle tree in 3.3952499628067017 ms.
2024-01-08 05:23:17.342 [info] Doing the initial handshake with hash:
2024-01-08 05:23:17.433 [info] Handshake result:
2024-01-08 05:23:17.433 [info] Starting fast remote sync.
2024-01-08 05:23:17.434 [info] Total num embeddable files: 0
2024-01-08 05:23:17.435 [info] Root hash:
2024-01-08 05:23:17.435 [info] Finished indexing repository.
2024-01-08 05:23:17.435 [info] Indexing job successfully done or aborted.
2024-01-08 05:23:17.501 [info] Setting indexing intent to should-index
2024-01-08 05:23:17.501 [info] Creating merkle client.
2024-01-08 05:23:17.501 [info] Done creating merkle client.
2024-01-08 05:23:17.502 [info] Doing a startup handshake.
2024-01-08 05:23:17.504 [info] Finished initializing merkle tree in 3.129709005355835 ms.
2024-01-08 05:23:17.505 [info] Doing the initial handshake with hash:
2024-01-08 05:23:17.596 [info] Handshake result:
2024-01-08 05:23:17.596 [info] Starting fast remote sync.
2024-01-08 05:23:17.597 [info] Total num embeddable files: 0
2024-01-08 05:23:17.598 [info] Root hash:
2024-01-08 05:23:17.598 [info] Finished indexing repository.
2024-01-08 05:23:17.598 [info] Indexing job successfully done or aborted.
2024-01-08 05:23:17.666 [info] Setting indexing intent to should-index
2024-01-08 05:23:17.666 [info] Creating merkle client.
2024-01-08 05:23:17.666 [info] Done creating merkle client.
2024-01-08 05:23:17.666 [info] Doing a startup handshake.
2024-01-08 05:23:17.668 [info] Finished initializing merkle tree in 2.187999963760376 ms.
2024-01-08 05:23:17.668 [info] Doing the initial handshake with hash:
2024-01-08 05:23:17.758 [info] Handshake result:
2024-01-08 05:23:17.759 [info] Starting fast remote sync.
2024-01-08 05:23:17.759 [info] Total num embeddable files: 0
2024-01-08 05:23:17.759 [info] Root hash:
2024-01-08 05:23:17.759 [info] Finished indexing repository.
2024-01-08 05:23:17.759 [info] Indexing job successfully done or aborted.
2024-01-08 05:23:17.833 [info] Setting indexing intent to should-index
2024-01-08 05:23:17.833 [info] Creating merkle client.
2024-01-08 05:23:17.833 [info] Done creating merkle client.
2024-01-08 05:23:17.833 [info] Doing a startup handshake.
2024-01-08 05:23:17.836 [info] Finished initializing merkle tree in 2.6637920141220093 ms.
2024-01-08 05:23:17.836 [info] Doing the initial handshake with hash:
2024-01-08 05:23:17.927 [info] Handshake result:
2024-01-08 05:23:17.927 [info] Starting fast remote sync.
2024-01-08 05:23:17.928 [info] Total num embeddable files: 0
2024-01-08 05:23:17.928 [info] Root hash:
2024-01-08 05:23:17.928 [info] Finished indexing repository.
2024-01-08 05:23:17.928 [info] Indexing job successfully done or aborted.
2024-01-08 05:23:17.952 [info] Setting indexing intent to should-index
2024-01-08 05:23:17.953 [info] Creating merkle client.
2024-01-08 05:23:17.953 [info] Done creating merkle client.
2024-01-08 05:23:17.953 [info] Doing a startup handshake.
2024-01-08 05:23:17.956 [info] Finished initializing merkle tree in 2.8617089986801147 ms.
2024-01-08 05:23:17.956 [info] Doing the initial handshake with hash:
2024-01-08 05:23:18.043 [info] Handshake result:
2024-01-08 05:23:18.043 [info] Starting fast remote sync.
2024-01-08 05:23:18.043 [info] Total num embeddable files: 0
2024-01-08 05:23:18.044 [info] Root hash:
2024-01-08 05:23:18.044 [info] Finished indexing repository.
2024-01-08 05:23:18.044 [info] Indexing job successfully done or aborted.
2024-01-08 05:24:07.863 [info] Setting indexing intent to should-index
2024-01-08 05:24:07.865 [info] Creating merkle client.
2024-01-08 05:24:07.865 [info] Done creating merkle client.
2024-01-08 05:24:07.865 [info] Doing a startup handshake.
2024-01-08 05:24:07.866 [info] Finished initializing merkle tree in 1.861625075340271 ms.
2024-01-08 05:24:07.867 [info] Doing the initial handshake with hash:
2024-01-08 05:24:07.958 [info] Handshake result:
2024-01-08 05:24:07.958 [info] Starting fast remote sync.
2024-01-08 05:24:07.959 [info] Total num embeddable files: 0
2024-01-08 05:24:07.959 [info] Root hash:
2024-01-08 05:24:07.959 [info] Finished indexing repository.
2024-01-08 05:24:07.959 [info] Indexing job successfully done or aborted.
2024-01-08 05:24:09.823 [info] Setting indexing intent to should-index
2024-01-08 05:24:09.824 [info] Creating merkle client.
2024-01-08 05:24:09.824 [info] Done creating merkle client.
2024-01-08 05:24:09.824 [info] Doing a startup handshake.
2024-01-08 05:24:09.825 [info] Finished initializing merkle tree in 1.3193329572677612 ms.
2024-01-08 05:24:09.826 [info] Doing the initial handshake with hash:
2024-01-08 05:24:09.918 [info] Handshake result:
2024-01-08 05:24:09.918 [info] Starting fast remote sync.
2024-01-08 05:24:09.919 [info] Total num embeddable files: 0
2024-01-08 05:24:09.919 [info] Root hash:
2024-01-08 05:24:09.919 [info] Finished indexing repository.
2024-01-08 05:24:09.923 [info] Indexing job successfully done or aborted.
2024-01-08 05:24:11.204 [info] Setting indexing intent to should-index
2024-01-08 05:24:11.204 [info] Creating merkle client.
2024-01-08 05:24:11.204 [info] Done creating merkle client.
2024-01-08 05:24:11.204 [info] Doing a startup handshake.
2024-01-08 05:24:11.205 [info] Finished initializing merkle tree in 1.2122910022735596 ms.
2024-01-08 05:24:11.205 [info] Doing the initial handshake with hash:
2024-01-08 05:24:11.306 [info] Handshake result:
2024-01-08 05:24:11.306 [info] Starting fast remote sync.
2024-01-08 05:24:11.306 [info] Total num embeddable files: 0
2024-01-08 05:24:11.306 [info] Root hash:
2024-01-08 05:24:11.306 [info] Starting repository upload from scratch.
2024-01-08 05:24:11.307 [info] Uploading 0 files.
2024-01-08 05:25:15.022 [error] Failed to upload files.
2024-01-08 05:25:15.051 [error] ConnectError: [internal] internal error
at s (/Applications/Cursor Nightly.app/Contents/Resources/app/extensions/cursor-retrieval/dist/main.js:2:1368611)
at r (/Applications/Cursor Nightly.app/Contents/Resources/app/extensions/cursor-retrieval/dist/main.js:2:1369046)
at next (/Applications/Cursor Nightly.app/Contents/Resources/app/extensions/cursor-retrieval/dist/main.js:2:1375856)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at /Applications/Cursor Nightly.app/Contents/Resources/app/extensions/cursor-retrieval/dist/main.js:2:760523
at /Applications/Cursor Nightly.app/Contents/Resources/app/extensions/cursor-retrieval/dist/main.js:2:760333
at Object.unary (/Applications/Cursor Nightly.app/Contents/Resources/app/extensions/cursor-retrieval/dist/main.js:2:1374247)
at Object.ensureIndexCreated (/Applications/Cursor Nightly.app/Contents/Resources/app/extensions/cursor-retrieval/dist/main.js:2:1362659)
at e.RepoClientMultiplexer.ensureIndexCreatedWithRetry (/Applications/Cursor Nightly.app/Contents/Resources/app/extensions/cursor-retrieval/dist/main.js:2:759461)
at m.syncFileListToServer (/Applications/Cursor Nightly.app/Contents/Resources/app/extensions/cursor-retrieval/dist/main.js:2:781743)
at m.startRepoUpload (/Applications/Cursor Nightly.app/Contents/Resources/app/extensions/cursor-retrieval/dist/main.js:2:770901)
at m.startFastRemoteSync (/Applications/Cursor Nightly.app/Contents/Resources/app/extensions/cursor-retrieval/dist/main.js:2:772073)
at m.startIndexingRepository (/Applications/Cursor Nightly.app/Contents/Resources/app/extensions/cursor-retrieval/dist/main.js:2:775581)
2024-01-08 05:25:15.051 [info] Indexing job successfully done or aborted.
Happens on basically every repo. Also the first error, which isn’t there anymore but I think is still affecting the particular repo, is 2024-01-08 03:41:51.118 [error] accessToken is undefined. User is not logged in. We shouldn't do any indexing.
Any help would be super appreciated! have had this issue for at least a month
It was cut off for some reason last time. Unsure why. How else can I give you guys debug information? It’s been driving me wild. Also, it resets a lot (the logs) so unsure what exaxtly would be helpful. I’ve used appcleaner to reinstall, signed in/out/in on an active session, and it still persists. M1 pro Macbook Pro.
2024-01-12 17:35:49.211 [info] Creating merkle client.
2024-01-12 17:35:49.211 [info] Done creating merkle client.
2024-01-12 17:35:49.211 [info] Doing a startup handshake.
2024-01-12 17:35:49.211 [info] Finished initializing merkle tree in 5.776541978120804 ms.
2024-01-12 17:35:49.211 [info] Doing the initial handshake with hash:
2024-01-12 17:35:55.529 [info] Indexing job successfully done or aborted.
2024-01-12 17:36:07.396 [info] Creating merkle client.
2024-01-12 17:36:07.396 [info] Done creating merkle client.
2024-01-12 17:36:07.396 [info] Doing a startup handshake.
2024-01-12 17:36:07.396 [info] Finished initializing merkle tree in 24.157665997743607 ms.
2024-01-12 17:36:07.396 [info] Doing the initial handshake with hash:
2024-01-12 17:36:07.428 [warning] Error reading high level folder description. Ignoring. Error: ENOENT: no such file or directory, open '/Users/darin/Library/Application Support/Cursor Nightly/User/workspaceStorage/5a08606b6ca9e1a784bdcda361510867/anysphere.cursor-retrieval/high_level_folder_description.txt'
2024-01-12 17:36:07.567 [warning] Error computing full high level folder description. Ignoring. [unavailable] getaddrinfo ENOTFOUND staging.cursor.sh
2024-01-12 17:38:13.479 [error] Handshake failed:
2024-01-12 17:38:13.480 [error] Error: timeout in handshake with retry
at e.RepoClientMultiplexer.handshakeWithRetry (/Applications/Cursor Nightly.app/Contents/Resources/app/extensions/cursor-retrieval/dist/main.js:2:759292)
at m.getServerStatus (/Applications/Cursor Nightly.app/Contents/Resources/app/extensions/cursor-retrieval/dist/main.js:2:773274)
at m.startIndexingRepository (/Applications/Cursor Nightly.app/Contents/Resources/app/extensions/cursor-retrieval/dist/main.js:2:775434)
2024-01-12 17:38:13.481 [error] Handshake failed.
2024-01-12 17:38:13.481 [info] Indexing job successfully done or aborted.
2024-01-12 19:04:12.498 [info] Creating merkle client.
2024-01-12 19:04:12.524 [info] Done creating merkle client.
2024-01-12 19:04:12.524 [info] Doing a startup handshake.
2024-01-12 19:04:12.689 [info] Finished initializing merkle tree in 190.2750419974327 ms.
2024-01-12 19:04:12.796 [info] Doing the initial handshake with hash:
2024-01-12 19:40:21.646 [info] Creating merkle client.
2024-01-12 19:40:21.759 [info] Done creating merkle client.
2024-01-12 19:40:21.761 [info] Doing a startup handshake.
2024-01-12 19:40:21.761 [info] Indexing job successfully done or aborted.
2024-01-12 19:40:21.890 [info] Finished initializing merkle tree in 244.437833994627 ms.
2024-01-12 19:40:21.984 [info] Doing the initial handshake with hash:
2024-01-12 20:41:21.661 [info] Creating merkle client.
2024-01-12 20:41:21.697 [info] Done creating merkle client.
2024-01-12 20:41:21.697 [info] Doing a startup handshake.
2024-01-12 20:41:21.697 [info] Indexing job successfully done or aborted.
2024-01-12 20:41:21.807 [info] Finished initializing merkle tree in 146.0241670012474 ms.
2024-01-12 20:41:21.813 [info] Doing the initial handshake with hash:
2024-01-12 21:39:48.277 [info] Creating merkle client.
2024-01-12 21:39:48.278 [info] Done creating merkle client.
2024-01-12 21:39:48.278 [info] Doing a startup handshake.
2024-01-12 21:39:48.278 [info] Indexing job successfully done or aborted.
2024-01-12 21:39:48.407 [info] Finished initializing merkle tree in 129.67566698789597 ms.
2024-01-12 21:39:48.412 [info] Doing the initial handshake with hash:
2024-01-12 21:41:36.702 [info] Handshake result:
2024-01-12 21:41:36.702 [info] Starting fast remote sync.
2024-01-12 21:41:36.703 [info] Total num embeddable files: 0
2024-01-12 21:41:36.704 [info] Root hash:
2024-01-12 21:41:36.704 [info] Finished indexing repository.
2024-01-12 21:41:36.704 [info] Indexing job successfully done or aborted.
2024-01-12 21:49:48.635 [info] Creating merkle client.
2024-01-12 21:49:48.636 [info] Done creating merkle client.
2024-01-12 21:49:48.636 [info] Doing a startup handshake.
2024-01-12 21:49:48.645 [info] Finished initializing merkle tree in 10.430000007152557 ms.
2024-01-12 21:49:48.646 [info] Doing the initial handshake with hash:
2024-01-12 21:49:48.838 [info] Handshake result:
2024-01-12 21:49:48.838 [info] Starting fast remote sync.
2024-01-12 21:49:48.842 [info] Total num embeddable files: 0
2024-01-12 21:49:48.843 [info] Root hash:
2024-01-12 21:49:48.843 [info] Finished indexing repository.
2024-01-12 21:49:48.844 [info] Indexing job successfully done or aborted.
2024-01-12 22:10:28.445 [info] Creating merkle client.
2024-01-12 22:10:28.541 [info] Done creating merkle client.
2024-01-12 22:10:28.541 [info] Doing a startup handshake.
2024-01-12 22:10:28.654 [info] Finished initializing merkle tree in 208.79029098153114 ms.
2024-01-12 22:10:28.654 [info] Doing the initial handshake with hash:
2024-01-12 22:10:29.100 [info] Handshake result:
2024-01-12 22:10:29.100 [info] Starting fast remote sync.
2024-01-12 22:10:29.100 [info] Total num embeddable files: 0
2024-01-12 22:10:29.100 [info] Root hash:
2024-01-12 22:10:29.100 [info] Finished indexing repository.
2024-01-12 22:10:29.100 [info] Indexing job successfully done or aborted.
2024-01-12 22:26:55.436 [info] Creating merkle client.
2024-01-12 22:26:55.437 [info] Done creating merkle client.
2024-01-12 22:26:55.437 [info] Doing a startup handshake.
2024-01-13 13:13:35.615 [info] Doing the initial handshake with hash:
2024-01-13 13:13:35.665 [info] Handshake result:
2024-01-13 13:13:35.665 [info] Starting fast remote sync.
2024-01-13 13:13:35.667 [info] Total num embeddable files: 0
2024-01-13 13:13:35.668 [info] Root hash:
2024-01-13 13:13:35.668 [info] Starting repository upload from scratch.
2024-01-13 13:13:35.668 [info] Uploading 0 files.
please let me know what else I can give you guys!! It worked literally one time for me so far—on the first project after a clean reinstall, it actually could pull up files. All the other with codebase searches haven’t worked since that one. Deleted, resynced indices. Can’t reference docs either.
It’s for local projects (haven’t tested SSH), persists even in brand new projects, (including new AI projects), and I think the culprit is probably an uncaught exception somewhere in the indexing code? (helpful, i know)
the total num embeddable files is always zero. ive allowed full disk access as well. just… so unsure what this is about or what could be causing it. and if i remember correctly, the issue has persisted across a full system reinstall (with a time machine restore) as well.
Hi, 4 months from initial report, still experiencing the same issue. @amanrs , did @sualeh have any progress on the new build? I wasn’t able to see/find it.
What can I do? I really like cursor, but no codebase context and no documentation on one of my two work machines is brutal and extremely aggravating. Tried every single thing I can think of so far short of a full system reset, which I want to avoid (I’ve had this same machine for like 5 years now).
hi hi, can you email me and we can set up a call. i cant really debug what your problem is from the logs that you sent me. i think a call would really help.
at ChildProcess.exithandler (node:child_process:422:12)
at ChildProcess.emit (node:events:517:28)
at maybeClose (node:internal/child_process:1098:16)
at Socket. (node:internal/child_process:450:11)
at Socket.emit (node:events:517:28)
at Pipe. (node:net:350:12)
2024-06-26 09:13:21.492 [error] NoWorkspaceUriError
I am getting another issue while codebase indexing… it is not respecting neither the .gitignore files nor the .cursorignore files. Please make this work. I have like 10k json files I don’t need to index all that.