KeePassX "Unable to open the database. Wrong key or database file is corrupt."

5,471

I had the same error. This answer on GitHub was the solution for me:

You always need to use ALL keys you used for creating the database. When you create a database with password and key file, you need to use both to unlock it. Make sure the corresponding checkboxes are ticked on the unlock screen.

Share:
5,471
spacemonkey
Author by

spacemonkey

Updated on September 18, 2022

Comments

  • spacemonkey
    spacemonkey almost 2 years

    Trying to open a .kdbx database with correct password gives the following error "Unable to open the database. Wrong key or database file is corrupt". However, it does work on OSX. Repairing does not fix the issue. I remember also having few random successes before but that's about it.

    • davidbaumann
      davidbaumann over 6 years
      Are you sure you have the proper password? Do you use a keyfile? You should compare the hashes on both machines, or copy again. Also check keyboard layout.
    • EODCraft Staff
      EODCraft Staff over 6 years
      Also Note: Be sure you are coping over the Key file as well. 2 Factor Protection so just anyone can't open your database.
    • spacemonkey
      spacemonkey over 6 years
      @davidbaumann yup, checked it all, still the problem persists.
    • user1691145
      user1691145 almost 6 years
      I have the same problem. 100% sure the password is correct.
  • Ced
    Ced over 5 years
    oh my god lol. So I had the wrong checkbox set :) (I had to uncheck the keyfile)
  • David
    David over 2 years
    How is this an answer to the question? If you have a question ask it in the proper way not trying to slip it in as an answer.
  • ThunderBird
    ThunderBird over 2 years
    If you have a new question, please ask it by clicking the Ask Question button. Include a link to this question if it helps provide context. - From Review