I can open database only every other time.
[Unable to open the database. Wrong key or database file is corrupt.] I keep receiving this message after being able to open it...
I wish I knew
1.
2.
3.
4.
Well, I suppose you mistyped your password? Or maybe have capslock on? Or wrong keyboard layout?
Assuming you are typing the password incorrectly, you could try reinstalling keepassxc. Alternatively you could try the _Repair Database_ option under Database > Repair Database and see if that does something about it.
Hi to all of you and thank you for your help. For the password I usually copy/paste it, after verifying I was not able to log in getting the same message. Today when I wanted to open my database I got this [Unable to open the database. Wrong key or database file is corrupt.] After a couple of try I finally could log in. The same thing happened with KeepassX by the way. The whole experience make that tool not really reliable to me.
This really makes no sense and I suspect external reasons. The decryption process is deterministic, so given the same input (password and file), it always produces the same output (file can be decrypted or not).
Reasons I could think of are:
I can't imagine this to be a program error. Have yoy tried making a brand new database file to see if you can replicate the issue?
@Vegan-us Has your problem been solved? Would be nice to hear what the problem was.
@phoerious
Hi, I did not resolved any thing but everything seems to be in order.
I have created a couple of database to test the login along side my original database that I can open now with no trouble.
To resume: Dell Inspiron 15 5k series dual boot. (New)
I have migrate from portable keepass2 windows to Keepassxc ubuntu 16.04LTS via keepassx.
Through all that process I have created new database and imported database which occasionally open or not. At this moment I have two database, #1 now seems to be working, #2 won't open.
Sorry for not being technical this isn't my field. I thought that some users around would have had the same issue. But I believe that I must have a bad understanding of how the .kdbx works...
Thanks again for your help.
Alright, I'll keep this closed then.
I met this problem too. Here were what i didi (kdbx file is in dropbox folder):
Fortunately, I can find those passwords in mac os's keychain.
It's a corruption issue, that means the database becomes unusable. 2.2.4 fixed the reason why this happens, but it cannot make a previously corrupted database readable again.
BTW this more likely related to #1113
@phoerious thanks for your reply~
Just faced same issue, database corrupted and wont repair. Backup file looks to be corrupted too.
thx god google drive keeps backup of each version, but keepassxc prove to be unreliable, not sure how to trust it any more after this incident.
@chernetskynick what version are you using? 2.2.4 is the latest stable release and it's fixed.
Also, backup files shouldn't be corrupted if they were correctly saved before this issue
I just opened backup with version 2.2.2 and seems like it got corrupted as well. Now I can't open it with 2.2.2 neither with 2.2.4.
If it's corrupted, you won't be able to open it with any version. But 2.2.4 should have fixed the cause for corruption. If 2.2.4 still keeps corrupting your DB, it would be great if you could explain in detail how we can reproduce the problem.
Hi, i have the same problem even on 2.2.4 (Linux).
I try my best to remember what I did:
I hope this helps.
Regards
Relin.
Faced the same issue on MacOS on both KeePassX and KeePassXC. The database does not open. On ubuntu everything works fine. Double checked and copy-pasted my password from the editor.
If you can open your DB on Ubuntu it is highly unlikely that we have a KeePassXC bug here. The code is exactly the same for all platforms. Check you password encoding, check location and contents of your key files.
Everyone I know gets this problem on Mac Os X, and so do I. Database opens perfectly on Windows.
Thanks,
Jon
Can you please try if it happens with a new database well? Also please try our 2.3 beta version.
New databases are fine though, works great. It's just any existing Windows databases are always corrupt when I open them. I'm using powershell to back it up constantly because I'm pretty sure it will just become corrupt again.
Have found out a reason for this strange behavior on MacOS. I have special signs in my password, so clicking on 6 with command key will give you sign ˆ with an underscore. If you will continue to type your password, it will be something like â sign. And if you will not type a letter after compose+6, but type left arrow key - it will be ˆ sign (that's why I had an issue). And only after typing a combination of compose+6 and break after I got a right sign ^. On Ubuntu keyboard works in another way. It produces ^ with shift+6 keys. So, be aware!
I just downloaded KeepassXC on Mac OSX running macOS High Sierra version 10.13.4. I created a new database and setup both password and keyfile login. When I lock the db with no entires and try to login again using either my password or the keyfile I get the error message below. I have tried to create a new database multiple times and in the beginning I keep getting the same error message without adding any entries.
Error message:
Unable to open the database.
Wrong key or database file is corrupt.
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.
@phoerious You are correct. It works! I thought the reason for having the two different authentication methods was to provide two different ways to unlock the database. I was coming from the original Keypass site and saw in their documentation that you can use one or the other to sign in. Maybe they were referring to what you were saying. Thank you for your help.
I landed here with the same error. Somehow I had checked the Key File box at some point, and once I unchecked it I could open my database again. Whew!
I had the same error. @phoerious Your hint about the "Key File" box helped. Thanks! To me, this is a GUI design issue. I thought that in the "Key File" field, I had to choose the KeePass file that I want to open (the file that contains all my keys - the ones I want to access). I was not aware that the master key / password may be provided using a "key file".
I am a user who needs to access passwords from keepass files that some other people in my organization provide. I do so only once in a while.
@notand looks like the GUI is still misleading you. The key file is not for storing your database password, it is part of the total "key" that is used to decrypt your database. Your database is encrypted using an additive combination of {Password} + {Key File Binary Data} + {Yubikey Challenge Response}. When you check the checkbox, it is telling KeePassXC to use that information to form the master key, even if it is blank.
@phoerious Thanks for the info. In my case, all I need to know is that I must not check the "Key File" box, because my organization does not use this method. My point is that changing the GUI design would help many users out there who just want to access a password without understanding much about key formation. Just after I posted my comment, a colleague of mine told me about having had the same problem.
@notand opened #2445 to capture these issues. Feel free to comment there.
@droidmonkey Great, thanks!
I faced the same issues on version 2.4.1, and by not checking the "Key FIle" box, as @notand suggested, I was able to open the database.
2019 still a bug jajajaa
I encountered this same problem after doing a forced Mac Update. Is there a solution? I know I have the right password as I have been using the program for years now.
Please read the post. You need to uncheck everything except for the master password box.
OMG! That worked. Thank you! How ridiculous!
Randy Thomas
On Thu, Sep 26, 2019 at 2:44 PM Jonathan White notifications@github.com
wrote:
Please read the post. You need to uncheck everything except for the master
password box.—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/keepassxreboot/keepassxc/issues/313?email_source=notifications&email_token=AAGRKXVRKOKMZZQDLQTGE2LQLUGH7A5CNFSM4DAOBFC2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD7WXYWI#issuecomment-535657561,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAGRKXVGCWCNJIN2DYEICV3QLUGH7ANCNFSM4DAOBFCQ
.
Thanks, you saved my life :)
Please read the post. You need to uncheck everything except for the master password box.
Please read the post. You need to uncheck everything except for the master password box.
Please read the post. You need to uncheck everything except for the master password box.
ohhh great..! 👍 you saved my time.
Most helpful comment
Please read the post. You need to uncheck everything except for the master password box.