I’m experiencing a persistent issue with encrypted backup restore in Dgraph v25.0.0-preview4 and would appreciate any guidance.
Both On Ubuntu 20.04 and On Ubuntu 25.04 : :
Dgraph version: v25.0.0-preview4
Commit: 684cbb2
Commit timestamp: 2025-05-21 15:58:51 -0400
Deployment: Docker Compose
Encryption: Enabled with --encryption key-file="/dgraph/enc_key_file"
The below is the logs of the alpha container
E1006 12:13:45.003231 1 draft.go:856] Applying proposal. Error: Failed to map the backup files: mapper.Map: s2: corrupt input
What I’ve Verified
Versions match exactly - Both Ubuntu 20.04 and Ubuntu 25.04 are identical (same commit hash, build date) Encryption keys match - MD5 checksums verified: 9f74aea0ae866f4a059e12a3d3d1c0eb Backup files intact - MD5 checksums match between source and destination Multiple backup attempts - Tried both old and freshly created backups, same error
That error (s2: corrupt input) occurs when either the backup is encrypted but no/or the wrong key is offered for restore, or the backup is not encrypted but a key is offered.
It’s hard to say what’s happening without exact commands, but what does the manifest.json file in the backup directory look like?