Kunzisoft / KeePassDX

Lightweight vault and password manager for Android, KeePassDX allows editing encrypted data in a single file in KeePass format and fill in the forms in a secure way.
https://www.keepassdx.com/
GNU General Public License v3.0
4.28k stars 261 forks source link

"Could not load the database" - just mentioning in case #1855

Open cheesemonkeyboy opened 1 week ago

cheesemonkeyboy commented 1 week ago

Describe the bug

While I have done my best to make sure my database file is not bad/corrupt/incomplete, hopefully this Bug Report is just some sort of weird problem with my KeePass database file - but I make this report in case I have run across a bug situation on KeePassDX. THANK YOU for making KeePassDX!

I only use KeePassDX on my Android phone for read-only access to my KeePass databases (plural). My KeePass databases are modified only by KeePass v1.42 portable running on Windows 10. One of my databases will not open anymore in KeePassDX = after entering my password (with no required additional keyfile, etc.), I now get "Could not load the database". This same database file still opens just fine in KeePass v1.42 on Windows 10 where it "came from". This particular database which will now not open has 72 groups / 950 entries, and is somewhat large at 21.8 MB. An older archived version of this same database, which again is older, has 73 groups / 951 entries - and my older archived database opens in KeePassDX as expected.

I have tried "Repair Database File" on the database file in KeePass v1.42 portable - still won't open in KeePassDX, but still opens just fine in KeePass v1.42 portable. All other smaller KeePass databases, other than my "Database.kdb" database, open/function just fine in KeePassDX.

To Reproduce

Steps to reproduce the behavior:

  1. Open KeePassDX
  2. Click on 'Open existing vault'
  3. Go to where my KeePass database file is stored (/storage/emulated/0/Documents/Database.kdb)
  4. Carefully enter my password
  5. Click on 'Unlock'
  6. Receive the error "Could not load the database"

Expected behavior

Database opens.

KeePass Database

KeePassDX:

Android:

Additional context

Add any other context about the problem here.

cheesemonkeyboy commented 6 days ago

I see that KeePassDX v4.0.8 just came out, addressing: "Fix graphical bug that prevented databases from being opened on some versions of Android https://github.com/Kunzisoft/KeePassDX/issues/1848 https://github.com/Kunzisoft/KeePassDX/issues/1850"

I am relieved that I'm not the only one having "Could not load the database" issues, and was excited that my freshly reported "Could not load the database" issue would be resolved.

Sadly, after updating my KeePassDX app to v4.0.8, I'm still having the issue reported above...

J-Jamet commented 6 days ago

KeePass version 1 support is for compatibility purposes only. Have you tried transforming your database to .kdbx and then trying to open it again with KeePassDX? Without having the opening logs with your database, it will be very difficult to identify the problem.

cheesemonkeyboy commented 6 days ago

KeePass version 1 support is for compatibility purposes only. Have you tried transforming your database to .kdbx and then trying to open it again with KeePassDX? Without having the opening logs with your database, it will be very difficult to identify the problem.

Hello J-Jamet. Thank you for your reply! No, I haven't transformed to .kdbx - I have preferred for many years to use 1.x. As I look at the Edition Comparison, I don't remember exactly why I steered away from 2.x - it might have been because I saw .NET. Anyway, I've never wished I had features found within KeePass 2.x, but maybe I should make the change. I do prefer the portable version as I can run KeePass from a USB stick if I want or need to...

I am unaware of how to obtain "opening logs". Please point me in the "opening logs" direction and I'll see what I can grab!

J-Jamet commented 6 days ago

You can obtain system logs with a LogFox-type application. The aim is to obtain logs indicating loading and opening exceptions in the KePassDX package.