Skip to content

Add note on RDB version import error#419

Open
Sp1l wants to merge 1 commit into
valkey-io:mainfrom
Sp1l:Note-rdb-version-error
Open

Add note on RDB version import error#419
Sp1l wants to merge 1 commit into
valkey-io:mainfrom
Sp1l:Note-rdb-version-error

Conversation

@Sp1l
Copy link
Copy Markdown

@Sp1l Sp1l commented Mar 7, 2026

While migrating Redis 8.6.1 to Valkey 9.0.3 on FreeBSD 15.0-p4 amd64, I ran into the following error

6431:M 07 Mar 2026 09:37:43.232 # Can't handle RDB format version 12

Document the simple fix.

While migrating Redis 8.6.1 to Valkey 9.0.3 on FreeBSD 15.0-p4 amd64, I ran into the following error

```log
6431:M 07 Mar 2026 09:37:43.232 # Can't handle RDB format version 12
````

Document the simple fix.

Signed-off-by: Bernard Spil <Sp1l@users.noreply.github.com>
@Sp1l
Copy link
Copy Markdown
Author

Sp1l commented Mar 7, 2026

Copy link
Copy Markdown
Contributor

@zuiderkwast zuiderkwast left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! This page as a whole currently doesn't describe the challenges with migrating from Redis > 7.2. The page as a whole needs more love. The simple note can help some but it can also give false hopes in the situations where it doesn't work.

Comment thread topics/migration.md
|-----------------------|--------|
| OSS 2.x - 7.2.x | 7.2.x |
| OSS 2.x - 7.2.x | 8.0 |
| CE 7.4 | n/a |
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This table and the whole page needs some updates. Currently, it only describes a plain upgrade from Redis 7.2 before the two projects started to diverge.

This page doesn't describe the relaxed RDB version check. It should, and it the limitations need to be clearly explained, i.e. that it no new keys like Redis hash-field expiration can be present, and that reading the RDB file may or may not work depending on what Redis added in their RDB files. This matrix should describe the versions we have tested and confirmed.

Comment thread topics/migration.md
9. Start Valkey:
> NOTE: If you enabled AOF in your Valkey configuration, disable it on the first start. Otherwise, the copied RDB file will not be imported into Valkey.

> NOTE: Set `rdb-version-check relaxed` for the first start to prevent "RDB format version" errors.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Loading an RDB with the relaxed check can easily fail when an unknown RDB opcode is encountered, and then this page is not of much help. We need more elaborate documentation.

@zuiderkwast
Copy link
Copy Markdown
Contributor

@nastena1606

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants