Unable to access Milvus from a non-VM macOS system
Issue: If you try to access Milvus through VPN from a non-VM macOS system that uses pymilvus SDK, the connection might fail.
watsonx.data on IBM Software Hub
watsonx.data Developer edition
Symptoms
The connection might fail with the following error:"MilvusException: (code=2, message=Fail connecting to server on your-host-name:443, illegal connection params or server unavailable)>".
Resolving the problem
Try the following to resolve the issue:
- Check whether the provisioned Milvus instance was deleted and a new one was created. In that case, the GRPC server and host URL might have changed.
- Check whether the saved certificate in the system is a GRPC certificate and not an
https
certificate. - If step 1 and step 2 are verified as correct, add the following lines to your
.pynb
notebook or Python script and try again:import os
os.environ["GRPC_DNS_RESOLVER"] = "native"
import os os.environ["GRPC_DNS_RESOLVER"] = "native" connections.connect( alias='<db name>', host="<host>", port=443, secure=True, server_pem_path="<cert_path>", server_name="<host>", user="<username>", password="<password>")