> ## Documentation Index
> Fetch the complete documentation index at: https://deployz.dev/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Fix install failures

> Resolve failures that happen while installing into a customer's AWS account.

An install can fail because of something in your customer's AWS account: a policy, a permission, a limit, or AWS capacity. This page covers those failures, who fixes each one, and how you retry. If the install finished but the application never became healthy, see [Fix startup and health check failures](https://deployz.dev/docs/troubleshooting/startup-and-health.md) instead.

## How an install failure looks

**In the dashboard:** the deployment shows **Install failed** in the deployments list. The deployment page shows a recovery panel with what happened, why, and how to fix it. Expand **Technical details** for the failure code and the AWS resource that failed. See [Read the recovery panel](https://deployz.dev/docs/troubleshooting/overview.md#read-the-recovery-panel).

**On your customer's install page:** your customer sees **Deployment failed** and a short explanation without the failure code. The page also tells them whether they need to act:

* For most failures on this page, it says: "Make the change described above in your AWS account. Then ask `<provider>` to retry." The page shows this for every failure that needs a change outside the application, including `RDS_AZ_CAPACITY`, where nothing in the account needs to change.
* Otherwise, it says: "Contact your software provider and ask them to retry the deployment."

If resources from the attempt may remain in the account, the page also says: "Some resources from this attempt may remain in your AWS account and can cost money. Contact your software provider before you delete anything."

Your customer can't retry a failed install. You retry it after the cause is fixed. See [Retry a failed install](#retry-a-failed-install).

## An AWS organization policy blocks the setup

**Symptom:** Failure code `AWS_SCP_BLOCKED`. The recovery panel says setup was blocked by a policy in your customer's cloud organization.

**Cause:** Your customer's AWS account belongs to an AWS organization with a service control policy (SCP). An SCP is an organization-wide rule that limits what any user or role in the account can do. It can block a resource type, a Region, or a specific action that the deployment needs.

**Who:** your customer's AWS administrator, then you.

**Fix:** Ask your customer to have their AWS administrator allow the Deployz setup in this account and Region, or to install into an account without that restriction. **Technical details** shows the resource and the reason AWS gave, which help their administrator find the rule. After they confirm the change, [retry](#retry-a-failed-install).

## The connector lacks permission

**Symptom:** Failure code `AWS_PERMISSION_DENIED`. The recovery panel says the connector was refused permission for something the deployment needs.

**Cause:** Either a policy in your customer's account denies the action, or the permissions the Deployz connector received at install time don't cover it. **Technical details** names the refused action.

**Who:** your customer, in their AWS account, then you.

**Fix:**

1. Ask your customer whether a policy in their account, such as an SCP or a permissions boundary set by their administrator, denies that action. If it does, they remove the restriction for the Deployz resources.
2. If the connector is out of date, the deployment page shows a connector update alert. Your customer updates the connector so it has the current permissions. See [Reconnect or update the Deployz connector](https://deployz.dev/docs/operate/connector.md).
3. [Retry](#retry-a-failed-install).

## The AWS account reached a limit

**Symptom:** Failure code `QUOTA_EXCEEDED`. The recovery panel says your customer's cloud account hit a resource limit during setup.

**Cause:** AWS limits how many of some resources an account can have in each Region. Each deployment creates its own network, with one VPC, one NAT gateway, and one Elastic IP address, plus Fargate tasks for the application. The limits customers reach most often are Elastic IP addresses (AWS's default is five per Region), NAT gateways, VPCs, and Fargate vCPUs. **Technical details** shows which resource hit its limit. For the full list of resources, see [AWS resources Deployz creates](https://deployz.dev/docs/reference/aws-resources.md).

Deployz also uses this code when AWS refuses requests because too many were sent in a short time. In that case, the reason in **Technical details** mentions too many requests, and no limit increase is needed.

**Who:** your customer, in their AWS account, then you.

**Fix:** Your customer either frees up the resource, for example by releasing unused Elastic IP addresses, or requests a limit increase in the AWS Service Quotas console. Increases can take time for AWS to approve. After the new limit applies, [retry](#retry-a-failed-install). If the reason was too many requests, wait a few minutes, then retry.

## AWS has no database capacity

**Symptom:** Failure code `RDS_AZ_CAPACITY`. The recovery panel says the cloud provider couldn't create the database because there isn't enough capacity in the available zones.

**Cause:** AWS doesn't have room for a new database server of the required type in the Availability Zones the deployment uses. An Availability Zone is one of the separate data centers in an AWS Region. This is a temporary AWS capacity limit. It isn't caused by your customer's quota or permissions.

**Who:** you, in the Deployz dashboard.

**Fix:** Wait until the failed attempt has finished rolling back. Your customer's install page says when the failed deployment has been cleaned up. Then [retry](#retry-a-failed-install). A retry looks for available zones again. If it keeps failing, [contact support](https://share.hsforms.com/1dOsn_DJtRhq47DXIaRjeLw5auur).

Your customer's install page tells them to make a change in their AWS account before you retry. For this failure, nothing in their account needs to change. Let your customer know that you'll retry.

## Database creation failed

**Symptom:** Failure code `DATABASE_CREATE_FAILED`. The recovery panel says the database could not be created.

**Cause:** Your customer's account rejected the database this application needs. Common causes:

* The account is on an AWS free plan, which accepts fewer days of automated backups than the Deployz default of 7.
* A policy or a quota limits databases in this Region.

**Who:** you, in the Deployz dashboard, or your customer, in their AWS account, then you.

**Fix:** **Technical details** shows the reason AWS gave.

* **AWS free plan:** on the failed deployment's page, choose a lower **Backup retention period**, from 1 to 35 days, then select **Retry install**. Or ask your customer to upgrade their AWS plan. The setting appears only after a first install fails this way, and it never changes a database that already exists. A deployment created before this setting existed doesn't show it: create a new deployment for the customer instead.
* **Policy or quota:** ask your customer to check whether their account limits databases in this Region. After they resolve it, [retry](#retry-a-failed-install).

## Cache setup failed

**Symptom:** Failure code `REDIS_PROVISIONING_FAILED`. The recovery panel says the cache this application needs couldn't be set up.

**Cause:** A limit was reached, or AWS rejected the cache, in your customer's account.

**Who:** your customer checks their limits. Deployz support helps with the retry.

**Fix:** Ask your customer to check their account's service limits for Amazon ElastiCache in this Region. Deployz treats this failure as one that needs Deployz, so the dashboard shows a **Contact Deployz support** link instead of **Retry install**. [Contact support](https://share.hsforms.com/1dOsn_DJtRhq47DXIaRjeLw5auur) with the deployment ID.

## The setup failed and was rolled back

**Symptom:** Failure code `STACK_CREATE_FAILED`. The recovery panel says the initial setup in your customer's account didn't complete.

**Cause:** One of the resources being created failed, so AWS rolled back the whole setup. When Deployz recognizes the cause, it shows a more specific code instead.

**Checks:** Open **Technical details** and find the failed resource and its reason. Your customer can see the same events in AWS CloudFormation.

**Who:** depends on the cause. Usually your customer, then you.

**Fix:** Resolve the cause the reason points to. It's often one of the causes on this page. Then [retry](#retry-a-failed-install).

## The connector stack already exists

**Symptom:** Your customer tries to create the connector stack, and AWS CloudFormation says a stack with that name already exists. Or your customer created a second connector stack for the same deployment.

**Cause:** The deployment was installed before, so its connector stack is still in your customer's account. A deployment has one connector stack. Creating a second one isn't supported.

**Who:** your customer, on the install page and in their AWS console.

**Fix:** Your customer opens the latest install link, which shows **Reconnect the existing connector**, and updates the existing stack with the new values. See [Update the connector stack](https://deployz.dev/docs/customers/update-connector.md#reconnect-the-connector).

If your customer already created a second connector stack, they delete that extra stack in CloudFormation and update the original one as above.

## The Region is unavailable

**Symptom:** Failure code `REGION_NOT_SUPPORTED` or `TEMPLATE_UNAVAILABLE`.

**Cause:** `REGION_NOT_SUPPORTED` means Deployz doesn't support the Region the deployment was created for. `TEMPLATE_UNAVAILABLE` means the setup template for the Region couldn't be fetched, which is a problem on the Deployz side.

> [!WARNING]
>
> You can't change a deployment's Region after you create it. To move to another Region, you remove the deployment and create a new one.

**Who:** you, in the Deployz dashboard, or Deployz support.

**Fix:**

* For `REGION_NOT_SUPPORTED`, retrying can't help. Remove the deployment and create a new one in a supported Region. See [AWS Regions](https://deployz.dev/docs/share/regions.md) and [Remove a deployment](https://deployz.dev/docs/operate/remove.md).
* For `TEMPLATE_UNAVAILABLE`, [contact support](https://share.hsforms.com/1dOsn_DJtRhq47DXIaRjeLw5auur). Don't retry until Deployz confirms the fix.

## The application template predates the role boundary

**Symptom:** Failure code `STACK_CREATE_FAILED`. The install fails right away, before the application stack is created. **Technical details** says that the application template predates the IAM role boundary the connector requires.

**Cause:** Your customer's connector requires a permissions boundary on every IAM role in the application stack. This deployment was prepared before Deployz added that boundary, so the connector refuses it rather than letting AWS CloudFormation fail partway through.

**Who:** you, in the Deployz dashboard.

**Fix:** Create a new deployment for this customer. A new deployment is prepared with the boundary. No application resources were created, so there's nothing to clean up.

## The sign-in code does not arrive

**Symptom:** Your customer opens the install page, enters their email under **Sign in with your email**, and no code arrives. Or the page says "Too many wrong codes. Request a new code. If this continues, wait one hour."

**Cause:** The email must match the one on the customer record. The page answers the same way for every address and never says whether an address has access, so a wrong address looks like a success but sends nothing. A message can also land in spam. Deployz sends at most 5 codes per address per hour, and blocks an address for one hour after 10 wrong codes.

**Who:** your customer, then you.

**Fix:**

1. Ask your customer to check their spam folder for a message from Deployz with the subject "Your sign-in code for" and the application name.
2. In **Customers**, open the customer and check **Email**. If it's wrong, select **Edit customer**, correct it, and save. This works only before the customer's first verified sign-in. After that, the first verified address stays the owner of the deployment.
3. Ask your customer to wait 60 seconds, then select **Send a new code**.
4. After too many wrong codes, ask your customer to wait one hour.

Signed in to the dashboard, you can open the customer's page without a code to check the deployment yourself.

## Retry a failed install

**Who:** you (the vendor), in the Deployz dashboard.

Before you retry, make sure the cause is fixed. Retrying a failure that needs a change in your customer's account fails the same way.

1. Open the deployment.
2. Select **Retry install**.
3. Review the **Retry the install of `<application>`?** dialog. Deployz removes the failed infrastructure from the previous attempt in your customer's account, then runs the install again. No data is lost.
4. Select **Retry install** to confirm.

Your customer doesn't need to do anything for the retry, and their install page has no retry for a failed install. Progress shows on the deployment page and on their install page.

What you see instead of **Retry install** depends on the failure:

| You see | What it means |
| - | - |
| **Retry install** | You can retry once the cause is fixed. Deployz offers it for every failure code except those that need Deployz. |
| A **Contact Deployz support** link, with no button | The fault is on the Deployz side. [Contact support](https://share.hsforms.com/1dOsn_DJtRhq47DXIaRjeLw5auur) instead of retrying. |
| **Issue new install link** in the **Retry install** dialog, with the retry button unavailable | The connector is offline or never connected, and the retry needs it. Issue a new install link and send it to your customer. The new link is valid for 7 days. When the connector connects, the install starts again. See [Retry install says the connector is offline](https://deployz.dev/docs/troubleshooting/connector.md#retry-install-says-the-connector-is-offline). |
| **Deploy update** | The install succeeded, but no release started. Deploy a release instead. See [Deploy an update](https://deployz.dev/docs/operate/deploy-update.md). |

**Retry install** is only for a first install that failed. Once an install has succeeded, you recover by deploying again with **Deploy update** or **Retry update**. See [Deploy an update](https://deployz.dev/docs/operate/deploy-update.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.