You are not logged in.
Pages: 1
a long while ago i saw this Wiki article and i have set up to open keepassxc instead of the authenticator app. i remember this was working but now it just doesn't work anymore. if i plug-in the yubikey, keepassxc opens and immediately after that it crashes, i suspect when it tries to read the yubikey. for troubleshooting i changed the service file to open the authenticator app and it works, no crash or whatsoever.
this is my /home/myusername/.config/systemd/user/yubikey-autostart.service
[Unit]
Description=Autostart KeePassXC on YubiKey plug-in
# Uncomment if you want to stop the application/authenticator when unplugged.
StopPropagatedFrom=dev-yubikey.device
[Install]
WantedBy=dev-yubikey.device
[Service]
Type=oneshot
#ExecStart=/opt/yubico-authenticator/authenticator
ExecStart=/usr/bin/keepassxc
and this is /etc/udev/rules.d/80-yubikey-actions.rules
ENV{ID_VENDOR}=="Yubico", ENV{ID_VENDOR_ID}=="1050", ENV{ID_MODEL_ID}=="0010|0111|0112|0113|0114|0115|0116|0401|0402|0403|0404|0405|0406|0407|0410", SYMLINK+="yubikey", TAG+="systemd"
and this is the journal when i plug-in the yubikey
Aug 18 23:09:54 P14s kernel: usb 3-7: new full-speed USB device number 13 using xhci_hcd
Aug 18 23:09:54 P14s kernel: usb 3-7: New USB device found, idVendor=1050, idProduct=0407, bcdDevice= 4.37
Aug 18 23:09:54 P14s kernel: usb 3-7: New USB device strings: Mfr=1, Product=2, SerialNumber=0
Aug 18 23:09:54 P14s kernel: usb 3-7: Product: Yubikey 4 OTP+U2F+CCID
Aug 18 23:09:54 P14s kernel: usb 3-7: Manufacturer: Yubico
Aug 18 23:09:54 P14s kernel: input: Yubico Yubikey 4 OTP+U2F+CCID as /devices/pci0000:00/0000:00:14.0/usb3/3-7/3-7:1.0/0003:1050:0407.001E/input/input50
Aug 18 23:09:54 P14s kernel: hid-generic 0003:1050:0407.001E: input,hidraw5: USB HID v1.10 Keyboard [Yubico Yubikey 4 OTP+U2F+CCID] on usb-0000:00:14.0-7/input0
Aug 18 23:09:54 P14s kernel: hid-generic 0003:1050:0407.001F: hiddev97,hidraw6: USB HID v1.10 Device [Yubico Yubikey 4 OTP+U2F+CCID] on usb-0000:00:14.0-7/input1
Aug 18 23:09:54 P14s mtp-probe[17516]: checking bus 3, device 13: "/sys/devices/pci0000:00/0000:00:14.0/usb3/3-7"
Aug 18 23:09:54 P14s mtp-probe[17516]: bus: 3, device: 13 was not an MTP device
Aug 18 23:09:55 P14s systemd[2581]: Starting Autostart KeePassXC on YubiKey plug-in...
Aug 18 23:09:55 P14s systemd-logind[1481]: Watching system buttons on /dev/input/event22 (Yubico Yubikey 4 OTP+U2F+CCID)
Aug 18 23:09:55 P14s mtp-probe[17586]: checking bus 3, device 13: "/sys/devices/pci0000:00/0000:00:14.0/usb3/3-7"
Aug 18 23:09:55 P14s keepassxc[17557]: Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.
Aug 18 23:09:55 P14s mtp-probe[17586]: bus: 3, device: 13 was not an MTP device
Aug 18 23:09:55 P14s keepassxc[17557]: QObject::connect: No such signal QPlatformNativeInterface::systemTrayWindowChanged(QScreen*)
Aug 18 23:09:56 P14s keepassxc[17557]: qt.qpa.wayland: Wayland does not support QWindow::requestActivate()
Aug 18 23:09:56 P14s keepassxc[17557]: qt.qpa.wayland: Wayland does not support QWindow::requestActivate()
Aug 18 23:09:59 P14s kernel: input: Yubico Yubikey 4 OTP+U2F+CCID as /devices/pci0000:00/0000:00:14.0/usb3/3-7/3-7:1.0/0003:1050:0407.0020/input/input51
Aug 18 23:09:59 P14s kernel: hid-generic 0003:1050:0407.0020: input,hidraw5: USB HID v1.10 Keyboard [Yubico Yubikey 4 OTP+U2F+CCID] on usb-0000:00:14.0-7/input0
Aug 18 23:09:59 P14s gnome-shell[2724]: Could not open device /dev/input/event22: Could not get device info for path /dev/input/event22: Datei oder Verzeichnis nicht gefunden
Aug 18 23:09:59 P14s systemd-logind[1481]: Failed to open /dev/input/event22: No such file or directory
Aug 18 23:09:59 P14s systemd[2581]: Requested transaction contradicts existing jobs: Resource deadlock avoided
Aug 18 23:10:00 P14s kernel: input: Yubico Yubikey 4 OTP+U2F+CCID as /devices/pci0000:00/0000:00:14.0/usb3/3-7/3-7:1.0/0003:1050:0407.0021/input/input52
Aug 18 23:10:00 P14s kernel: hid-generic 0003:1050:0407.0021: input,hidraw5: USB HID v1.10 Keyboard [Yubico Yubikey 4 OTP+U2F+CCID] on usb-0000:00:14.0-7/input0
Aug 18 23:10:00 P14s systemd-logind[1481]: Watching system buttons on /dev/input/event22 (Yubico Yubikey 4 OTP+U2F+CCID)
Aug 18 23:10:01 P14s systemd[2581]: Stopped Autostart KeePassXC on YubiKey plug-in.
Aug 18 23:10:01 P14s systemd[2581]: yubikey-autostart.service: Consumed 3.047s CPU time, 143.1M memory peak.
Aug 18 23:10:03 P14s kernel: usb 3-7: USB disconnect, device number 13
can someone help me to get this run properly again?
Offline
Pages: 1