When executing a scaling activity, certain reasons may cause the scaling activity to become abnormal and unable to continue. This article summarizes common scaling activity error messages in the console and provides possible causes and troubleshooting suggestions to help you quickly identify and resolve scaling activity issues.
Find error details
A scaling activity enters one of five states: Rejected, Executing, Successful, Warning, or Failed. For a description of each scaling activity state, see Scaling activity status. The Rejected, Warning, and Failed states indicate an exception.To investigate a scaling activity exception, go to the Scaling Activitiestab in the Auto Scaling console, locate the abnormal scaling activity, and click its ID to view the status and error details. For more information, see View the details of a scaling activity.
Scaling activity rejected
The following table lists common rejection errors, their causes, and solutions.
Error message | Cause | Solution |
| The ApsaraDB RDS instance attached to the scaling group does not exist. | Verify that the ApsaraDB RDS instance attached to the scaling group exists. |
| The Server Load Balancer (SLB) instance is not in the Active state. | Verify that the SLB instance attached to the scaling group is in the Active state. |
| The number of instances in a scaling group must remain within the defined minimum and maximum limits. Any scaling activity that causes the instance count to exceed these limits will be rejected. | Check the current instance count and scaling rule configuration. Make sure the post-scaling count stays within the configured min and max limits. |
| The ApsaraDB RDS instance is in an abnormal state and cannot support scaling activities. | Log on to the ApsaraDBRDS console to check the instance status. After confirming that the instance is healthy, retry the scaling activity. |
| A scaling activity is already in progress for the scaling group. | Wait for the current scaling activity to complete before initiating a new one. |
| The scaling group is in the cooldown period. | Wait for the cooldown period to end before triggering another scaling activity. For more information, see Cooldown period. |
| The scaling group is in an unsupported state, such as Disabled or Deleting. | If the scaling group is Disabled, enable it before initiating the scaling activity. |
| The security group specified in the scaling configuration does not exist. | Update the scaling configuration to reference a valid security group. |
| Removing the instances would bring the group size below the configured minimum. | Check the current instance count and scaling rule configuration. Make sure the post-scaling count stays within the configured min and max limits. |
| The SLB instance attached to the scaling group does not exist. | Verify that the SLB instance exists. For more information, see Attach or detach SLB instances to or from scaling groups. |
| The Resource Access Management (RAM) user does not have the permissions required to operate Auto Scaling resources. | Log on to the RAM console and grant the necessary permissions. |
| Attaching the instances would bring the group size above the configured maximum. | Check the current instance count and scaling rule configuration. Make sure the post-scaling count stays within the configured min and max limits. |
| The vSwitch is in the pending or modifying state. | Check the status of the vSwitch associated with the scaling group. After confirming it is working correctly, retry the scaling activity. |
| The vSwitch associated with the scaling group does not exist. | Make sure the vSwitch has not been deleted. |
| The launch template associated with the scaling group does not exist. | Log on to the ECS console to verify that the launch template exists. If necessary, update the launch template for the scaling group. |
| The ECS instance and the scaling group are in different virtual private clouds (VPCs). | Make sure the ECS instance and the scaling group are in the same VPC, or that the ECS instance uses the classic network. |
| The SLB instance and the vSwitch are in different VPCs. | Make sure the vSwitch and the SLB instance are in the same VPC. For more information, see Attach or detach SLB instances to or from scaling groups. |
| An ECS instance can belong to only one scaling group at a time. | Make sure the instances to be added are not already part of another scaling group. |
| The image specified in the scaling configuration does not exist. | Update the scaling configuration to reference an image that exists and is accessible. |
| The data disk snapshot specified in the scaling configuration does not exist. | Update the scaling configuration to reference a snapshot that exists and is accessible. |
Scaling activity failed
The following table lists common failure errors, their causes, and solutions.
Error message | Cause | Solution |
| The target instance is in the Standby or Protected state. | Manually remove or release the instance. |
| The scaling group is in a state that does not support instance removal. | Make sure the scaling group is in the Enabled state. For more information, see RemoveInstances. |
| The instance type specified in the scaling configuration is no longer available for purchase. | Update the scaling configuration to use an available instance type. For more information, see Overview of instance families. |
| The image ID specified in the scaling configuration is invalid or the image no longer exists. | Update the scaling configuration to reference an image that exists and is accessible. |
| The account has overdue payments. | Make sure your account balance is sufficient. Check your balance in Expenses and Costs. |
| The account balance is insufficient to create new instances. | Make sure your account balance is sufficient.Check your balance in Expenses and Costs. |
| The account has not completed real-name authentication. | Complete real-name authenticationbefore retrying. |
| The maximum hourly price for spot instances is below the current market price. | Update the scaling configuration to set a higher maximum hourly price or adjust the bidding policy. For more information, see Overview. |
| The pay-as-you-go instance quota for the account has been reached. | Contact Alibaba Cloud support or submit a service ticket to request a quota increase. For more information, see Manage ECS quotas. |
| The key pair specified in the scaling configuration does not exist. | Verify that the key pair is valid. If necessary, update the scaling configuration to use a different key pair. |
| The system disk type is not compatible with I/O-optimized instances. | Update the scaling configuration to use a supported system disk type: |
| The requested resource is out of stock in the specified zone. | Update the scaling configuration or scaling group to use a different instance type or zone. |
| The RAM role specified in the scaling configuration does not exist or is invalid. | Update the scaling configuration to assign a valid RAM role. |
| The account has no default payment method on file. | Set a default payment method in Billing Management. |
| The number of instances in the security group has reached its limit. | Distribute instances across multiple scaling groups, each associated with a separate security group. |
| The instance is not in a state that supports the requested operation. | Check the instance state to ensure it is in the Running state and retry the operation. |
| A lifecycle hook with Scaling Activity set to Scale-out Event and Default Execution Policy set to Reject triggered a rollback after the timeout expired. | Review the lifecycle hook configuration and adjust the execution policy as needed. |
| The security group specified in the scaling configuration does not exist. | Update the scaling configuration to reference a valid security group. |
| The image specified in the scaling configuration does not exist. | Update the scaling configuration to reference an image that exists. |
| The account balance is insufficient. | Make sure your account balance is sufficient. |
| The quota for ECS instances that can be added to the SLB backend server group has been reached. | Request a quota increase. For more information, see Limits and Quota management. |
| The image name specified in the scaling configuration does not exist. | Update the scaling configuration to reference a valid image name. |
| The specified resource type is not available in the selected zone. | Specify multiple zones and multiple instance types in the scaling configuration to improve scale-out success rate. For more information, see Manage scaling groups and Create a scaling configuration of the ECS type. |
| The disk snapshot specified in the scaling configuration does not exist. | Update the scaling configuration to reference a valid snapshot. |
| The vSwitch does not have enough available private IP addresses. | Expand the IP range of the vSwitch, or configure the scaling group to span multiple zones. For more information, see Manage scaling groups. |
| The system disk size specified in the scaling configuration is smaller than the image size. | Increase the system disk size in the scaling configuration, or use an image with a smaller size. |
| The pay-as-you-go disk quota for the account has been reached. | Contact Alibaba Cloud support or submit a service ticket to request a quota increase. For more information, see Manage ECS quotas. |
| The | Grant ECS permissions to the |
| The instance type is no longer available for purchase in the specified zone. | Configure the scaling group to span multiple zones. For more information, see Manage scaling groups. |
| The instance type is out of stock in the specified zone. | Specify multiple zones and multiple instance types in the scaling configuration to improve scale-out success rate. For more information, see Manage scaling groups and Create a scaling configuration of the ECS type. |
| The instance type is not I/O-optimized and does not support key pairs. | Change the instance type to an I/O-optimized type, or remove the |
| Instances in the classic network do not support RAM roles. | Change the scaling group's network type to VPC, or remove the |
| The RAM role name specified in the scaling configuration does not exist. | Log on to the RAM console to verify that the RAM role exists, or update the scaling configuration to use a different RAM role. |
| The image and instance type are incompatible. | Go to the ECS product page to check which images are supported by the instance type, then update the scaling configuration accordingly. |
| The instance type is sold out in the specified zone. | Specify multiple zones and multiple instance types in the scaling configuration to improve scale-out success rate. For more information, see Manage scaling groups and Create a scaling configuration of the ECS type. |