Bug 475389 - kwalletd5 doesn't start, unable to decrypt gpg
Summary: kwalletd5 doesn't start, unable to decrypt gpg
Status: REPORTED
Alias: None
Product: kwalletmanager
Classification: Applications
Component: general (other bugs)
Version First Reported In: unspecified
Platform: Arch Linux Linux
: NOR grave
Target Milestone: ---
Assignee: Valentin Rusu
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-10-09 00:44 UTC by Alex Zbarcea
Modified: 2025-06-05 13:18 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alex Zbarcea 2023-10-09 00:44:03 UTC
SUMMARY
kwalletd5 fails to start:

```
❯ kwalletd5 
kf.wallet.kwalletd: kwalletd5: Checking for pam module
kf.wallet.kwalletd: Lacking a socket, pipe: 0 env: 0
libGL error: glx: failed to create dri3 screen
libGL error: failed to load driver: nouveau
```

An Error message will popup:
```
Error when attempting to decript wallet kdewallet using GPG. If you're using a SmartCard, please ensure it's inserted again. GPG error was Inappropriate ioctl for device.
```

STEPS TO REPRODUCE
1.  Upgrade to latest

2. Reboot

3. On KDE start, when kwalletd5 starts, it shows the error

OBSERVED RESULT
Error to popup:
"Error when attempting to decript wallet kdewallet using GPG. If you're using a SmartCard, please ensure it's inserted again. GPG error was Inappropriate ioctl for device."

EXPECTED RESULT
A dialog to provide the password for the GPG key guarding the vault.

SOFTWARE/OS VERSIONS
Windows: N/A
macOS: N/A
Linux/KDE Plasma: Archlinux 
(available in About System)
KDE Plasma Version: 5.27.8
KDE Frameworks Version:  5.110.0
Qt Version: 5.15.11+kde+r134-1

```
❯ pacman -Q | grep -E "(kwallet|plasma-framework)"
kwallet-pam 5.27.8-2
kwallet5 5.110.0-1
kwalletmanager 23.08.1-1
plasma-framework5 5.110.0-1
```

ADDITIONAL INFORMATION
This happened after the last upgrade.

❯ pacman -Q | grep -E "(kwallet|plasma-framework|kde)"
kde-cli-tools 5.27.8-2
kde-gtk-config 5.27.8-2
kdebugsettings 23.08.1-1
kdeclarative5 5.110.0-1
kdecoration 5.27.8-2
kded5 5.110.0-2
kdeedu-data 23.08.1-1
kdegraphics-mobipocket 23.08.1-1
kdelibs4support 5.110.0-2
kdeplasma-addons 5.27.8-2
kdesdk-kio 23.08.1-1
kdesdk-thumbnailers 23.08.1-1
kdesignerplugin 5.110.0-2
kdesu5 5.110.0-1
kdewebkit 5.99.0-1
kwallet-pam 5.27.8-2
kwallet5 5.110.0-1
kwalletmanager 23.08.1-1
libblockdev 3.0.3-4
libkdegames 23.08.1-1
plasma-framework5 5.110.0-1
polkit-kde-agent 5.27.8-2
qt5-base 5.15.11+kde+r134-1
qt5-declarative 5.15.11+kde+r30-1
qt5-imageformats 5.15.11+kde+r12-1
qt5-location 5.15.11+kde+r4-1
qt5-multimedia 5.15.11+kde+r2-1
qt5-quickcontrols2 5.15.11+kde+r5-1
qt5-speech 5.15.11+kde+r1-1
qt5-svg 5.15.11+kde+r6-1
qt5-tools 5.15.11+kde+r3-1
qt5-wayland 5.15.11+kde+r59-1
qt5-webchannel 5.15.11+kde+r3-1
signon-kwallet-extension 23.08.1-1
xdg-desktop-portal-kde 5.27.8-4

Kleopatra can read the keys without issue.
Comment 1 michaelk83 2025-06-05 13:18:31 UTC
Similar to bug 490584, but different GPG error.