hoarder-app / hoarder

A self-hostable bookmark-everything app (links, notes and images) with AI-based automatic tagging and full text search
https://hoarder.app
GNU Affero General Public License v3.0
4.72k stars 156 forks source link

HELP : Search not working. #342

Closed ant1fr closed 2 months ago

ant1fr commented 2 months ago

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?

MohamedBassem commented 2 months ago

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

ant1fr commented 2 months ago

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?

MohamedBassem commented 2 months ago

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.

ant1fr commented 2 months ago

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