Runtime error: MilvusException: (code=2, message=Fail connecting to server on 127.0.0.1:19530. Timeout
I am trying to host a gradio app.  → refer herehuggingface.comilvuspython - a Hugging Face Space by chandrakalagowdaDiscover amazing ML apps made by the communityPlease note the app requires also a docker compose.yml etc… which are all uploaded within the files on huggingface space.I get the following error.The app runs well locally on my computer. I am not sure how to debug this error. Please help.Runtime errorTraceback (most recent call last):File “/home/user/.local/lib/python3.10/site-packages/pymilvus/client/grpc_handler.py”, line 114, in _wait_for_channel_readygrpc.channel_ready_future(self._channel).result(timeout=timeout)File “/home/user/.local/lib/python3.10/site-packages/grpc/_utilities.py”, line 151, in resultself._block(timeout)File “/home/user/.local/lib/python3.10/site-packages/grpc/_utilities.py”, line 97, in _blockraise grpc.FutureTimeoutError()grpc.FutureTimeoutErrorThe above exception was the direct cause of the following exception:Traceback (most recent call last):File “/home/user/app/img2txt.py”, line 40, incollection = create_milvus_collection(‘text_image_search’, 512)File “/home/user/app/img2txt.py”, line 19, in create_milvus_collectionconnections.connect(host=‘127.0.0.1’, port=‘19530’)File “/home/user/.local/lib/python3.10/site-packages/pymilvus/orm/connections.py”, line 303, in connectconnect_milvus(**kwargs, user=user, password=password)File “/home/user/.local/lib/python3.10/site-packages/pymilvus/orm/connections.py”, line 274, in connect_milvusgh._wait_for_channel_ready(timeout=timeout)File “/home/user/.local/lib/python3.10/site-packages/pymilvus/client/grpc_handler.py”, line 117, in _wait_for_channel_readyraise MilvusException(Status.CONNECT_FAILED,pymilvus.exceptions.MilvusException: <MilvusException: (code=2, message=Fail connecting to server on 127.0.0.1:19530. Timeout)>
2023-07-02T05:23:43Z
@radamesPlease let me know where I have to run docker compose if this error is related to docker
2023-07-04T04:24:21Z
hi@chandrakalagowda,We currently don’t support docker compose on Spaces, so if you’re planning to run your Space app with another extra service you’ll need an extra step with a bash script to run your multiple services on the same container.Please read more about Spaces Docker herehuggingface.coDocker SpacesWe’re on a journey to advance and democratize artificial intelligence through open source and open science.I also notice on yourREADME.mdthe sdk set togradionot  Dockerfile, so I’m not sure if you’re trying to run a Gradio apphuggingface.coREADME.md · chandrakalagowda/milvuspython at mainWe’re on a journey to advance and democratize artificial intelligence through open source and open science.For a multi-service Dockerfile example here is a complete Spacehuggingface.coradames/nginx-gradio-reverse-proxy at mainWe’re on a journey to advance and democratize artificial intelligence through open source and open science.
2023-07-04T05:38:21Z
Hello@radames,Thank you so much for the pointers. My code img2txt.py,uses gradio for deploying the app. The code also uses milvus vector database to do a “text to image” search. Locally on my computer, this was achieved using a standalone installation using docker-compose.yml. (see herehttps://milvus.io/docs/install_standalone-docker.md).  Any pointers to how to enable my code to access milvus vector database without docker-compose.yml on huggingspace will be helpful. Do you have examples where a gradio app uses milvus vector database in the code.  I will look for the same meanwhile.Thank you for your time.
2023-07-04T06:10:25Z
hi@chandrakalagowda,Yes I understand now, maybe you can try the Lite version for now?milvus.ioGet Started with Milvus LiteLearn how to install, configure, and use Milvus Lite v2.2.x.
2023-07-04T08:18:19Z
Yes.  Thats good for a start.Thank you
2023-09-20T15:48:35Z
I just want to check to see if using Milvus Lite works for you?