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

[Bug]: RESTful API does not work after a standard & clean installation #37825

Open
1 task done
Nullarity opened this issue Nov 19, 2024 · 8 comments
Open
1 task done
Assignees
Labels
kind/bug Issues or changes related a bug kind/user-doc Issues or changes related to the user document triage/accepted Indicates an issue or PR is ready to be actively worked on.

Comments

@Nullarity
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Environment

- Milvus version: 2.4.15
- Deployment mode(standalone or cluster): standalone
- OS(Ubuntu or CentOS): Ubuntu 21
- CPU/Memory: x64/64gb
- GPU: none

Current Behavior

Following the documentation:

export CLUSTER_ENDPOINT="http://localhost:19530"

curl --request GET \
    --url "${CLUSTER_ENDPOINT}/v2/vectordb/collections/list" \
    --header 'accept: application/json' \
    --header 'content-type: application/json'

I get this error: 404 page not found.

At the same time, the command curl "http://localhost:9091/healthz" is ok, and curl localhost:9091/metrics works too.

Expected Behavior

Adequate response.

Steps To Reproduce

No response

Milvus Log

[2024/11/19 21:29:40.149 Z] [GIN] [/collections/list] [traceID=] [code=404] [latency=11.317µs] [client=172.18.0.1] [method=GET] [error=]

Anything else?

No response

@Nullarity Nullarity added kind/bug Issues or changes related a bug needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. labels Nov 19, 2024
@xiaofan-luan
Copy link
Collaborator

could you telnet localhost:19530 and 19531, see if the port is enabled?

@Nullarity
Copy link
Author

Nullarity commented Nov 19, 2024

yes, I can, they are accessible and enabled

@Nullarity
Copy link
Author

could you telnet localhost:19530 and 19531, see if the port is enabled?

Sorry, I didn't pay enough attention; 19531 is not accessible. Should it be?

this is my docker ps:

CONTAINER ID   IMAGE                                      COMMAND                  CREATED       STATUS                 PORTS                                              NAMES
40e0aa8bfabf   milvusdb/milvus:v2.4.15                    "/tini -- milvus run…"   2 hours ago   Up 2 hours (healthy)   0.0.0.0:9091->9091/tcp, 0.0.0.0:19530->19530/tcp   milvus-standalone
355c31cee9f8   minio/minio:RELEASE.2023-03-20T20-16-18Z   "/usr/bin/docker-ent…"   2 hours ago   Up 2 hours (healthy)   0.0.0.0:9000-9001->9000-9001/tcp                   milvus-minio
0e4ea5b06868   quay.io/coreos/etcd:v3.5.5                 "etcd -advertise-cli…"   2 hours ago   Up 2 hours (healthy)   2379-2380/tcp                                      milvus-etcd

@xiaofan-luan
Copy link
Collaborator

19530 is there.
is there error message from milvus log?

@xiaofan-luan
Copy link
Collaborator

oh I guess you should use post

curl --request POST instead of GET

try
curl --request POST
--url "${CLUSTER_ENDPOINT}/v2/vectordb/collections/list"
--header "Authorization: Bearer ${TOKEN}"
--header "Content-Type: application/json"
-d '{
"dbName": "_default"
}'

@Nullarity
Copy link
Author

Thank you very much, this one seems to work:

curl --request POST --url "http://localhost:19530/v2/vectordb/collections/list" --header "Content-Type: application/json" -d '{ "dbName": "default"}'

So, is there a bug in the documentation then? / https://milvus.io/api-reference/restful/v2.4.x/About.md /

@yanliang567
Copy link
Contributor

/assign @smellthemoon
could you please double check the doc and update it if need
/unassign

@yanliang567 yanliang567 added kind/user-doc Issues or changes related to the user document triage/accepted Indicates an issue or PR is ready to be actively worked on. and removed needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. labels Nov 20, 2024
@smellthemoon
Copy link
Contributor

yes, I found that https://milvus.io/api-reference/restful/v2.4.x/v2/Alias%20(v2)/List.md is correct, but https://milvus.io/api-reference/restful/v2.4.x/About.md is the wrong code, I will connect with doc group and update it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Issues or changes related a bug kind/user-doc Issues or changes related to the user document triage/accepted Indicates an issue or PR is ready to be actively worked on.
Projects
None yet
Development

No branches or pull requests

4 participants