Closed anykkk closed 3 years ago
Can you tell me what version of Milvus you are using ,pymilvus version,the configuration parameters of config.py?
milvusdb/milvus:v2.0.0-rc7-20211011-d567b21 milvus-standalone
milvus2.0.0 CPU
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
058c09666897 mysql:5.7 "docker-entrypoint.s…" 2 hours ago Up 2 hours 0.0.0.0:3306->3306/tcp, :::3306->3306/tcp, 33060/tcp compassionate_sinoussi
abeebd7921a7 milvusdb/milvus:v2.0.0-rc7-20211011-d567b21 "/tini -- milvus run…" 4 hours ago Up 4 hours 0.0.0.0:19530->19530/tcp, :::19530->19530/tcp milvus-standalone
db896ad7c1b6 minio/minio:RELEASE.2020-12-03T00-03-10Z "/usr/bin/docker-ent…" 4 hours ago Up 4 hours (healthy) 9000/tcp milvus-minio
e18fba6db3e4 quay.io/coreos/etcd:v3.5.0 "etcd -advertise-cli…" 4 hours ago Up 4 hours 2379-2380/tcp
confin.py
############### Milvus Configuration ###############
MILVUS_HOST = os.getenv("MILVUS_HOST", "192.168.12.152")
MILVUS_PORT = os.getenv("MILVUS_PORT", 19530)
VECTOR_DIMENSION = os.getenv("VECTOR_DIMENSION", 768)
INDEX_FILE_SIZE = os.getenv("INDEX_FILE_SIZE", 1024)
METRIC_TYPE = os.getenv("METRIC_TYPE", "IP")
DEFAULT_TABLE = os.getenv("DEFAULT_TABLE", "test_table")
TOP_K = os.getenv("TOP_K", 9)
############### MySQL Configuration ############### MYSQL_HOST = os.getenv("MYSQL_HOST", "127.0.0.1") MYSQL_PORT = os.getenv("MYSQL_PORT", 3306) MYSQL_USER = os.getenv("MYSQL_USER", "root") MYSQL_PWD = os.getenv("MYSQL_PWD", "123456") MYSQL_DB = os.getenv("MYSQL_DB", "mysql")
############### Number of log files ############### LOGS_NUM = os.getenv("logs_num", 0)
pymilvus version 2.0.0rc5
======================================================
Keras==2.3.1
numpy
futures==3.1.1
cryptography
aiofiles
Pillow
pymilvus==2.0.0rc5
tensorflow == 1.13.1
bert-serving-server
bert-serving-client
pymysql
fastapi
uvicorn
python-multipart
the pymilvus version need to be same with milvus ,you need to install pymilvus 2.0.0rc7
Thank you, it has been resolved!
Is there an existing issue for this?
Current Behavior
2021-10-15 17:35:48,139 | ERROR | grpc_handler.py | handler | 61 | Error: <BaseException: (code=1, message=round_decimalnot found in search_params)> 2021-10-15 17:35:48,139 | ERROR | grpc_handler.py | handler | 61 | Error: <BaseException: (code=1, message=round_decimalnot found in search_params)> 2021-10-15 17:35:48,139 | ERROR | milvus_helpers.py | search_vectors | 105 | Failed to search vectors in Milvus: <BaseException: (code=1, message=round_decimalnot found in search_params)> ERROR: Exception in ASGI application Traceback (most recent call last): File "/home/haojy/bootcamp-master/solutions/text_search_engine/quick_deploy/server/src/milvus_helpers.py", line 100, in search_vectors res=self.collection.search(vectors, anns_field="embedding", param=search_params, limit=top_k) File "/home/haojy/.local/lib/python3.7/site-packages/pymilvus/orm/pymilvus_orm/collection.py", line 610, in search partition_names, output_fields, timeout, kwargs) File "/home/haojy/.local/lib/python3.7/site-packages/pymilvus/client/stub.py", line 66, in handler raise e File "/home/haojy/.local/lib/python3.7/site-packages/pymilvus/client/stub.py", line 52, in handler return func(self, *args, *kwargs) File "/home/haojy/.local/lib/python3.7/site-packages/pymilvus/client/stub.py", line 40, in inner return func(self, args, kwargs) File "/home/haojy/.local/lib/python3.7/site-packages/pymilvus/client/stub.py", line 1057, in search_with_expression return handler.search_with_expression(collection_name, data, anns_field, param, limit, expression, partition_names, output_fields, timeout, kwargs) File "/home/haojy/.local/lib/python3.7/site-packages/pymilvus/client/grpc_handler.py", line 67, in handler raise e File "/home/haojy/.local/lib/python3.7/site-packages/pymilvus/client/grpc_handler.py", line 59, in handler return func(self, *args, *kwargs) File "/home/haojy/.local/lib/python3.7/site-packages/pymilvus/client/grpc_handler.py", line 96, in handler return func(self, args, kwargs) File "/home/haojy/.local/lib/python3.7/site-packages/pymilvus/client/grpc_handler.py", line 640, in search_with_expression return self._execute_search_requests(requests, timeout, *_kwargs) File "/home/haojy/.local/lib/python3.7/site-packages/pymilvus/client/grpc_handler.py", line 67, in handler raise e File "/home/haojy/.local/lib/python3.7/site-packages/pymilvus/client/grpc_handler.py", line 59, in handler return func(self, args, **kwargs) File "/home/haojy/.local/lib/python3.7/site-packages/pymilvus/client/grpc_handler.py", line 606, in _execute_search_requests raise pre_err File "/home/haojy/.local/lib/python3.7/site-packages/pymilvus/client/grpc_handler.py", line 597, in _execute_search_requests raise BaseException(response.status.error_code, response.status.reason) pymilvus.client.exceptions.BaseException: <BaseException: (code=1, message=round_decimalnot found in search_params)>
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/home/haojy/.local/lib/python3.7/site-packages/uvicorn/protocols/http/h11_impl.py", line 373, in run_asgi result = await app(self.scope, self.receive, self.send) File "/home/haojy/.local/lib/python3.7/site-packages/uvicorn/middleware/proxy_headers.py", line 75, in call return await self.app(scope, receive, send) File "/home/haojy/.local/lib/python3.7/site-packages/fastapi/applications.py", line 208, in call await super().call(scope, receive, send) File "/usr/local/python3/lib/python3.7/site-packages/starlette/applications.py", line 112, in call await self.middleware_stack(scope, receive, send) File "/usr/local/python3/lib/python3.7/site-packages/starlette/middleware/errors.py", line 159, in call await self.app(scope, receive, _send) File "/usr/local/python3/lib/python3.7/site-packages/starlette/middleware/cors.py", line 84, in call await self.app(scope, receive, send) File "/usr/local/python3/lib/python3.7/site-packages/starlette/exceptions.py", line 71, in call await self.app(scope, receive, sender) File "/usr/local/python3/lib/python3.7/site-packages/starlette/routing.py", line 656, in call await route.handle(scope, receive, send) File "/usr/local/python3/lib/python3.7/site-packages/starlette/routing.py", line 259, in handle await self.app(scope, receive, send) File "/usr/local/python3/lib/python3.7/site-packages/starlette/routing.py", line 61, in app response = await func(request) File "/home/haojy/.local/lib/python3.7/site-packages/fastapi/routing.py", line 227, in app dependant=dependant, values=values, is_coroutine=is_coroutine File "/home/haojy/.local/lib/python3.7/site-packages/fastapi/routing.py", line 159, in run_endpoint_function return await dependant.call(**values) File "main.py", line 86, in do_search_api ids,title, text, distances = search_in_milvus(table_name,query_sentence, MILVUS_CLI, MYSQL_CLI) File "/home/haojy/bootcamp-master/solutions/text_search_engine/quick_deploy/server/src/operations/search.py", line 35, in search_in_milvus results = milvus_cli.search_vectors(table_name,query_list,TOP_K) File "/home/haojy/bootcamp-master/solutions/text_search_engine/quick_deploy/server/src/milvus_helpers.py", line 106, in search_vectors sys.exit(1) SystemExit: 1
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/home/haojy/.local/lib/python3.7/site-packages/uvicorn/protocols/http/h11_impl.py", line 373, in run_asgi result = await app(self.scope, self.receive, self.send) File "/home/haojy/.local/lib/python3.7/site-packages/uvicorn/middleware/proxy_headers.py", line 75, in call return await self.app(scope, receive, send) File "/home/haojy/.local/lib/python3.7/site-packages/fastapi/applications.py", line 208, in call await super().call(scope, receive, send) File "/usr/local/python3/lib/python3.7/site-packages/starlette/applications.py", line 112, in call await self.middleware_stack(scope, receive, send) File "/usr/local/python3/lib/python3.7/site-packages/starlette/middleware/errors.py", line 159, in call await self.app(scope, receive, _send) File "/usr/local/python3/lib/python3.7/site-packages/starlette/middleware/cors.py", line 84, in call await self.app(scope, receive, send) File "/usr/local/python3/lib/python3.7/site-packages/starlette/exceptions.py", line 71, in call await self.app(scope, receive, sender) File "/usr/local/python3/lib/python3.7/site-packages/starlette/routing.py", line 656, in call await route.handle(scope, receive, send) File "/usr/local/python3/lib/python3.7/site-packages/starlette/routing.py", line 259, in handle await self.app(scope, receive, send) File "/usr/local/python3/lib/python3.7/site-packages/starlette/routing.py", line 61, in app response = await func(request) File "/home/haojy/.local/lib/python3.7/site-packages/fastapi/routing.py", line 227, in app dependant=dependant, values=values, is_coroutine=is_coroutine File "/home/haojy/.local/lib/python3.7/site-packages/fastapi/routing.py", line 159, in run_endpoint_function return await dependant.call(values) File "main.py", line 86, in do_search_api ids,title, text, distances = search_in_milvus(table_name,query_sentence, MILVUS_CLI, MYSQL_CLI) File "/home/haojy/bootcamp-master/solutions/text_search_engine/quick_deploy/server/src/operations/search.py", line 35, in search_in_milvus results = milvus_cli.search_vectors(table_name,query_list,TOP_K) File "/home/haojy/bootcamp-master/solutions/text_search_engine/quick_deploy/server/src/milvus_helpers.py", line 106, in search_vectors sys.exit(1) SystemExit: 1 INFO: 192.168.12.209:11149 - "GET /text/search?table_name=test_table&query_sentence=Google HTTP/1.1" 500 Internal Server Error**
Expected Behavior
No response
Steps To Reproduce
No response
Software version
Anything else?
No response