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

Not able to login! #613

Open
shinebarbhuiya opened this issue Aug 12, 2024 · 6 comments
Open

Not able to login! #613

shinebarbhuiya opened this issue Aug 12, 2024 · 6 comments

Comments

@shinebarbhuiya
Copy link

Describe the bug:
Not able to login to Attu. I configured everything correctly but no luck.

I tested the connection using a simple pythong script and it's working without any issues.

from pymilvus import connections

def connect_to_milvus():
try:
connections.connect(host="my_milvus_ip", port="19530")
print("Connected to milvus")
except Exception as e:
print("Failed to connect to milvus")
print(e)

if name == "main":
connect_to_milvus()

The experience was regrettable! Wasted 1 hour to figure out what went wrong, but everything is perfect from my side.

Steps to reproduce:
1.
2.
3.

Attu version:
2.4.6

Attu version:

@shanghaikid
Copy link
Collaborator

docker or app?

@abandon888
Copy link

same as me,I use docker run

@shanghaikid
Copy link
Collaborator

same as me,I use docker run

what is your address? localhost:19530? 127.0.0.1:19530?

Please enter an address that can be accessible from the docker container.

@abandon888
Copy link

same as me,I use docker run

what is your address? localhost:19530? 127.0.0.1:19530?

Please enter an address that can be accessible from the docker container.

I try all,but get error "No connection established".
I also try to use birdwatcher,is also get error: cannot connect to etcd with addr: 127.0.0.1:2379 context deadline exceeded context deadline exceeded

@shanghaikid
Copy link
Collaborator

ok, let me explain, hope you can understand this.

  1. You open attu from your browser, then type milvus address, lets say 10.10.10.10, click the connect button
  2. the browser send a request -> attu server with the milvus address(10.10.10.10), which is the container
  3. the attu server should be able to visit the milvus(10.10.10.10), but 10.10.10.10 just an ip address, the container has its own networking, if 10.10.10.10 is not a WAN address, it can not be visited from the container.

so all you need to do is confirm that the address you entering is accessible from the attu container inside.

@abandon888
Copy link

ok, let me explain, hope you can understand this.

  1. You open attu from your browser, then type milvus address, lets say 10.10.10.10, click the connect button
  2. the browser send a request -> attu server with the milvus address(10.10.10.10), which is the container
  3. the attu server should be able to visit the milvus(10.10.10.10), but 10.10.10.10 just an ip address, the container has its own networking, if 10.10.10.10 is not a WAN address, it can not be visited from the container.

so all you need to do is confirm that the address you entering is accessible from the attu container inside.

Thanks! I solve it following #161

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants