Skip to content

Milvus failed to connect to the default network defined in compose-rendered.yaml  #74

@liatamax

Description

@liatamax

Hello,

I have a NVWB local installation on a Ubuntu 22.04 Desktop machine with 1x L40S GPU and the latest CUDA 12.8 and GPU driver 570.124.06

I cloned the latest nim-anywhere on 3/4 and can start all applications successfully.

However, after a server reboot, the Environment failed to start, even after a clean rebuild.

Below is the error from the Output/Compose window.

Container nim-anywhere-nvwb-init-service-1 Created
Container nim-anywhere-redis-1 Created
Container nim-anywhere-milvus-1 Created
Attaching to milvus-1, nvwb-init-service-1, redis-1

nvwb-init-service-1 exited with code 0
Gracefully stopping... (press Ctrl+C again to force)
Error response from daemon: network 26e2d4ff4f36db70b6f2ac72991959c28a8b4df190d8e6dd7a345f0100a04c79 not found

From Output/Chain Server window:

INFO: Will watch for changes in these directories: ['/project/code']
INFO: Uvicorn running on http://0.0.0.0:3030 (Press CTRL+C to quit)
INFO: Started reloader process [275] using WatchFiles
2025-03-05 19:37:02,777 [ERROR][_create_connection]: Failed to create new connection using: cc45c2256b0e4b4dad5f6310ea8864e8 (milvus_client.py:918)
Process SpawnProcess-1:
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1050, in _gcd_import
File "", line 1027, in _find_and_load
File "", line 1006, in _find_and_load_unlocked
File "", line 688, in _load_unlocked
File "", line 883, in exec_module
File "", line 241, in _call_with_frames_removed
File "/project/code/chain_server/server.py", line 27, in
from .chain import my_chain # type: ignore
File "/project/code/chain_server/chain.py", line 41, in
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 66, in init
self._using = self._create_connection(
File "/home/workbench/.local/lib/python3.10/site-packages/pymilvus/milvus_client/milvus_client.py", line 919, in _create_connection
raise ex from ex
File "/home/workbench/.local/lib/python3.10/site-packages/pymilvus/milvus_client/milvus_client.py", line 916, 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 461, 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 411, 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 152, 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)>

The error can be replicated using the upload-pdfs jupyter notebook.

from langchain_milvus.vectorstores.milvus import Milvus
print(config.milvus);
#url='http://milvus:19530' collection_name='collection_1'

vector_store = Milvus(
embedding_function=embedding_model,
connection_args={"uri": config.milvus.url},
collection_name=config.milvus.collection_name,
auto_id=True,
)

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