Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid RDB version number 10 #187

Open
JStyle21 opened this issue Oct 2, 2022 · 13 comments
Open

Invalid RDB version number 10 #187

JStyle21 opened this issue Oct 2, 2022 · 13 comments

Comments

@JStyle21
Copy link

JStyle21 commented Oct 2, 2022

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')

@smilyFw
Copy link

smilyFw commented Oct 2, 2022 via email

@emahdij
Copy link

emahdij commented Jul 2, 2023

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

@smilyFw
Copy link

smilyFw commented Jul 2, 2023 via email

@ChenWei-XiaoYi
Copy link

ChenWei-XiaoYi commented Jul 2, 2023 via email

@JStyle21
Copy link
Author

JStyle21 commented Jul 2, 2023

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

Thank you i will try it

@rahulbansal-testbook
Copy link

Any updates?

@kollein
Copy link

kollein commented Nov 20, 2023

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.

@smilyFw
Copy link

smilyFw commented Nov 20, 2023 via email

@ChenWei-XiaoYi
Copy link

ChenWei-XiaoYi commented Nov 20, 2023 via email

@JStyle21
Copy link
Author

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.

@josduj
Copy link

josduj commented Feb 23, 2024

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)

if version < 1 or version > 9:

@ChenWei-XiaoYi
Copy link

ChenWei-XiaoYi commented Feb 23, 2024 via email

@smilyFw
Copy link

smilyFw commented Feb 23, 2024 via email

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

No branches or pull requests

7 participants