OpenSearch Snapshot Troubleshooter
Quick start
- Symptom → layer map (first plausible match drives the first probe):
repository_verification_exception → REPOSITORY_VERIFICATION /
IAM_ROLE_S3_ACCESS; PUT _snapshot returns 4xx / 5xx →
REPOSITORY_REGISTRATION; snapshot stays IN_PROGRESS for hours →
SNAPSHOT_TIMEOUT / SHARD_ALLOCATION_RESTORE; restore returns 400
with version message → RESTORE_VERSION_CONFLICT; restore returns
resource_already_allocated_exception → RESTORE_ALIAS_CONFLICT;
ConcurrentSnapshotExecutionException → CONCURRENT_SNAPSHOT_LIMIT;
snapshots vanish from S3 after N days → S3_LIFECYCLE_DELETION;
migration_failed to warm/cold → COLD_STORAGE_MIGRATION;
SnapshotException reading index-N blob → MANIFEST_CORRUPTION;
cross-Region replication lag → CROSS_REGION_REPLICATION; audit
logs empty in S3 → CUR_AUDIT_LOG_CONFIG.
- Always verify with a probe, never guess. Each layer has a
single command that proves or disproves it. A
ROOT_CAUSE_IDENTIFIED
verdict requires positive evidence — a failing probe that matches
the symptom.
- Manual and automated snapshots use different repositories.
Automated snapshots write to a service-managed S3 bucket
(
cs-automated / cs-automated-enc) that you cannot list directly.
Manual snapshots write to a customer-owned S3 bucket via a customer
IAM role. Operators "cannot find the snapshot in S3" while
debugging an automated snapshot are looking in the wrong bucket.
- Restore requires target engine version same or higher than
source. A snapshot on OpenSearch 2.13 restores into 2.13 or
higher, fails on 2.11 with
version_not_supported. ES 7.x →
OpenSearch 2.x requires the snapshot-upgrade flow via 1.x.
- One snapshot per repository at a time. A second snapshot into
the same repository returns
ConcurrentSnapshotExecutionException.
Automated and manual schedules colliding on the same repository
is the most common cause.
Mindset
A failing OpenSearch snapshot is usually a permissions, lifecycle,
or version-compatibility incident wearing a cluster costume. The
domain is healthy in the majority of cases; the broken thing is
the IAM role assumed for S3, the bucket policy that does not trust
the role, an S3 lifecycle rule expiring snapshot blobs, a version
mismatch between source and target, or an alias collision at
restore time. Treat the OpenSearch cluster as innocent until the
repository registration, IAM role, bucket lifecycle, and version
layers are proven clean. Senior analytics engineers do not start
by raising node count; they start with _snapshot/<repo>/_status,
get-bucket-policy, and simulate-principal-policy.
Philosophy
- Repository registration is a three-way contract. A working
S3 snapshot repository requires (1) an IAM role the OpenSearch
domain can assume, (2) a trust policy on that role listing the
OpenSearch service principal for the account, and (3) a bucket
policy granting the role
s3:PutObject/s3:ListBucket/s3:GetObject/
s3:DeleteObject/s3:GetBucketLocation. Any one missing and
registration either fails outright or succeeds with verification
failure on the first snapshot. Operators who "added S3 permissions
to the role" but still see repository_verification_exception
usually miss the bucket-policy side.
- Snapshot and restore are NOT symmetric on version. A snapshot
on OpenSearch 2.x restores into any 2.y ≥ 2.x. It CANNOT restore
into a lower 2.x, into ES 7.x, or skip a major version. The
snapshot-upgrade flow (7.x → 1.x → 2.x) handles cross-major
restore. Operators who "took a snapshot in prod, tried to restore
into a lower-version dev domain" hit
version_not_supported on
the first shard and assume corruption.
- Restore into a non-empty cluster fights aliases and existing
indices.
_restore opens snapshot indices by their original
names. If an index with the same name (or the alias the snapshot
references) already exists, restore fails with
resource_already_allocated_exception or silently skips. The fix
is rename_pattern/rename_replacement on restore, or delete
the conflicting index/alias first — not to retry.
- S3 lifecycle rules DO delete snapshot blobs. Snapshots are
trees of
index-*, snap-* blobs referenced by repository
metadata. Segments are deduplicated across snapshots. An S3
lifecycle rule that expires "all objects" after N days deletes
blobs while the repository still lists the snapshot. The next
restore fails with SnapshotMissingException. Always scope
lifecycle rules by prefix when a bucket holds snapshot repositories.
Quick reference — symptom triage table
| Symptom phrase / error |
Most likely layer |
First probe |
repository_verification_exception on PUT _snapshot or first snapshot |
REPOSITORY_VERIFICATION / IAM_ROLE_S3_ACCESS |
get-bucket-policy, iam simulate-principal-policy on snapshot role |
PUT _snapshot/<repo> returns 4xx; repository never registers |
REPOSITORY_REGISTRATION |
curl $ENDPOINT/_snapshot/<repo> — does the repo exist? get-role trust policy |
Snapshot stays IN_PROGRESS; _cat/shards shows UNASSIGNED |
SNAPSHOT_TIMEOUT / SHARD_ALLOCATION_RESTORE |
_snapshot/<repo>/<snap>/_status, _cat/shards?v&h=index,shard,prirep,state,unassigned.reason |
_restore returns 400 with version_not_supported |
RESTORE_VERSION_CONFLICT |
_snapshot/<repo>/<snap> — read engine_version |
_restore of alias-bearing indices returns resource_already_allocated_exception |
RESTORE_ALIAS_CONFLICT |
_cat/aliases?v&s=alias:desc for the alias in the snapshot |
migration_failed to UltraWarm/Cold; warm node count < 3 |
COLD_STORAGE_MIGRATION |
describe-domain-config (WarmEnabled, WarmCount), _nodes/_all |
_snapshot/<repo>/_status returns SNAPSHOT_FAILED; S3 lifecycle shows ExpirationInDays |
S3_LIFECYCLE_DELETION |
get-bucket-lifecycle-configuration, s3 ls s3://<bucket>/<prefix> --recursive |
Cross-Region async replication lags; follower SYNCING lag rising |
CROSS_REGION_REPLICATION |
_plugins/_replication/<index>/_status, source _cluster/settings |
_restore stalls; _cat/recovery shows throttle at low % |
SHARD_ALLOCATION_RESTORE |
_cat/recovery?v&h=index,shard,time,stage,percent |
SnapshotException reading index-N blob; _status shows INTERNAL_ERROR |
MANIFEST_CORRUPTION |
s3 head-object for size 0; s3 ls for missing blob |
Second snapshot into same repo fails immediately with ConcurrentSnapshotExecutionException |
CONCURRENT_SNAPSHOT_LIMIT |
_snapshot/_status — is another snapshot IN_PROGRESS? |
Audit S3 bucket empty; LogPublishingOptions.AuditLogs: DISABLED |
CUR_AUDIT_LOG_CONFIG |
describe-domain-config LogPublishingOptions, s3 ls s3://<audit-bucket>/ |
| None of the above; cluster red; multiple indices unassigned |
INSUFFICIENT_DATA |
_cluster/health, describe-domain (ClusterConfig) |
Pre-flight: domain state and gather-info gate
Moved verbatim to references/diagnostic-commands.md — load on demand.
Read it only when this section applies.
Domain-state short-circuit
DomainStatus / ChangeProgressDetails |
Effect on diagnosis |
Processing: false, no PendingChanges |
Domain steady; proceed with symptom-driven diagnosis. |
Processing: true (blue/green deployment) |
Configuration update in flight. Snapshots can run but may be slow. Wait for Processing: false. |
UpgradeProcessing: true |
Engine upgrade in flight. Snapshots can fail verification. Wait for UpgradeStatus: Succeeded. |
UpgradeStatus: RollbackInProgress |
Last upgrade failed; cluster is on prior engine. A restore that assumed higher version fails. Re-read EngineVersion. |
ClusterConfig.DedicatedMasterEnabled: false and cluster red |
Heavy snapshot can starve the elected master. This is a cluster-sizing issue, not snapshot config. |
If input is malformed (missing DomainName, absent symptom, no
repository/snapshot id for restore debugging), emit:
TARGET: <domain-name or unknown>
VERDICT: INSUFFICIENT_DATA
REASON: Input is missing required context — at minimum a symptom
description (error string or observed behaviour) and the
DomainName plus, for restore errors, the repository name and
snapshot id.
LAYER: UNKNOWN
EVIDENCE:
- Missing: <list specific missing fields>
REMEDIATION: Re-prompt for: (1) the exact error string or observed
symptom, (2) the DomainName and EngineVersion, and (3) for
restore errors, the source and target EngineVersions plus the
repository name and snapshot id.
Process — Diagnostic decision tree (apply in symptom order)
Symptom-driven. Pick the entry point based on the observed symptom,
then walk the layer-specific probes in order. Never emit
ROOT_CAUSE_IDENTIFIED without a failing probe that matches the
symptom.
Step 0: Non-obvious behaviours that change diagnosis
Moved verbatim to references/advanced-patterns.md — load on demand.
Read it only when this section applies.
Step 1: Repository registration & verification layer
Entry: PUT _snapshot/<repo> returns 4xx / 5xx, or first snapshot
fails with repository_verification_exception.
- Does the repository exist?
curl -sS "https://$ENDPOINT/_snapshot/<repo>" | jq '.'
- 404 → never registered; re-issue
PUT _snapshot.
- Was the registration body correct? Minimum body for an S3
repository on a managed domain:
{"type": "s3", "settings": {
"bucket": "<bucket>", "region": "<bucket-region>",
"base_path": "<prefix>",
"iam_role_arn": "arn:aws:iam::<account>:role/<role>",
"compress": true}}
- Missing
iam_role_arn → registration succeeds but writes fail.
REPOSITORY_REGISTRATION.
region missing and bucket is in a different Region →
verification fails. REPOSITORY_REGISTRATION.
base_path overlaps another repository's prefix → manifest
collision; both repositories become corrupt.
- Is the snapshot role's trust policy correct?
aws iam get-role --role-name <role-name> \
--query 'Role.AssumeRolePolicyDocument' --output json | jq '.'
- Trust MUST list
"Service": "opensearchservice.amazonaws.com".
- Cross-account: MUST include
aws:SourceAccount and aws:SourceArn
conditions on the principal. REPOSITORY_REGISTRATION.
Step 2: Repository verification & IAM role layer
Entry: repository_verification_exception,
repository_verification_failed_exception, or every snapshot attempt
fails.
- Bucket policy — does it grant the snapshot ROLE?
aws s3api get-bucket-policy --bucket <bucket> --output json | jq '.'
- Policy MUST grant the snapshot role ARN the actions
s3:ListBucket, s3:GetObject, s3:PutObject, s3:DeleteObject,
s3:GetBucketLocation on arn:aws:s3:::<bucket> and
arn:aws:s3:::<bucket>/*.
- Bucket policy keyed to the SERVICE PRINCIPAL is incorrect — the
role's session ARN does not match. IAM_ROLE_S3_ACCESS.
- Missing
s3:GetBucketLocation → S3 client cannot resolve Region.
IAM_ROLE_S3_ACCESS.
- Missing
s3:PutObjectAcl for cross-account → cross-account write
fails the ACL step. IAM_ROLE_S3_ACCESS.
- Role policy — authoritative simulation.
aws iam simulate-principal-policy \
--policy-source-arn "arn:aws:iam::<account>:role/<role>" \
--action-names s3:PutObject s3:ListBucket s3:GetObject s3:DeleteObject s3:GetBucketLocation \
--resource-arns "arn:aws:s3:::<bucket>" "arn:aws:s3:::<bucket>/*" --output json
- Any action that returns
implicitDeny or explicitDeny confirms
the role is missing the permission. IAM_ROLE_S3_ACCESS.
- SSE-KMS bucket — does the role have KMS permissions?
aws s3api get-bucket-encryption --bucket <bucket> --output json
aws iam simulate-principal-policy --policy-source-arn "<role-arn>" \
--action-names kms:Decrypt kms:GenerateDataKey \
--resource-arns "<kms-key-arn>" --output json
- SSE-KMS bucket where the role lacks
kms:GenerateDataKey → first
object PUT fails with AccessDenied from KMS. IAM_ROLE_S3_ACCESS.
- Verification-file check. OpenSearch writes a
verification-file-<uuid> object during verification, then reads
it back. If s3 ls s3://<bucket>/<prefix>/verification-file-*
shows the object, write succeeded; failure is read-path (KMS,
policy, Region). If absent, failure is write-path (IAM, bucket
policy, wrong base_path).
If IAM is correct but verification still fails, emit
REPOSITORY_VERIFICATION with the verification-file evidence.
Step 3: Snapshot timeout & shard allocation layer
Entry: snapshot stays IN_PROGRESS for hours, or returns
SNAPSHOT_FAILED with master_not_discovered_exception /
process_cluster_event_timeout_exception.
- Snapshot status — which shard is stuck?
curl -sS "https://$ENDPOINT/_snapshot/<repo>/<snap>/_status?human" | \
jq '.snapshots[0].shards_stats, .snapshots[0].indices[].shards.stats'
stage: INIT shards (never started) → snapshot thread blocked on
master event.
- Cluster health and shard assignment.
curl -sS "https://$ENDPOINT/_cluster/health?pretty"
curl -sS "https://$ENDPOINT/_cat/shards?v&h=index,shard,prirep,state,unassigned.reason" | grep -i unassigned
- Cluster red → snapshot will go
PARTIAL or FAILED. Root cause
is the missing primary shard, not the snapshot.
- Master node health.
curl -sS "https://$ENDPOINT/_cat/master?v"
curl -sS "https://$ENDPOINT/_nodes/_master/jvm,process"
master_not_discovered_exception during snapshot → elected master
overloaded. Dedicated master count < 3 or master heap > 30 GB.
- Snapshot thread pool saturation.
curl -sS "https://$ENDPOINT/_cat/thread_pool/snapshot?v&h=name,active,queue,rejected"
rejected > 0 → snapshot thread pool saturated; queue full.
Raise the thread pool or stop competing work.
Emit SNAPSHOT_TIMEOUT when the snapshot thread is blocked; emit
SHARD_ALLOCATION_RESTORE when recovery throttling starves a restore.
Step 4: Restore version-compatibility layer
Entry: _restore returns 400 with version_not_supported,
snapshot_restore_failure.
curl -sS "https://$ENDPOINT/_snapshot/<repo>/<snap>" | \
jq '.snapshots[0].version.id, .snapshots[0].engine_version'
Compare with target EngineVersion from describe-domain. Source >
Target → restore fails on first shard. RESTORE_VERSION_CONFLICT.
For 7.x → 2.x restores, use the snapshot-upgrade flow: restore into
an intermediate 1.x domain, snapshot from there, then restore into
the 2.x target.
Step 5: Restore alias conflict layer
Entry: _restore returns resource_already_allocated_exception or
silently skips indices.
curl -sS "https://$ENDPOINT/_cat/aliases?v&s=alias:desc" | grep -E "<pattern>"
curl -sS "https://$ENDPOINT/_cat/indices/<pattern>?v"
Any alias or index matching a name in the snapshot blocks restore.
RESTORE_ALIAS_CONFLICT.
Fix by renaming on restore or by deleting the conflict (CONFIRM first):
curl -X POST "https://$ENDPOINT/_snapshot/<repo>/<snap>/_restore" \
-H 'Content-Type: application/json' -d \
'{"indices": "<pattern>", "rename_pattern": "<from>", "rename_replacement": "<to>"}'
Step 6: UltraWarm / Cold storage migration layer
Entry: _plugins/_ism migration returns migration_failed.
aws opensearch describe-domain-config --domain-name <domain> \
--query 'ClusterConfig.WarmEnabled, ClusterConfig.WarmCount, ColdStorageOptions' --output json
curl -sS "https://$ENDPOINT/_plugins/_ism/explain/<index>?v" | jq '.'
curl -sS "https://$ENDPOINT/_cat/indices/<index>?v"
WarmEnabled: false → nothing to migrate to. COLD_STORAGE_MIGRATION.
WarmCount: < 3 → managed minimum violated. COLD_STORAGE_MIGRATION.
pri: 1 rep: 0 → migration fails on primary-only; raise replicas to
1 and wait for green.
Step 7: S3 lifecycle deletion layer
Entry: _snapshot/<repo>/_all lists snapshots that fail to restore
with SnapshotMissingException; S3 object count drops unexpectedly.
aws s3api get-bucket-lifecycle-configuration --bucket <bucket> --output json | jq '.'
aws cloudtrail lookup-events \
--lookup-attributes AttributeKey=ResourceName,AttributeValue=<bucket> \
--start-time $(date -d '-7 days' +%s) --end-time $(date +%s) \
--output json | jq '.Events[] | select(.EventName == "DeleteObject")'
Any Expiration/NoncurrentVersionExpiration rule matching the
snapshot prefix → blobs deleted on schedule.
S3_LIFECYCLE_DELETION. Cross-check _snapshot/<repo>/_status
against s3 ls s3://<bucket>/<prefix>/indices/<shard-id>/ for
missing blobs.
Step 8: Concurrent snapshot limit layer
Entry: _snapshot returns ConcurrentSnapshotExecutionException.
curl -sS "https://$ENDPOINT/_snapshot/_status" | jq '.snapshots[] | {repository, snapshot, state}'
Any snapshot with state: IN_PROGRESS blocks a second into the same
repository. CONCURRENT_SNAPSHOT_LIMIT. If automated and manual
schedules collide, move the manual schedule to a different
repository/prefix or different base_path.
Step 9: Manifest corruption layer
Entry: _snapshot/<repo>/<snap>/_status shows FAILED: INTERNAL_ERROR;
restore fails with CorruptedIndexException.
curl -sS "https://$ENDPOINT/_snapshot/<repo>/<snap>" | jq '.snapshots[0].failures'
aws s3api head-object --bucket <bucket> --key <prefix>/indices/<shard-id>/0/index-N | jq '.ContentLength'
ContentLength: 0 → corrupt (zero-byte) blob. MANIFEST_CORRUPTION.
NoSuchKey → blob missing; usually lifecycle (cross-reference Step 7).
index-N blobs at the repo root fail to parse as JSON → repository
metadata corrupt; re-register against a clean prefix.
Step 10: Cross-region replication layer
Entry: _plugins/_replication/<index>/_status shows SYNCING with
lag rising, or REPLICATION_NOT_ALIVE.
curl -sS "https://$FOLLOWER/_plugins/_replication/<index>/_status?pretty"
curl -sS "https://$LEADER/_cluster/settings?include_defaults=true&filter_path=defaults.index.plugins" | jq '.'
status: SYNCING with high last_updated_lag_seconds → follower
behind; check leader snapshot activity (brief lock is transient).
REPLICATION_NOT_ALIVE → leader check failed; verify leader
endpoint, security, write block on follower.
- Follower engine version MUST be same or higher than leader. Lower
version → replication fails.
Step 11: CUR / audit log snapshot config layer
Entry: CloudTrail or OpenSearch audit logs not landing in the audit
S3 bucket.
aws opensearch describe-domain-config --domain-name <domain> \
--query 'LogPublishingOptions' --output json
aws s3api get-bucket-policy --bucket <audit-bucket> --output json | jq '.'
AuditLogs: DISABLED → no audit logs anywhere; S3 audit bucket
will be empty regardless. CUR_AUDIT_LOG_CONFIG.
AuditLogs: ENABLED but zero events in the CloudWatch log group →
fine-grained audit log categories not enabled on the domain.
- S3 bucket policy missing
cloudtrail.amazonaws.com grant with
aws:SourceArn condition → CloudTrail trails show "Access Denied".
CUR_AUDIT_LOG_CONFIG.
Step 12: INSUFFICIENT_DATA — when none of the layers confirm
If every probe passes and no failing probe matches the symptom,
emit INSUFFICIENT_DATA. List the passing probes in EVIDENCE.
Recommend escalation to opensearch-cluster-troubleshooter for
cluster-state diagnosis, or open an AWS Support case with the domain
ARN, snapshot id, repository name, and the failing probe outputs.
Output specification — diagnostic block
For every diagnosis, emit ONE diagnostic block per target. Field
order is fixed.
TARGET: <domain-name with repository/snapshot id>
VERDICT: ROOT_CAUSE_IDENTIFIED | INSUFFICIENT_DATA
REASON: <1-3 sentences naming the failed layer and the failing probe>
LAYER: <REPOSITORY_REGISTRATION | REPOSITORY_VERIFICATION |
IAM_ROLE_S3_ACCESS | SNAPSHOT_TIMEOUT |
RESTORE_VERSION_CONFLICT | RESTORE_ALIAS_CONFLICT |
COLD_STORAGE_MIGRATION | S3_LIFECYCLE_DELETION |
CROSS_REGION_REPLICATION | SHARD_ALLOCATION_RESTORE |
MANIFEST_CORRUPTION | CONCURRENT_SNAPSHOT_LIMIT |
CUR_AUDIT_LOG_CONFIG | UNKNOWN>
EVIDENCE:
- <observed symptom — error string or behaviour>
- <failing probe — command and its output that confirms the cause>
- <passing probes — layers ruled out>
REMEDIATION:
1. <specific action with CLI command or API call>
2. <verification command after the fix>
Field rules:
TARGET includes domain name and, when applicable, repository name
and snapshot id.
VERDICT is one of the two enumerated values; never
ROOT_CAUSE_FOUND (that is a different skill family).
REASON names both the layer AND the failing probe.
EVIDENCE always includes (a) symptom, (b) failing probe output,
(c) at least one passing probe ruling out a competing layer.
Pre-flight safety checks (run before any state-changing CLI)
Moved verbatim to references/diagnostic-commands.md — load on demand.
Read it only when this section applies.
Remediation guidance
Moved verbatim to references/error-handling.md — load on demand.
Read it only when this section applies.
Deep reference
Moved verbatim to references/advanced-patterns.md — load on demand.
Read it only when this section applies.
Recent AWS features (2024-2026)
Moved verbatim to references/advanced-patterns.md — load on demand.
Read it only when this section applies.
References (load on demand)
- references/advanced-patterns.md — Step 0 non-obvious behaviours, deep reference tables, recent AWS features
- references/error-handling.md — per-verdict remediation guidance
- references/diagnostic-commands.md — pre-flight gather commands and safety checks
Domain
AWS CloudOps / OpenSearch Service, Snapshot and Restore Diagnostics,
S3 Repository Management, IAM Role Configuration, UltraWarm/Cold
Tier Migration, Cross-Region Replication, and Audit Log Delivery.
AWS documentation
1---2name: opensearch-snapshot-troubleshooter3description: 'Diagnoses Amazon OpenSearch Service snapshot failures through a thirteen-category diagnostic tree: S3 repository registration errors (PUT _snapshot), repository verification failure, IAM role missing s3:PutObject / s3:ListBucket / s3:GetObject on the snapshot bucket, snapshot stuck or timeout (unassigned shards, cluster red), restore into a different domain (engine-version mismatch — restore requires same version or higher), index alias conflict during restore, snapshot to UltraWarm / Cold storage, S3 bucket lifecycle policy deleting snapshot blobs, cross-region async replication stalls, shard allocation throttling during restore, snapshot manifest corruption, concurrent snapshot limit (one per repository — ConcurrentSnapshotExecutionException), and Cost and Usage Report / audit-log snapshot configuration. Walks symptoms to a verified root cause with evidence-backed probes; emits ROOT_CAUSE_IDENTIFIED or INSUFFICIENT_DATA.'4license: Apache-2.05compatibility: Agent runtime that reads SKILL.md (Claude Code, Cursor, Windsurf, Codex, Gemini). Offline symptom classification works from pasted error messages and domain configuration. Live-account diagnosis uses aws opensearch describe-domain, describe-domain-config, list-domain-names, aws es describe-elasticsearch-domain (legacy), aws s3api get-bucket-policy / get-bucket-lifecycle-configuration, aws iam get-role / simulate-principal-policy, aws logs filter-log-events on...6metadata:7 source: https://skillmd.com/skills/jhkchan/opensearch-snapshot-troubleshooter8 domain: aws-cloudops9 complexity: high10 requires_llm: 'true'11 phase: '2'12 supports_pipeline: 'true'13 entry_point: 'false'14 family: Analytics15 task_type: troubleshoot16 skill_class: capability17 lifecycle_status: active18 verdict_shape: ROOT_CAUSE_IDENTIFIED | INSUFFICIENT_DATA19 when_to_use: Diagnosing an OpenSearch Service snapshot failure (S3 repository registration error, repository verification failure, snapshot stuck or timeout, restore failure, alias conflict on restore, UltraWarm/Cold migration failure, snapshots missing due to S3 lifecycle, cross-region replication lag, shard allocation failure during restore, manifest corruption, concurrent snapshot rejection, audit-log/CUR snapshot misconfig), walking a symptom to the failed layer with verify and fix commands, or triaging a "OpenSearch snapshots are broken" page where the root cause may be repository registration, IAM role, bucket lifecycle, cluster state, or version compatibility — not necessarily the OpenSearch domain itself.20 when_not_to_use: Cluster-level stability incidents not tied to snapshots (use opensearch-cluster-troubleshooter), OpenSearch Serverless collection backup (Serverless uses a different snapshot model), index mapping / query performance tuning, S3 bucket public-access posture audits (use s3-public-access-auditor), or VPC endpoint posture audits for the OpenSearch domain. This skill diagnoses snapshot and restore failures; it does not tune shard count for indexing throughput or audit steady-state configuration posture.21 activation_triggers: OpenSearch snapshot failed, OpenSearch snapshot stuck, OpenSearch snapshot timeout, PUT _snapshot failed, repository verification failed, repository_verification_exception, ConcurrentSnapshotExecutionException, OpenSearch restore failed, restore version_not_supported, OpenSearch alias conflict restore, resource_already_allocated_exception, UltraWarm migration failed, Cold storage migration_failed, SnapshotMissingException, cross-region replication lag, shard allocation restore, snapshot manifest corruption, CorruptedIndexException snapshot, OpenSearch audit logs S3, troubleshoot OpenSearch snapshot22 invocation_schema: 'Input: either (a) a symptom description (error message, observed behaviour, "snapshot stays IN_PROGRESS for hours", "restore returns 400"), optionally paired with the domain configuration (describe-domain output) and recent OpenSearch application logs, OR (b) a DomainName plus snapshot/repository context (repository name, snapshot id, S3 bucket, IAM role ARN, source/target domain for restore) for live-account diagnosis. Output: a deterministic TARGET/VERDICT/REASON/LAYER/EVIDENCE/REMEDIATION block where VERDICT ∈ {ROOT_CAUSE_IDENTIFIED, INSUFFICIENT_DATA} and LAYER ∈ {REPOSITORY_REGISTRATION, REPOSITORY_VERIFICATION, IAM_ROLE_S3_ACCESS, SNAPSHOT_TIMEOUT, RESTORE_VERSION_CONFLICT, RESTORE_ALIAS_CONFLICT, COLD_STORAGE_MIGRATION, S3_LIFECYCLE_DELETION, CROSS_REGION_REPLICATION, SHARD_ALLOCATION_RESTORE, MANIFEST_CORRUPTION, CONCURRENT_SNAPSHOT_LIMIT, CUR_AUDIT_LOG_CONFIG, UNKNOWN}.'23 invocation_example: '# Minimal valid input (offline symptom classification):2425 Symptom: "OpenSearch domain prod-logs-cluster fails to register2627 the manual S3 repository. PUT _snapshot/s3-backups returns2829 500 with ''repository_verification_exception'' and the IAM role3031 arn:aws:iam::111111111111:role/opensearch-snapshot-role is3233 listed in the trust policy of the domain but the S3 bucket3435 policy does not list the snapshot role ARN."3637 DomainName: prod-logs-cluster3839 EngineVersion: OpenSearch_2.134041 Repository: s3-backups4243 Bucket: prod-os-snapshots-us-east-14445 SnapshotRoleArn: arn:aws:iam::111111111111:role/opensearch-snapshot-role4647 Last log line: "repository_verification_exception: [[s3-backups]] verification failed"'48 version: 0.1.049 author: Jacky Chan — AWS Community Builder50 keywords: OpenSearch, snapshot, repository, S3, PUT _snapshot, verification, restore, UltraWarm, Cold storage, shard allocation, manifest corruption, ConcurrentSnapshotExecutionException, cross-region replication, lifecycle policy, alias conflict, troubleshooting51 tags: opensearch, analytics, troubleshooting, snapshot, s3, backup, restore, ultrawarm, iam-role, repository52---5354# OpenSearch Snapshot Troubleshooter5556## Quick start5758- **Symptom → layer map (first plausible match drives the first probe):**59 `repository_verification_exception` → REPOSITORY_VERIFICATION /60 IAM_ROLE_S3_ACCESS; `PUT _snapshot` returns 4xx / 5xx →61 REPOSITORY_REGISTRATION; snapshot stays `IN_PROGRESS` for hours →62 SNAPSHOT_TIMEOUT / SHARD_ALLOCATION_RESTORE; restore returns 40063 with version message → RESTORE_VERSION_CONFLICT; restore returns64 `resource_already_allocated_exception` → RESTORE_ALIAS_CONFLICT;65 `ConcurrentSnapshotExecutionException` → CONCURRENT_SNAPSHOT_LIMIT;66 snapshots vanish from S3 after N days → S3_LIFECYCLE_DELETION;67 `migration_failed` to warm/cold → COLD_STORAGE_MIGRATION;68 `SnapshotException` reading `index-N` blob → MANIFEST_CORRUPTION;69 cross-Region replication lag → CROSS_REGION_REPLICATION; audit70 logs empty in S3 → CUR_AUDIT_LOG_CONFIG.71- **Always verify with a probe, never guess.** Each layer has a72 single command that proves or disproves it. A `ROOT_CAUSE_IDENTIFIED`73 verdict requires positive evidence — a failing probe that matches74 the symptom.75- **Manual and automated snapshots use different repositories.**76 Automated snapshots write to a service-managed S3 bucket77 (`cs-automated` / `cs-automated-enc`) that you cannot list directly.78 Manual snapshots write to a customer-owned S3 bucket via a customer79 IAM role. Operators "cannot find the snapshot in S3" while80 debugging an automated snapshot are looking in the wrong bucket.81- **Restore requires target engine version same or higher than82 source.** A snapshot on OpenSearch 2.13 restores into 2.13 or83 higher, fails on 2.11 with `version_not_supported`. ES 7.x →84 OpenSearch 2.x requires the snapshot-upgrade flow via 1.x.85- **One snapshot per repository at a time.** A second snapshot into86 the same repository returns `ConcurrentSnapshotExecutionException`.87 Automated and manual schedules colliding on the same repository88 is the most common cause.8990## Mindset9192A failing OpenSearch snapshot is usually a permissions, lifecycle,93or version-compatibility incident wearing a cluster costume. The94domain is healthy in the majority of cases; the broken thing is95the IAM role assumed for S3, the bucket policy that does not trust96the role, an S3 lifecycle rule expiring snapshot blobs, a version97mismatch between source and target, or an alias collision at98restore time. Treat the OpenSearch cluster as innocent until the99repository registration, IAM role, bucket lifecycle, and version100layers are proven clean. Senior analytics engineers do not start101by raising node count; they start with `_snapshot/<repo>/_status`,102`get-bucket-policy`, and `simulate-principal-policy`.103104## Philosophy105106- **Repository registration is a three-way contract.** A working107 S3 snapshot repository requires (1) an IAM role the OpenSearch108 domain can assume, (2) a trust policy on that role listing the109 OpenSearch service principal for the account, and (3) a bucket110 policy granting the role `s3:PutObject`/`s3:ListBucket`/`s3:GetObject`/111 `s3:DeleteObject`/`s3:GetBucketLocation`. Any one missing and112 registration either fails outright or succeeds with verification113 failure on the first snapshot. Operators who "added S3 permissions114 to the role" but still see `repository_verification_exception`115 usually miss the bucket-policy side.116- **Snapshot and restore are NOT symmetric on version.** A snapshot117 on OpenSearch 2.x restores into any 2.y ≥ 2.x. It CANNOT restore118 into a lower 2.x, into ES 7.x, or skip a major version. The119 snapshot-upgrade flow (7.x → 1.x → 2.x) handles cross-major120 restore. Operators who "took a snapshot in prod, tried to restore121 into a lower-version dev domain" hit `version_not_supported` on122 the first shard and assume corruption.123- **Restore into a non-empty cluster fights aliases and existing124 indices.** `_restore` opens snapshot indices by their original125 names. If an index with the same name (or the alias the snapshot126 references) already exists, restore fails with127 `resource_already_allocated_exception` or silently skips. The fix128 is `rename_pattern`/`rename_replacement` on restore, or delete129 the conflicting index/alias first — not to retry.130- **S3 lifecycle rules DO delete snapshot blobs.** Snapshots are131 trees of `index-*`, `snap-*` blobs referenced by repository132 metadata. Segments are deduplicated across snapshots. An S3133 lifecycle rule that expires "all objects" after N days deletes134 blobs while the repository still lists the snapshot. The next135 restore fails with `SnapshotMissingException`. Always scope136 lifecycle rules by prefix when a bucket holds snapshot repositories.137138## Quick reference — symptom triage table139140| Symptom phrase / error | Most likely layer | First probe |141|---|---|---|142| `repository_verification_exception` on `PUT _snapshot` or first snapshot | REPOSITORY_VERIFICATION / IAM_ROLE_S3_ACCESS | `get-bucket-policy`, `iam simulate-principal-policy` on snapshot role |143| `PUT _snapshot/<repo>` returns 4xx; repository never registers | REPOSITORY_REGISTRATION | `curl $ENDPOINT/_snapshot/<repo>` — does the repo exist? `get-role` trust policy |144| Snapshot stays `IN_PROGRESS`; `_cat/shards` shows UNASSIGNED | SNAPSHOT_TIMEOUT / SHARD_ALLOCATION_RESTORE | `_snapshot/<repo>/<snap>/_status`, `_cat/shards?v&h=index,shard,prirep,state,unassigned.reason` |145| `_restore` returns 400 with `version_not_supported` | RESTORE_VERSION_CONFLICT | `_snapshot/<repo>/<snap>` — read `engine_version` |146| `_restore` of alias-bearing indices returns `resource_already_allocated_exception` | RESTORE_ALIAS_CONFLICT | `_cat/aliases?v&s=alias:desc` for the alias in the snapshot |147| `migration_failed` to UltraWarm/Cold; warm node count < 3 | COLD_STORAGE_MIGRATION | `describe-domain-config` (WarmEnabled, WarmCount), `_nodes/_all` |148| `_snapshot/<repo>/_status` returns `SNAPSHOT_FAILED`; S3 lifecycle shows `ExpirationInDays` | S3_LIFECYCLE_DELETION | `get-bucket-lifecycle-configuration`, `s3 ls s3://<bucket>/<prefix> --recursive` |149| Cross-Region async replication lags; follower `SYNCING` lag rising | CROSS_REGION_REPLICATION | `_plugins/_replication/<index>/_status`, source `_cluster/settings` |150| `_restore` stalls; `_cat/recovery` shows throttle at low % | SHARD_ALLOCATION_RESTORE | `_cat/recovery?v&h=index,shard,time,stage,percent` |151| `SnapshotException` reading `index-N` blob; `_status` shows `INTERNAL_ERROR` | MANIFEST_CORRUPTION | `s3 head-object` for size 0; `s3 ls` for missing blob |152| Second snapshot into same repo fails immediately with `ConcurrentSnapshotExecutionException` | CONCURRENT_SNAPSHOT_LIMIT | `_snapshot/_status` — is another snapshot `IN_PROGRESS`? |153| Audit S3 bucket empty; `LogPublishingOptions.AuditLogs: DISABLED` | CUR_AUDIT_LOG_CONFIG | `describe-domain-config` LogPublishingOptions, `s3 ls s3://<audit-bucket>/` |154| None of the above; cluster red; multiple indices unassigned | INSUFFICIENT_DATA | `_cluster/health`, `describe-domain` (ClusterConfig) |155156## Pre-flight: domain state and gather-info gate157> Moved verbatim to [references/diagnostic-commands.md](references/diagnostic-commands.md) — load on demand.158> Read it only when this section applies.159160161### Domain-state short-circuit162163| `DomainStatus` / `ChangeProgressDetails` | Effect on diagnosis |164|---|---|165| `Processing: false`, no `PendingChanges` | Domain steady; proceed with symptom-driven diagnosis. |166| `Processing: true` (blue/green deployment) | Configuration update in flight. Snapshots can run but may be slow. Wait for `Processing: false`. |167| `UpgradeProcessing: true` | Engine upgrade in flight. Snapshots can fail verification. Wait for `UpgradeStatus: Succeeded`. |168| `UpgradeStatus: RollbackInProgress` | Last upgrade failed; cluster is on prior engine. A restore that assumed higher version fails. Re-read `EngineVersion`. |169| `ClusterConfig.DedicatedMasterEnabled: false` and cluster red | Heavy snapshot can starve the elected master. This is a cluster-sizing issue, not snapshot config. |170171If input is malformed (missing DomainName, absent symptom, no172repository/snapshot id for restore debugging), emit:173174```text175TARGET: <domain-name or unknown>176VERDICT: INSUFFICIENT_DATA177REASON: Input is missing required context — at minimum a symptom178 description (error string or observed behaviour) and the179 DomainName plus, for restore errors, the repository name and180 snapshot id.181LAYER: UNKNOWN182EVIDENCE:183 - Missing: <list specific missing fields>184REMEDIATION: Re-prompt for: (1) the exact error string or observed185 symptom, (2) the DomainName and EngineVersion, and (3) for186 restore errors, the source and target EngineVersions plus the187 repository name and snapshot id.188```189190## Process — Diagnostic decision tree (apply in symptom order)191192Symptom-driven. Pick the entry point based on the observed symptom,193then walk the layer-specific probes in order. **Never emit194ROOT_CAUSE_IDENTIFIED without a failing probe that matches the195symptom.**196197### Step 0: Non-obvious behaviours that change diagnosis198> Moved verbatim to [references/advanced-patterns.md](references/advanced-patterns.md) — load on demand.199> Read it only when this section applies.200201202### Step 1: Repository registration & verification layer203204Entry: `PUT _snapshot/<repo>` returns 4xx / 5xx, or first snapshot205fails with `repository_verification_exception`.2062071. **Does the repository exist?**208 ```bash209 curl -sS "https://$ENDPOINT/_snapshot/<repo>" | jq '.'210 ```211 - 404 → never registered; re-issue `PUT _snapshot`.2122. **Was the registration body correct?** Minimum body for an S3213 repository on a managed domain:214 ```json215 {"type": "s3", "settings": {216 "bucket": "<bucket>", "region": "<bucket-region>",217 "base_path": "<prefix>",218 "iam_role_arn": "arn:aws:iam::<account>:role/<role>",219 "compress": true}}220 ```221 - Missing `iam_role_arn` → registration succeeds but writes fail.222 **REPOSITORY_REGISTRATION.**223 - `region` missing and bucket is in a different Region →224 verification fails. **REPOSITORY_REGISTRATION.**225 - `base_path` overlaps another repository's prefix → manifest226 collision; both repositories become corrupt.2273. **Is the snapshot role's trust policy correct?**228 ```bash229 aws iam get-role --role-name <role-name> \230 --query 'Role.AssumeRolePolicyDocument' --output json | jq '.'231 ```232 - Trust MUST list `"Service": "opensearchservice.amazonaws.com"`.233 - Cross-account: MUST include `aws:SourceAccount` and `aws:SourceArn`234 conditions on the principal. **REPOSITORY_REGISTRATION.**235236### Step 2: Repository verification & IAM role layer237238Entry: `repository_verification_exception`,239`repository_verification_failed_exception`, or every snapshot attempt240fails.2412421. **Bucket policy — does it grant the snapshot ROLE?**243 ```bash244 aws s3api get-bucket-policy --bucket <bucket> --output json | jq '.'245 ```246 - Policy MUST grant the snapshot role ARN the actions247 `s3:ListBucket`, `s3:GetObject`, `s3:PutObject`, `s3:DeleteObject`,248 `s3:GetBucketLocation` on `arn:aws:s3:::<bucket>` and249 `arn:aws:s3:::<bucket>/*`.250 - Bucket policy keyed to the SERVICE PRINCIPAL is incorrect — the251 role's session ARN does not match. **IAM_ROLE_S3_ACCESS.**252 - Missing `s3:GetBucketLocation` → S3 client cannot resolve Region.253 **IAM_ROLE_S3_ACCESS.**254 - Missing `s3:PutObjectAcl` for cross-account → cross-account write255 fails the ACL step. **IAM_ROLE_S3_ACCESS.**2562. **Role policy — authoritative simulation.**257 ```bash258 aws iam simulate-principal-policy \259 --policy-source-arn "arn:aws:iam::<account>:role/<role>" \260 --action-names s3:PutObject s3:ListBucket s3:GetObject s3:DeleteObject s3:GetBucketLocation \261 --resource-arns "arn:aws:s3:::<bucket>" "arn:aws:s3:::<bucket>/*" --output json262 ```263 - Any action that returns `implicitDeny` or `explicitDeny` confirms264 the role is missing the permission. **IAM_ROLE_S3_ACCESS.**2653. **SSE-KMS bucket — does the role have KMS permissions?**266 ```bash267 aws s3api get-bucket-encryption --bucket <bucket> --output json268 aws iam simulate-principal-policy --policy-source-arn "<role-arn>" \269 --action-names kms:Decrypt kms:GenerateDataKey \270 --resource-arns "<kms-key-arn>" --output json271 ```272 - SSE-KMS bucket where the role lacks `kms:GenerateDataKey` → first273 object PUT fails with `AccessDenied` from KMS. **IAM_ROLE_S3_ACCESS.**2744. **Verification-file check.** OpenSearch writes a275 `verification-file-<uuid>` object during verification, then reads276 it back. If `s3 ls s3://<bucket>/<prefix>/verification-file-*`277 shows the object, write succeeded; failure is read-path (KMS,278 policy, Region). If absent, failure is write-path (IAM, bucket279 policy, wrong `base_path`).280281If IAM is correct but verification still fails, emit282REPOSITORY_VERIFICATION with the verification-file evidence.283284### Step 3: Snapshot timeout & shard allocation layer285286Entry: snapshot stays `IN_PROGRESS` for hours, or returns287`SNAPSHOT_FAILED` with `master_not_discovered_exception` /288`process_cluster_event_timeout_exception`.2892901. **Snapshot status — which shard is stuck?**291 ```bash292 curl -sS "https://$ENDPOINT/_snapshot/<repo>/<snap>/_status?human" | \293 jq '.snapshots[0].shards_stats, .snapshots[0].indices[].shards.stats'294 ```295 - `stage: INIT` shards (never started) → snapshot thread blocked on296 master event.2972. **Cluster health and shard assignment.**298 ```bash299 curl -sS "https://$ENDPOINT/_cluster/health?pretty"300 curl -sS "https://$ENDPOINT/_cat/shards?v&h=index,shard,prirep,state,unassigned.reason" | grep -i unassigned301 ```302 - Cluster red → snapshot will go `PARTIAL` or `FAILED`. Root cause303 is the missing primary shard, not the snapshot.3043. **Master node health.**305 ```bash306 curl -sS "https://$ENDPOINT/_cat/master?v"307 curl -sS "https://$ENDPOINT/_nodes/_master/jvm,process"308 ```309 - `master_not_discovered_exception` during snapshot → elected master310 overloaded. Dedicated master count < 3 or master heap > 30 GB.3114. **Snapshot thread pool saturation.**312 ```bash313 curl -sS "https://$ENDPOINT/_cat/thread_pool/snapshot?v&h=name,active,queue,rejected"314 ```315 - `rejected > 0` → snapshot thread pool saturated; queue full.316 Raise the thread pool or stop competing work.317318Emit SNAPSHOT_TIMEOUT when the snapshot thread is blocked; emit319SHARD_ALLOCATION_RESTORE when recovery throttling starves a restore.320321### Step 4: Restore version-compatibility layer322323Entry: `_restore` returns 400 with `version_not_supported`,324`snapshot_restore_failure`.325326```bash327curl -sS "https://$ENDPOINT/_snapshot/<repo>/<snap>" | \328 jq '.snapshots[0].version.id, .snapshots[0].engine_version'329```330331Compare with target `EngineVersion` from `describe-domain`. Source >332Target → restore fails on first shard. **RESTORE_VERSION_CONFLICT.**333334For 7.x → 2.x restores, use the snapshot-upgrade flow: restore into335an intermediate 1.x domain, snapshot from there, then restore into336the 2.x target.337338### Step 5: Restore alias conflict layer339340Entry: `_restore` returns `resource_already_allocated_exception` or341silently skips indices.342343```bash344curl -sS "https://$ENDPOINT/_cat/aliases?v&s=alias:desc" | grep -E "<pattern>"345curl -sS "https://$ENDPOINT/_cat/indices/<pattern>?v"346```347348Any alias or index matching a name in the snapshot blocks restore.349**RESTORE_ALIAS_CONFLICT.**350351Fix by renaming on restore or by deleting the conflict (CONFIRM first):352```bash353curl -X POST "https://$ENDPOINT/_snapshot/<repo>/<snap>/_restore" \354 -H 'Content-Type: application/json' -d \355 '{"indices": "<pattern>", "rename_pattern": "<from>", "rename_replacement": "<to>"}'356```357358### Step 6: UltraWarm / Cold storage migration layer359360Entry: `_plugins/_ism` migration returns `migration_failed`.361362```bash363aws opensearch describe-domain-config --domain-name <domain> \364 --query 'ClusterConfig.WarmEnabled, ClusterConfig.WarmCount, ColdStorageOptions' --output json365curl -sS "https://$ENDPOINT/_plugins/_ism/explain/<index>?v" | jq '.'366curl -sS "https://$ENDPOINT/_cat/indices/<index>?v"367```368369- `WarmEnabled: false` → nothing to migrate to. **COLD_STORAGE_MIGRATION.**370- `WarmCount: < 3` → managed minimum violated. **COLD_STORAGE_MIGRATION.**371- `pri: 1 rep: 0` → migration fails on primary-only; raise replicas to372 1 and wait for green.373374### Step 7: S3 lifecycle deletion layer375376Entry: `_snapshot/<repo>/_all` lists snapshots that fail to restore377with `SnapshotMissingException`; S3 object count drops unexpectedly.378379```bash380aws s3api get-bucket-lifecycle-configuration --bucket <bucket> --output json | jq '.'381aws cloudtrail lookup-events \382 --lookup-attributes AttributeKey=ResourceName,AttributeValue=<bucket> \383 --start-time $(date -d '-7 days' +%s) --end-time $(date +%s) \384 --output json | jq '.Events[] | select(.EventName == "DeleteObject")'385```386387Any `Expiration`/`NoncurrentVersionExpiration` rule matching the388snapshot prefix → blobs deleted on schedule.389**S3_LIFECYCLE_DELETION.** Cross-check `_snapshot/<repo>/_status`390against `s3 ls s3://<bucket>/<prefix>/indices/<shard-id>/` for391missing blobs.392393### Step 8: Concurrent snapshot limit layer394395Entry: `_snapshot` returns `ConcurrentSnapshotExecutionException`.396397```bash398curl -sS "https://$ENDPOINT/_snapshot/_status" | jq '.snapshots[] | {repository, snapshot, state}'399```400401Any snapshot with `state: IN_PROGRESS` blocks a second into the same402repository. **CONCURRENT_SNAPSHOT_LIMIT.** If automated and manual403schedules collide, move the manual schedule to a different404repository/prefix or different `base_path`.405406### Step 9: Manifest corruption layer407408Entry: `_snapshot/<repo>/<snap>/_status` shows `FAILED: INTERNAL_ERROR`;409restore fails with `CorruptedIndexException`.410411```bash412curl -sS "https://$ENDPOINT/_snapshot/<repo>/<snap>" | jq '.snapshots[0].failures'413aws s3api head-object --bucket <bucket> --key <prefix>/indices/<shard-id>/0/index-N | jq '.ContentLength'414```415416- `ContentLength: 0` → corrupt (zero-byte) blob. **MANIFEST_CORRUPTION.**417- `NoSuchKey` → blob missing; usually lifecycle (cross-reference Step 7).418- `index-N` blobs at the repo root fail to parse as JSON → repository419 metadata corrupt; re-register against a clean prefix.420421### Step 10: Cross-region replication layer422423Entry: `_plugins/_replication/<index>/_status` shows `SYNCING` with424lag rising, or `REPLICATION_NOT_ALIVE`.425426```bash427curl -sS "https://$FOLLOWER/_plugins/_replication/<index>/_status?pretty"428curl -sS "https://$LEADER/_cluster/settings?include_defaults=true&filter_path=defaults.index.plugins" | jq '.'429```430431- `status: SYNCING` with high `last_updated_lag_seconds` → follower432 behind; check leader snapshot activity (brief lock is transient).433- `REPLICATION_NOT_ALIVE` → leader check failed; verify leader434 endpoint, security, write block on follower.435- Follower engine version MUST be same or higher than leader. Lower436 version → replication fails.437438### Step 11: CUR / audit log snapshot config layer439440Entry: CloudTrail or OpenSearch audit logs not landing in the audit441S3 bucket.442443```bash444aws opensearch describe-domain-config --domain-name <domain> \445 --query 'LogPublishingOptions' --output json446aws s3api get-bucket-policy --bucket <audit-bucket> --output json | jq '.'447```448449- `AuditLogs: DISABLED` → no audit logs anywhere; S3 audit bucket450 will be empty regardless. **CUR_AUDIT_LOG_CONFIG.**451- `AuditLogs: ENABLED` but zero events in the CloudWatch log group →452 fine-grained audit log categories not enabled on the domain.453- S3 bucket policy missing `cloudtrail.amazonaws.com` grant with454 `aws:SourceArn` condition → CloudTrail trails show "Access Denied".455 **CUR_AUDIT_LOG_CONFIG.**456457### Step 12: INSUFFICIENT_DATA — when none of the layers confirm458459If every probe passes and no failing probe matches the symptom,460emit INSUFFICIENT_DATA. List the passing probes in EVIDENCE.461Recommend escalation to `opensearch-cluster-troubleshooter` for462cluster-state diagnosis, or open an AWS Support case with the domain463ARN, snapshot id, repository name, and the failing probe outputs.464465## Output specification — diagnostic block466467For every diagnosis, emit ONE diagnostic block per target. Field468order is fixed.469470```text471TARGET: <domain-name with repository/snapshot id>472VERDICT: ROOT_CAUSE_IDENTIFIED | INSUFFICIENT_DATA473REASON: <1-3 sentences naming the failed layer and the failing probe>474LAYER: <REPOSITORY_REGISTRATION | REPOSITORY_VERIFICATION |475 IAM_ROLE_S3_ACCESS | SNAPSHOT_TIMEOUT |476 RESTORE_VERSION_CONFLICT | RESTORE_ALIAS_CONFLICT |477 COLD_STORAGE_MIGRATION | S3_LIFECYCLE_DELETION |478 CROSS_REGION_REPLICATION | SHARD_ALLOCATION_RESTORE |479 MANIFEST_CORRUPTION | CONCURRENT_SNAPSHOT_LIMIT |480 CUR_AUDIT_LOG_CONFIG | UNKNOWN>481EVIDENCE:482 - <observed symptom — error string or behaviour>483 - <failing probe — command and its output that confirms the cause>484 - <passing probes — layers ruled out>485REMEDIATION:486 1. <specific action with CLI command or API call>487 2. <verification command after the fix>488```489490Field rules:491492- `TARGET` includes domain name and, when applicable, repository name493 and snapshot id.494- `VERDICT` is one of the two enumerated values; never495 `ROOT_CAUSE_FOUND` (that is a different skill family).496- `REASON` names both the layer AND the failing probe.497- `EVIDENCE` always includes (a) symptom, (b) failing probe output,498 (c) at least one passing probe ruling out a competing layer.499500## Pre-flight safety checks (run before any state-changing CLI)501> Moved verbatim to [references/diagnostic-commands.md](references/diagnostic-commands.md) — load on demand.502> Read it only when this section applies.503504505## Remediation guidance506> Moved verbatim to [references/error-handling.md](references/error-handling.md) — load on demand.507> Read it only when this section applies.508509510## Deep reference511> Moved verbatim to [references/advanced-patterns.md](references/advanced-patterns.md) — load on demand.512> Read it only when this section applies.513514515## Recent AWS features (2024-2026)516> Moved verbatim to [references/advanced-patterns.md](references/advanced-patterns.md) — load on demand.517> Read it only when this section applies.518519520## References (load on demand)521522- [references/advanced-patterns.md](references/advanced-patterns.md) — Step 0 non-obvious behaviours, deep reference tables, recent AWS features523- [references/error-handling.md](references/error-handling.md) — per-verdict remediation guidance524- [references/diagnostic-commands.md](references/diagnostic-commands.md) — pre-flight gather commands and safety checks525## Domain526527AWS CloudOps / OpenSearch Service, Snapshot and Restore Diagnostics,528S3 Repository Management, IAM Role Configuration, UltraWarm/Cold529Tier Migration, Cross-Region Replication, and Audit Log Delivery.530531## AWS documentation532533- **Working with Amazon OpenSearch Service snapshots** — https://docs.aws.amazon.com/opensearch-service/latest/developerguide/managedomains-snapshots.html534- **Registering a manual snapshot repository** — https://docs.aws.amazon.com/opensearch-service/latest/developerguide/managedomains-snapshots.html#managedomains-snapshot-registerdirectory535- **Restoring snapshots** — https://docs.aws.amazon.com/opensearch-service/latest/developerguide/managedomains-snapshots.html#managedomains-snapshot-restore536- **UltraWarm storage for OpenSearch Service** — https://docs.aws.amazon.com/opensearch-service/latest/developerguide/ultrawarm.html537- **Cold storage for OpenSearch Service** — https://docs.aws.amazon.com/opensearch-service/latest/developerguide/cold-storage.html538- **Cross-cluster replication** — https://docs.aws.amazon.com/opensearch-service/latest/developerguide/replication.html539- **Monitoring OpenSearch Service with CloudWatch** — https://docs.aws.amazon.com/opensearch-service/latest/developerguide/monitoring.html540- **Configuring audit logs** — https://docs.aws.amazon.com/opensearch-service/latest/developerguide/audit-logs.html541- **AWS Health** — https://docs.aws.amazon.com/health/latest/ug/