yubioath-flutter
yubioath-flutter copied to clipboard
Ubuntu: Cannot add account without `sudo`
- Yubico Authenticator version: 5.1.0
- Operating system and version: XUbuntu 21.10
- YubiKey model and version: YubiKey 5 NFC
- Bug description summary: Cannot add account without
sudo
the program
Steps to reproduce
- Install authenticator via snap
- start app (as normal user)
- insert yubikey
- Click "add account"
- Fill in the values and submit
- EXPECTED: new account is created
- ACTUAL:
- Error message "unknown error" is shown.
- Starting the app from console reveals the error
qml: addCredential failed: No eligiable connections are available ([<class 'yubikit.core.smartcard.SmartCardConnection'>]).
Full log running the app:
Start app:
env BAMF_DESKTOP_FILE_HINT=/var/lib/snapd/desktop/applications/yubioath-desktop_yubioath-desktop.desktop /snap/bin/yubioath-desktop
(yubioath-desktop:26895): dbind-WARNING **: 23:09:50.003: Couldn't connect to accessibility bus: Failed to connect to socket /tmp/dbus-5ZGk4Nx39g: No such file or directory
(yubioath-desktop:26895): Gtk-WARNING **: 23:09:50.034: Theme parsing error: gtk.css:1370:85: 'font-feature-settings' is not a valid property name
Qt: Session management error: Could not open network socket
WARNING: PC/SC not available. Smart card protocols will not function.
qml: calculateAll failed: No eligiable connections are available ([<class 'yubikit.core.smartcard.SmartCardConnection'>]).
Try to add account via GUI:
qml: addCredential failed: No eligiable connections are available ([<class 'yubikit.core.smartcard.SmartCardConnection'>]).
I have the same error message on stock Arch Linux with Yubioath Desktop 5.1.0-3 from repos with my Yubikey 5C NFC.
Though I haven't tried running the app via doas (am not using sudo).
Thanks for the report! The line WARNING: PC/SC not available. Smart card protocols will not function.
indicates that pcscd is not running. Can you make sure it is?
I can confirm that it worked normally after starting the pcscd service manually.
Yubico Authenticator 6.0 has now been released and uses a new codebase. As such, this issue has been marked with the legacy
label, and will be automatically closed in 7 days. If this issue is still relevant to Yubico Authenticator 6, please comment on the issue saying so, and it will be kept open (or be re-opened). Sorry for the inconvenience!