By A C
I setup an encrypted volume on one of my droplets. When I deleted the droplet I kept the encrypted volume, expecting to use it later. I setup a new Droplet and attached the encrypted volume. When I try to open the volume i get the following error:
cryptsetup luksOpen /dev/disk/by-id/scsi-0DO_Volume_volume-nyc3-01 secure-volume Enter passphrase for /dev/disk/by-id/scsi-0DO_Volume_volume-nyc3-01:
“No key available with this passphrase.”
Was there a keyfile I should have backed up before migrating the volume? I expected that I could just open the volume again by using my password.
Any help appreciated.
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Heya,
Just came across this answer and decided to write some general guidelines for anyone who comes across this in the future despite the old question.
If you’re sure that the passphrase you’re using is correct, it’s possible that there might be an issue with the Luks header, which contains the keyslots where your passphrase is stored. When you move the volume to another droplet, both the volume data and the Luks header should come along with it.
This error usually happens when the passphrase or key-file is wrong, but it’s also possible that the Luks header has become corrupted or damaged. Note: By design, LUKS does not provide a “forgot my password” feature. If you lose your passphrase, then the data is unrecoverable.
You can try using the cryptsetup luksDump command to get more information about your key slots.
Unfortunately, DigitalOcean support cannot assist with recovering data from encrypted volumes, as we do not have access to your keys or passphrase.
For more information on using Encrypted Volumes with DigitalOcean, please refer to the DigitalOcean Volumes documentation.
Hope that this helps!
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.