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

KeyError: 'current' #159

Closed
VioletEver-Garden opened this issue Mar 31, 2020 · 8 comments
Closed

KeyError: 'current' #159

VioletEver-Garden opened this issue Mar 31, 2020 · 8 comments
Assignees

Comments

@VioletEver-Garden
Copy link

VioletEver-Garden commented Mar 31, 2020

2020-03-31 08:24:34,394 - app - ERROR - Exception on /api/v1/process [GET]
Traceback (most recent call last):
File "/usr/local/lib/python3.6/dist-packages/flask/app.py", line 2446, in wsgi_app
response = self.full_dispatch_request()
File "/usr/local/lib/python3.6/dist-packages/flask/app.py", line 1951, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/usr/local/lib/python3.6/dist-packages/flask_cors/extension.py", line 161, in wrapped_function
return cors_after_request(app.make_response(f(*args, **kwargs)))
File "/usr/local/lib/python3.6/dist-packages/flask/app.py", line 1820, in handle_user_exception
reraise(exc_type, exc_value, tb)
File "/usr/local/lib/python3.6/dist-packages/flask/_compat.py", line 39, in reraise
raise value
File "/usr/local/lib/python3.6/dist-packages/flask/app.py", line 1949, in full_dispatch_request
rv = self.dispatch_request()
File "/usr/local/lib/python3.6/dist-packages/flask/app.py", line 1935, in dispatch_request
return self.view_functionsrule.endpoint
File "app.py", line 105, in thread_status_api
return "current: {}, total: {}".format(cache['current'], cache['total'])
File "/usr/local/lib/python3.6/dist-packages/diskcache/core.py", line 1262, in getitem
raise KeyError(key)
KeyError: 'current'

docker image :
chenglong555/pic_search_demo_web:0.2.0
chenglong555/pic_search_demo:0.5.1
milvusdb/milvus:0.6.0-cpu-d120719-2b40dd

@alono88
Copy link

alono88 commented Apr 13, 2020

Any news regrading this issue? I encountered the same error today. @GaoJian1102 did you solve it?

Edit: did you correctly configure your image_path? It seems fixing the image path in the webserver solves this issue.

@JackLCL
Copy link
Contributor

JackLCL commented Apr 13, 2020

Can I have a look at your start command of your webserver docker?

@JackLCL
Copy link
Contributor

JackLCL commented Apr 14, 2020

Maybe there is a problem with your image_path configuration.

@alono88
Copy link

alono88 commented Apr 16, 2020

@JackLCL It s eems I'm getting the error again while the paths are correct (I can connect to the webserver docker and view the mounted folder):

docker run -d --name zilliz_search_images_demo -v /home/ubuntu/tmp1:/tmp/pic1 -p 35000:5000 -e "DATA_PATH=/tmp/images-data" -e "MILVUS_HOST=xxx.xxx.xxx.xxx" milvusbootcamp/pic-search-webserver:0.1.0

@JackLCL
Copy link
Contributor

JackLCL commented Apr 17, 2020

@alono88 What version of milvus are you using? If you are using Milvus0.7.0, you need to use webserver:0.3.0.

@alono88
Copy link

alono88 commented Apr 17, 2020

It still doesn't work. Tried Milvus0.6.0 with bootcamp webserver and webclient 0.1.0 and I get errors when loading in some of the images although they are .png images and I cannot perform similarity search due to another error in src/service/search.py do_search function that returns the wrong number of arguments.

@JackLCL Can you specify the exact versions of the Milvus service, webserver and webclient? It seems the documentation is not updated.

@JackLCL
Copy link
Contributor

JackLCL commented Apr 18, 2020

@alono88 I suggest you to use milvus 0.7.0 to search for pictures. And corresponding webserver version is 0.3.0. And corresponding webclient version is 0.1.0.
Reference link: https://github.com/milvus-io/bootcamp/tree/0.7.0/solutions/pic_search

@limjoe
Copy link

limjoe commented Apr 30, 2020

webserver 0.4.0, client 0.1.0 也遇到这个问题,没法上传 datasets

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

4 participants