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

fails to get the MilvusHelper object #636

Closed
akimisr opened this issue Sep 6, 2021 · 4 comments
Closed

fails to get the MilvusHelper object #636

akimisr opened this issue Sep 6, 2021 · 4 comments
Assignees
Labels
good first issue Good for newcomers

Comments

@akimisr
Copy link

akimisr commented Sep 6, 2021

Describe the issue
My Milvus often fails to get the MilvusHelper object.At that time,I had to reinstall Milvus.This problem happens frequently.

To Reproduce

  • Which solution are you running? Please post the link.
  • Steps to reproduce the behavior(Docker or Source code):
  1. Start standalone milvus2.0
  2. Start reverse_image_search
  3. Vist 127.0.0.1:5010/docs
  4. Try to load or search some images
  5. See an error

Expected behavior
Can always get milvushelper object.

Screenshots
Traceback (most recent call last):
File "/home/vector/milvus2.0/quick_deploy/server/src/milvus_helpers.py", line 59, in insert
mr = self.collection.insert(data)
AttributeError: 'NoneType' object has no attribute 'insert'

Additional context
Sometimes I use load.py from outside, which may be related to the problem.

@shiyu22
Copy link
Contributor

shiyu22 commented Sep 6, 2021

Are there any logs in the server? Before calling the collection.insert function, we will first create a collection, you can view the code, so it may fail when creating the collection.

This error means that the collection object is None, please double check whether your Milvus server is running successfully :)

@shiyu22 shiyu22 self-assigned this Sep 6, 2021
@akimisr
Copy link
Author

akimisr commented Sep 10, 2021

Are there any logs in the server? Before calling the collection.insert function, we will first create a collection, you can view the code, so it may fail when creating the collection.

This error means that the collection object is None, please double check whether your Milvus server is running successfully :)

Only the log showing the normal operation of server.I just use the code of MilvusHelper in object-search to create a collection.I think the error means Milvus server is not running.

@shiyu22
Copy link
Contributor

shiyu22 commented Sep 10, 2021

I think you are right, so how is your Milvus server?

@shiyu22 shiyu22 added the good first issue Good for newcomers label Sep 13, 2021
@shiyu22
Copy link
Contributor

shiyu22 commented Sep 13, 2021

same to #643

@shiyu22 shiyu22 closed this as completed Sep 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants