FS#56415 - [pcsclite] LIBUSB_ERROR_TIMEOUT, init failed

Attached to Project: Community Packages
Opened by Allen Li (darkfeline) - Wednesday, 22 November 2017, 23:57 GMT
Last edited by Eli Schwartz (eschwartz) - Sunday, 26 November 2017, 07:03 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Christian Hesse (eworm)
Alad Wenter (Alad)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

pcscd does not detect Yubikey any more

% systemctl status pcscd
● pcscd.service - PC/SC Smart Card Daemon
Loaded: loaded (/usr/lib/systemd/system/pcscd.service; indirect; vendor preset: disabled)
Active: active (running) since Wed 2017-11-22 15:48:32 PST; 6s ago
Main PID: 7207 (pcscd)
Tasks: 5 (limit: 4915)
CGroup: /system.slice/pcscd.service
└─7207 /usr/bin/pcscd --foreground --auto-exit

Nov 22 15:48:32 host systemd[1]: Started PC/SC Smart Card Daemon.
Nov 22 15:48:35 host pcscd[7207]: 00000000 ccid_usb.c:1256:ControlUSB() control failed (1/3): -7 LIBUSB_ERROR_TIMEOUT
Nov 22 15:56:11 host pcscd[7207]: 99999999 ifdhandler.c:151:CreateChannelByNameOrChannel() failed
Nov 22 15:56:11 host pcscd[7207]: 00000009 readerfactory.c:1105:RFInitializeReader() Open Port 0x200001 Failed (usb:1050/0116:libudev:0:/dev/bus/usb/001/008)
Nov 22 15:56:11 host pcscd[7207]: 00000003 readerfactory.c:376:RFAddReader() Yubico Yubikey NEO OTP+U2F+CCID init failed.
Nov 22 15:56:11 host pcscd[7207]: 00000821 ifdhandler.c:151:CreateChannelByNameOrChannel() failed
Nov 22 15:56:11 host pcscd[7207]: 00000006 readerfactory.c:1105:RFInitializeReader() Open Port 0x200001 Failed (usb:1050/0116:libudev:1:/dev/bus/usb/001/008)
Nov 22 15:56:11 host pcscd[7207]: 00000002 readerfactory.c:376:RFAddReader() Yubico Yubikey NEO OTP+U2F+CCID init failed.
% uname -r
4.13.12-1-ARCH

LIBUSB_ERROR_TIMEOUT appears before Yubikey is inserted.

Additional info:
linux 4.13.12-1
pcsclite 1.8.22-1
pcsc-tools 1.5.2-2
libusb-compat 0.1.5-1
libusb 1.0.21-2
ccid 1.4.28-1

Steps to reproduce:
This task depends upon

Closed by  Eli Schwartz (eschwartz)
Sunday, 26 November 2017, 07:03 GMT
Reason for closing:  Not a bug
Additional comments about closing:  OP can no longer reproduce
Comment by Allen Li (darkfeline) - Sunday, 26 November 2017, 06:48 GMT
Odd, looks like it's fixed now.

After encountering this bug, I restarted my machine and tried rolling back a few packages with no luck.

I then rebooted by machine with the most recent packages as of the bug creation date while waiting/looking for a fix.

After updating packages again today and restarting pcscd the issue went away. I did not restart the machine again since filing the bug.

I'm not sure if an updated package fixed it or it was some quirk that went away some time after machine boot.

Loading...