{
  "id": "elasticsearch/translog-sync-failure",
  "signature": "TranslogException: failed to sync translog for [my_index][0] - java.nio.file.AccessDeniedException: /data/elasticsearch/nodes/0/indices/.../translog/translog-12345.tlog",
  "signature_zh": "TranslogException：索引[my_index][0]的事务日志同步失败 - java.nio.file.AccessDeniedException：/data/elasticsearch/nodes/0/indices/.../translog/translog-12345.tlog",
  "regex": "failed to sync translog for \\[.*\\] - java\\.nio\\.file\\.AccessDeniedException",
  "domain": "elasticsearch",
  "category": "system_error",
  "subcategory": null,
  "root_cause": "The Elasticsearch process lacks write permissions to the translog file, often due to filesystem permission changes or disk errors.",
  "root_cause_type": "generic",
  "root_cause_zh": "Elasticsearch进程缺少对事务日志文件的写入权限，通常由于文件系统权限更改或磁盘错误引起。",
  "versions": [
    {
      "version": "elasticsearch 7.17.0",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "elasticsearch 8.10.0",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "elasticsearch 8.15.0",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "The underlying permissions issue persists; the node will fail again when it tries to sync the translog.",
      "fail_rate": 0.9,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "Deleting translog can cause data loss and corrupt the shard; Elasticsearch may refuse to start.",
      "fail_rate": 0.7,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "The new directory may also have permissions issues if not configured correctly.",
      "fail_rate": 0.5,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Fix permissions on the translog directory: chown -R elasticsearch:elasticsearch /data/elasticsearch/nodes/0/indices/ and ensure the elasticsearch user has write access.",
      "success_rate": 0.85,
      "how": "Fix permissions on the translog directory: chown -R elasticsearch:elasticsearch /data/elasticsearch/nodes/0/indices/ and ensure the elasticsearch user has write access.",
      "condition": "",
      "sources": []
    },
    {
      "action": "If disk is full, free up space by removing old indices or increasing disk capacity, then retry sync.",
      "success_rate": 0.8,
      "how": "If disk is full, free up space by removing old indices or increasing disk capacity, then retry sync.",
      "condition": "",
      "sources": []
    },
    {
      "action": "As a last resort, close and reopen the index to regenerate translog: POST /my_index/_close then POST /my_index/_open. This may drop uncommitted changes.",
      "success_rate": 0.7,
      "how": "As a last resort, close and reopen the index to regenerate translog: POST /my_index/_close then POST /my_index/_open. This may drop uncommitted changes.",
      "condition": "",
      "sources": []
    }
  ],
  "workarounds_zh": [
    "修复事务日志目录的权限：chown -R elasticsearch:elasticsearch /data/elasticsearch/nodes/0/indices/ 并确保elasticsearch用户有写权限。",
    "如果磁盘满，通过删除旧索引或增加磁盘容量释放空间，然后重试同步。",
    "作为最后手段，关闭并重新打开索引以重新生成事务日志：POST /my_index/_close 然后 POST /my_index/_open。这可能会丢弃未提交的更改。"
  ],
  "transition_graph": {
    "leads_to": [],
    "preceded_by": [],
    "frequently_confused_with": []
  },
  "official_doc_url": "https://www.elastic.co/guide/en/elasticsearch/reference/current/translog.html",
  "official_doc_section": null,
  "error_code": null,
  "verification_tier": "ai_generated",
  "confidence": 0.86,
  "fix_success_rate": 0.8,
  "resolvable": "partial",
  "first_seen": "2025-01-20",
  "last_confirmed": "2024-06-01",
  "last_updated": "2024-06-01",
  "evidence_count": 1,
  "tags": [],
  "locale": "en",
  "aliases": []
}