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] can't register model in registry via code or UI #2047

Closed
dr3s opened this issue Nov 5, 2019 · 3 comments
Closed

[BUG] can't register model in registry via code or UI #2047

dr3s opened this issue Nov 5, 2019 · 3 comments
Labels
bug Something isn't working

Comments

@dr3s
Copy link
Contributor

dr3s commented Nov 5, 2019

System information

  • Have I written custom code (as opposed to using a stock example script provided in MLflow): No
  • OS Platform and Distribution (e.g., Linux Ubuntu 16.04): OS X
  • MLflow installed from (source or binary): binary
  • MLflow version (run mlflow --version): 1.4.0
  • Python version: 3.7.3
  • npm version, if running the dev UI:
  • Exact command to reproduce: mlflow server

Describe the problem

model registry function not found when trying to register the model via the UI or log_model with a registered name

Code to reproduce issue

mlflow server &
mlflow run .  
use the UI to register a model

Other info / logs

2019/11/05 13:01:52 ERROR mlflow.server: Exception on /api/2.0/preview/mlflow/registered-models/create [POST]
Traceback (most recent call last):
  File "/usr/local/anaconda3/lib/python3.7/site-packages/flask/app.py", line 2446, in wsgi_app
    response = self.full_dispatch_request()
  File "/usr/local/anaconda3/lib/python3.7/site-packages/flask/app.py", line 1951, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "/usr/local/anaconda3/lib/python3.7/site-packages/flask/app.py", line 1820, in handle_user_exception
    reraise(exc_type, exc_value, tb)
  File "/usr/local/anaconda3/lib/python3.7/site-packages/flask/_compat.py", line 39, in reraise
    raise value
  File "/usr/local/anaconda3/lib/python3.7/site-packages/flask/app.py", line 1949, in full_dispatch_request
    rv = self.dispatch_request()
  File "/usr/local/anaconda3/lib/python3.7/site-packages/flask/app.py", line 1935, in dispatch_request
    return self.view_functions[rule.endpoint](**req.view_args)
  File "/Users/amarch/source/github/mlflow/mlflow/server/handlers.py", line 137, in wrapper
    return func(*args, **kwargs)
  File "/Users/amarch/source/github/mlflow/mlflow/server/handlers.py", line 455, in _create_registered_model
    registered_model = _get_model_registry_store().create_registered_model(request_message.name)
AttributeError: 'NoneType' object has no attribute 'create_registered_model'
[2019-11-05 13:01:55 -0500] [38819] [INFO] Handling signal: winch
^C[2019-11-05 13:02:13 -0500] [38819] [INFO] Handling signal: int
@dr3s dr3s added the bug Something isn't working label Nov 5, 2019
@dr3s dr3s changed the title [BUG] [BUG] can't register model in registry via code or UI Nov 5, 2019
@harupy
Copy link
Member

harupy commented Nov 5, 2019

duplicate of #1975

@dr3s
Copy link
Contributor Author

dr3s commented Nov 6, 2019

@harupy thanks, I didn't see that one. I'm pretty sure that I also tried a sqlite db but I'll try again.

@abhishekmm
Copy link

abhishekmm commented Aug 5, 2020

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

3 participants