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

[Feature]: 使用cenos 无法连接到milvus server #20009

Open
1 task
shuoshuo09 opened this issue Oct 24, 2022 · 0 comments
Open
1 task

[Feature]: 使用cenos 无法连接到milvus server #20009

shuoshuo09 opened this issue Oct 24, 2022 · 0 comments
Assignees
Labels
kind/feature Issues related to feature request from users

Comments

@shuoshuo09
Copy link

shuoshuo09 commented Oct 24, 2022

Is there an existing issue for this?

  • I have searched the existing issues

Is your feature request related to a problem? Please describe.

在centos系统中,执行 sudo yum install https://github.com/milvus-io/milvus/releases/download/v2.1.4/milvus-2.1.4-1.el7.x86_64.rpm ,然后执行sudo systemctl start milvus 成功启动 但是使用 connections.connect(host='127.0.0.1', port='19530') 无法连接上

Traceback (most recent call last):
File "/Users/d1dx/opt/anaconda3/envs/milvus02/lib/python3.8/site-packages/pymilvus/client/grpc_handler.py", line 115, in _wait_for_channel_ready
grpc.channel_ready_future(self._channel).result(timeout=3)
File "/Users/d1dx/opt/anaconda3/envs/milvus02/lib/python3.8/site-packages/grpc/_utilities.py", line 139, in result
self._block(timeout)
File "/Users/d1dx/opt/anaconda3/envs/milvus02/lib/python3.8/site-packages/grpc/_utilities.py", line 85, in _block
raise grpc.FutureTimeoutError()
grpc.FutureTimeoutError

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/Users/d1dx/Desktop/项目资料/宝马缺陷检测/examples-0.7/learn_.py", line 11, in
connections.connect(host='127.0.0.1', port='19530')
File "/Users/d1dx/opt/anaconda3/envs/milvus02/lib/python3.8/site-packages/pymilvus/orm/connections.py", line 262, in connect
connect_milvus(**kwargs, password=password)
File "/Users/d1dx/opt/anaconda3/envs/milvus02/lib/python3.8/site-packages/pymilvus/orm/connections.py", line 233, in connect_milvus
gh._wait_for_channel_ready()
File "/Users/d1dx/opt/anaconda3/envs/milvus02/lib/python3.8/site-packages/pymilvus/client/grpc_handler.py", line 118, in _wait_for_channel_ready
raise MilvusException(Status.CONNECT_FAILED, f'Fail connecting to server on {self._address}. Timeout')
pymilvus.exceptions.MilvusException: <MilvusException: (code=2, message=Fail connecting to server on 127.0.0.1:19530. Timeout)>

Describe the solution you'd like.

是不是端口号错了 我的milvus服务是正常启动起来的

Describe an alternate solution.

可能是需要其他的地址和端口号

Anything else? (Additional Context)

@shuoshuo09 shuoshuo09 added the kind/feature Issues related to feature request from users label Oct 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/feature Issues related to feature request from users
Projects
None yet
Development

No branches or pull requests

2 participants