[GH-ISSUE #342] HELP : Search not working. #221

Closed
opened 2026-03-02 11:47:44 +03:00 by kerem · 4 comments
Owner

Originally created by @ant1fr on GitHub (Aug 3, 2024).
Original GitHub issue: https://github.com/karakeep-app/karakeep/issues/342

I installed without issue Hoarder on my Synology NAS. Everything runs smoothly from mobile apps to AI tagging except for search.
Each time I type a request, I get a "No bookmarks" result. No error on Chrome console.
I tried a full reindexing without success.

I checked the logs but didn't find anything strange.

On worker logs, I see some errors but seem to be related to results already indexed
2024-08-03T16:37:47.157Z error: [search][289] search job failed: Error: Search task failed: internal: MDB_KEYEXIST: Key/data pair already exists. 2024-08-03T16:37:47.157Z info: [search][290] Attempting to index bookmark with id y33sf2l40vlvv842gukvmrix ... 2024-08-03T16:37:48.158Z error: [search][290] search job failed: Error: Search task failed: internal: MDB_KEYEXIST: Key/data pair already exists. 2024-08-03T16:37:48.159Z info: [search][291] Attempting to index bookmark with id yv6atehbadpa4576hui0xesi ... 2024-08-03T16:37:49.731Z error: [search][291] search job failed: Error: Search task failed: internal: MDB_KEYEXIST: Key/data pair already exists. 2024-08-03T16:37:49.732Z info: [search][292] Attempting to index bookmark with id zl8b06tao41w2k0kxo536jah ... 2024-08-03T16:37:50.817Z error: [search][292] search job failed: Error: Search task failed: internal: MDB_KEYEXIST: Key/data pair already exists.

On Meilisearch, I didn't find anything strange either :
[2024-08-03T16:37:41Z INFO actix_web::middleware::logger] 172.25.0.6 "GET /tasks/1416 HTTP/1.1" 200 491 "-" "node" 0.000398 [2024-08-03T16:37:42Z INFO actix_web::middleware::logger] 172.25.0.6 "POST /indexes/bookmarks/documents?primaryKey=id HTTP/1.1" 202 139 "-" "node" 0.363450 [2024-08-03T16:37:42Z INFO actix_web::middleware::logger] 172.25.0.6 "GET /tasks/1417 HTTP/1.1" 200 305 "-" "node" 0.000370 [2024-08-03T16:37:42Z INFO actix_web::middleware::logger] 172.25.0.6 "GET /tasks/1417 HTTP/1.1" 200 275 "-" "node" 0.000408 [2024-08-03T16:37:42Z INFO actix_web::middleware::logger] 172.25.0.6 "GET /tasks/1417 HTTP/1.1" 200 275 "-" "node" 0.000388 [2024-08-03T16:37:42Z INFO actix_web::middleware::logger] 172.25.0.6 "GET /tasks/1417 HTTP/1.1" 200 275 "-" "node" 0.000374 [2024-08-03T16:37:42Z INFO actix_web::middleware::logger] 172.25.0.6 "GET /tasks/1417 HTTP/1.1" 200 275 "-" "node" 0.000468 [2024-08-03T16:37:42Z INFO actix_web::middleware::logger] 172.25.0.6 "GET /tasks/1417 HTTP/1.1" 200 275 "-" "node" 0.000382 [2024-08-03T16:37:42Z INFO actix_web::middleware::logger] 172.25.0.6 "GET /tasks/1417 HTTP/1.1" 200 275 "-" "node" 0.000371 [2024-08-03T16:37:42Z INFO actix_web::middleware::logger] 172.25.0.6 "GET /tasks/1417 HTTP/1.1" 200 275 "-" "node" 0.000359 [2024-08-03T16:37:42Z INFO actix_web::middleware::logger] 172.25.0.6 "GET /tasks/1417 HTTP/1.1" 200 275 "-" "node" 0.000373 [2024-08-03T16:37:42Z INFO actix_web::middleware::logger] 172.25.0.6 "GET /tasks/1417 HTTP/1.1" 200 275 "-" "node" 0.000358 [2024-08-03T16:37:42Z INFO actix_web::middleware::logger] 172.25.0.6 "GET /tasks/1417 HTTP/1.1" 200 275 "-" "node" 0.000357 [2024-08-03T16:37:42Z INFO actix_web::middleware::logger] 172.25.0.6 "GET /tasks/1417 HTTP/1.1" 200 275 "-" "node" 0.000401 [2024-08-03T16:37:42Z INFO actix_web::middleware::logger] 172.25.0.6 "GET /tasks/1417 HTTP/1.1" 200 491 "-" "node" 0.000384 [2024-08-03T16:37:43Z INFO actix_web::middleware::logger] 172.25.0.6 "POST /indexes/bookmarks/documents?primaryKey=id HTTP/1.1" 202 139 "-" "node" 0.716857

Someone can help me pinpoint the root cause and fix it?

Originally created by @ant1fr on GitHub (Aug 3, 2024). Original GitHub issue: https://github.com/karakeep-app/karakeep/issues/342 I installed without issue Hoarder on my Synology NAS. Everything runs smoothly from mobile apps to AI tagging except for search. Each time I type a request, I get a "No bookmarks" result. No error on Chrome console. I tried a full reindexing without success. I checked the logs but didn't find anything strange. On worker logs, I see some errors but seem to be related to results already indexed `2024-08-03T16:37:47.157Z error: [search][289] search job failed: Error: Search task failed: internal: MDB_KEYEXIST: Key/data pair already exists. 2024-08-03T16:37:47.157Z info: [search][290] Attempting to index bookmark with id y33sf2l40vlvv842gukvmrix ... 2024-08-03T16:37:48.158Z error: [search][290] search job failed: Error: Search task failed: internal: MDB_KEYEXIST: Key/data pair already exists. 2024-08-03T16:37:48.159Z info: [search][291] Attempting to index bookmark with id yv6atehbadpa4576hui0xesi ... 2024-08-03T16:37:49.731Z error: [search][291] search job failed: Error: Search task failed: internal: MDB_KEYEXIST: Key/data pair already exists. 2024-08-03T16:37:49.732Z info: [search][292] Attempting to index bookmark with id zl8b06tao41w2k0kxo536jah ... 2024-08-03T16:37:50.817Z error: [search][292] search job failed: Error: Search task failed: internal: MDB_KEYEXIST: Key/data pair already exists.` On Meilisearch, I didn't find anything strange either : `[2024-08-03T16:37:41Z INFO actix_web::middleware::logger] 172.25.0.6 "GET /tasks/1416 HTTP/1.1" 200 491 "-" "node" 0.000398 [2024-08-03T16:37:42Z INFO actix_web::middleware::logger] 172.25.0.6 "POST /indexes/bookmarks/documents?primaryKey=id HTTP/1.1" 202 139 "-" "node" 0.363450 [2024-08-03T16:37:42Z INFO actix_web::middleware::logger] 172.25.0.6 "GET /tasks/1417 HTTP/1.1" 200 305 "-" "node" 0.000370 [2024-08-03T16:37:42Z INFO actix_web::middleware::logger] 172.25.0.6 "GET /tasks/1417 HTTP/1.1" 200 275 "-" "node" 0.000408 [2024-08-03T16:37:42Z INFO actix_web::middleware::logger] 172.25.0.6 "GET /tasks/1417 HTTP/1.1" 200 275 "-" "node" 0.000388 [2024-08-03T16:37:42Z INFO actix_web::middleware::logger] 172.25.0.6 "GET /tasks/1417 HTTP/1.1" 200 275 "-" "node" 0.000374 [2024-08-03T16:37:42Z INFO actix_web::middleware::logger] 172.25.0.6 "GET /tasks/1417 HTTP/1.1" 200 275 "-" "node" 0.000468 [2024-08-03T16:37:42Z INFO actix_web::middleware::logger] 172.25.0.6 "GET /tasks/1417 HTTP/1.1" 200 275 "-" "node" 0.000382 [2024-08-03T16:37:42Z INFO actix_web::middleware::logger] 172.25.0.6 "GET /tasks/1417 HTTP/1.1" 200 275 "-" "node" 0.000371 [2024-08-03T16:37:42Z INFO actix_web::middleware::logger] 172.25.0.6 "GET /tasks/1417 HTTP/1.1" 200 275 "-" "node" 0.000359 [2024-08-03T16:37:42Z INFO actix_web::middleware::logger] 172.25.0.6 "GET /tasks/1417 HTTP/1.1" 200 275 "-" "node" 0.000373 [2024-08-03T16:37:42Z INFO actix_web::middleware::logger] 172.25.0.6 "GET /tasks/1417 HTTP/1.1" 200 275 "-" "node" 0.000358 [2024-08-03T16:37:42Z INFO actix_web::middleware::logger] 172.25.0.6 "GET /tasks/1417 HTTP/1.1" 200 275 "-" "node" 0.000357 [2024-08-03T16:37:42Z INFO actix_web::middleware::logger] 172.25.0.6 "GET /tasks/1417 HTTP/1.1" 200 275 "-" "node" 0.000401 [2024-08-03T16:37:42Z INFO actix_web::middleware::logger] 172.25.0.6 "GET /tasks/1417 HTTP/1.1" 200 491 "-" "node" 0.000384 [2024-08-03T16:37:43Z INFO actix_web::middleware::logger] 172.25.0.6 "POST /indexes/bookmarks/documents?primaryKey=id HTTP/1.1" 202 139 "-" "node" 0.716857` Someone can help me pinpoint the root cause and fix it?
kerem closed this issue 2026-03-02 11:47:45 +03:00
Author
Owner

@MohamedBassem commented on GitHub (Aug 3, 2024):

@ant1fr can you try wiping the meillisearch directory, restating the container and then doing a reindex?

<!-- gh-comment-id:2267014769 --> @MohamedBassem commented on GitHub (Aug 3, 2024): @ant1fr can you try wiping the meillisearch directory, restating the container and then doing a reindex?
Author
Owner

@ant1fr commented on GitHub (Aug 3, 2024):

WOW! Never saw such a quick answer on Github!!

Stack properly stopped.
Meilisearch directory wiped.
Stack properly restarted.
Full reindexing

It works! Thanks.
Mind to share what went wrong?

<!-- gh-comment-id:2267031502 --> @ant1fr commented on GitHub (Aug 3, 2024): WOW! Never saw such a quick answer on Github!! Stack properly stopped. Meilisearch directory wiped. Stack properly restarted. Full reindexing It works! Thanks. Mind to share what went wrong?
Author
Owner

@MohamedBassem commented on GitHub (Aug 3, 2024):

haha glad it worked. Not sure exactly what's wrong, but I have seen meillisearch errors up like that before and the solution was to wipe it and re index it.

<!-- gh-comment-id:2267039542 --> @MohamedBassem commented on GitHub (Aug 3, 2024): haha glad it worked. Not sure exactly what's wrong, but I have seen meillisearch errors up like that before and the solution was to wipe it and re index it.
Author
Owner

@ant1fr commented on GitHub (Aug 3, 2024):

Thanks! I take the opportunity to thank you for this amazing app!

<!-- gh-comment-id:2267042789 --> @ant1fr commented on GitHub (Aug 3, 2024): Thanks! I take the opportunity to thank you for this amazing app!
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/karakeep#221
No description provided.