Home / AWS

AWSRunbookAdvanced

Sev1: RDS instance stuck in incompatible-parameters or incompatible-network and the database is down

An RDS instance will not start after a parameter, class or network change and sits in incompatible-parameters or incompatible-network. Find the cause, bring it back, or restore with PITR.

Deepak Bhardwaj6 min read

Applies toAmazon RDS for PostgreSQL, MySQL, MariaDB, Oracle and SQL Server (single-AZ and Multi-AZ instances), AWS CLI v2

Symptoms

  • Applications cannot connect. The endpoint still resolves, but nothing answers on the database port.
  • The console or CLI shows the instance status as incompatible-parameters or incompatible-network.
  • It usually follows a change: a reboot after a parameter group edit, an instance class downsize, a Multi-AZ conversion, a start after a stop, or a subnet change.
  • Most modify operations fail in this state with an InvalidDBInstanceState error.

Check the status first:

aws rds describe-db-instances --db-instance-identifier prod-db \
  --query "DBInstances[].[DBInstanceIdentifier,DBInstanceStatus,DBInstanceClass,DBParameterGroups[].[DBParameterGroupName,ParameterApplyStatus]]" \
  --output json

Step 1: read the RDS events (2 minutes)

RDS usually tells you what broke. Look at the last 24 hours of events for the instance:

aws rds describe-events --source-type db-instance --source-identifier prod-db \
  --duration 1440 --query "Events[].[Date,Message]" --output table

For incompatible-parameters, also read the latest error log. The database engine normally logs the exact parameter it rejected.

aws rds describe-db-log-files --db-instance-identifier prod-db \
  --query "reverse(sort_by(DescribeDBLogFiles,&LastWritten))[:3].LogFileName" --output text
aws rds download-db-log-file-portion --db-instance-identifier prod-db \
  --log-file-name error/postgresql.log.2026-11-16-09 --output text | tail -50

Log file names vary by engine (error/mysql-error.log for MySQL, trace/alert_ORCL.log for Oracle); use the names the first command returns.

Fix A: incompatible-parameters

The instance cannot start with the values in its DB parameter group. Common causes:

Cause Typical example Fix
Memory setting too large for the class shared_buffers or innodb_buffer_pool_size hard-coded, then the class was downsized Use the default formula or a smaller value
Library or plugin not available Unknown extension in shared_preload_libraries Remove it from the list
Invalid combination max_connections times per-connection memory exceeds RAM Lower max_connections or per-session memory
Wrong family after an engine upgrade Group from an older major version left attached Attach a group from the correct family
Typo in a formula Bad {DBInstanceClassMemory/...} expression Fix or reset the parameter

Find what changed in the group

List only non-default values:

PG=$(aws rds describe-db-instances --db-instance-identifier prod-db \
  --query "DBInstances[0].DBParameterGroups[0].DBParameterGroupName" --output text)
aws rds describe-db-parameters --db-parameter-group-name "$PG" --source user \
  --query "Parameters[].[ParameterName,ParameterValue,ApplyType]" --output table

Check CloudTrail for the edit that came before the outage:

aws cloudtrail lookup-events --lookup-attributes AttributeKey=EventName,AttributeValue=ModifyDBParameterGroup \
  --start-time $(date -u -d '-3 days' +%FT%TZ) --query "Events[].[EventTime,Username]" --output table

Correct the value, then reboot

Warning

A DB parameter group can be shared. Check which instances use it before you edit it, or your fix lands on every one of them at their next reboot: aws rds describe-db-instances --query "DBInstances[?DBParameterGroups[?DBParameterGroupName=='$PG']].DBInstanceIdentifier"

Reset only the bad parameter back to its default:

aws rds reset-db-parameter-group --db-parameter-group-name "$PG" \
  --parameters "ParameterName=shared_buffers,ApplyMethod=pending-reboot"

Or set a value that fits the class:

aws rds modify-db-parameter-group --db-parameter-group-name "$PG" \
  --parameters "ParameterName=max_connections,ParameterValue=400,ApplyMethod=pending-reboot"

Then reboot so the instance starts with the corrected group:

aws rds reboot-db-instance --db-instance-identifier prod-db
aws rds wait db-instance-available --db-instance-identifier prod-db

If the group was shared and you cannot change it safely, fall back to the PITR path below and point the new instance at a clean parameter group.

Fix B: incompatible-network

RDS cannot place or reattach the instance's network interface. Causes include no free IP addresses in the DB subnet group's subnets, a subnet that was deleted from the VPC, a missing security group, or VPC DNS settings turned off. Check them:

SNG=$(aws rds describe-db-instances --db-instance-identifier prod-db \
  --query "DBInstances[0].DBSubnetGroup.DBSubnetGroupName" --output text)
aws rds describe-db-subnet-groups --db-subnet-group-name "$SNG" \
  --query "DBSubnetGroups[0].Subnets[].[SubnetIdentifier,SubnetAvailabilityZone.Name,SubnetStatus]" --output table

aws ec2 describe-subnets --subnet-ids subnet-aaa subnet-bbb \
  --query "Subnets[].[SubnetId,AvailabilityZone,AvailableIpAddressCount]" --output table

VPC=$(aws rds describe-db-subnet-groups --db-subnet-group-name "$SNG" --query "DBSubnetGroups[0].VpcId" --output text)
aws ec2 describe-vpc-attribute --vpc-id $VPC --attribute enableDnsSupport
aws ec2 describe-vpc-attribute --vpc-id $VPC --attribute enableDnsHostnames

AWS Systems Manager has a runbook, AWSSupport-ValidateRdsNetworkConfiguration, that checks these for you. List its input parameters first, because the names are case-sensitive, then start it with those names:

aws ssm describe-document --name AWSSupport-ValidateRdsNetworkConfiguration \
  --query "Document.Parameters[].[Name,Type,Description]" --output table
aws ssm start-automation-execution --document-name AWSSupport-ValidateRdsNetworkConfiguration \
  --parameters "DbInstanceIdentifier=prod-db"

Replace DbInstanceIdentifier with the exact name describe-document returned, and add an AutomationAssumeRole parameter if your account requires one.

Fix what you find (free IPs by removing unused ENIs, turn DNS support back on, restore the security group), then ask RDS to start the instance again:

aws rds start-db-instance --db-instance-identifier prod-db
aws rds wait db-instance-available --db-instance-identifier prod-db

AWS documents start-db-instance as the recovery step for this state. It can cause a short outage, and it does not resolve the state for RDS for SQL Server. If the instance restarts and retries the operation that failed, it can drop back into incompatible-network, so fix the network cause first.

Fallback: point-in-time restore to a new instance

If neither fix works within your outage budget, restore a new instance. This is the safest path when you are unsure of the root cause, because the original stays untouched for investigation.

aws rds describe-db-instance-automated-backups --db-instance-identifier prod-db \
  --query "DBInstanceAutomatedBackups[].RestoreWindow"

aws rds restore-db-instance-to-point-in-time \
  --source-db-instance-identifier prod-db \
  --target-db-instance-identifier prod-db-restored \
  --use-latest-restorable-time \
  --db-instance-class db.r6g.xlarge \
  --db-subnet-group-name prod-db-subnets-healthy \
  --vpc-security-group-ids sg-0123456789abcdef0 \
  --db-parameter-group-name prod-pg16-known-good \
  --multi-az

Caution

Stop writes to the old endpoint before you cut over, or you will have two diverging copies. Point applications at the new endpoint (or swap the DNS CNAME your apps use). Do not delete the original instance until the restored one is verified and the incident review is complete.

Remember that a restored instance does not inherit every setting. Re-apply option groups, backup retention, monitoring, deletion protection and tags.

Verify

aws rds describe-db-instances --db-instance-identifier prod-db \
  --query "DBInstances[].[DBInstanceStatus,Endpoint.Address,MultiAZ]" --output table

Connect with your usual client and run a simple read and write. Confirm application error rates drop and replicas (if any) are replicating again.

Prevent it next time

  • Never hard-code memory parameters. Keep RDS formulas such as {DBInstanceClassMemory/32768} for buffer settings so a class change cannot break startup.
  • Test parameter changes on a restored copy of the same class before production, and keep the previous group so you can attach it again.
  • One parameter group per workload tier, so a fix or a mistake does not hit unrelated instances.
  • Keep spare IPs in DB subnets. Alarm when AvailableIpAddressCount drops below a threshold, and do not share DB subnets with EKS nodes or Lambda ENIs.
  • Protect the network. Restrict ec2:DeleteSubnet, ec2:ModifyVpcAttribute and security group deletion in production VPCs to the pipeline role.
  • Turn on deletion protection and keep automated backups enabled so PITR is always available.