milvus: can't get the connection to the docker server

Please state your issue using the following template and, most importantly, in English.

Describe the bug A clear and concise description of what the bug is.

Hello ,

I got an issue when i try to run the example.py script to test milvus server. I deploy milvus as container on port 19121, and i try to execute the script from the same machine with (Host=Ip address of the host machine and port =19121), but ii got this issue. I used pymilvus 1.0.1 version, python 3.6.9 version ########################################################################## Retry to connect server 127.0.0.1:19121 failed. Traceback (most recent call last): File “/home/azureuser/.local/lib/python3.6/site-packages/milvus/client/grpc_handler.py”, line 207, in ping ft.result(timeout=timeout) File “/home/azureuser/.local/lib/python3.6/site-packages/grpc/_utilities.py”, line 140, in result self._block(timeout) File “/home/azureuser/.local/lib/python3.6/site-packages/grpc/_utilities.py”, line 86, in _block raise grpc.FutureTimeoutError() grpc.FutureTimeoutError

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File “example.py”, line 127, in <module> main() File “example.py”, line 27, in main milvus = Milvus(_HOST, _PORT) File “/home/azureuser/.local/lib/python3.6/site-packages/milvus/client/stub.py”, line 97, in init self._pool = SingletonThreadPool(pool_uri, **pool_kwargs) File “/home/azureuser/.local/lib/python3.6/site-packages/milvus/client/pool.py”, line 226, in init self._prepare() File “/home/azureuser/.local/lib/python3.6/site-packages/milvus/client/pool.py”, line 231, in _prepare conn.client().ping() File “/home/azureuser/.local/lib/python3.6/site-packages/milvus/client/grpc_handler.py”, line 218, in ping raise NotConnectError(‘Fail connecting to server on {}. Timeout’.format(self._uri)) milvus.client.exceptions.NotConnectError: Fail connecting to server on 127.0.0.1:19121. Timeout ########################################################################

Method of installation

  • Docker/cpu

  • Milvus version (master or released version)

Configuration file Settings you made in server_config.yaml

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 16 (8 by maintainers)

Most upvoted comments

For the “Segmentation fault”, please refer https://github.com/milvus-io/milvus/issues/5377 The grpcio release its new version 1.38.0 on May 21, 2021. This version is incompatible to milvus grpc version.

Milvus grpc is forked from grpc official project in Dec, 2019. https://github.com/milvus-io/grpc-milvus It is customized for some special reason. It seems this version can compatible grpcio from 1.22.0 to 1.37.0.