keepass2android icon indicating copy to clipboard operation
keepass2android copied to clipboard

Error opening database with "The file is corrupted. Less data than..."

Open Tokolino opened this issue 2 years ago • 3 comments

I am using Keepass2 Windows and keepass2android on a few devices, the passoword file comes from Google Drive and I use a keyfile which is stored locally. This works fine on any device, except for my girlfriends new S21 5G. When I try to open the database it says "The file is corrupted. Less data than..." and it won't open. I did several checks: As I shared the passwords database from my google account to hers, I checked the md5 checksum and it is the same. I also checked the checksum of the used keyfiles, and they are the same, too. So the files seem to be ok. Accessing the file from Google Drive seems to be no problem, too, as it confirms that the source file and the intermediate file (Zwischenspeicher in german) are the same.

Any idea what could be the problem?

Regards from Cologne, Thorsten

Tokolino avatar Feb 26 '23 13:02 Tokolino

on the S21 which does not work, how exactly did you try to open the database? Through "Open database" => "Google Drive" or through "Open database" => "Android file browser"? You can also try to enable debug logging and check the checksums reported in the log?

PhilippC avatar Jan 02 '24 12:01 PhilippC

It is opened via "Google Drive". The checksums seem to be the same. As I already stated, I checked the checksums of the password file and the keyfile, and they are all the same on all devices. KeepassAndroidDebug.log

And thank you for finally tackling this issue. It's a pity that the best app for KeePass I found so far does not work on this device...

Tokolino avatar Jan 03 '24 16:01 Tokolino

@PhilippC Is there any work on this issue? I am willing to provide any assistance if needed.

Tokolino avatar Mar 09 '24 14:03 Tokolino