Comments (4)
@ondratkadlec Thanks for reporting this! I was able to reproduce the error. I'm investigating how it happens.
from mlflow.
@mlflow/mlflow-team Please assign a maintainer and start triaging this issue.
from mlflow.
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.
Hello Oleg,
Setting the environment variable indeed solved the issue. Thank you very much.
from mlflow.
Related Issues (20)
- Add load_delta support with `deltalake` package HOT 2
- [BUG] Exception During Model Logging with Custom Ollama Class HOT 6
- comparing metrics with timestamp is not working if step is same between them [BUG] HOT 4
- [BUG] Can't delete runs with mlflow gc due to api timeout HOT 11
- [FR] Display the complete dataset profile in the data details view HOT 1
- Improve `_init_server` HOT 2
- [FR] Improve UI stability to corrupt metric files HOT 2
- [BUG] UI Crash - Unterminated string in JSON at position 5000 for mlflow.log-model.history HOT 4
- [BUG] pyfunc.load_model ignores logged model with trust_remote_code set to True HOT 1
- [BUG] HOT 2
- [BUG]Prompt Engineering request from UI to Deployments Server Connection TimeOut HOT 5
- [FR]MLflow Deployments Server Support inside corporate proxy HOT 3
- Fix typos
- Fix docstrings in `mlflow/tracing` HOT 1
- [FR] Multiple retrievers with mlflow.langchain.log_model HOT 1
- [BUG] MLFlow Deployment Server for LLMs using chatCompletion on Azure OpenAI text-davinci-003 HOT 4
- [SETUP-BUG] Multi-Cloud artifact-destination migration HOT 3
- mlflow.pyfunc.load_model is loading model of class <class 'mlflow.pyfunc.PyFuncModel'> instead of original class HOT 2
- [BUG] ModuleNotFoundError: No module named 'fcntl' HOT 2
- Artifact files are not removed from tmp/ folder HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mlflow.