10 months 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
10 months ago
cdf7b02f-c823-4fae-965a-c72950cfaa1c
10 months ago
Hello,
You would want to use this template -
10 months ago
Thank you
10 months ago
I made the original repo work if anyone is interested
https://github.com/crisog/redis-migrator
10 months ago
happy to accept a pr but I think the current template is far more efficient in all ways
10 months ago
I just tried it and it failed unfortunately
10 months ago
Maybe because it had data, but with the script I can overwrite
10 months ago
can you provide the error? I've used the template to migrate a redis database with over a million keys
10 months ago
Sure thing
10 months ago
10 months ago
Keeps on a loop with Keyspace notifications not property configured. Expected notify-keyspace-events 'KEA' but was ''.
10 months ago
And then ultimately crashes
10 months ago
ah yeah, you need to set that value to KEA on the source database
10 months ago
Might be worth adding to the template instructions
10 months ago
yeah that's true, I have a guide that's internalized, I just need to update the overview
10 months ago
I just added the key lets see if it works