{
  "id": "redis/rdb-load-crc-error",
  "signature": "RDB CRC64 checksum error: expected <checksum> but computed <checksum>",
  "signature_zh": "RDB CRC64校验和错误：期望<checksum>但计算得到<checksum>",
  "regex": "RDB CRC64 checksum error: expected [0-9a-fA-F]+ but computed [0-9a-fA-F]+",
  "domain": "redis",
  "category": "data_error",
  "subcategory": null,
  "root_cause": "The RDB file on disk has a CRC64 checksum mismatch, indicating corruption during writing, storage, or transfer, often due to disk failures or incomplete writes.",
  "root_cause_type": "generic",
  "root_cause_zh": "磁盘上的RDB文件CRC64校验和不匹配，表明在写入、存储或传输过程中发生损坏，通常是由于磁盘故障或不完整写入。",
  "versions": [
    {
      "version": "6.0.0",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "7.0.0",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "7.2.0",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "Simply restarting Redis without repairing the RDB file will cause the same error on the next load, leading to a crash loop.",
      "fail_rate": 0.95,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "Setting rdbchecksum to 'no' in redis.conf bypasses the check but does not fix the corruption; data may be silently lost or misread.",
      "fail_rate": 0.7,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Restore from the most recent valid RDB or AOF backup: `redis-check-rdb /path/to/dump.rdb` to validate integrity, then replace the corrupted file with a backup and restart Redis.",
      "success_rate": 0.9,
      "how": "Restore from the most recent valid RDB or AOF backup: `redis-check-rdb /path/to/dump.rdb` to validate integrity, then replace the corrupted file with a backup and restart Redis.",
      "condition": "",
      "sources": []
    },
    {
      "action": "If AOF is enabled and more recent, force AOF replay by setting `appendonly yes` in redis.conf and removing the corrupted RDB file, then restart Redis to rebuild the dataset from AOF.",
      "success_rate": 0.85,
      "how": "If AOF is enabled and more recent, force AOF replay by setting `appendonly yes` in redis.conf and removing the corrupted RDB file, then restart Redis to rebuild the dataset from AOF.",
      "condition": "",
      "sources": []
    },
    {
      "action": "Use `redis-check-rdb --fix /path/to/dump.rdb` to attempt repair, though this may discard some data. Verify the fixed file with another check before loading.",
      "success_rate": 0.6,
      "how": "Use `redis-check-rdb --fix /path/to/dump.rdb` to attempt repair, though this may discard some data. Verify the fixed file with another check before loading.",
      "condition": "",
      "sources": []
    }
  ],
  "workarounds_zh": [
    "从最新的有效RDB或AOF备份恢复：运行 `redis-check-rdb /path/to/dump.rdb` 验证完整性，然后用备份替换损坏文件并重启Redis。",
    "如果AOF已启用且更新，在redis.conf中设置 `appendonly yes` 并删除损坏的RDB文件，然后重启Redis以从AOF重建数据集。",
    "使用 `redis-check-rdb --fix /path/to/dump.rdb` 尝试修复，但这可能会丢弃一些数据。加载前用另一个检查验证修复后的文件。"
  ],
  "transition_graph": {
    "leads_to": [],
    "preceded_by": [],
    "frequently_confused_with": []
  },
  "official_doc_url": "https://redis.io/commands/debug-rdb-checksum/",
  "official_doc_section": null,
  "error_code": "ERR",
  "verification_tier": "ai_generated",
  "confidence": 0.87,
  "fix_success_rate": 0.8,
  "resolvable": "partial",
  "first_seen": "2023-09-05",
  "last_confirmed": "2024-06-01",
  "last_updated": "2024-06-01",
  "evidence_count": 1,
  "tags": [],
  "locale": "en",
  "aliases": []
}