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

[BUG]Model Registry is not working from the UI. #2079

Closed
ashwinpatil05 opened this issue Nov 12, 2019 · 6 comments
Closed

[BUG]Model Registry is not working from the UI. #2079

ashwinpatil05 opened this issue Nov 12, 2019 · 6 comments
Labels
bug Something isn't working

Comments

@ashwinpatil05
Copy link

Thank you for submitting an issue. Please refer to our issue policy
for information on what types of issues we address. For help with debugging your code, please refer to Stack Overflow.

Please fill in this template and do not delete it unless you are sure your issue is outside its scope.

System information

  • Have I written custom code (as opposed to using a stock example script provided in MLflow):
  • OS Platform and Distribution (e.g., Linux Ubuntu 16.04):
    System Version: macOS 10.15 (19A602)
    Kernel Version: Darwin 19.0.0
  • MLflow installed from (source or binary):
    pip install mlflow==1.4.0 (from pypi)
  • MLflow version (run mlflow --version):
    mlflow, version 1.4.0
  • Python version:
    Python 3.6.5 :: Anaconda, Inc.
  • npm version, if running the dev UI:
    6.4.1
  • Exact command to reproduce:

Describe the problem

Model Registry is not working from the UI.

Started Mlflow Server with "mlflow server" command on local machine.
I can able to see the UI.
but when go to Run >> Model >> Register Model >> create new model >> register.

I get error on UI "INTERNAL_SERVER_ERROR"

Code to reproduce issue

I have installed 1.4.0 and started server.

Other info / logs

2019/11/11 22:01:26 ERROR mlflow.server: Exception on /ajax-api/2.0/preview/mlflow/model-versions/search [GET]
Traceback (most recent call last):
File "/Users/ashwin/Work/MlFlow/venv/lib/python3.6/site-packages/flask/app.py", line 2446, in wsgi_app
response = self.full_dispatch_request()
File "/Users/ashwin/Work/MlFlow/venv/lib/python3.6/site-packages/flask/app.py", line 1951, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/Users/ashwin/Work/MlFlow/venv/lib/python3.6/site-packages/flask/app.py", line 1820, in handle_user_exception
reraise(exc_type, exc_value, tb)
File "/Users/ashwin/Work/MlFlow/venv/lib/python3.6/site-packages/flask/_compat.py", line 39, in reraise
raise value
File "/Users/ashwin/Work/MlFlow/venv/lib/python3.6/site-packages/flask/app.py", line 1949, in full_dispatch_request
rv = self.dispatch_request()
File "/Users/ashwin/Work/MlFlow/venv/lib/python3.6/site-packages/flask/app.py", line 1935, in dispatch_request
return self.view_functionsrule.endpoint
File "/Users/ashwin/Work/MlFlow/venv/lib/python3.6/site-packages/mlflow/server/handlers.py", line 137, in wrapper
return func(*args, **kwargs)
File "/Users/ashwin/Work/MlFlow/venv/lib/python3.6/site-packages/mlflow/server/handlers.py", line 581, in _search_model_versions
model_versions_detailed = _get_model_registry_store().search_model_versions(
AttributeError: 'NoneType' object has no attribute 'search_model_versions'

@ashwinpatil05 ashwinpatil05 added the bug Something isn't working label Nov 12, 2019
@ashwinpatil05 ashwinpatil05 changed the title [BUG] [BUG]Model Registry is not working from the UI. Nov 12, 2019
@sueann
Copy link
Contributor

sueann commented Nov 12, 2019

do you mind sharing your mlflow server command? The model registry requires a sql backend as filestore is not supported for it. so you will need to specify a non-default backend — sqlite is probably easiest to set up.

@harupy
Copy link
Member

harupy commented Nov 12, 2019

@sueann
Everyone tries to use Model Registry with a file-based store and runs into the same error.

#1975
#2037
#2047

@ashwinpatil05
Copy link
Author

@harupy @sueann Thank you.
I used sqlite as backend store, and its working now.
Closing the issue.

@graffam
Copy link

graffam commented Dec 19, 2019

Any word on when a model registry with a file-based store will be available? This needs to be mentioned in the documentation.

@OlivierBondu
Copy link
Contributor

Fully agree with @graffam that this needs to be mentioned in the doc, opening an issue on this. I had to randomly find this issue to understand my efforts where in vain 😅

@abhishekmm
Copy link

Hi all,
I tried using the sqlite as well as MYSQL on ubuntu system using following command :
mlflow server --backend-store-uri sqlite:///mlruns.db --default-artifact-root gs://mflowdemo/ --host 0.0.0.0
yet I am not ablet register the model from mlflow UI
mlflow --version
mlflow, version 1.10.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

6 participants