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

ChainServer app cannot connect to Milvus container #67

Open
stiebels opened this issue Dec 9, 2024 · 0 comments
Open

ChainServer app cannot connect to Milvus container #67

stiebels opened this issue Dec 9, 2024 · 0 comments

Comments

@stiebels
Copy link

stiebels commented Dec 9, 2024

Hello,

Using podman on MacOS, the ChainServer fails to reach the Milvus container (Milvius container is up and running). See the error below from the ChainServer logs.

  File "/project/code/chain_server/server.py", line 27, in <module>
    from .chain import my_chain  # type: ignore
  File "/project/code/chain_server/chain.py", line 40, in <module>
    vector_store = Milvus(
  File "/home/workbench/.local/lib/python3.10/site-packages/langchain_milvus/vectorstores/milvus.py", line 384, in __init__
    self._milvus_client = MilvusClient(
  File "/home/workbench/.local/lib/python3.10/site-packages/pymilvus/milvus_client/milvus_client.py", line 60, in __init__
    self._using = self._create_connection(
  File "/home/workbench/.local/lib/python3.10/site-packages/pymilvus/milvus_client/milvus_client.py", line 728, in _create_connection
    raise ex from ex
  File "/home/workbench/.local/lib/python3.10/site-packages/pymilvus/milvus_client/milvus_client.py", line 725, in _create_connection
    connections.connect(using, user, password, db_name, token, uri=uri, **kwargs)
  File "/home/workbench/.local/lib/python3.10/site-packages/pymilvus/orm/connections.py", line 449, in connect
    connect_milvus(**kwargs, user=user, password=password, token=token, db_name=db_name)
  File "/home/workbench/.local/lib/python3.10/site-packages/pymilvus/orm/connections.py", line 400, in connect_milvus
    gh._wait_for_channel_ready(timeout=timeout)
  File "/home/workbench/.local/lib/python3.10/site-packages/pymilvus/client/grpc_handler.py", line 150, in _wait_for_channel_ready
    raise MilvusException(
pymilvus.exceptions.MilvusException: <MilvusException: (code=2, message=Fail connecting to server on milvus:19530, illegal connection params or server unavailable)>

Is there any setting or additional docker network configuration necessary that I may have missed?

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