Open speechwrecko opened 3 months ago
+1, I ran into this issue as well.
Got the same error with demo.db while using multiple Ray Serve replicas. Any solution?
+1
+1
This bug can even be reproduced in a simple way. After creating a database connection, I insert three records, each with 768 dimensions. Immediately after, I let the program sleep for 60 seconds. When I create a new connection after that, the aforementioned error occurs. However, if I restart the program quickly, the error does not happen, and the program runs normally. I find this situation really confusing.
The same while working from different jupyter notebooks - the first one works as expected, but in the second one the error happens. Only manual deletion of .lock file helped.
Is there an existing issue for this?
Describe the bug
When I run PyMilvus with Milvus Local in a Python Flask application with debug set to True, Milvus fails saying it "Can't start local milvus" because the file is being used by another program.
It's as if FLASK debug is locking the file or perhaps there is some other odd issue
Stack trace:
Open demo.db failed, the file has been opened by another program Start local milvus failed Failed to create new connection using: c767688b751d4e47b68295a896cca39a Traceback (most recent call last): .... File "/home/jason/.local/lib/python3.8/site-packages/pymilvus/milvus_client/milvus_client.py", line 58, in init self._using = self._create_connection( File "/home/jason/.local/lib/python3.8/site-packages/pymilvus/milvus_client/milvus_client.py", line 651, in _create_connection raise ex from ex File "/home/jason/.local/lib/python3.8/site-packages/pymilvus/milvus_client/milvus_client.py", line 648, in _create_connection connections.connect(using, user, password, db_name, token, uri=uri, **kwargs) File "/home/jason/.local/lib/python3.8/site-packages/pymilvus/orm/connections.py", line 382, in connect raise ConnectionConfigException(message="Open local milvus failed") pymilvus.exceptions.ConnectionConfigException: <ConnectionConfigException: (code=1, message=Open local milvus failed)>
Expected Behavior
I see no reason why this shouldn't work and it implies there might be a larger issue
Steps/Code To Reproduce behavior
Environment details
Anything else?
No response