Page 1 of 2 12 LastLast
Results 1 to 10 of 13

Thread: kwalletd can't decrypt wallet

  1. #1

    Default kwalletd can't decrypt wallet

    As of some update last week (sorry, can't really be more specific there..but I know it was before the KDE apps 20.04.1 update recently released), every time I log in I now get an error dialog from "kwalletd GPG backend": "Error when attempting to decrypt the wallet kdewallet using GPG. If you're using a SmartCard, please ensure it's inserted then try again. GPG error was No such file or directory".

    I haven't ever used a SmartCard. Previously I would get a prompt to enter my key's password to open this wallet when I logged in, and this is how it still is working on my Leap 15.1 install. There are "Retry" and "Cancel" buttons and both have the same effect of just showing the same error dialog again and again. The close button on the dialog also does the same.

    I tried looking in journalctl for KDE and especially kwallet or GPG error messages but all I see are two messages "Activating service name='org.kde.kwalletd5'" and "Successfully activated service 'org.kde.kwalletd5'". Any ideas on either fixing this or at least finding out exactly what file or directory GPG (and hence kwalletd) can't find?

  2. #2
    Join Date
    Aug 2010
    Location
    Chicago suburbs
    Posts
    14,023
    Blog Entries
    3

    Default Re: kwalletd can't decrypt wallet

    I just booted Tumbleweed, logged into KDE, and then used a command that requires kwallet.

    I was prompted for my GPG key. And everything worked as expected.

    However, I logged into KDE Plasma as Xorg. I could also login to Plasma Wayland or as Plasma FullWayland.

    It would help to know which you are trying. There is a difference in how gpg-agent is started, depending on which of those you use.

    Maybe provide the output from
    Code:
    printenv | grep XDG
    openSUSE Leap 15.2; KDE Plasma 5.18.5;

  3. #3

    Default Re: kwalletd can't decrypt wallet

    Quote Originally Posted by nrickert View Post
    However, I logged into KDE Plasma as Xorg. I could also login to Plasma Wayland or as Plasma FullWayland.

    It would help to know which you are trying. There is a difference in how gpg-agent is started, depending on which of those you use.
    I'm still using X11, haven't really had the chance to make the plunge into Wayland yet.

    Quote Originally Posted by nrickert View Post
    Maybe provide the output from
    Code:
    printenv | grep XDG
    Code:
    XDG_CONFIG_DIRS=/etc/xdg
    XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0
    XDG_SEAT=seat0
    XDG_SESSION_DESKTOP=KDE
    XDG_SESSION_TYPE=x11
    XDG_CURRENT_DESKTOP=KDE
    XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0
    XDG_SESSION_CLASS=user
    XDG_VTNR=7
    XDG_SESSION_ID=1
    XDG_RUNTIME_DIR=/run/user/1000
    XDG_DATA_DIRS=/home/[user]/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share:/usr/share

  4. #4
    Join Date
    Aug 2010
    Location
    Chicago suburbs
    Posts
    14,023
    Blog Entries
    3

    Default Re: kwalletd can't decrypt wallet

    Is "gpg-agent" running?

    I usually check that with:
    Code:
    ps -ef | grep gpg-agent
    That agent listens on sockets such as:
    Code:
    /run/user/1001/gnupg/S.gpg-agent
    except it will use your UID in place of that 1001. Maybe check if there are sockets in the corresponding directory on your system.
    openSUSE Leap 15.2; KDE Plasma 5.18.5;

  5. #5

    Default Re: kwalletd can't decrypt wallet

    Quote Originally Posted by nrickert View Post
    Is "gpg-agent" running?

    I usually check that with:
    Code:
    ps -ef | grep gpg-agent
    That shows two processes:
    Code:
    /usr/bin/ssh-agent /usr/bin/gpg-agent --sh --daemon --keep-display /etc/X11/xinit/xinitrc
    /usr/bin/gpg-agent --sh --daemon --keep-display /etc/X11/xinit/xinitrc
    Quote Originally Posted by nrickert View Post
    That agent listens on sockets such as:
    Code:
    /run/user/1001/gnupg/S.gpg-agent
    except it will use your UID in place of that 1001. Maybe check if there are sockets in the corresponding directory on your system.
    Here's the socket:
    Code:
    srwx------ ... [user] users ... /run/user/[uid]/gnupg/S.gpg-agent

  6. #6
    Join Date
    Aug 2010
    Location
    Chicago suburbs
    Posts
    14,023
    Blog Entries
    3

    Default Re: kwalletd can't decrypt wallet

    That all looks normal.

    What output do you see from:
    Code:
    ls -l .local/share/kwalletd
    (this assumes you are in your home directory when running the command).
    openSUSE Leap 15.2; KDE Plasma 5.18.5;

  7. #7

    Default Re: kwalletd can't decrypt wallet

    Quote Originally Posted by nrickert View Post
    That all looks normal.

    What output do you see from:
    Code:
    ls -l .local/share/kwalletd
    Code:
    total 8
    -rw------- 1 [user] users ... kdewallet.kwl
    -rw------- 1 [user] users ... kdewallet.salt
    They both have a non-zero size.

  8. #8
    Join Date
    Aug 2010
    Location
    Chicago suburbs
    Posts
    14,023
    Blog Entries
    3

    Default Re: kwalletd can't decrypt wallet

    Does "kdewallet.kwl" have a recent date?
    openSUSE Leap 15.2; KDE Plasma 5.18.5;

  9. #9

    Default Re: kwalletd can't decrypt wallet

    Quote Originally Posted by nrickert View Post
    Does "kdewallet.kwl" have a recent date?
    Yes, May 14 which may have been when this started. The .salt file appears to be from when I first created this user's account.

  10. #10
    Join Date
    Aug 2010
    Location
    Chicago suburbs
    Posts
    14,023
    Blog Entries
    3

    Default Re: kwalletd can't decrypt wallet

    Fair enough.

    For me, the ".kwl" file seems to be from when I last opened the wallet. And the salt file is a year or so old (probably when I set it up).

    My suggestion:

    Logout. Maybe even reboot. Then login to a command line (or use CTRL-ALT-F1 to get to a command line).

    Backup ".local/share/kwalletd" (maybe copy to another directory).
    Then delete both files.

    Login to KDE and see if you can setup kwallet again.

    It might turn out that something else is wrong. Perhaps your GPG key is broken. If so, you might learn what is wrong when trying to setup kwallet again.
    openSUSE Leap 15.2; KDE Plasma 5.18.5;

Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •