milvus-io / milvus

A cloud-native vector database, storage for next generation AI applications
https://milvus.io
Apache License 2.0
30.49k stars 2.92k forks source link

[Bug]: Connecting to Milvus with authentication, receiving gRPC error #37714

Open strugc opened 2 hours ago

strugc commented 2 hours ago

Is there an existing issue for this?

Environment

No response

Current Behavior

Set common.security.authorizationEnabled to true in the Milvus configuration file milvus.yaml

Error code: raise _InactiveRpcError(state) # pytype: disable=not-instantiable grpc._channel._InactiveRpcError: <_InactiveRpcError of RPC that terminated with: status = StatusCode.UNAUTHENTICATED details = "auth check failure, please check username and password are correct" debug_error_string = "UNKNOWN:Error received from peer {grpc_message:"auth check failure, please check username and password are correct", grpc_status:16, created_time:"2024-11-15T07:55:36.6657145+00:00"}"

Try setting reset password common: security: superUsers: root, foo

Restart docker, Running the script still reports an error gRPC

from pymilvus import MilvusClient client = MilvusClient( uri='http://locahost:19530', token="root:Milvus" ) print(client.has_collection("test_collection"))

Expected Behavior

No response

Steps To Reproduce

No response

Milvus Log

No response

Anything else?

No response

SimFG commented 2 hours ago

Which version of milvus and pymilvus are you using? Can you also show me all the values ​​under common.security in the milvus yaml file?