# Codebase indexing not working

**URL:** <https://forum.cursor.com/t/codebase-indexing-not-working/22557>\
**Category:** Bug Reports\
**Created:** [October 12, 2024, 4:11pm UTC](https://forum.cursor.com/t/codebase-indexing-not-working/22557 "2024-10-12T16:11:21Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ozzy1](https://avatars.discourse-cdn.com/v4/letter/o/a8b319/32.png) [@Ozzy1](https://forum.cursor.com/u/Ozzy1)\
**Post date:** [October 12, 2024, 4:11pm UTC](https://forum.cursor.com/t/codebase-indexing-not-working/22557/1 "2024-10-12T16:11:21Z")

</div>

Codebase indexing not working for me. In the logs it shows that it is picking 0 files for indexing:

2024-10-11 22:22:55.281 [info] Setting indexing intent to should-index  
2024-10-11 22:22:55.282 [info] Creating merkle client.  
2024-10-11 22:22:55.282 [info] Done creating merkle client.  
2024-10-11 22:22:55.282 [info] Doing a startup handshake.  
2024-10-11 22:22:55.291 [info] Finished initializing merkle tree in 8.615458011627197 ms.  
2024-10-11 22:22:55.291 [info] Doing the initial handshake with hash:  
2024-10-11 22:22:55.293 [info] Handshake start  
2024-10-11 22:22:55.437 [info] Handshake timing: 145.31791698932648  
2024-10-11 22:22:55.437 [info] Handshake result: {“status”:“STATUS\_EMPTY”,“repoName”:“de0f9c9a-aec8-4269-8b84-15dd84228281”}  
2024-10-11 22:22:55.437 [info] Starting fast remote sync.  
2024-10-11 22:22:55.438 [info] **Total num embeddable files: 0**  
2024-10-11 22:22:55.438 [info] Root hash:  
2024-10-11 22:22:55.438 [info] Starting repository upload from scratch.  
2024-10-11 22:22:55.438 [info] Uploading 0 files.  
2024-10-11 22:22:55.561 [info] Finished indexing repository.  
2024-10-11 22:22:55.561 [info] Indexing job successfully done or aborted.

**Anyone experienced this? Any idea how to resolve this?**

---

<div class="post-metadata">

**Author:** ![deanrie](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/deanrie/32/1263_2.png) [@deanrie](https://forum.cursor.com/u/deanrie)\
**Post date:** [October 12, 2024, 5:22pm UTC](https://forum.cursor.com/t/codebase-indexing-not-working/22557/2 "2024-10-12T17:22:25Z")

</div>

Hi @Ozzy1

Try reinstalling Cursor, in 99% of cases, that helps.  
The process is described here:

> **[Cursor - Build Software Faster](https://docs.cursor.com/troubleshooting/common-issues#how-do-i-uninstall-cursor)**
>
> Built to make you extraordinarily productive, Cursor is the best way to code with AI.

---

<div class="post-metadata">

**Author:** ![darink](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/darink/32/10842_2.png) [@darink](https://forum.cursor.com/u/darink)\
**Post date:** [November 25, 2024, 12:12am UTC](https://forum.cursor.com/t/codebase-indexing-not-working/22557/3 "2024-11-25T00:12:23Z")

</div>

hi, @deanrie, I have the same issue:

```auto
2024-11-24 19:09:13.984 [info] Repo client: syncing embeddings with backend: https://repo42.cursor.sh
2024-11-24 19:09:13.984 [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:519:28)
    at maybeClose (node:internal/child_process:1105:16)
    at Socket.<anonymous> (node:internal/child_process:457:11)
    at Socket.emit (node:events:519:28)
    at Pipe.<anonymous> (node:net:338:12)
2024-11-24 19:09:14.198 [info] Creating merkle client.
2024-11-24 19:09:14.198 [info] Done creating merkle client.
2024-11-24 19:09:14.198 [info] Doing a startup handshake.
2024-11-24 19:09:14.216 [info] Finished initializing merkle tree in 4.400957999999946 ms.
2024-11-24 19:09:14.217 [info] Doing the initial handshake with hash: 
2024-11-24 19:09:14.218 [info] Handshake start
2024-11-24 19:09:16.229 [info] Handshake start
2024-11-24 19:09:16.399 [info] Handshake timing: 171.16545899999983
2024-11-24 19:09:16.400 [info] Handshake result: {"status":"STATUS_EMPTY","repoName":"6a7bb131-cce7-477e-9cef-f1ff622c19f7"}
2024-11-24 19:09:16.400 [info] Starting fast remote sync.
2024-11-24 19:09:16.401 [info] Total num embeddable files: 0
2024-11-24 19:09:16.401 [info] Root hash: 
2024-11-24 19:09:16.401 [info] Starting repository upload from scratch.
2024-11-24 19:09:16.401 [info] Uploading 0 files.
2024-11-24 19:09:16.820 [info] Finished indexing repository.
2024-11-24 19:09:16.821 [info] Indexing job successfully done or aborted.
2024-11-24 19:10:19.516 [info] Setting indexing intent to should-index
2024-11-24 19:10:19.518 [info] Creating merkle client.
2024-11-24 19:10:19.518 [info] Done creating merkle client.
2024-11-24 19:10:19.518 [info] Doing a startup handshake.
2024-11-24 19:10:19.532 [info] Finished initializing merkle tree in 1.4410420000058366 ms.
2024-11-24 19:10:19.532 [info] Doing the initial handshake with hash: 
2024-11-24 19:10:19.532 [info] Handshake start
2024-11-24 19:10:19.571 [info] Handshake timing: 39.54062500000873
2024-11-24 19:10:19.572 [info] Handshake result: {"status":"STATUS_EMPTY","repoName":"6a7bb131-cce7-477e-9cef-f1ff622c19f7"}
2024-11-24 19:10:19.572 [info] Starting fast remote sync.
2024-11-24 19:10:19.572 [info] Total num embeddable files: 0
2024-11-24 19:10:19.572 [info] Root hash: 
2024-11-24 19:10:19.572 [info] Starting repository upload from scratch.
2024-11-24 19:10:19.572 [info] Uploading 0 files.
2024-11-24 19:10:19.605 [info] Finished indexing repository.
2024-11-24 19:10:19.605 [info] Indexing job successfully done or aborted.
2024-11-24 19:10:21.625 [info] Setting indexing intent to should-index
2024-11-24 19:10:21.630 [info] Creating merkle client.
2024-11-24 19:10:21.630 [info] Done creating merkle client.
2024-11-24 19:10:21.630 [info] Doing a startup handshake.
2024-11-24 19:10:21.641 [info] Finished initializing merkle tree in 0.907374999995227 ms.
2024-11-24 19:10:21.641 [info] Doing the initial handshake with hash: 
2024-11-24 19:10:21.642 [info] Handshake start
2024-11-24 19:10:21.933 [info] Handshake timing: 291.4956669999956
2024-11-24 19:10:21.933 [info] Handshake result: {"status":"STATUS_EMPTY","repoName":"6a7bb131-cce7-477e-9cef-f1ff622c19f7"}
2024-11-24 19:10:21.933 [info] Starting fast remote sync.
2024-11-24 19:10:21.934 [info] Total num embeddable files: 0
2024-11-24 19:10:21.936 [info] Root hash: 
2024-11-24 19:10:21.936 [info] Starting repository upload from scratch.
2024-11-24 19:10:21.936 [info] Uploading 0 files.
2024-11-24 19:10:21.970 [info] Finished indexing repository.
2024-11-24 19:10:21.970 [info] Indexing job successfully done or aborted.

```

After a fresh reinstall of cursor, deleting everything, clean reinstall.

have had for a year, want to fix. is there any way to set up a call with the team to fix?

my other thread: [Codebase Indexing Issue](https://forum.cursor.com/t/codebase-indexing-issue/2344)

thank you.

---

<div class="post-metadata">

**Author:** ![Ozzy1](https://avatars.discourse-cdn.com/v4/letter/o/a8b319/32.png) [@Ozzy1](https://forum.cursor.com/u/Ozzy1)\
**Post date:** [December 2, 2024, 2:43pm UTC](https://forum.cursor.com/t/codebase-indexing-not-working/22557/4 "2024-12-02T14:43:44Z")

</div>

Nothing helped. I am able to use it on one of my laptops, but not the other.
