Code Monkey home page Code Monkey logo

Comments (4)

harupy avatar harupy commented on June 10, 2024

@ondratkadlec Thanks for reporting this! I was able to reproduce the error. I'm investigating how it happens.

from mlflow.

github-actions avatar github-actions commented on June 10, 2024

@mlflow/mlflow-team Please assign a maintainer and start triaging this issue.

from mlflow.

oleg-z avatar oleg-z commented on June 10, 2024

Not a contributor. Please let me know if it's ok to comment and provide workaround and happy to contribute once I figure out how I can help.

It seems the issue is when running mlflow gc utils.get_tracking_uri() is not set defaults to file schema. Unfortunatelly GC needs API interface in order to issue delete API calls.

Workaround is to set MLFLOW_TRACKING_URI env var to point to your MLFlow installation. In your case following code should properly execute:

export MLFLOW_TRACKING_URI=http://10.83.182.46:8001
/home/projects/.local/bin/mlflow gc --backend-store-uri sqlite:////home/projects/mlflow/mlruns.db

Example of before and after setting environment variable:
Before:

olegz@dev mlflow % mlflow gc --backend-store-uri sqlite:///$(pwd)/mlruns.db
...
File "/Users/olegz/Library/Python/3.9/lib/python/site-packages/mlflow/store/artifact/mlflow_artifacts_repo.py", line 35, in _validate_uri_scheme
    raise MlflowException(
mlflow.exceptions.MlflowException: The configured tracking uri scheme: 'file' is invalid for use with the proxy mlflow-artifact scheme. The allowed tracking schemes are: {'https', 'http'}

After:

olegz@dev mlflow % export MLFLOW_TRACKING_URI=http://127.0.0.1:8080
olegz@dev mlflow % mlflow gc --backend-store-uri sqlite:///$(pwd)/mlruns.db
Run with ID 7df4f883bdcc466c90405637cabe62c6 has been permanently deleted.
Run with ID 5d5445d3b97845c4a6d6afe798625d3a has been permanently deleted.
Run with ID c2133b7cf23a4a8586b9ce2fd7dd9b6f has been permanently deleted.
Run with ID d967acc86d1642afac33d89e2fbb68aa has been permanently deleted.
Run with ID b706a93dc78f46dfb6c3a2e27641bd6f has been permanently deleted.
Experiment with ID 1 has been permanently deleted.

from mlflow.

ondratkadlec avatar ondratkadlec commented on June 10, 2024

Hello Oleg,
Setting the environment variable indeed solved the issue. Thank you very much.

from mlflow.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.