milvus-io / milvus

A cloud-native vector database, storage for next generation AI applications
https://milvus.io
Apache License 2.0
31.05k stars 2.95k forks source link

[Bug]: can't make the first connection #23460

Closed E7ANA closed 1 year ago

E7ANA commented 1 year ago

Is there an existing issue for this?

Environment

- Milvus version: v2.2.5
- Deployment mode(standalone or cluster):standalone
- MQ type(rocksmq, pulsar or kafka):    
- SDK version(e.g. pymilvus v2.0.0rc2):pymilvus 2.2.5
- OS(Ubuntu or CentOS): windows
- CPU/Memory: 
- GPU: 
- Others:

Current Behavior

when I'm trying to connect for the first time with this code: from pymilvus import connections connections.connect( alias="default", host='localhost', port='19530' )

I get this error messge: raise MilvusException(Status.CONNECT_FAILED, pymilvus.exceptions.MilvusException: <MilvusException: (code=2, message=Fail connecting to server on localhost:19530. Timeout)>

I opened this port at my firewall, what else should I do? thanks.

Expected Behavior

It should connect to the server

Steps To Reproduce

No response

Milvus Log

No response

Anything else?

No response

Cheung7788 commented 1 year ago

Try using proxy ip instead of localhost

yanliang567 commented 1 year ago

/assign @locustbaby any ideas?

/unassign

locustbaby commented 1 year ago

@E7ANA Hi, How did you install the milvus?

E7ANA commented 1 year ago

With mibikube and docker

locustbaby commented 1 year ago

https://milvus.io/docs/install_standalone-helm.md#Connect-to-Milvus Did you install it with operator/helm? Actually you can connect to milvus by same way cause they are all installed in k8s

HongLouyemeng commented 1 year ago

https://milvus.io/docs/install_standalone-helm.md#Connect-to-Milvus 你是用operator/helm安装的吗?其实你可以用同样的方式连接到milvus,因为它们都安装在k8s中 我得到了相同的问题。。

stale[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. Rotten issues close after 30d of inactivity. Reopen the issue with /reopen.

stale[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. Rotten issues close after 30d of inactivity. Reopen the issue with /reopen.