You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Milvus image fails to spin up and thus fails to authenticate.
To Reproduce
This script should suffice:
fromtestcontainers.core.containerimportDockerContainerfromtestcontainers.core.waiting_utilsimportwait_for_logsfrompymilvusimportMilvusClient# MILVUS_CONTAINER = "milvusdb/milvus:v2.4.4"MILVUS_CONTAINER="milvusdb/milvus:latest"deftest_container(CONTAINER_TAG, Container):
withContainer(CONTAINER_TAG) ascontainer:
container.start()
_=wait_for_logs(container, "", timeout=30)
print("Hello from Docker (Milvus)!")
client=MilvusClient(uri="http://localhost:19530", token="usernamae:password")
print(client.server_status())
# test_container(MILVUS_CONTAINER, MilvusContainer) # MilvusContainer gave me other issuestest_container(MILVUS_CONTAINER, DockerContainer)
Will result in:
pymilvus.exceptions.MilvusException: <MilvusException: (code=2, message=Fail connecting to server on localhost:19530, illegal connection params or server unavailable)>
Runtime environment
# Get the operating system information (on a unix os).
$ uname -a
>Darwin farceo-mac 24.1.0 Darwin Kernel Version 24.1.0: Thu Oct 10 21:03:15 PDT 2024; root:xnu-11215.41.3~2/RELEASE_ARM64_T6000 arm64
# Get the python version.
$ python --version
>Python 3.11.10
Get the docker version and other docker information.
Describe the bug
The Milvus image fails to spin up and thus fails to authenticate.
To Reproduce
This script should suffice:
Will result in:
Runtime environment
Get the docker version and other docker information.
Get all python packages.
$ pip freeze | grep testcontainers
The text was updated successfully, but these errors were encountered: