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

Can't open database on flatpak after version 2.7.8 #10676

Closed
shellheim opened this issue May 6, 2024 · 28 comments
Closed

Can't open database on flatpak after version 2.7.8 #10676

shellheim opened this issue May 6, 2024 · 28 comments

Comments

@shellheim
Copy link

shellheim commented May 6, 2024

Overview

[TIP]:
[NOTE]: When I enter the password to my database it shows up for a fraction of a second and then I am back to the password prompt.

Steps to Reproduce

  1. Download the latest keepassxc as flatpak
  2. Try to open a database by entering its password

Expected Behavior

The database opens

Actual Behavior

The database is shown for a split second and then the its locked again. The user is thrown back to the password prompt.

Context

[NOTE]: Here's a video showcasing the bug.

[NOTE]:
KeePassXC - 2.7.8
Revision: f6757d3

[NOTE]:
Operating System: Linux
Desktop Env: KDE
Windowing System:Wayland

@shellheim shellheim added the bug label May 6, 2024
@DamienGombaultRecia
Copy link

I confirm the same behavior with KeePassXC Flatpak version 2.7.8.
OS : Fedora Kinoite 40 (KDE/Wayland)

@nopiz
Copy link

nopiz commented May 6, 2024

I can confirm on Fedora 39 (GNOME/Wayland)

@shellheim
Copy link
Author

@DamienGombaultRecia @nopiz I think both of you are also on revision f6757d3?

@phoerious
Copy link
Member

I can indeed reproduce this.

@DamienGombaultRecia
Copy link

DamienGombaultRecia commented May 6, 2024

Yes, from FlatPak source : flathub/org.keepassxc.KeePassXC@1a31083

sources:
      - type: git
        url: https://github.com/keepassxreboot/keepassxc.git
        tag: 2.7.8
        commit: f6757d35aded625318e34ec745583604c814b7c3

FlatPak commit :
    Commit: ff056bcc994fd3b384dd6f57eb74cf3f8989fcdc00f9a0dc7bb8081277982a6a
    Parent: b74e3a1fa80097e66f56f09f170ebd53e16f6021713f4930bc4b52140a41f628
   Subject: Bump to 2.7.8 (1a310838)
      Date: 2024-05-06 10:37:43 +0000
   History: 

@phoerious
Copy link
Member

It's indeed a Flatpak-specific bug. Doesn't happen with the AppImage or Snap.

@shellheim
Copy link
Author

shellheim commented May 6, 2024

You can temporarily fix the problem by rolling back to 2.7.7 until the bug is fixed.

flatpak update --commit=36cc2d7aa2eb5e377e97b816f16480f5c7deb8a04c5cd2f8f3d4b74a2abd8ab6 org.keepassxc.KeePassXC

@droidmonkey
Copy link
Member

Can you screenshot your Application Settings -> Security tab

@marciorodrigues
Copy link

Same problem in Debian, KDE, Xorg.
image

@phoerious
Copy link
Member

I don't know where this comes from, but the default for database inactivity lock seems to be 10 seconds, but with a fresh profile, it's way less than that. When I go to settings and click OK, the database no longer auto-locks instantly, even without changing any settings.

@marciorodrigues
Copy link

I don't know where this comes from, but the default for database inactivity lock seems to be 10 seconds, but with a fresh profile, it's way less than that. When I go to settings and click OK, the database no longer auto-locks instantly, even without changing any settings.

I disabled the "Lock databases after minimizing the window" option and it worked again.

@phoerious
Copy link
Member

I don't think it's that setting. It works for me with and without that setting. The problem seems to be the auto lock timeout, which is <1s if you haven't saved your keepassxc.ini.

@shellheim
Copy link
Author

Can you screenshot your Application Settings -> Security tab

@droidmonkey

06-21:50:33

@marciorodrigues
Copy link

After I managed to access the vault, I noticed that several options were different from what I normally use. The screen layout was completely different, the theme was different, it was showing the password and hiding the notes and username, the lock time was also different and when I clicked close it was closing instead of minimizing.
I'm going to reset everything and reconfigure it to see if it works.

The username column is hidden, but the option is to show it. It appears normally on the lower screen.
image

@CodeShakingSheep
Copy link

CodeShakingSheep commented May 6, 2024

Same problem on ZorinOS, Flatpak after update to version 2.7.8.

I don't know where this comes from, but the default for database inactivity lock seems to be 10 seconds, but with a fresh profile, it's way less than that. When I go to settings and click OK, the database no longer auto-locks instantly, even without changing any settings.

Thanks, this worked for me. Afterwards, I could open my database. Indeed, the layout is really different than before.

@obispobruno
Copy link

Same problem.

Fedora 40 Sericea (Sway Atomic)
Using latest flatpak 2.7.8 commit ff056bcc994fd3b384dd6f57eb74cf3f8989fcdc00f9a0dc7bb8081277982a6a

@droidmonkey
Copy link
Member

Thanks, no need for me too. Use the thumbs up on the main post

@trafuga
Copy link

trafuga commented May 6, 2024

Linux Mint 21.2 Cinnamon using latest flatpak 2.7.8

@zroug
Copy link

zroug commented May 6, 2024

With Flatpak and version 2.7.8 my keepassxc.ini contains some strange entries like

ApplicationTheme=true
MinimizeToTray=monochrome-light
TrayIconAppearance=true

For comparison, the previous version had

ApplicationTheme=auto
MinimizeToTray=true
TrayIconAppearance=monochrome-light

So maybe the keys are mixed up somehow.

Edit:

The KeeShare key pair that is stored with key Own got replaced with true too.

[KeeShare]
Own=true

instead of

[KeeShare]
Own="<?xml version=\"1.0\"?><KeeShare><PrivateKey>...

So without a backup this one might be permanently lost if it isn't stored elsewhere. Otherwise most things didn't change except for some smaller things like HideUsernames.

@ps-spark
Copy link

ps-spark commented May 6, 2024

Linux Mint 21.2 Cinnamon using latest flatpak 2.7.8

Same here. After downgrade to previous version, it's working again. It looks like the UI opens for 400ms then it locks again without any error message.

@droidmonkey
Copy link
Member

I reverted the Flatpak release to 2.7.7

@Vovchikan
Copy link

Same on Kubuntu 23.10 with flatpak version

@keepassxreboot keepassxreboot locked and limited conversation to collaborators May 6, 2024
@phoerious
Copy link
Member

So without a backup this one might be permanently lost if it isn't stored elsewhere. Otherwise most things didn't change except for some smaller things like HideUsernames.

The key isn't used for anything.

@droidmonkey
Copy link
Member

droidmonkey commented May 7, 2024

Fixed flathub/org.keepassxc.KeePassXC#128

Apologies for the inconvenience with regards to your settings being wiped. This was a failure of a testing on my part.

@keepassxreboot keepassxreboot unlocked this conversation May 7, 2024
@shellheim
Copy link
Author

Hope this isn't another xz type bug 👀

@shellheim
Copy link
Author

Also, if you have just updated. Go to settings > security and change the clear clipboard from 1 sec to 10 sec or more.

@phoerious
Copy link
Member

I recommend you do rm ~/.var/app/org.keepassxc.KeePassXC/config/keepassxc/keepassxc.ini and reconfigure everything from scratch. There are various other switches that have been flipped, such as lock on screen lock etc.

@shellheim
Copy link
Author

Thanks @phoerious that also fixed the small font issue I was having.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests