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

Failed to authenticate with Quick Unlock: Polkit authorization failed error on Ubuntu 24.04 #11316

Open
EmilEmilchen opened this issue Oct 4, 2024 · 1 comment

Comments

@EmilEmilchen
Copy link

Overview

In the latest snapshot (2.8.0 c1a66a8) version of KeePassXC I get an error when trying to use QuickUnlock (Polkit) on Kubuntu 24.04.1:
Failed to authenticate with Quick Unlock: Polkit authorization failed

Steps to Reproduce

  1. Install Kubuntu 24.04.1 LTS
  2. Download v2.8.0 c1a66a8 (or - as far I can tell - any v2.8.0 pre release) AppImage or flatpak
  3. Launch KeePassXC
  4. Open or Create a database
  5. Unlock it and try unlocking it using QuickUnlock

Expected Behavior

The polkit (PolicyKit1 KDE Agent) is supped to appear and allow for easy access to the database.

Actual Behavior

I get an error Failed to authenticate with Quick Unlock: Polkit authorization failed in the GUI:

The error

Context

I'm - as stated below - running KUbuntu 24.04.1 LTS under Wayland with an NVIDIA GPU (just mentioning this because it's been quite a pain to get everything working nicely with it and Wayland).
I'm 99% sure though this isn't the problem here. Even when switching to my CPU's integrated graphics or X11 or both I still have the same problem.
I was unable to find any additional debug information, cli doesn't show anything at all and as far as I can tell the debug/logging functionality of KeePassXC is rather limited (I could be mistaken, I definitely couldn't figure out how to get any more info).
The PolicyKit1 KDE Agent dialog does show up and work just fine anywhere else.
The most similar issue I was able to find is #9981 but that's definitely not the problem I'm encountering as I can confidently say that the dialog wasn't raised at all, not just not brought to the front.
I even tried this on a clean install of Kubuntu 24.04.1 LTS where I just installed plasma-workspace-wayland and nvidia drivers as well as configured Wayland to use the Nvidia GPU.

KeePassXC - 2.8.0
Revision: c1a66a8

Operating System: Linux
Desktop Env: KDE
Windowing System: Wayland (error definitely also occurs with X11)

@droidmonkey
Copy link
Member

droidmonkey commented Oct 4, 2024

#5991 (comment)

But we need to provide better notice when this file is not present. The quick unlock page also incorrectly shows even though polkit process was never initiated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: To triage
Development

No branches or pull requests

2 participants