{
  "id": "elasticsearch/repository-verification-failed-write",
  "signature": "RepositoryVerificationException: [my_repo] verification failed: could not write to repository at path [s3://bucket/backup]",
  "signature_zh": "RepositoryVerificationException: [my_repo] 验证失败：无法写入路径 [s3://bucket/backup] 的仓库",
  "regex": "RepositoryVerificationException: \\[.*\\] verification failed: could not write to repository at path \\[.*\\]",
  "domain": "elasticsearch",
  "category": "config_error",
  "subcategory": null,
  "root_cause": "Elasticsearch cannot write to the configured snapshot repository path due to permissions or connectivity issues.",
  "root_cause_type": "generic",
  "root_cause_zh": "由于权限或连接问题，Elasticsearch 无法写入配置的快照仓库路径。",
  "versions": [
    {
      "version": "7.17.0",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "8.10.0",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "8.14.0",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "The underlying write issue remains unchanged.",
      "fail_rate": 0.9,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "A timeout increase does not fix permission or connectivity errors.",
      "fail_rate": 0.85,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "The new repository may have similar issues if the path is incorrect.",
      "fail_rate": 0.75,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Verify the S3 bucket permissions and ensure the IAM role has `s3:PutObject` access: `aws s3api put-bucket-policy --bucket backup --policy file://policy.json`.",
      "success_rate": 0.9,
      "how": "Verify the S3 bucket permissions and ensure the IAM role has `s3:PutObject` access: `aws s3api put-bucket-policy --bucket backup --policy file://policy.json`.",
      "condition": "",
      "sources": []
    },
    {
      "action": "Test the repository path manually using `curl -XPUT 'localhost:9200/_snapshot/my_repo' -H 'Content-Type: application/json' -d '{\"type\": \"s3\", \"settings\": {\"bucket\": \"backup\", \"region\": \"us-east-1\"}}'` and check for errors.",
      "success_rate": 0.88,
      "how": "Test the repository path manually using `curl -XPUT 'localhost:9200/_snapshot/my_repo' -H 'Content-Type: application/json' -d '{\"type\": \"s3\", \"settings\": {\"bucket\": \"backup\", \"region\": \"us-east-1\"}}'` and check for errors.",
      "condition": "",
      "sources": []
    },
    {
      "action": "Update the repository path to a writable location, e.g., change `s3://bucket/backup` to `s3://bucket/backups/` and ensure the path exists.",
      "success_rate": 0.85,
      "how": "Update the repository path to a writable location, e.g., change `s3://bucket/backup` to `s3://bucket/backups/` and ensure the path exists.",
      "condition": "",
      "sources": []
    }
  ],
  "workarounds_zh": [
    "验证 S3 存储桶权限，确保 IAM 角色具有 `s3:PutObject` 访问权限：`aws s3api put-bucket-policy --bucket backup --policy file://policy.json`。",
    "使用 `curl -XPUT 'localhost:9200/_snapshot/my_repo' -H 'Content-Type: application/json' -d '{\"type\": \"s3\", \"settings\": {\"bucket\": \"backup\", \"region\": \"us-east-1\"}}'` 手动测试仓库路径并检查错误。",
    "将仓库路径更新为可写位置，例如，将 `s3://bucket/backup` 改为 `s3://bucket/backups/`，并确保路径存在。"
  ],
  "transition_graph": {
    "leads_to": [],
    "preceded_by": [],
    "frequently_confused_with": []
  },
  "official_doc_url": "https://www.elastic.co/guide/en/elasticsearch/reference/current/snapshot-restore.html",
  "official_doc_section": null,
  "error_code": null,
  "verification_tier": "ai_generated",
  "confidence": 0.86,
  "fix_success_rate": 0.88,
  "resolvable": "true",
  "first_seen": "2024-05-20",
  "last_confirmed": "2024-06-01",
  "last_updated": "2024-06-01",
  "evidence_count": 1,
  "tags": [],
  "locale": "en",
  "aliases": []
}