redis-rdb-tools icon indicating copy to clipboard operation
redis-rdb-tools copied to clipboard

Invalid RDB version number 10

Open JStyle21 opened this issue 2 years ago • 13 comments

Hi,

Is version 10 not supported?

Traceback (most recent call last):
  File "/usr/local/bin/rdb", line 8, in <module>
    sys.exit(main())
  File "/usr/local/lib/python3.8/dist-packages/rdbtools/cli/rdb.py", line 106, in main
    parser.parse(options.dump_file[0])
  File "/usr/local/lib/python3.8/dist-packages/rdbtools/parser.py", line 394, in parse
    self.parse_fd(open(filename, "rb"))
  File "/usr/local/lib/python3.8/dist-packages/rdbtools/parser.py", line 399, in parse_fd
    self.verify_version(f.read(4))
  File "/usr/local/lib/python3.8/dist-packages/rdbtools/parser.py", line 963, in verify_version
    raise Exception('verify_version', 'Invalid RDB version number %d' % version)
Exception: ('verify_version', 'Invalid RDB version number 10')

JStyle21 avatar Oct 02 '22 00:10 JStyle21

   您好,我已收到您的邮件,谢谢!!~~

smilyFw avatar Oct 02 '22 00:10 smilyFw

I had the same problem. In the end, I used another tool and it works now.

emahdij avatar Jul 02 '23 12:07 emahdij

   您好,我已收到您的邮件,谢谢!!~~

smilyFw avatar Jul 02 '23 12:07 smilyFw

这是来自QQ邮箱的假期自动回复邮件。您好,我最近正在休假中,无法亲自回复您的邮件。我将在假期结束后,尽快给您回复。

ChenWei-XiaoYi avatar Jul 02 '23 12:07 ChenWei-XiaoYi

I had the same problem. In the end, I used another tool and it works now.

Thank you i will try it

JStyle21 avatar Jul 02 '23 18:07 JStyle21

Any updates?

rahulbansal-testbook avatar Jul 13 '23 11:07 rahulbansal-testbook

I had the same problem. In the end, I used another tool and it works now. Thanks @emahdij It works well for the version number 10.

kollein avatar Nov 20 '23 09:11 kollein

   您好,我已收到您的邮件,谢谢!!~~

smilyFw avatar Nov 20 '23 09:11 smilyFw

这是来自QQ邮箱的假期自动回复邮件。您好,我最近正在休假中,无法亲自回复您的邮件。我将在假期结束后,尽快给您回复。

ChenWei-XiaoYi avatar Nov 20 '23 09:11 ChenWei-XiaoYi

I had the same problem. In the end, I used another tool and it works now.

Thank you i will try it

Just to update, i tried the mentioned project but it's not the same, i wanted a simple client not a set of tools. Maybe it's me but i couldn't figure out how to use it at the time, i solved my issue using Docker.

But now i just wanted to update that i've switched to using this tool instead which works like a charm, updated and has binary releases on all platforms.

I"m keeping the ticket open since it's for this project and it hasn't been fixed here.

JStyle21 avatar Nov 20 '23 21:11 JStyle21

I ended up just manually editing this line to not throw on version 10 and it works perfectly fine (at least for my simple use case) https://github.com/sripathikrishnan/redis-rdb-tools/blob/548b11ec3c81a603f5b321228d07a61a0b940159/rdbtools/parser.py#L962

josduj avatar Feb 23 '24 14:02 josduj

这是来自QQ邮箱的假期自动回复邮件。您好,我最近正在休假中,无法亲自回复您的邮件。我将在假期结束后,尽快给您回复。

ChenWei-XiaoYi avatar Feb 23 '24 14:02 ChenWei-XiaoYi

   您好,我已收到您的邮件,谢谢!!~~

smilyFw avatar Feb 23 '24 14:02 smilyFw