Skip to content

ChainServer app cannot connect to Milvus container #67

@ghost

Description

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions