example-multimodal-fashion-search icon indicating copy to clipboard operation
example-multimodal-fashion-search copied to clipboard

The backend-search docker failed to connect to the index db

Open jpzhangvincent opened this issue 3 years ago • 3 comments

I ran the docker-compose up with the rebuilt docker images but got the error Screen Shot 2022-08-29 at 9 40 07 AM Screen Shot 2022-08-29 at 10 00 30 AM

Hence the frontend doesn't work either since it would fail to search.

jpzhangvincent avatar Aug 29 '22 16:08 jpzhangvincent

Can you:

  • be sure indexer is enabled in docker-compose.yml
  • run docker-compose up --force-recreate --build
  • then while that's running:
    • docker exec -it fashion_search-backend-index-1 sh
    • run du -hs workspace a few times to see if the number changes

This will let us be sure the indexer is creating the index in the first place

Also, while it's indexing and you're still shelled in, try touch workspace/foo. Then see if that exists when you shell into the search backend via docker exec -it fashion_search-backend-search-1 sh

That will let us see if anything is being reflected between containers

alexcg1 avatar Aug 31 '22 08:08 alexcg1

Again I have to implement workarounds to launch the docker - I created two PRs.

But after that, it seems all the dockers are launched and the indexing step ran successfully. No error in the backend-search docker. But when I tried the frontend end, I still got the error on the 'search' endpoint from the AnnLiteindexer. Any pointers on how to debug? Screen Shot 2022-09-19 at 11 20 44 PM

jpzhangvincent avatar Sep 20 '22 06:09 jpzhangvincent

Again I have to implement workarounds to launch the docker - I created two PRs.

I just merged one. I think the other is for CLIPencoder, which I tagged the relevant folks in. Let's see if that gets merged and if your error goes away.

alexcg1 avatar Sep 20 '22 09:09 alexcg1