yubioath-flutter icon indicating copy to clipboard operation
yubioath-flutter copied to clipboard

Authenticator doesn't detect Yubikey but all other Yubikey apps do

Open pauby opened this issue 6 years ago • 21 comments

  • Yubico Authenticator version: 4.3.4
  • Operating system and version: Windows 10 Pro x64 Version 1803 Build 17134.81
  • YubiKey model and version: Yubikey NEO (Firmware 3.4.9)
  • Bug description summary: I can only get the Yubico Authenticator to recognise the Yubikey when it is in one particular USB socket connected directly to the laptop. When connected to the docking station or a USB 3 hub it won't detect it. However every single other Yubikey app does detect it. With Yubico Authenticator it HAS to be in a particular socket or I get 'No Yubikey detected'.

Note I previously submitted this under #271 but this current issue is for an entirely different machine (previous issue was on a desktop this one is for a brand new laptop). Note that I also fixed the problem on the previous desktop by plugging the Yubikey into a USB 2 port - USB 3 ports seem to be the issue on the surface (the new laptop ONLY has USB 3 ports).

Steps to reproduce

I just plug my Yubikey into any socket, except the one that works with Yubico Authenticator, to reproduce.

Expected result

It to popup and ask me for my PIN.

Actual results

I get the message 'No Yubikey detected'.

Other info

In a much older version I never had this issue (I cannot tell you the version but I do remember it used to work).

In the previous #271 ticket it was suggested I go to Yubikey, however every single other Yubikey app works so I know they will put it down to an issue with this app. If we can exhaust some testing rather just closing the ticket I will go to Yubikey and point them here so they can see what has been done.

I also have a further issue that when I close the authenticator app the GUI disappears but the yubioath-desktop.exe process stays running in the background and needs to be killed before I can start it again. I will log a separate issue for this once we resolve this issue as they may be related.

Finally, log file for when it is run with the Yubikey attached to the Thunderbolt 3 dicking station:

2018-06-12T13:45:38+0100 INFO [ykman.logging_setup.setup:59] Initialized logging for ykman version: 0.7.0

And it being attached directly to the laptop

2018-06-12T13:48:34+0100 INFO [ykman.logging_setup.setup:59] Initialized logging for ykman version: 0.7.0
2018-06-12T13:48:34+0100 DEBUG [ykman.descriptor.Descriptor.open_device:80] transports: 0x4, self.mode.transports: 0x7
2018-06-12T13:48:34+0100 DEBUG [ykman.descriptor.open_device:84] Opening driver for serial: None, pid: PID.NEO_OTP_FIDO_CCID
2018-06-12T13:48:34+0100 DEBUG [ykman.descriptor.open_device:86] Attempt 1 of 10
2018-06-12T13:48:34+0100 DEBUG [ykman.descriptor.open_device:89] Found driver: <ykman.driver_ccid.CCIDDriver object at 0x0000020DD354A160>, pid: PID.NEO_OTP_FIDO_CCID
2018-06-12T13:48:34+0100 DEBUG [ykman.device.__init__:196] Read config from device...
2018-06-12T13:48:34+0100 DEBUG [ykman.device.__init__:211] Failed to read config from device
Traceback (most recent call last):
  File "C:\Program Files\Yubico\Yubico Authenticator\pymodules\ykman\device.py", line 197, in __init__
    config = DeviceConfig(driver.read_config())
  File "C:\Program Files\Yubico\Yubico Authenticator\pymodules\ykman\driver_ccid.py", line 141, in read_config
    raise NotSupportedError()
ykman.driver.NotSupportedError
2018-06-12T13:48:34+0100 DEBUG [ykman.device.__init__:117] Config data empty/missing
2018-06-12T13:48:34+0100 DEBUG [ykman.driver_ccid.send_apdu:168] SEND: b'00a4040007a0000005272001'
2018-06-12T13:48:34+0100 DEBUG [ykman.driver_ccid.send_apdu:170] RECV: b'030401038707060000009000'
2018-06-12T13:48:34+0100 DEBUG [ykman.driver_ccid.send_apdu:168] SEND: b'0001100000'
2018-06-12T13:48:34+0100 DEBUG [ykman.driver_ccid.send_apdu:170] RECV: b'004a60bb9000'
2018-06-12T13:48:34+0100 DEBUG [ykman.device.__init__:225] Identified NEO
2018-06-12T13:48:34+0100 DEBUG [ykman.device.__init__:227] CCID available, probe capabilities...
2018-06-12T13:48:34+0100 DEBUG [ykman.driver_ccid.send_apdu:168] SEND: b'00a4040007a0000005272001'
2018-06-12T13:48:34+0100 DEBUG [ykman.driver_ccid.send_apdu:170] RECV: b'030401038707060000009000'
2018-06-12T13:48:34+0100 DEBUG [ykman.driver_ccid.probe_capabilities:158] Found applet: aid: AID.OTP , capability: OTP
2018-06-12T13:48:34+0100 DEBUG [ykman.driver_ccid.send_apdu:168] SEND: b'00a4040008a0000006472f0001'
2018-06-12T13:48:34+0100 DEBUG [ykman.driver_ccid.send_apdu:170] RECV: b'5532465f56329000'
2018-06-12T13:48:34+0100 DEBUG [ykman.driver_ccid.probe_capabilities:158] Found applet: aid: AID.U2F , capability: FIDO U2F
2018-06-12T13:48:34+0100 DEBUG [ykman.driver_ccid.send_apdu:168] SEND: b'00a4040007a0000005271002'
2018-06-12T13:48:34+0100 DEBUG [ykman.driver_ccid.send_apdu:170] RECV: b'6d00'
2018-06-12T13:48:34+0100 DEBUG [ykman.driver_ccid.probe_capabilities:161] Missing applet: aid: AID.U2F_YUBICO , capability: FIDO U2F
2018-06-12T13:48:34+0100 DEBUG [ykman.driver_ccid.send_apdu:168] SEND: b'00a4040005a000000308'
2018-06-12T13:48:34+0100 DEBUG [ykman.driver_ccid.send_apdu:170] RECV: b'61114f0600001000010079074f05a0000003089000'
2018-06-12T13:48:34+0100 DEBUG [ykman.driver_ccid.probe_capabilities:158] Found applet: aid: AID.PIV , capability: PIV
2018-06-12T13:48:34+0100 DEBUG [ykman.driver_ccid.send_apdu:168] SEND: b'00a4040006d27600012401'
2018-06-12T13:48:34+0100 DEBUG [ykman.driver_ccid.send_apdu:170] RECV: b'9000'
2018-06-12T13:48:34+0100 DEBUG [ykman.driver_ccid.probe_capabilities:158] Found applet: aid: AID.OPGP , capability: OpenPGP
2018-06-12T13:48:34+0100 DEBUG [ykman.driver_ccid.send_apdu:168] SEND: b'00a4040007a0000005272101'
2018-06-12T13:48:34+0100 DEBUG [ykman.driver_ccid.send_apdu:170] RECV: b'790301000071083e785a84679df3197408262a052240ab47487b01219000'
2018-06-12T13:48:34+0100 DEBUG [ykman.driver_ccid.probe_capabilities:158] Found applet: aid: AID.OATH , capability: OATH
2018-06-12T13:48:34+0100 DEBUG [ykman.driver_ccid.send_apdu:168] SEND: b'00a4040007a0000005272101'
2018-06-12T13:48:34+0100 DEBUG [ykman.driver_ccid.send_apdu:170] RECV: b'790301000071083e785a84679df31974087f1516959d95fb467b01219000'
2018-06-12T13:48:34+0100 DEBUG [ykman.driver_ccid.__del__:213] Destroy <ykman.driver_ccid.CCIDDriver object at 0x0000020DD354A160>
2018-06-12T13:48:34+0100 DEBUG [ykman.driver_ccid.close:209] Close <ykman.driver_ccid.CCIDDriver object at 0x0000020DD354A160>
2018-06-12T13:48:34+0100 DEBUG [ykman.descriptor.Descriptor.open_device:80] transports: 0x4, self.mode.transports: 0x7
2018-06-12T13:48:34+0100 DEBUG [ykman.descriptor.open_device:84] Opening driver for serial: None, pid: PID.NEO_OTP_FIDO_CCID
2018-06-12T13:48:34+0100 DEBUG [ykman.descriptor.open_device:86] Attempt 1 of 10
2018-06-12T13:48:34+0100 DEBUG [ykman.descriptor.open_device:89] Found driver: <ykman.driver_ccid.CCIDDriver object at 0x0000020DD354A518>, pid: PID.NEO_OTP_FIDO_CCID
2018-06-12T13:48:34+0100 DEBUG [ykman.device.__init__:196] Read config from device...
2018-06-12T13:48:34+0100 DEBUG [ykman.device.__init__:211] Failed to read config from device
Traceback (most recent call last):
  File "C:\Program Files\Yubico\Yubico Authenticator\pymodules\ykman\device.py", line 197, in __init__
    config = DeviceConfig(driver.read_config())
  File "C:\Program Files\Yubico\Yubico Authenticator\pymodules\ykman\driver_ccid.py", line 141, in read_config
    raise NotSupportedError()
ykman.driver.NotSupportedError
2018-06-12T13:48:34+0100 DEBUG [ykman.device.__init__:117] Config data empty/missing
2018-06-12T13:48:34+0100 DEBUG [ykman.driver_ccid.send_apdu:168] SEND: b'00a4040007a0000005272001'
2018-06-12T13:48:35+0100 DEBUG [ykman.driver_ccid.send_apdu:170] RECV: b'030401038707060000009000'
2018-06-12T13:48:35+0100 DEBUG [ykman.driver_ccid.send_apdu:168] SEND: b'0001100000'
2018-06-12T13:48:35+0100 DEBUG [ykman.driver_ccid.send_apdu:170] RECV: b'004a60bb9000'
2018-06-12T13:48:35+0100 DEBUG [ykman.device.__init__:225] Identified NEO
2018-06-12T13:48:35+0100 DEBUG [ykman.device.__init__:227] CCID available, probe capabilities...
2018-06-12T13:48:35+0100 DEBUG [ykman.driver_ccid.send_apdu:168] SEND: b'00a4040007a0000005272001'
2018-06-12T13:48:35+0100 DEBUG [ykman.driver_ccid.send_apdu:170] RECV: b'030401038707060000009000'
2018-06-12T13:48:35+0100 DEBUG [ykman.driver_ccid.probe_capabilities:158] Found applet: aid: AID.OTP , capability: OTP
2018-06-12T13:48:35+0100 DEBUG [ykman.driver_ccid.send_apdu:168] SEND: b'00a4040008a0000006472f0001'
2018-06-12T13:48:35+0100 DEBUG [ykman.driver_ccid.send_apdu:170] RECV: b'5532465f56329000'
2018-06-12T13:48:35+0100 DEBUG [ykman.driver_ccid.probe_capabilities:158] Found applet: aid: AID.U2F , capability: FIDO U2F
2018-06-12T13:48:35+0100 DEBUG [ykman.driver_ccid.send_apdu:168] SEND: b'00a4040007a0000005271002'
2018-06-12T13:48:35+0100 DEBUG [ykman.driver_ccid.send_apdu:170] RECV: b'6d00'
2018-06-12T13:48:35+0100 DEBUG [ykman.driver_ccid.probe_capabilities:161] Missing applet: aid: AID.U2F_YUBICO , capability: FIDO U2F
2018-06-12T13:48:35+0100 DEBUG [ykman.driver_ccid.send_apdu:168] SEND: b'00a4040005a000000308'
2018-06-12T13:48:35+0100 DEBUG [ykman.driver_ccid.send_apdu:170] RECV: b'61114f0600001000010079074f05a0000003089000'
2018-06-12T13:48:35+0100 DEBUG [ykman.driver_ccid.probe_capabilities:158] Found applet: aid: AID.PIV , capability: PIV
2018-06-12T13:48:35+0100 DEBUG [ykman.driver_ccid.send_apdu:168] SEND: b'00a4040006d27600012401'
2018-06-12T13:48:35+0100 DEBUG [ykman.driver_ccid.send_apdu:170] RECV: b'9000'
2018-06-12T13:48:35+0100 DEBUG [ykman.driver_ccid.probe_capabilities:158] Found applet: aid: AID.OPGP , capability: OpenPGP
2018-06-12T13:48:35+0100 DEBUG [ykman.driver_ccid.send_apdu:168] SEND: b'00a4040007a0000005272101'
2018-06-12T13:48:35+0100 DEBUG [ykman.driver_ccid.send_apdu:170] RECV: b'790301000071083e785a84679df31974089a29d75f82a291fe7b01219000'
2018-06-12T13:48:35+0100 DEBUG [ykman.driver_ccid.probe_capabilities:158] Found applet: aid: AID.OATH , capability: OATH
2018-06-12T13:48:35+0100 DEBUG [ykman.driver_ccid.send_apdu:168] SEND: b'00a4040007a0000005272101'
2018-06-12T13:48:35+0100 DEBUG [ykman.driver_ccid.send_apdu:170] RECV: b'790301000071083e785a84679df31974080d8f9aa9438f0c517b01219000'
2018-06-12T13:48:35+0100 DEBUG [ykman.driver_ccid.__del__:213] Destroy <ykman.driver_ccid.CCIDDriver object at 0x0000020DD354A518>
2018-06-12T13:48:35+0100 DEBUG [ykman.driver_ccid.close:209] Close <ykman.driver_ccid.CCIDDriver object at 0x0000020DD354A518>
2018-06-12T13:48:38+0100 DEBUG [ykman.descriptor.Descriptor.open_device:80] transports: 0x4, self.mode.transports: 0x7
2018-06-12T13:48:38+0100 DEBUG [ykman.descriptor.open_device:84] Opening driver for serial: None, pid: PID.NEO_OTP_FIDO_CCID
2018-06-12T13:48:38+0100 DEBUG [ykman.descriptor.open_device:86] Attempt 1 of 10
2018-06-12T13:48:38+0100 DEBUG [ykman.descriptor.open_device:89] Found driver: <ykman.driver_ccid.CCIDDriver object at 0x0000020DD3740048>, pid: PID.NEO_OTP_FIDO_CCID
2018-06-12T13:48:38+0100 DEBUG [ykman.device.__init__:196] Read config from device...
2018-06-12T13:48:38+0100 DEBUG [ykman.device.__init__:211] Failed to read config from device
Traceback (most recent call last):
  File "C:\Program Files\Yubico\Yubico Authenticator\pymodules\ykman\device.py", line 197, in __init__
    config = DeviceConfig(driver.read_config())
  File "C:\Program Files\Yubico\Yubico Authenticator\pymodules\ykman\driver_ccid.py", line 141, in read_config
    raise NotSupportedError()
ykman.driver.NotSupportedError
2018-06-12T13:48:38+0100 DEBUG [ykman.device.__init__:117] Config data empty/missing
2018-06-12T13:48:38+0100 DEBUG [ykman.driver_ccid.send_apdu:168] SEND: b'00a4040007a0000005272001'
2018-06-12T13:48:38+0100 DEBUG [ykman.driver_ccid.send_apdu:170] RECV: b'030401038707060000009000'
2018-06-12T13:48:38+0100 DEBUG [ykman.driver_ccid.send_apdu:168] SEND: b'0001100000'
2018-06-12T13:48:38+0100 DEBUG [ykman.driver_ccid.send_apdu:170] RECV: b'004a60bb9000'
2018-06-12T13:48:38+0100 DEBUG [ykman.device.__init__:225] Identified NEO
2018-06-12T13:48:38+0100 DEBUG [ykman.device.__init__:227] CCID available, probe capabilities...
2018-06-12T13:48:38+0100 DEBUG [ykman.driver_ccid.send_apdu:168] SEND: b'00a4040007a0000005272001'
2018-06-12T13:48:38+0100 DEBUG [ykman.driver_ccid.send_apdu:170] RECV: b'030401038707060000009000'
2018-06-12T13:48:38+0100 DEBUG [ykman.driver_ccid.probe_capabilities:158] Found applet: aid: AID.OTP , capability: OTP
2018-06-12T13:48:38+0100 DEBUG [ykman.driver_ccid.send_apdu:168] SEND: b'00a4040008a0000006472f0001'
2018-06-12T13:48:38+0100 DEBUG [ykman.driver_ccid.send_apdu:170] RECV: b'5532465f56329000'
2018-06-12T13:48:38+0100 DEBUG [ykman.driver_ccid.probe_capabilities:158] Found applet: aid: AID.U2F , capability: FIDO U2F
2018-06-12T13:48:38+0100 DEBUG [ykman.driver_ccid.send_apdu:168] SEND: b'00a4040007a0000005271002'
2018-06-12T13:48:38+0100 DEBUG [ykman.driver_ccid.send_apdu:170] RECV: b'6d00'
2018-06-12T13:48:38+0100 DEBUG [ykman.driver_ccid.probe_capabilities:161] Missing applet: aid: AID.U2F_YUBICO , capability: FIDO U2F
2018-06-12T13:48:38+0100 DEBUG [ykman.driver_ccid.send_apdu:168] SEND: b'00a4040005a000000308'
2018-06-12T13:48:38+0100 DEBUG [ykman.driver_ccid.send_apdu:170] RECV: b'61114f0600001000010079074f05a0000003089000'
2018-06-12T13:48:38+0100 DEBUG [ykman.driver_ccid.probe_capabilities:158] Found applet: aid: AID.PIV , capability: PIV
2018-06-12T13:48:38+0100 DEBUG [ykman.driver_ccid.send_apdu:168] SEND: b'00a4040006d27600012401'
2018-06-12T13:48:38+0100 DEBUG [ykman.driver_ccid.send_apdu:170] RECV: b'9000'
2018-06-12T13:48:38+0100 DEBUG [ykman.driver_ccid.probe_capabilities:158] Found applet: aid: AID.OPGP , capability: OpenPGP
2018-06-12T13:48:38+0100 DEBUG [ykman.driver_ccid.send_apdu:168] SEND: b'00a4040007a0000005272101'
2018-06-12T13:48:38+0100 DEBUG [ykman.driver_ccid.send_apdu:170] RECV: b'790301000071083e785a84679df31974084e522e53a520ee7f7b01219000'
2018-06-12T13:48:38+0100 DEBUG [ykman.driver_ccid.probe_capabilities:158] Found applet: aid: AID.OATH , capability: OATH
2018-06-12T13:48:38+0100 DEBUG [ykman.driver_ccid.send_apdu:168] SEND: b'00a4040007a0000005272101'
2018-06-12T13:48:38+0100 DEBUG [ykman.driver_ccid.send_apdu:170] RECV: b'790301000071083e785a84679df3197408d23f98a2715303707b01219000'
2018-06-12T13:48:38+0100 DEBUG [ykman.driver_ccid.send_apdu:168] SEND: b'00a30000207514bd306d8259d8479641f2d9a276a52001d454551a7408a5ca7092656e2444'
2018-06-12T13:48:38+0100 DEBUG [ykman.driver_ccid.send_apdu:170] RECV: b'751491180be7a70b19586141bca44f6721d4cfe816339000'
2018-06-12T13:48:38+0100 DEBUG [ykman.driver_ccid.__del__:213] Destroy <ykman.driver_ccid.CCIDDriver object at 0x0000020DD3740048>
2018-06-12T13:48:38+0100 DEBUG [ykman.driver_ccid.close:209] Close <ykman.driver_ccid.CCIDDriver object at 0x0000020DD3740048>
2018-06-12T13:48:38+0100 DEBUG [ykman.descriptor.Descriptor.open_device:80] transports: 0x4, self.mode.transports: 0x7
2018-06-12T13:48:38+0100 DEBUG [ykman.descriptor.open_device:84] Opening driver for serial: None, pid: PID.NEO_OTP_FIDO_CCID
2018-06-12T13:48:38+0100 DEBUG [ykman.descriptor.open_device:86] Attempt 1 of 10
2018-06-12T13:48:38+0100 DEBUG [ykman.descriptor.open_device:89] Found driver: <ykman.driver_ccid.CCIDDriver object at 0x0000020DD3740048>, pid: PID.NEO_OTP_FIDO_CCID
2018-06-12T13:48:38+0100 DEBUG [ykman.device.__init__:196] Read config from device...
2018-06-12T13:48:38+0100 DEBUG [ykman.device.__init__:211] Failed to read config from device
Traceback (most recent call last):
  File "C:\Program Files\Yubico\Yubico Authenticator\pymodules\ykman\device.py", line 197, in __init__
    config = DeviceConfig(driver.read_config())
  File "C:\Program Files\Yubico\Yubico Authenticator\pymodules\ykman\driver_ccid.py", line 141, in read_config
    raise NotSupportedError()
ykman.driver.NotSupportedError
2018-06-12T13:48:38+0100 DEBUG [ykman.device.__init__:117] Config data empty/missing
2018-06-12T13:48:38+0100 DEBUG [ykman.driver_ccid.send_apdu:168] SEND: b'00a4040007a0000005272001'
2018-06-12T13:48:38+0100 DEBUG [ykman.driver_ccid.send_apdu:170] RECV: b'030401038707060000009000'
2018-06-12T13:48:38+0100 DEBUG [ykman.driver_ccid.send_apdu:168] SEND: b'0001100000'
2018-06-12T13:48:38+0100 DEBUG [ykman.driver_ccid.send_apdu:170] RECV: b'004a60bb9000'
2018-06-12T13:48:38+0100 DEBUG [ykman.device.__init__:225] Identified NEO
2018-06-12T13:48:38+0100 DEBUG [ykman.device.__init__:227] CCID available, probe capabilities...
2018-06-12T13:48:38+0100 DEBUG [ykman.driver_ccid.send_apdu:168] SEND: b'00a4040007a0000005272001'
2018-06-12T13:48:38+0100 DEBUG [ykman.driver_ccid.send_apdu:170] RECV: b'030401038707060000009000'
2018-06-12T13:48:38+0100 DEBUG [ykman.driver_ccid.probe_capabilities:158] Found applet: aid: AID.OTP , capability: OTP
2018-06-12T13:48:38+0100 DEBUG [ykman.driver_ccid.send_apdu:168] SEND: b'00a4040008a0000006472f0001'
2018-06-12T13:48:38+0100 DEBUG [ykman.driver_ccid.send_apdu:170] RECV: b'5532465f56329000'
2018-06-12T13:48:38+0100 DEBUG [ykman.driver_ccid.probe_capabilities:158] Found applet: aid: AID.U2F , capability: FIDO U2F
2018-06-12T13:48:38+0100 DEBUG [ykman.driver_ccid.send_apdu:168] SEND: b'00a4040007a0000005271002'
2018-06-12T13:48:38+0100 DEBUG [ykman.driver_ccid.send_apdu:170] RECV: b'6d00'
2018-06-12T13:48:38+0100 DEBUG [ykman.driver_ccid.probe_capabilities:161] Missing applet: aid: AID.U2F_YUBICO , capability: FIDO U2F
2018-06-12T13:48:38+0100 DEBUG [ykman.driver_ccid.send_apdu:168] SEND: b'00a4040005a000000308'
2018-06-12T13:48:38+0100 DEBUG [ykman.driver_ccid.send_apdu:170] RECV: b'61114f0600001000010079074f05a0000003089000'
2018-06-12T13:48:38+0100 DEBUG [ykman.driver_ccid.probe_capabilities:158] Found applet: aid: AID.PIV , capability: PIV
2018-06-12T13:48:38+0100 DEBUG [ykman.driver_ccid.send_apdu:168] SEND: b'00a4040006d27600012401'
2018-06-12T13:48:38+0100 DEBUG [ykman.driver_ccid.send_apdu:170] RECV: b'9000'
2018-06-12T13:48:38+0100 DEBUG [ykman.driver_ccid.probe_capabilities:158] Found applet: aid: AID.OPGP , capability: OpenPGP
2018-06-12T13:48:38+0100 DEBUG [ykman.driver_ccid.send_apdu:168] SEND: b'00a4040007a0000005272101'
2018-06-12T13:48:38+0100 DEBUG [ykman.driver_ccid.send_apdu:170] RECV: b'790301000071083e785a84679df31974084105e2714993b5db7b01219000'
2018-06-12T13:48:38+0100 DEBUG [ykman.driver_ccid.probe_capabilities:158] Found applet: aid: AID.OATH , capability: OATH
2018-06-12T13:48:38+0100 DEBUG [ykman.driver_ccid.send_apdu:168] SEND: b'00a4040007a0000005272101'
2018-06-12T13:48:38+0100 DEBUG [ykman.driver_ccid.send_apdu:170] RECV: b'790301000071083e785a84679df3197408a7d07ed60046f2117b01219000'
2018-06-12T13:48:38+0100 DEBUG [ykman.driver_ccid.send_apdu:168] SEND: b'00a3000020751447867033cab005cf09b767f42e5cfe571bf3bf5c7408b0a344b83835e22f'
2018-06-12T13:48:38+0100 DEBUG [ykman.driver_ccid.send_apdu:170] RECV: b'7514631bb329aa8e837e9d353bdffaa710ca3df3f3ab9000'
2018-06-12T13:48:38+0100 DEBUG [ykman.driver_ccid.send_apdu:168] SEND: b'00a400010a74080000000003099781'
2018-06-12T13:48:38+0100 DEBUG [ykman.driver_ccid.send_apdu:170] RECV: b'711449465454543a7061756c4070617562792e636f6d760506469c7623710c4769744875623a706175627976050615cf0a31711145413a4576696c4d6f6e6b6579416c626176050621117fba71154769746c61623a7061756c4070617562792e636f6d76050677832ae2712141746c6173206279204861736869436f72703a7061756c4070617562792e636f6d7605063ad673407113576f726450726573732e636f6d3a70617562797605066c26e5ad71184d6963726f736f66743a7061756c4070617562792e636f6d7605064c13149c7115476f6f676c653a7061756c4070617562792e636f6d7605064e4b2e057115416d617a6f6e3a7061756c406145'
2018-06-12T13:48:38+0100 DEBUG [ykman.driver_ccid.send_apdu:168] SEND: b'00a5000000'
2018-06-12T13:48:38+0100 DEBUG [ykman.driver_ccid.send_apdu:170] RECV: b'70617562792e636f6d7605062db456287116556269736f66743a7061756c4070617562792e636f6d7605063901ff24710d547769747465723a506175627976050655a10e5d9000'
2018-06-12T13:48:38+0100 DEBUG [ykman.driver_ccid.__del__:213] Destroy <ykman.driver_ccid.CCIDDriver object at 0x0000020DD3740048>
2018-06-12T13:48:38+0100 DEBUG [ykman.driver_ccid.close:209] Close <ykman.driver_ccid.CCIDDriver object at 0x0000020DD3740048>

pauby avatar Jun 12 '18 12:06 pauby

This looks like the same issue I'm having w/ firmware 3.5.0 on OSX el capitan and Yubikey Neo Did you find a fix that had you close this ticket?

BlaineBradbury avatar Jul 29 '18 23:07 BlaineBradbury

I didn't find a fix for this. I've had it on two machines now (laptop and desktop). None of the apps have any issues with my Yubikey except the Authenticator. One day I'll be able to plug it into any laptop port. The next it will only work in a docking station port and the next day it will just be a laptop port. My guess is it is the underlying way they identify the device in the system but my last attempt at this was in vain so I've kind of given up on being able to fix it and I now just live with it.

What I'll do is reopen the ticket if you are having the same issues. I'm happy to help troubleshoot it.

pauby avatar Jul 30 '18 16:07 pauby

I have the same issue with YubiKey NEO (fw 3.1.1) and Authenticator 4+ (3+ works fine) on macOS/Windows/Linux.

murzindima avatar Jul 31 '18 07:07 murzindima

I have noticed issue tends to only surface on USB 3 ports (I don't want to say definitely but so far that's only where I've had the problem).

pauby avatar Aug 01 '18 17:08 pauby

Can we get some project feedback on this one?

pauby avatar Aug 14 '18 20:08 pauby

I have two suggestions:

  1. Install YubiKey Manager, and use the ykman.exe CLI tool to see if the issues on these USB ports are reproducible with that. For example try: ykman.exe --log-level DEBUG --log-file log.txt oath code

  2. File an issue with Yubico Support, as they may have more resources available for troubleshooting this.

dagheyman avatar Aug 15 '18 06:08 dagheyman

I've raised a ticket with Yubico.

pauby avatar Aug 15 '18 16:08 pauby

I've raised a ticket with Yubico.

How did you solve it?

QuijoteShin avatar Jun 21 '19 20:06 QuijoteShin

In the end I didn't solve it. I have this on two laptops and 2 desktops. Exactly the same issue. The key works fine in USB 2 port. Put it into a USB 3 port and it won't find it.

Everything points to this as being an issue with the Yubikey software. I have no other USB devices / software that has these issues. But I can't prove it is so I have to work around it.

If I find another device that offers the same functionality as the Yubikey I'll switch.

pauby avatar Jun 21 '19 22:06 pauby

@dagheyman Could you please comment with a fix or reopen this issue? I'm having the exact same problem, and it's preventing me from using Yubikey on my Macbook.

LandonSchropp avatar Jun 26 '19 03:06 LandonSchropp

I'm also experiencing this problem under Windows 10 (Version 1607 - Enterprise) via a USB3 hub with a 5c

  • Direct on device port works fine
  • When plugged in via Hub, OTP, PIV and U2F function perfectly. Yubikey Manager and Yubikey show no Yubikey detected

thewishy avatar Jul 09 '19 07:07 thewishy

@thewishy Interesting, my initial guess would be that this is a problem related to libusb somehow, I know they have had problems with some USB-hubs in the past.

What is the model of the USB hub?

One way to test this:

  1. Get latest windows builds from here: https://github.com/libusb/libusb/releases/download/v1.0.22/libusb-1.0.22.7z
  2. Run listdevs.exe found in \examples\bin64\, compare the output when the YubiKey is in the hub to when it is connected directly.

dagheyman avatar Jul 09 '19 08:07 dagheyman

1050:0406 only appears when directly attached, so the issue does indeed seem to be libusb.

My current setup is Dell Precision 5510 -> Dell Thunderbolt Dock TB16 -> Anker USB 3.0 AK A7507011 -> USB-A to USB-C Adaptor

Attaching to either the TB16 or the Anker Hub results in non-detection via libusb, but U2F and PIV is fine

At home I have the same Anker Hub directly attached to my motherboard, with works fine.

thewishy avatar Jul 09 '19 09:07 thewishy

https://github.com/libusb/libusb/issues/544 would seem to be the issue - the TB16 uses ASMedia too

thewishy avatar Jul 09 '19 09:07 thewishy

The issue I am currently having with this laptop is with a TB16 docking station. However I know at least one of the desktops also uses ASMedia USB 3 ports.

pauby avatar Jul 09 '19 09:07 pauby

Re-opening this then, we will probably have a fix when libusb has a fix. Unfortunately it may take a while, since according to the linked issue thread the upcoming version have this problem as well.

There is a workaround I can mention, with the ykman CLI (installed by installing the YubiKey Manager GUI on Windows), it is possible to do $ ykman.exe --reader yubi oath code to access OATH credentials. The reader flag uses the smart card reader directly and bypasses libusb.

dagheyman avatar Jul 09 '19 09:07 dagheyman

The workaround seems to works correctly. Thanks

thewishy avatar Jul 09 '19 09:07 thewishy

I'm having a similar problem. However, in my case neither the Authenticator nor the Manager can detect my Yubikey on ANY port. Even though it was working fine on the same PC for the past two years. Windows 10 correctly detects the device. dagheyman's work-around works. ykman.exe commands/options list, info, --device fail. I've tried updating to latest app versions, removing devices from device manager, reinstalling drivers. Didn't get anywhere. I did get the Authenticator to read my codes, however, by changing the interface to "CCID with custom reader" and filtering for my Yubikey, rather than the standard CCID interface.

xoraxora avatar Apr 11 '20 19:04 xoraxora

Hello,

I have the same issue as @xoraxora

C:\Program Files\Yubico\YubiKey Manager>ykman.exe --log-level DEBUG --log-file log.txt oath code "PyOtherSide error: Traceback (most recent call last):\n\n File "qrc:///py/cli.py", line 12, in run\n return main()\n\n File "C:\Program Files\Yubico\YubiKey Manager\pymodules\ykman\cli\main.py", line 273, in main\n cli(obj={})\n\n File "C:\Program Files\Yubico\YubiKey Manager\pymodules\click\core.py", line 764, in call\n return self.main(*args, **kwargs)\n\n File "C:\Program Files\Yubico\YubiKey Manager\pymodules\click\core.py", line 717, in main\n rv = self.invoke(ctx)\n\n File "C:\Program Files\Yubico\YubiKey Manager\pymodules\click\core.py", line 1137, in invoke\n return _process_result(sub_ctx.command.invoke(sub_ctx))\n\n File "C:\Program Files\Yubico\YubiKey Manager\pymodules\click\core.py", line 1137, in invoke\n return _process_result(sub_ctx.command.invoke(sub_ctx))\n\n File "C:\Program Files\Yubico\YubiKey Manager\pymodules\click\core.py", line 956, in invoke\n return ctx.invoke(self.callback, **ctx.params)\n\n File "C:\Program Files\Yubico\YubiKey Manager\pymodules\click\core.py", line 555, in invoke\n return callback(*args, **kwargs)\n\n File "C:\Program Files\Yubico\YubiKey Manager\pymodules\click\decorators.py", line 17, in new_func\n return f(get_current_context(), *args, **kwargs)\n\n File "C:\Program Files\Yubico\YubiKey Manager\pymodules\ykman\cli\oath.py", line 343, in code\n ensure_validated(ctx)\n\n File "C:\Program Files\Yubico\YubiKey Manager\pymodules\ykman\cli\oath.py", line 499, in ensure_validated\n controller = ctx.obj['controller']\n\n File "C:\Program Files\Yubico\YubiKey Manager\pymodules\ykman\cli\util.py", line 127, in getitem\n self.resolve()\n\n File "C:\Program Files\Yubico\YubiKey Manager\pymodules\ykman\cli\util.py", line 124, in resolve\n self._objects[k] = f()\n\n File "C:\Program Files\Yubico\YubiKey Manager\pymodules\ykman\cli\main.py", line 194, in resolve_device\n dev = _run_cmd_for_single(ctx, subcmd.name, transports, reader)\n\n File "C:\Program Files\Yubico\YubiKey Manager\pymodules\ykman\cli\main.py", line 120, in _run_cmd_for_single\n descriptors = get_descriptors()\n\n File "C:\Program Files\Yubico\YubiKey Manager\pymodules\ykman\descriptor.py", line 151, in get_descriptors\n return list(_gen_descriptors())\n\n File "C:\Program Files\Yubico\YubiKey Manager\pymodules\ykman\descriptor.py", line 141, in _gen_descriptors\n for dev in usb.core.find(True, idVendor=0x1050, backend=backend):\n\n File "C:\Program Files\Yubico\YubiKey Manager\pymodules\usb\core.py", line 1246, in device_iter\n for dev in backend.enumerate_devices():\n\n File "C:\Program Files\Yubico\YubiKey Manager\pymodules\usb\backend\libusb1.py", line 717, in enumerate_devices\n return _DevIterator(self.ctx)\n\n File "C:\Program Files\Yubico\YubiKey Manager\pymodules\usb\backend\libusb1.py", line 629, in init\n self.num_devs = _check(_lib.libusb_get_device_list(\n\n File "C:\Program Files\Yubico\YubiKey Manager\pymodules\usb\backend\libusb1.py", line 595, in _check\n raise USBError(_strerror(ret), ret, _libusb_errno[ret])\n\nusb.core.USBError: [Errno None] Other error\n" qml: Return value of PyObject call is NULL: Traceback (most recent call last):

File "qrc:///py/cli.py", line 12, in run return main()

File "C:\Program Files\Yubico\YubiKey Manager\pymodules\ykman\cli_main_.py", line 273, in main cli(obj={})

File "C:\Program Files\Yubico\YubiKey Manager\pymodules\click\core.py", line 764, in call return self.main(*args, **kwargs)

File "C:\Program Files\Yubico\YubiKey Manager\pymodules\click\core.py", line 717, in main rv = self.invoke(ctx)

File "C:\Program Files\Yubico\YubiKey Manager\pymodules\click\core.py", line 1137, in invoke return _process_result(sub_ctx.command.invoke(sub_ctx))

File "C:\Program Files\Yubico\YubiKey Manager\pymodules\click\core.py", line 1137, in invoke return _process_result(sub_ctx.command.invoke(sub_ctx))

File "C:\Program Files\Yubico\YubiKey Manager\pymodules\click\core.py", line 956, in invoke return ctx.invoke(self.callback, **ctx.params)

File "C:\Program Files\Yubico\YubiKey Manager\pymodules\click\core.py", line 555, in invoke return callback(*args, **kwargs)

File "C:\Program Files\Yubico\YubiKey Manager\pymodules\click\decorators.py", line 17, in new_func return f(get_current_context(), *args, **kwargs)

File "C:\Program Files\Yubico\YubiKey Manager\pymodules\ykman\cli\oath.py", line 343, in code ensure_validated(ctx)

File "C:\Program Files\Yubico\YubiKey Manager\pymodules\ykman\cli\oath.py", line 499, in ensure_validated controller = ctx.obj['controller']

File "C:\Program Files\Yubico\YubiKey Manager\pymodules\ykman\cli\util.py", line 127, in getitem self.resolve()

File "C:\Program Files\Yubico\YubiKey Manager\pymodules\ykman\cli\util.py", line 124, in resolve self._objects[k] = f()

File "C:\Program Files\Yubico\YubiKey Manager\pymodules\ykman\cli_main_.py", line 194, in resolve_device dev = _run_cmd_for_single(ctx, subcmd.name, transports, reader)

File "C:\Program Files\Yubico\YubiKey Manager\pymodules\ykman\cli_main_.py", line 120, in _run_cmd_for_single descriptors = get_descriptors()

File "C:\Program Files\Yubico\YubiKey Manager\pymodules\ykman\descriptor.py", line 151, in get_descriptors return list(_gen_descriptors())

File "C:\Program Files\Yubico\YubiKey Manager\pymodules\ykman\descriptor.py", line 141, in _gen_descriptors for dev in usb.core.find(True, idVendor=0x1050, backend=backend):

File "C:\Program Files\Yubico\YubiKey Manager\pymodules\usb\core.py", line 1246, in device_iter for dev in backend.enumerate_devices():

File "C:\Program Files\Yubico\YubiKey Manager\pymodules\usb\backend\libusb1.py", line 717, in enumerate_devices return _DevIterator(self.ctx)

File "C:\Program Files\Yubico\YubiKey Manager\pymodules\usb\backend\libusb1.py", line 629, in init self.num_devs = _check(_lib.libusb_get_device_list(

File "C:\Program Files\Yubico\YubiKey Manager\pymodules\usb\backend\libusb1.py", line 595, in _check raise USBError(_strerror(ret), ret, _libusb_errno[ret])

usb.core.USBError: [Errno None] Other error

C:\Program Files\Yubico\YubiKey Manager>

OrpheeGT avatar Dec 31 '20 14:12 OrpheeGT

I had this issue as well. I had just done some hardware upgrades and reinstalled windows, and when I loaded the new authenticator app it wasn't showing my OTP codes when plugged in to my powered USB 3 hub. If plugged in to the front port it worked. The other options with the command line also worked, and the old version 3 authenticator app also worked. I then found out it also worked when plugged in to my keyboard. It then dawned on me that I hadn't used the same USB ports when I plugged stuff back in after my tower work, so I swapped some cables around and moved the hub to a different group of ports. It started working in the latest authenticator app again! It turns out the port I had the hub plugged in to was a USB 3.0 port, and the port that works is a USB 3.2 port. This is on a Asus Prime 270-K mobo and an Atollo powered 7 port USB hub.

Perhaps others searching for this issue might find this helps. Also, if anyone else is looking for the version 3 authenticator it can be found here.

waggz81 avatar Apr 05 '21 07:04 waggz81

Windows 10 USB auth app stops working, but other apps work. The key shows up in the bluetooth and other devices settings just fine.

lightarrow avatar Sep 12 '21 14:09 lightarrow

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!

dainnilsson avatar Nov 16 '22 10:11 dainnilsson