attu
attu copied to clipboard
I can't log into the system
Discussed in https://github.com/zilliztech/attu/discussions/159
Originally posted by xiao12mm December 23, 2022
the code:
docker run -p 8000:3000 -e HOST_URL=http://{ your machine IP }:8000 -e MILVUS_URL={your machine IP}:19530 zilliz/attu:latest
I changed the IP address, so I can open the login page, but I can't log in.
What are the default user name and password?
If you open auth in milvus.yml, your Default user is root, password is Milvus. related doc: https://milvus.io/docs/authenticate.md#Create-an-authenticated-user. If default auth can't solve your problem, could you please upload a screenshot of the error? @xiao12mm
Same problem here, even with default user and password. On both app and docker attu 2.2.2
Version 2.1 cannot log in after using the default user name and password
Error: Error: 14 UNAVAILABLE: No connection established
at /app/node_modules/@zilliz/milvus2-sdk-node/dist/utils/index.js:28:15
at processTicksAndRejections (internal/process/task_queues.js:95:5) {
expose: true,
statusCode: 400,
status: 400
}
POST /api/v1/milvus/connect 400 Error: Error: 14 UNAVAILABLE: No connection established
POST undefined /api/v1/milvus/connect undefined ms @ Mon, 06 Mar 2023 09:52:05 GMT ::ffff:101.207.139.251 from undefined Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.92 Safari/537.36
The user name is root and the password is empty
I modified the port ,can successfully log in after installing ATTU in the windows, but cannot log in after installing with Docker Composite.
this is request
address: "--------:19531"
password: ""
ssl: false
username: "root"
The error is the same as above
登录没反应
same issues here log info as follows:
Error: Error: 14 UNAVAILABLE: No connection established
at /app/node_modules/@zilliz/milvus2-sdk-node/dist/utils/index.js:28:15
at processTicksAndRejections (internal/process/task_queues.js:95:5) {
expose: true,
statusCode: 400,
status: 400
}
POST /api/v1/milvus/connect 400 Error: Error: 14 UNAVAILABLE: No connection established
POST 400 /api/v1/milvus/connect 77.849 ms @ Tue, 16 May 2023 10:03:43 GMT ::ffff:172.17.0.1 from undefined Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/113.0.0.0 Safari/537.36
登不进去,点击连接报400 Bad Request
same issues here 同样的问题在这里 log info as follows:日志信息如下:
Error: Error: 14 UNAVAILABLE: No connection established at /app/node_modules/@zilliz/milvus2-sdk-node/dist/utils/index.js:28:15 at processTicksAndRejections (internal/process/task_queues.js:95:5) { expose: true, statusCode: 400, status: 400 } POST /api/v1/milvus/connect 400 Error: Error: 14 UNAVAILABLE: No connection established POST 400 /api/v1/milvus/connect 77.849 ms @ Tue, 16 May 2023 10:03:43 GMT ::ffff:172.17.0.1 from undefined Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/113.0.0.0 Safari/537.36
Me too, the same problem can be reproduced here.
My milvus runs on my own server through docker compose. I have confirmed that I have enabled the firewall on port 19530 of the server, and confirmed that it can be connected through nc -vz <my server host> 19530
.
what's your milvus version?
If you running attu from docker, the ip or address you entered into attu's login page, it should be accessible from attu's docker network.
- You should use a specific version, such as v2.2.5, instead of latest
- Check firewall or security group policies
登录没反应
having same issue ?
Some questions:
- What's your milvus version?
- What's your attu version?
- docker or standalone application ?
Some questions:
- What's your milvus version?
- What's your attu version?
- docker or standalone application ?
hi,
i solved this my self, i was adding attu in milvus bootcamp reverse image search demo , reading from this page https://milvus.io/docs/attu_install-docker.md , as this page do not mention network line for docker compose, i added these lines as it is and it was not working!, now i added network line in the docker compose file it works. here is my fix if it help a newbie , if you have a default network this line is not needed . line added
networks:
app_net:
ipv4_address: 172.16.238.14
working attu block for reverse search demo
attu:
container_name: attu
image: zilliz/attu:v2.2.7
networks:
app_net:
ipv4_address: 172.16.238.14
environment:
MILVUS_URL: milvus-standalone:19530
ports:
- "8000:3000"
depends_on:
- "standalone"
楼上正解, 如果添加了networks配置, 要在一个网关内配置ip
services:
etcd:
container_name: milvus-etcd
image: quay.io/coreos/etcd:v3.5.5
environment:
- ETCD_AUTO_COMPACTION_MODE=revision
- ETCD_AUTO_COMPACTION_RETENTION=1000
- ETCD_QUOTA_BACKEND_BYTES=4294967296
- ETCD_SNAPSHOT_COUNT=50000
volumes:
- ${DOCKER_VOLUME_DIRECTORY:-.}/volumes/etcd:/etcd
command: etcd -advertise-client-urls=http://127.0.0.1:2379 -listen-client-urls http://0.0.0.0:2379 --data-dir /etcd
minio:
container_name: milvus-minio
image: minio/minio:RELEASE.2023-03-20T20-16-18Z
environment:
MINIO_ACCESS_KEY: minioadmin
MINIO_SECRET_KEY: minioadmin
volumes:
- ${DOCKER_VOLUME_DIRECTORY:-.}/volumes/minio:/minio_data
command: minio server /minio_data
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:9000/minio/health/live"]
interval: 30s
timeout: 20s
retries: 3
standalone:
container_name: milvus-standalone
image: milvusdb/milvus:v2.2.12
command: ["milvus", "run", "standalone"]
environment:
ETCD_ENDPOINTS: etcd:2379
MINIO_ADDRESS: minio:9000
volumes:
- ${DOCKER_VOLUME_DIRECTORY:-.}/volumes/milvus:/var/lib/milvus
ports:
- "19530:19530"
- "9091:9091"
depends_on:
- "etcd"
- "minio"
attu:
container_name: attu
image: zilliz/attu:v2.2.7
environment:
MILVUS_URL: milvus-standalone:19530
ports:
- "8000:3000"
depends_on:
- "standalone"
this is my docker-compose.yml, hope can help you !
services: etcd: container_name: milvus-etcd image: quay.io/coreos/etcd:v3.5.5 environment: - ETCD_AUTO_COMPACTION_MODE=revision - ETCD_AUTO_COMPACTION_RETENTION=1000 - ETCD_QUOTA_BACKEND_BYTES=4294967296 - ETCD_SNAPSHOT_COUNT=50000 volumes: - ${DOCKER_VOLUME_DIRECTORY:-.}/volumes/etcd:/etcd command: etcd -advertise-client-urls=http://127.0.0.1:2379 -listen-client-urls http://0.0.0.0:2379 --data-dir /etcd minio: container_name: milvus-minio image: minio/minio:RELEASE.2023-03-20T20-16-18Z environment: MINIO_ACCESS_KEY: minioadmin MINIO_SECRET_KEY: minioadmin volumes: - ${DOCKER_VOLUME_DIRECTORY:-.}/volumes/minio:/minio_data command: minio server /minio_data healthcheck: test: ["CMD", "curl", "-f", "http://localhost:9000/minio/health/live"] interval: 30s timeout: 20s retries: 3 standalone: container_name: milvus-standalone image: milvusdb/milvus:v2.2.12 command: ["milvus", "run", "standalone"] environment: ETCD_ENDPOINTS: etcd:2379 MINIO_ADDRESS: minio:9000 volumes: - ${DOCKER_VOLUME_DIRECTORY:-.}/volumes/milvus:/var/lib/milvus ports: - "19530:19530" - "9091:9091" depends_on: - "etcd" - "minio" attu: container_name: attu image: zilliz/attu:v2.2.7 environment: MILVUS_URL: milvus-standalone:19530 ports: - "8000:3000" depends_on: - "standalone"
this is my docker-compose.yml, hope can help you !
This works! Make sure to use root as the username.
http://10.224.0.222:8000/#/connect
Click connect no response, dockers log below
container info:
How to solve it?
http://10.224.0.222:8000/#/connect
Click connect no response, dockers log below
container info:
How to solve it?
make sure the ip 10.224.0.222
can be accessible from the attu docker.
http://10.224.0.222:8000/#/connect
Click connect no response, dockers log below
container info:
How to solve it?
make sure the ip
10.224.0.222
can be accessible from the attu docker.
10.224.0.222 is accessible in attu docker
Accessing another url results in the following
http://10.224.0.222:8000/api/v1/healthy
docker logs:
http://10.224.0.222:8000/#/connect
Click connect no response, dockers log below
container info:
How to solve it?
make sure the ip
10.224.0.222
can be accessible from the attu docker.10.224.0.222 is accessible in attu docker
Accessing another url results in the following http://10.224.0.222:8000/api/v1/healthy
docker logs:
I don't have time to investigate this problem , and your attu & milvus is quite old, please upgrade both of them.
如果出现Error: Error: 14 UNAVAILABLE: No connection established,这可能是使用wsl连接milvus,因为attu和milvus不再同一个网络下,将attu添加到docker-compose.yml然后再运行docker-compose即可,下面是我将attu添加到docker-compose.yml的部分代码 standalone: container_name: milvus-standalone image: milvusdb/milvus:v2.1.4 command: ["milvus", "run", "standalone"] environment: ETCD_ENDPOINTS: etcd:2379 MINIO_ADDRESS: minio:9000 volumes: - ${DOCKER_VOLUME_DIRECTORY:-.}/volumes/milvus:/var/lib/milvus ports: - "19530:19530" - "9091:9091" depends_on: - "etcd" - "minio"
attu: container_name: attu image: zilliz/attu:v2.2.2 environment: MILVUS_URL: milvus-standalone:19530 ports: - "8000:3000" depends_on: - "standalone"
networks: default: name: milvus