# RDB CRC64 checksum error: expected <checksum> but computed <checksum>

- **ID:** `redis/rdb-load-crc-error`
- **Domain:** redis
- **Category:** data_error
- **Error Code:** `ERR`
- **Verification:** ai_generated
- **Fix Rate:** 80%

## 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.

## Version Compatibility

| Version | Status | Introduced | Deprecated |
|---------|--------|------------|------------|
| 6.0.0 | active | — | — |
| 7.0.0 | active | — | — |
| 7.2.0 | active | — | — |

## Workarounds

1. **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.** (90% success)
   ```
   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.
   ```
2. **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.** (85% success)
   ```
   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.
   ```
3. **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.** (60% success)
   ```
   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.
   ```

## Dead Ends

- **** — Simply restarting Redis without repairing the RDB file will cause the same error on the next load, leading to a crash loop. (95% fail)
- **** — Setting rdbchecksum to 'no' in redis.conf bypasses the check but does not fix the corruption; data may be silently lost or misread. (70% fail)
