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

can't invoke by server.start() #185

Closed
Austin-Phoenix opened this issue Jul 2, 2024 · 8 comments
Closed

can't invoke by server.start() #185

Austin-Phoenix opened this issue Jul 2, 2024 · 8 comments

Comments

@Austin-Phoenix
Copy link

debug log as below:
[2024/07/02 17:14:46.181 +08:00] [WARN] [retry/retry.go:39] ["start to reset connection because of specific reasons"] [module=Proxy] [client_role=rootcoord] [error="rpc error: code = Unknown desc = expected=%!s(int64=112), actual=%!s(int64=119): server ID mismatch"]
[2024/07/02 17:14:50.186 +08:00] [WARN] [retry/retry.go:39] ["start to reset connection because of specific reasons"] [module=Proxy] [client_role=rootcoord] [error="rpc error: code = Unknown desc = expected=%!s(int64=112), actual=%!s(int64=119): server ID mismatch"]
[2024/07/02 17:14:58.194 +08:00] [WARN] [retry/retry.go:39] ["start to reset connection because of specific reasons"] [module=Proxy] [client_role=rootcoord] [error="rpc error: code = Unknown desc = expected=%!s(int64=112), actual=%!s(int64=119): server ID mismatch"]
[2024/07/02 17:14:58.195 +08:00] [WARN] [grpcclient/client.go:287] ["retry func failed"] [module=Proxy] ["retry time"=4] [error="rpc error: code = Unknown desc = expected=%!s(int64=112), actual=%!s(int64=119): server ID mismatch"]
[2024/07/02 17:15:08.404 +08:00] [WARN] [retry/retry.go:39] ["start to reset connection because of specific reasons"] [module=Proxy] [client_role=rootcoord] [error="rpc error: code = Unknown desc = expected=%!s(int64=112), actual=%!s(int64=119): server ID mismatch"]
[2024/07/02 17:15:09.425 +08:00] [WARN] [grpcclient/client.go:367] ["fail to get grpc client"] [module=Proxy] [client_role=indexcoord] [error="find no available indexcoord, check indexcoord state"]
[2024/07/02 17:15:09.425 +08:00] [WARN] [retry/retry.go:39] ["grpc client is nil, maybe fail to get client in the retry state"] [module=Proxy] [client_role=indexcoord]
[2024/07/02 17:15:09.425 +08:00] [WARN] [grpcclient/client.go:291] ["fail to get grpc client in the retry state"] [module=Proxy] [client_role=indexcoord] [error="find no available indexcoord, check indexcoord state"]
[2024/07/02 17:15:10.429 +08:00] [WARN] [retry/retry.go:39] ["grpc client is nil, maybe fail to get client in the retry state"] [module=Proxy] [client_role=indexcoord]

@Austin-Phoenix
Copy link
Author

it seems some service can't start normally. log is :
Traceback (most recent call last):
File "C:\Users\Austin\PycharmProjects\pythonProject1\RAG1\Milvus\test_milvus.py", line 60, in
test_check_start()
File "C:\Users\Austin\PycharmProjects\pythonProject1\RAG1\Milvus\test_milvus.py", line 9, in test_check_start
debug_server.start()
File "C:\Users\Austin\PycharmProjects\pythonProject1.venv\Lib\site-packages\milvus_init_.py", line 427, in start
self.wait_started()
File "C:\Users\Austin\PycharmProjects\pythonProject1.venv\Lib\site-packages\milvus_init_.py", line 391, in wait_started
raise TimeoutError(f'Milvus not startd in {timeout/1000} seconds')
TimeoutError: Milvus not startd in 30.0 seconds

@xiaofan-luan
Copy link

which milvus lite are u using?
Please try latest milvus lite and it should be much easier to maintain

@Austin-Phoenix
Copy link
Author

I'm using v2.2.16-lite
I just download by pycharm using: ' pip install milvus -i https://pypi.tuna.tsinghua.edu.cn/simple'. It seems in tsinghua.edu.cn, it's already latest or best version for my env(my env is under windows 11). But now, it seems works fine after notebook restart.
Anoter question is if i use 'connections.connect(host='127.0.0.1', port=debug_server.listen_port)'. everything is fine.
But when i use 'connections.connect("default", uri="./local_milvus_test.db")', the error shows:
File "C:\Users\Austin\PycharmProjects\pythonProject1\RAG1\Milvus\test_milvus.py", line 121, in test_3
connections.connect("default", uri="./local_milvus_test.db")
File "C:\Users\Austin\PycharmProjects\pythonProject1.venv\Lib\site-packages\pymilvus\orm\connections.py", line 378, in connect
from milvus_lite.server_manager import server_manager_instance
ModuleNotFoundError: No module named 'milvus_lite'
Something point to source code here:
'from milvus_lite.server_manager import server_manager_instance'
i just used pip to download milvus and pymilvus. Is there something that i missed for milvus_lite
but when i use pip, try to download milvus_lite, it seems there is no module named that, couldn't find it.

@codingjaguar
Copy link
Collaborator

Hi @Austin-Phoenix, the older version of Milvus Lite <2.4.x is no longer actively maintained.

Looks like you are using v2.2.16-lite in Windows. The older version is known to have issues like crashing after restarting, due to stability issues. We encourage you to use the latest version of Milvus Lite, which can run on Windows through WSL (https://learn.microsoft.com/en-us/windows/wsl/install). Native windows support is also coming soon, tracked by #176.

Alternatively, you can use the Milvus Standalone mode on Docker, following https://milvus.io/docs/install_standalone-docker.md, which also supports Windows.

@Austin-Phoenix
Copy link
Author

thanks codingjaguar,i'll try docker for 2.4x milvus version.

@Austin-Phoenix
Copy link
Author

Austin-Phoenix commented Jul 16, 2024 via email

@xiaofan-luan
Copy link

   - c7e856e03741 Retrying in 1 second   

highly recommend to run milvus on a docker but don't use WSL. we don't have any experience and test on windows system

@Austin-Phoenix
Copy link
Author

Austin-Phoenix commented Jul 16, 2024 via email

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

3 participants