DrDroid

MLflow mlflow.exceptions.MlflowException: Run '...' not found

The specified run ID does not exist in the MLflow tracking server.

👤

Stuck? Let AI directly find root cause

AI that integrates with your stack & debugs automatically | Runs locally and privately

Download Now

What is MLflow mlflow.exceptions.MlflowException: Run '...' not found

Understanding MLflow

MLflow is an open-source platform designed to manage the machine learning lifecycle, including experimentation, reproducibility, and deployment. It provides tools for tracking experiments, packaging code into reproducible runs, and sharing and deploying models. The MLflow Tracking component is particularly useful for logging and querying experiments, making it easier to manage and compare different runs.

Identifying the Symptom

When working with MLflow, you might encounter the error message: mlflow.exceptions.MlflowException: Run '...' not found. This error typically occurs when attempting to access a run that MLflow cannot locate in its tracking server.

Common Scenarios

Attempting to retrieve a run using an incorrect run ID. Querying a run that has been deleted or never existed.

Details About the Issue

The error mlflow.exceptions.MlflowException: Run '...' not found indicates that the specified run ID does not exist in the MLflow tracking server. This can happen due to a typo in the run ID, or if the run has been removed or was never created.

Understanding Run IDs

Each run in MLflow is assigned a unique identifier known as a run ID. This ID is crucial for tracking and retrieving specific runs. If the run ID is incorrect or the run has been deleted, MLflow will not be able to find it, resulting in this exception.

Steps to Fix the Issue

To resolve this issue, follow these steps:

1. Verify the Run ID

Ensure that the run ID you are using is correct. You can list all available runs using the MLflow UI or the MLflow CLI. To list runs via the CLI, use the following command:

mlflow runs list

This command will display all runs, allowing you to verify the correct run ID.

2. Check the Tracking Server

Ensure that the MLflow tracking server is running and accessible. You can start the tracking server using:

mlflow server

Make sure you are connected to the correct tracking server where the runs are logged.

3. Review Run Deletion

If the run was deleted, it will not be retrievable. Consider checking the logs or any backup to confirm if the run was removed.

Additional Resources

For more information on MLflow and managing runs, consider visiting the following resources:

MLflow Tracking Documentation MLflow CLI Documentation

MLflow mlflow.exceptions.MlflowException: Run '...' not found

TensorFlow

  • 80+ monitoring tool integrations
  • Long term memory about your stack
  • Locally run Mac App available
Read more

Time to stop copy pasting your errors onto Google!