Deployment failures in Model Serving
A served entity can fail when its container image build fails, when the model server fails to load the model, or during an update. If your endpoint isn't ready or a deployment failed, find your symptom below.
Find your symptom
- Stays Not ready, or shows a capacity error
- Build could not start due to an internal error
- Environment file doesn't list MLflow
- Container build doesn't finish in time
- Deployment doesn't start in time
- Model failed to load
- Endpoint update failed
- Update stays in progress, or a new update is rejected
- Ended at the time limit with no specific cause
Where to look
The endpoint's Serving UI status reads Ready or Not ready, and it can end with a suffix such as (Update failed). Each served entity has a deployment state. It's DEPLOYMENT_CREATING while the deployment is still being created, for example while the container image builds or the model server starts for the first time. On the Overview tab, hover over a served entity's state in the State column to see its message.
The Deployments tab shows the progress of a container build. The Logs tab holds the build logs and the service logs. While a build runs, it shows only in-progress text.
When Genie Code is on for the workspace, the failed-deployment alert has a Diagnose error button that opens Genie Code to diagnose the deployment. Genie Code reads the build logs, the endpoint events, and each served entity's deployment state, and it returns a diagnosis, evidence, and fix steps.
Container build failures
When a package can't install, the Deployments tab records "Container image creation failed, see Build Logs for details," and the Logs tab shows the installer's own error text.
Build could not start due to an internal error
The build reports this message:
Build could not start due to an internal error - please contact your Databricks representative.
It appears for any build that fails before it starts.
Recommended solution: Contact your Databricks representative.
Check: The Deployments tab shows "Container image creation finished successfully."
Environment file doesn't list MLflow
The Deployments tab shows this message:
Container image creation aborted - unsupported model: Environment file conda.yaml does not specify mlflow as a dependency
This error occurs when the model has no wheels and its environment files don't list mlflow as a dependency.
Recommended solution: List mlflow as a dependency in the model's environment files, for example as mlflow or mlflow[databricks].
Check: The Deployments tab shows "Container image creation finished successfully."
Container build doesn't finish in time
The served entity shows this message:
served entity creation aborted because the container image build did not finish in time. Please check the build logs and try updating the endpoint, and if the problem persists, please contact support@databricks.com.
The container image build has a 120-minute stage time limit.
Recommended solution: Check the build logs in the Logs tab, and then try updating the endpoint.
Check: The served entity's deployment state reads DEPLOYMENT_READY when the update works.
Compute and capacity
Stays Not ready, or shows a capacity error
A served entity stays in DEPLOYMENT_CREATING while at least one of its pods has no compute node yet. It shows "Provisioning resources for served entities." If it's still provisioning at its time limit, it ends with DEPLOYMENT_ABORTED and the message "served entity creation aborted because the resource did not become available in time." The message then says to try again.
A capacity shortage also sets the served entity's state to DEPLOYMENT_ABORTED. The capacity message appears only in some regions, and it isn't limited to GPU workloads.
Recommended solution: Try again. If the capacity message appears, it also says to try again later or choose a different workload type.
Check: The served entity's deployment state reads DEPLOYMENT_READY when the retry works.
Deployment doesn't start in time
The served entity shows this message:
served entity creation aborted because the deployment did not start in time. Please try updating the endpoint, and if the problem persists, please contact support@databricks.com.
It appears when the served entity stays in its first stage, before the container build starts, for 120 minutes.
Recommended solution: Try updating the endpoint.
Check: The served entity's deployment state reads DEPLOYMENT_READY when the update works.
Ended at the time limit with no specific cause
A served entity shows this message:
Served entity creation was aborted because it did not complete in time, and no more specific cause was found. Check the service logs and build logs for errors; if they are empty, the model server may not have started. Try updating the endpoint, and if the problem persists, contact support@databricks.com.
This error occurs when a served entity's deployment passes its time limit and no more specific cause is found. The deployment time limit for CPU workloads is 30 minutes in production. The message appears when the model server was placed on compute but didn't become ready within that limit.
For the limits on GPU workloads, see Model deployment timeouts.
Recommended solution: Follow the steps in the message above.
Check: The served entity's deployment state reads DEPLOYMENT_READY when the update works.
Model load failures
Model failed to load
The served entity's deployment state reads DEPLOYMENT_FAILED. When the model server has no more specific cause to report, its message reads:
Model server failed to load the model. Please see service logs for more information.
A model can fail to load because of its model code, its dependencies, its memory use, or how long it takes to load. In production, the default limit for a model to finish loading is 300 seconds.
Recommended solution: Read the error in the service logs in the Logs tab, and fix the cause it shows. Messages at INFO and below don't appear in the service logs by default.
Check: The served entity's deployment state reads DEPLOYMENT_READY when the fix works.
Update as a whole
Endpoint update failed
The Overview tab shows a red alert titled "Endpoint update failed," with a line in the form Failed to deploy <names>: <message> for each failure. This error occurs when a build or model load fails during an update, and the endpoint keeps serving its previous configuration. The failed served entity shows DEPLOYMENT_FAILED, and the other served entities in that update show DEPLOYMENT_ABORTED.
Recommended solution: Look up the message after the colon in Find your symptom, and follow that entry's fix.
Check: The failed served entity's deployment state reads DEPLOYMENT_READY when the fix works.
Update stays in progress, or a new update is rejected
While an update is in progress, the endpoint's state.config_update field reads IN_PROGRESS, and another update can't be made until the current one completes or fails. A new update is rejected with this message:
Endpoint served entities are currently being updated. Please try again after the current update is no longer in progress.
Recommended solution: Cancel the update in the Serving UI by selecting Cancel update on the endpoint's details page.
A time limit ends an in-progress update as a failed update rather than as a canceled one.
Check: After the cancel, the Serving UI status shows (Update canceled).
Check the model before you deploy
mlflow.models.predict loads the model, creates a virtual environment with its dependencies, and runs offline predictions. That environment runs on your machine's operating system, which can differ from production. The Python API is available from MLflow 2.10.0, and older versions use the MLflow CLI instead. For how to run this check, see Validate before deploying to Model Serving.