Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

After using KeeWeb once, can no longer open file in KeePass.exe #2137

Open
rjt opened this issue Mar 11, 2024 · 2 comments
Open

After using KeeWeb once, can no longer open file in KeePass.exe #2137

rjt opened this issue Mar 11, 2024 · 2 comments
Assignees
Labels
Type ◦ Bug Something isn't working

Comments

@rjt
Copy link

rjt commented Mar 11, 2024

After using KeeWeb just one time, i can no longer use KeePass.exe to open the same database. Have KeeWeb screenshots to show that I am not using a "Key File" with this KDBX file. The good thing is i still have this password file open in KeeWeb, but not sure what will happen if KeeWeb closes or crashes.

If i use the "Advanced" setting "Try Beta Version Until Restart", would "Check for updates" get the patches mentioned and then allow me to save my precious.kdbx successfully? And successfully use KeePass.exe to open precious.kdbx without a KeyFile or at least a working KeyFile?


KeePass

C:\Users\User\Dropbox\precious.kdbx

Failed to load the specified file!

The input is not a valid Base-64 string as it contains a non-base 64 character, more than two padding characters, or an illegal character among the padding characters.

OK

KeeWeb v1.18.6 (070573e, 2021-05-19)
Environment: electron v12.0.7
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) KeeWeb/1.18.6 Chrome/89.0.4389.128 Electron/12.0.7 Safari/537.36

@rjt
Copy link
Author

rjt commented Mar 11, 2024

Dissipatives "fix-remove-key-file" may successfully remove the corrupted keyfile. It is 22 commits ahead of master.
The latest version from chocolatey.org is 1.18.6, but github
KeePass 2.46 opened precious.kdbx successfully and then set the password again without a keyfile and now the latest KeePass 2.56 version opens it as well. :) 👍

@rjt
Copy link
Author

rjt commented Mar 11, 2024

AlBundy33 created a docker solution with newer patches that fix the problem as well

keeweb_kdbx4_hotfix

This Dockerfile creates a build of keeweb 1.18.7 with kdbxweb 2.0.4 with patches and pull requests to fix:
ensure to write LastModificationTime in base64 to not currupt the database

PR: #2001

see https://keepass.info/help/kb/kdbx_4.1.html#cd_lastmod

this is needed if you want to open the database also in KeePass
bugfix for resetting the keyfile

PR: #1924

@Aetherinox Aetherinox self-assigned this Apr 29, 2024
@Aetherinox Aetherinox added the Type ◦ Bug Something isn't working label Apr 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type ◦ Bug Something isn't working
Projects
Status: No status
Development

No branches or pull requests

2 participants