---
title: Deployment failures in Model Serving
description: Find the stage where a Model Serving deployment failed, read its message, and see what to do next and how to check it.
canonical_url: https://docs.databricks.com/aws/en/machine-learning/model-serving/model-serving-deployment-failures
---

# Deployment failures in Model Serving

A [served entity](https://docs.databricks.com/aws/en/machine-learning/model-serving/glossary.md#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.

## <a id="find-your-symptom" />Find your symptom

* [Stays Not ready, or shows a capacity error](https://docs.databricks.com/aws/en/machine-learning/model-serving/model-serving-deployment-failures.md#stays-not-ready-or-shows-a-capacity-error)
* [Build could not start due to an internal error](https://docs.databricks.com/aws/en/machine-learning/model-serving/model-serving-deployment-failures.md#build-could-not-start-due-to-an-internal-error)
* [Environment file doesn't list MLflow](https://docs.databricks.com/aws/en/machine-learning/model-serving/model-serving-deployment-failures.md#environment-file-doesnt-list-mlflow)
* [Container build doesn't finish in time](https://docs.databricks.com/aws/en/machine-learning/model-serving/model-serving-deployment-failures.md#container-build-doesnt-finish-in-time)
* [Deployment doesn't start in time](https://docs.databricks.com/aws/en/machine-learning/model-serving/model-serving-deployment-failures.md#deployment-doesnt-start-in-time)
* [Model failed to load](https://docs.databricks.com/aws/en/machine-learning/model-serving/model-serving-deployment-failures.md#model-failed-to-load)
* [Endpoint update failed](https://docs.databricks.com/aws/en/machine-learning/model-serving/model-serving-deployment-failures.md#endpoint-update-failed)
* [Update stays in progress, or a new update is rejected](https://docs.databricks.com/aws/en/machine-learning/model-serving/model-serving-deployment-failures.md#update-stays-in-progress-or-a-new-update-is-rejected)
* [Ended at the time limit with no specific cause](https://docs.databricks.com/aws/en/machine-learning/model-serving/model-serving-deployment-failures.md#ended-at-the-time-limit-with-no-specific-cause)

## Where to look

The endpoint's [Serving UI status](https://docs.databricks.com/aws/en/machine-learning/model-serving/manage-serving-endpoints.md) 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](https://docs.databricks.com/aws/en/machine-learning/model-serving/model-serving-genie-code.md) 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.

### <a id="build-could-not-start-due-to-an-internal-error" />Build could not start due to an internal error

The build reports this message:

```text
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."

### <a id="environment-file-doesnt-list-mlflow" />Environment file doesn't list MLflow

The **Deployments** tab shows this message:

```text
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."

### <a id="container-build-doesnt-finish-in-time" />Container build doesn't finish in time

The served entity shows this message:

```text
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](https://docs.databricks.com/aws/en/machine-learning/model-serving/update-endpoint-configuration.md).

Check: The served entity's deployment state reads DEPLOYMENT\_READY when the update works.

## Compute and capacity

### <a id="stays-not-ready-or-shows-a-capacity-error" />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](https://docs.databricks.com/aws/en/machine-learning/model-serving/custom-models.md#compute-type).

Check: The served entity's deployment state reads DEPLOYMENT\_READY when the retry works.

### <a id="deployment-doesnt-start-in-time" />Deployment doesn't start in time

The served entity shows this message:

```text
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](https://docs.databricks.com/aws/en/machine-learning/model-serving/update-endpoint-configuration.md).

Check: The served entity's deployment state reads DEPLOYMENT\_READY when the update works.

### <a id="ended-at-the-time-limit-with-no-specific-cause" />Ended at the time limit with no specific cause

A served entity shows this message:

```text
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](https://docs.databricks.com/aws/en/machine-learning/model-serving/model-serving-timeouts.md#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

### <a id="model-failed-to-load" />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:

```text
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

### <a id="endpoint-update-failed" />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](https://docs.databricks.com/aws/en/machine-learning/model-serving/model-serving-deployment-failures.md#find-your-symptom), and follow that entry's fix.

Check: The failed served entity's deployment state reads DEPLOYMENT\_READY when the fix works.

### <a id="update-stays-in-progress-or-a-new-update-is-rejected" />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:

```text
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](https://docs.databricks.com/aws/en/machine-learning/model-serving/manage-serving-endpoints.md).

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](https://docs.databricks.com/aws/en/machine-learning/model-serving/model-serving-pre-deployment-validation.md).

## Additional resources

* [Timeouts in Model Serving](https://docs.databricks.com/aws/en/machine-learning/model-serving/model-serving-timeouts.md)
* [Troubleshoot Model Serving endpoints](https://docs.databricks.com/aws/en/machine-learning/model-serving/model-serving-debug.md)
