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

I can't log into the system #161

Open
ingale726 opened this issue Dec 25, 2022 Discussed in #159 · 23 comments
Open

I can't log into the system #161

ingale726 opened this issue Dec 25, 2022 Discussed in #159 · 23 comments
Assignees

Comments

@ingale726
Copy link

ingale726 commented Dec 25, 2022

Discussed in #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?

@nameczz
Copy link
Collaborator

nameczz commented Jan 9, 2023

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

@lpasselin
Copy link

lpasselin commented Jan 12, 2023

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

@echo-initial
Copy link

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

@ingale726
Copy link
Author

The user name is root and the password is empty

@echo-initial
Copy link

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

@wilac-pv
Copy link

wilac-pv commented May 6, 2023

登录没反应

@forestmgy
Copy link

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

@LinightKira
Copy link

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

@Ximu-Luya
Copy link

Ximu-Luya commented Jun 15, 2023

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.

@shanghaikid
Copy link
Collaborator

what's your milvus version?

@shanghaikid
Copy link
Collaborator

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.

@echo-initial
Copy link

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

@geminigeek
Copy link

登录没反应

having same issue ?

@shanghaikid
Copy link
Collaborator

Some questions:

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

@geminigeek
Copy link

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"

@renzhichaos
Copy link

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

@winqihe
Copy link

winqihe commented Sep 1, 2023


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 !

@wisdomtooth546
Copy link


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.

@ycqu
Copy link

ycqu commented Oct 17, 2023

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

container info:
image

How to solve it?

@shanghaikid
Copy link
Collaborator

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.

@ycqu
Copy link

ycqu commented Oct 17, 2023

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

@shanghaikid
Copy link
Collaborator

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.

@mashaonian
Copy link

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

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