attu icon indicating copy to clipboard operation
attu copied to clipboard

I can't log into the system

Open ingale726 opened this issue 2 years ago • 23 comments

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?

ingale726 avatar Dec 25 '22 15:12 ingale726

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

nameczz avatar Jan 09 '23 04:01 nameczz

Same problem here, even with default user and password. On both app and docker attu 2.2.2

lpasselin avatar Jan 12 '23 20:01 lpasselin

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

echo-initial avatar Mar 06 '23 09:03 echo-initial

The user name is root and the password is empty

ingale726 avatar Mar 06 '23 10:03 ingale726

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

echo-initial avatar Mar 06 '23 10:03 echo-initial

登录没反应

wilac-pv avatar May 06 '23 01:05 wilac-pv

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

forestmgy avatar May 16 '23 10:05 forestmgy

登不进去,点击连接报400 Bad Request

LinightKira avatar Jun 13 '23 03:06 LinightKira

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.

Ximu-Luya avatar Jun 15 '23 02:06 Ximu-Luya

what's your milvus version?

shanghaikid avatar Jun 16 '23 01:06 shanghaikid

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.

shanghaikid avatar Jun 16 '23 01:06 shanghaikid

  1. You should use a specific version, such as v2.2.5, instead of latest
  2. Check firewall or security group policies

echo-initial avatar Jun 16 '23 03:06 echo-initial

登录没反应

having same issue ?

geminigeek avatar Jul 05 '23 20:07 geminigeek

Some questions:

  • What's your milvus version?
  • What's your attu version?
  • docker or standalone application ?

shanghaikid avatar Jul 06 '23 01:07 shanghaikid

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"

geminigeek avatar Jul 06 '23 09:07 geminigeek

楼上正解, 如果添加了networks配置, 要在一个网关内配置ip

renzhichaos avatar Aug 03 '23 16:08 renzhichaos


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 !

winqihe avatar Sep 01 '23 02:09 winqihe


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.

wisdomtooth546 avatar Sep 27 '23 14:09 wisdomtooth546

http://10.224.0.222:8000/#/connect image Click connect no response, dockers log below image

container info: image

How to solve it?

ycqu avatar Oct 17 '23 03:10 ycqu

http://10.224.0.222:8000/#/connect image Click connect no response, dockers log below image

container info: image

How to solve it?

make sure the ip 10.224.0.222 can be accessible from the attu docker.

shanghaikid avatar Oct 17 '23 03:10 shanghaikid

http://10.224.0.222:8000/#/connect image Click connect no response, dockers log below image container info: image 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 image

Accessing another url results in the following http://10.224.0.222:8000/api/v1/healthy image docker logs: image

ycqu avatar Oct 17 '23 03:10 ycqu

http://10.224.0.222:8000/#/connect image Click connect no response, dockers log below image container info: image 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 image

Accessing another url results in the following http://10.224.0.222:8000/api/v1/healthy image docker logs: image

I don't have time to investigate this problem , and your attu & milvus is quite old, please upgrade both of them.

shanghaikid avatar Oct 17 '23 03:10 shanghaikid

如果出现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

mashaonian avatar Jul 13 '24 09:07 mashaonian