Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pymilvus fails to connect / instantiate a db server locally on AWS SageMaker #947

Open
kevalshah90 opened this issue Sep 18, 2024 · 0 comments

Comments

@kevalshah90
Copy link

kevalshah90 commented Sep 18, 2024

MilvusLite doesn't work / start the server locally. Documentation suggests that local uri should start the server automatically, but it fails. Getting the same exception with llama_index.vector_stores.MilvusVectorStore

Environment: AWS SageMaker Notebook instance.

versions:

pymilvus 2.4.6
milvus-lite 2.4.10
from pymilvus import MilvusClient

client = MilvusClient("./milvus.db")


/home/ec2-user/anaconda3/envs/pytorch_p310/lib/python3.10/site-packages/milvus_lite/lib/milvus: /lib64/libc.so.6: version `GLIBC_2.28' not found (required by /home/ec2-user/anaconda3/envs/pytorch_p310/lib/python3.10/site-packages/milvus_lite/lib/milvus)
Failed to create new connection using: 5aef7778d6df45ef9ddf553a79894057

File ~/anaconda3/envs/pytorch_p310/lib/python3.10/site-packages/pymilvus/client/grpc_handler.py:150, in GrpcHandler._wait_for_channel_ready(self, timeout)
    148     self._setup_identifier_interceptor(self._user, timeout=timeout)
    149 except grpc.FutureTimeoutError as e:
--> 150     raise MilvusException(
    151         code=Status.CONNECT_FAILED,
    152         message=f"Fail connecting to server on {self._address}, illegal connection params or server unavailable",
    153     ) from e
    154 except Exception as e:
    155     raise e from e

MilvusException: <MilvusException: (code=2, message=Fail connecting to server on unix:/tmp/tmpc4s187rx_milvus.db.sock, illegal connection params or server unavailable)>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant