Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ValueError: Unsupported Connection type #368

Open
defuuss opened this issue Dec 3, 2024 · 0 comments
Open

ValueError: Unsupported Connection type #368

defuuss opened this issue Dec 3, 2024 · 0 comments

Comments

@defuuss
Copy link

defuuss commented Dec 3, 2024

  • YubiKey Manager version: Last
  • How was it installed?: Windows installation
  • Operating system and version: Windows Server 2016 10.0.14393
  • YubiKey model and version: YubiKey 5 Nano FIPS 5.4.3
  • Bug description summary:

Cannot launch Yubimanager Gui

I using TightVNC Remote

I get ykman-gui has stopped working

ykman info is working
C:\Program Files\Yubico\YubiKey Manager>ykman info
Device type: YubiKey 5 Nano FIPS
Serial number: 23788525
Firmware version: 5.4.3
Form factor: Nano (USB-A)
Enabled USB interfaces: OTP, FIDO, CCID

Applications
OTP Enabled
FIDO U2F Enabled
FIDO2 Enabled
OATH Enabled
PIV Enabled
OpenPGP Enabled
YubiHSM Auth Enabled

I activate the debug log

INFO 09:20:14.774 [ykman.logging.set_log_level:60] Logging at level: DEBUG
WARNING 09:20:14.775 [ykman.logging.set_log_level:64]
#############################################################################

WARNING: Sensitive data may be logged!

Some personally identifying information may be logged, such as usernames!

#############################################################################
DEBUG 09:20:14.775 [ykman.logging_setup.log_sys_info:44] ykman: 5.0.1
DEBUG 09:20:14.775 [ykman.logging_setup.log_sys_info:45] Python: 3.11.1 (tags/v3.11.1:a7a450f, Dec 6 2022, 19:58:39) [MSC v.1934 64 bit (AMD64)]
DEBUG 09:20:14.775 [ykman.logging_setup.log_sys_info:46] Platform: win32
DEBUG 09:20:14.802 [ykman.logging_setup.log_sys_info:47] Arch: AMD64
DEBUG 09:20:14.802 [ykman.logging_setup.log_sys_info:49] Windows version: (10, 0, 14393)
DEBUG 09:20:14.803 [ykman.logging_setup.log_sys_info:53] Running as admin: True
DEBUG 09:20:14.803 [ykman.logging_setup.log_sys_info:54] System date: 2024-01-11
DEBUG 09:20:23.455 [ykman.device.add:162] Add device for <class 'yubikit.core.otp.OtpConnection'>: OtpYubiKeyDevice(pid=0407, fingerprint=b'\\?\hid#vid_1050&pid_0407&mi_00#4&33d4df83&0&0000#{4d1e55b2-f16f-11cf-88cb-001111000030}')
DEBUG 09:20:23.455 [yubikit.support.read_info:261] Attempting to read device info, using WinHidOtpConnection
DEBUG 09:20:23.460 [yubikit.management.init:443] Management session initialized for connection=WinHidOtpConnection, version=5.4.3
DEBUG 09:20:23.506 [yubikit.support.read_info:289] Read info: DeviceInfo(config=DeviceConfig(enabled_capabilities={<TRANSPORT.USB: 'usb'>: <CAPABILITY.OTP|U2F|FIDO2|OATH|PIV|OPENPGP|HSMAUTH|4: 831>}, auto_eject_timeout=0, challenge_response_timeout=15, device_flags=<DEVICE_FLAG: 0>), serial=23788525, version=Version(major=5, minor=4, patch=3), form_factor=<FORM_FACTOR.USB_A_NANO: 2>, supported_capabilities={<TRANSPORT.USB: 'usb'>: <CAPABILITY.OTP|U2F|FIDO2|OATH|PIV|OPENPGP|HSMAUTH|4: 831>}, is_locked=False, is_fips=True, is_sky=False)
DEBUG 09:20:23.507 [yubikit.support.read_info:348] Device info, after tweaks: DeviceInfo(config=DeviceConfig(enabled_capabilities={<TRANSPORT.USB: 'usb'>: <CAPABILITY.OTP|U2F|FIDO2|OATH|PIV|OPENPGP|HSMAUTH|4: 831>}, auto_eject_timeout=0, challenge_response_timeout=15, device_flags=<DEVICE_FLAG: 0>), serial=23788525, version=Version(major=5, minor=4, patch=3), form_factor=<FORM_FACTOR.USB_A_NANO: 2>, supported_capabilities={<TRANSPORT.USB: 'usb'>: <CAPABILITY.OTP|U2F|FIDO2|OATH|PIV|OPENPGP|HSMAUTH|4: 831>}, is_locked=False, is_fips=True, is_sky=False)
DEBUG 09:20:23.507 [ykman.device.add:173] Resolved device 23788525
DEBUG 09:20:23.507 [ykman.device.add:162] Add device for <class 'fido2.ctap.CtapDevice'>: CtapYubiKeyDevice(pid=0407, fingerprint=b'\\?\hid#vid_1050&pid_0407&mi_01#4&ffda1c1&0&0000#{4d1e55b2-f16f-11cf-88cb-001111000030}')
DEBUG 09:20:30.500 [yubikey._open_device:135] Failed connecting to the YubiKey over <class 'yubikit.core.smartcard.SmartCardConnection'>
Traceback (most recent call last):
File "qrc:///py/yubikey.py", line 133, in _open_device
return self._dev.open_connection(conn_type)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\Yubico\YubiKey Manager\pymodules\ykman\device.py", line 254, in open_connection
raise ValueError("Unsupported Connection type")
ValueError: Unsupported Connection type
ERROR 09:20:30.501 [yubikey.wrapped:88] Failed to open device
Traceback (most recent call last):
File "qrc:///py/yubikey.py", line 78, in wrapped
return f(*args, **kwargs)
^^^^^^^^^^^^^^^^^^
File "qrc:///py/yubikey.py", line 300, in refresh_piv
with self._open_device([SmartCardConnection]) as conn:
TypeError: 'NoneType' object does not support the context manager protocol

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant