a year ago
I tried using this tool
https://github.com/railwayapp-templates/redis-migrator
But it fails with this error
redis-migrator | [ OK ] Successfully saved dump to /data/redis_dump.rdb
redis-migrator | [ OK ] Dump file size: 507K
redis-migrator | Traceback (most recent call last):
redis-migrator | File "/usr/local/bin/rdb", line 8, in
redis-migrator | sys.exit(main())
redis-migrator | File "/usr/local/lib/python3.10/dist-packages/rdbtools/cli/rdb.py", line 106, in main
redis-migrator | parser.parse(options.dump_file[0])
redis-migrator | File "/usr/local/lib/python3.10/dist-packages/rdbtools/parser.py", line 394, in parse
redis-migrator | self.parse_fd(open(filename, "rb"))
redis-migrator | File "/usr/local/lib/python3.10/dist-packages/rdbtools/parser.py", line 399, in parse_fd
redis-migrator | self.verify_version(f.read(4))
redis-migrator | File "/usr/local/lib/python3.10/dist-packages/rdbtools/parser.py", line 963, in verify_version
redis-migrator | raise Exception('verify_version', 'Invalid RDB version number %d' % version)
redis-migrator | Exception: ('verify_version', 'Invalid RDB version number 12')
redis-migrator | An error occurred. Exiting...
redis-migrator exited with code 016 Replies
a year ago
cdf7b02f-c823-4fae-965a-c72950cfaa1c
a year ago
Hello,
You would want to use this template -
a year ago
Thank you
a year ago
I made the original repo work if anyone is interested
https://github.com/crisog/redis-migrator
a year ago
happy to accept a pr but I think the current template is far more efficient in all ways
a year ago
I just tried it and it failed unfortunately
a year ago
Maybe because it had data, but with the script I can overwrite
a year ago
can you provide the error? I've used the template to migrate a redis database with over a million keys
a year ago
Sure thing
a year ago
a year ago
Keeps on a loop with Keyspace notifications not property configured. Expected notify-keyspace-events 'KEA' but was ''.
a year ago
And then ultimately crashes
a year ago
ah yeah, you need to set that value to KEA on the source database
a year ago
Might be worth adding to the template instructions
a year ago
yeah that's true, I have a guide that's internalized, I just need to update the overview
a year ago
I just added the key lets see if it works