I started using Keepass about a month ago to hold my passwords and online accounts info. Everything was stored in a single .kdb file, only protected with a password. I'm using Windows 7.

Now Keepass can't open my .kdb file with the error "Invalid/wrong key".

I'm fairly confident I have the right password. Altough I might have mixed up a few letters I've tried about two dozen different combinations to minimize that possibility - but can't rule it out though.

My guess is however that the .kdb file got corrupted, either due to Dropbox syncing (only using it on one computer though) or because I edited the file using KeePassX on Ubuntu (dual boot on the same computer, accessing a mounted Win7 NTFS partition), or possibly a combination of both.

I have tried restoring older versions(even the original one) from Dropbox and trying out all possible passwords without any luck. (which does seem to rule out KeePassX as the culprit, since oldest copies are before I edited the file from Ubuntu) I have tried opening the file with the "Repair KeePass Database file" which always gives the "0xA Invalid/corrupt file structure" (the same error for when a wrong password is typed).

I was wondering if there was any way for me to salvage my hard-gathered data. I know generally that brute force cracking is not feasible, but since I can remember probably more than half of the usernames/passwords, any maybe the fact that one of them does come up fairly often (my go-to pass for trivial stuff), that might simplify the brute force process to a doable time frame. Maybe the brute-force thing might incorporate the fact that I know the password length and what characters it's made from. (If we assume corruption, not a password-blackout on my part)

I could do some programming if there are any libraries or routines that I could use.

Other people seem to have had a similar probem
So hopefully this question will become a suitible resource for people when searching the web.

Feel free to tell me if you think this should rather be a community wiki.

  • 1
    My KeePass container sometimes gets damaged too and i no longer can open it. That's why i regularely backup the file to my USB drive. Sorry but sometimes this is the only thing that helps – BlueWizard Jan 29 '17 at 7:24
  • Did you find any solution? I ran in completely same issue – Sergei Panfilov Jan 15 at 23:38

Did you try to restore the first version from your kdb file from your dropbox account using the web interface, or it isn't available anymore? The first uploaded version shouldn't have any errors.

(I usually use the same binary Keepass version on different systems, using WINE (Keepass 1.x) or Mono (Keepass 2.x). I don't use third party implementations on the same .kdb/.kdbx, since I was afraid of the same corruption that is haunting you now)

  • Yeah, I've tried restoring the first version (which does in fact rule out KeePassX and point to either Dropbox not handling the file correctly or me using the wrong pass). I've edited the original post to reflect this. – GummiV Sep 13 '10 at 9:56

Have you tried accessing the file with the DropBox process disabled?
Or downloading the file from the website to another location entirely?

I have a FreeOTFE volume I keep in DropBox and it's often impossible to mount with the DropBox syncing software running. As soon as I switch the software off - problem solved.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.