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

Exception: [Milvus] connect to milvus failed: <MilvusException: (code=1, message=this version of sdk is incompatible with server, please downgrade your sdk or upgrade your server)>!!! #531

Open
Mukulareddy opened this issue May 31, 2024 · 6 comments

Comments

@Mukulareddy
Copy link

Facing the above issue when i run python run.py --dataset fashion-mnist-784-euclidean --algorithm milvus-ivfpq --runs 1
using milvus-cluster-docker-compose.yml

Can someone help me with the above issue?

@cococo2000
Copy link
Contributor

Facing the above issue when i run python run.py --dataset fashion-mnist-784-euclidean --algorithm milvus-ivfpq --runs 1 using milvus-cluster-docker-compose.yml

Can someone help me with the above issue?

It seems like you're facing a version incompatibility issue between Milvus and pymilvus. You may need to check and ensure that the versions of Milvus and pymilvus are compatible. In the code at this link ann-benchmarks milvus Dockerfile,

RUN pip3 install pymilvus==**2.4.1**
...
RUN wget https://github.com/milvus-io/milvus/releases/download/**v2.4.1**/milvus-standalone-docker-compose.yml -O docker-compose.yml

we have already specified the versions of both Milvus and pymilvus to ensure compatibility. This should guarantee that both Milvus and pymilvus are at version 2.4.1. If you still encounter issues, please double-check your setup to ensure everything is configured correctly.

@cococo2000
Copy link
Contributor

milvus-cluster-docker-compose.yml

@Mukulareddy milvus-cluster-docker-compose.yml seems to have only been updated to version 2.1.4, which is obviously incompatible with the pymilvus 2.4.1 API in module.py.

https://milvus.io/docs/install_standalone-docker-compose.md#Run-Milvus-with-Docker-Compose

https://milvus.io/docs/v2.1.x/install_cluster-docker.md#Install-Milvus-Cluster-with-Docker-Compose

@Mukulareddy
Copy link
Author

Thank you @cococo2000 . I am able to solve th error by upgrading pymilvus to v2.4.1

@Mukulareddy
Copy link
Author

Mukulareddy commented Jun 3, 2024

@cococo2000 , when i run python run.py --dataset fashion-mnist-784-euclidean --algorithm milvus-ivfflat --runs 1

2024-06-03 11:11:33,215 - annb - INFO - running only milvus-ivfflat
Traceback (most recent call last):
  File "/home/mukula/may/ann-benchmarks_old/run.py", line 7, in <module>
    main()
  File "/home/mukula/may/ann-benchmarks_old/ann_benchmarks/main.py", line 342, in main
    raise Exception("Nothing to run")

I am facing the above error. I checked the issues(#523) but couldn't find a proper resolution for this issue.
I have build the docker image using " python install.py --algorithm milvus"
Would be grateful if you could help me with this issue.

As per #523 , the docker image you have shared helped. Please do share it to me as well . My Email id: [email protected]

@cococo2000
Copy link
Contributor

@cococo2000 , when i run python run.py --dataset fashion-mnist-784-euclidean --algorithm milvus-ivfflat --runs 1

2024-06-03 11:11:33,215 - annb - INFO - running only milvus-ivfflat
Traceback (most recent call last):
  File "/home/mukula/may/ann-benchmarks_old/run.py", line 7, in <module>
    main()
  File "/home/mukula/may/ann-benchmarks_old/ann_benchmarks/main.py", line 342, in main
    raise Exception("Nothing to run")

I am facing the above error. I checked the issues(#523) but couldn't find a proper resolution for this issue. I have build the docker image using " python install.py --algorithm milvus" Would be grateful if you could help me with this issue.

As per #523 , the docker image you have shared helped. Please do share it to me as well . My Email id: [email protected]

@Mukulareddy you encountered an issue that is different from #523. Issue #523 was related to not obtaining the ann-benchmarks-milvus docker image via the python install.py --algorithm milvus command. However, it seems you have already generated and obtained this image.

You might need to check if the results directory has already completed the test, or verify that the algorithm parameters you set are not empty as mentioned in the milvus-ivfflat configuration file here.

If neither of these points resolves the issue, you may need to read through the source code to identify the specific cause.

Additionally, I have sent the docker image to your email. Please check your inbox for further assistance. I hope this helps!

@Mukulareddy
Copy link
Author

Thank you so much @cococo2000 for actively helping me.
I will try with the approach you have mentioned.

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

2 participants