question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Any help on why this simple example would fail with: ReplyError: ERR DUMP payload version or checksum are wrong.

const Redis = require("ioredis");

(async () => {

  try {
    const redis = new Redis({host: 'localhost'});
    let data = await redis.dump('0000_OLD_KEY');
    await redis.restore('0000_NEW_KEY', 0, data);
    process.exit();
  } catch (err) {
    console.error(err);
    process.exit(1);
  }
})();

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:2
  • Comments:5

github_iconTop GitHub Comments

2reactions
bregardcommented, May 12, 2020

Use dumpBuffer not dump. Where are the docs for this?

0reactions
naseemkullahcommented, Jun 3, 2020

dump should not exist in it’s string form, it seems like we would always want dumpBuffer

Read more comments on GitHub >

github_iconTop Results From Across the Web

Dump and restore - Softpanorama
Dump backups a filesystem as a whole into an ``archive'', and restore retrieves files from it. Although the archive may be created as...
Read more >
Dump and Restore - Ring of Saturn Internetworking
Dump. dump is a Unix program used to back up file systems. It operates on blocks, below filesystem abstractions such as files and...
Read more >
Using DUMP and RESTORE for backup and recovery - IBM
DFSMSdss can back up and recover data sets, entire volumes, or specific tracks. The DFSMSdss DUMP command is used to back up tracks,...
Read more >
Dump/restore utilities
The restore command performs the inverse function of dump; it can restore a full backup of a filesystem. Single files and directory subtrees ......
Read more >
Dump and restore - Azure Database for PostgreSQL
You can extract a PostgreSQL database into a dump file. Then, you can restore from a file created by pg_dump in Azure Database...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found