Hello,
I have several Nitrokey3.
I’ve updated one of my keys (1.5->1.6): no problem.
But for the last, which I’m not currently using ( (1.5->1.6), I got the following error message:
23897 DEBUG libusbsio.hidapi.dev HID device 106408806639200 wrote 59 bytes
23897 DEBUG libusbsio.hidapi.dev HID device 106408806639200 read[60]: 0x03000c00a0000002000000000b000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a
23897 DEBUG spsdk.mboot.protocol.bulk_protocol IN [60]: 03, 00, 0C, 00, A0, 00, 00, 02, 00, 00, 00, 00, 0B, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00
23897 DEBUG spsdk.mboot.mcuboot RX-PACKET: Tag=GenericResponse, Status=Success, Cmd=Reset
23897 INFO spsdk.mboot.mcuboot CMD: Status: 0 (0x0) Success.
23897 INFO spsdk.mboot.mcuboot Closing: identifier='usb', device=MCU HID GENERIC DEVICE (0x20A0, 0x42DD)path=b'/dev/hidraw10' sn=''
23898 DEBUG spsdk.utils.interfaces.device.usb_device Closing the Interface: MCU HID GENERIC DEVICE (0x20A0, 0x42DD)path=b'/dev/hidraw10' sn=''
23898 INFO libusbsio.hidapi.dev HID device 106408806639200 closed
23898 DEBUG pynitrokey.nk3.updates Firmware update finished successfully
23898 INFO spsdk.mboot.mcuboot Closing: identifier='usb', device=MCU HID GENERIC DEVICE (0x20A0, 0x42DD)path=b'/dev/hidraw10' sn=''
23898 DEBUG spsdk.utils.interfaces.device.usb_device Closing the Interface: MCU HID GENERIC DEVICE (0x20A0, 0x42DD)path=b'/dev/hidraw10' sn=''
23898 DEBUG pynitrokey.cli.trussed Searching Nitrokey 3 device (try 1 of 60)
23935 INFO libusbsio HID enumeration[106408806588288]: initialized
23935 DEBUG libusbsio HID enumeration[106408806588288]: device #0: MyMouse
23935 DEBUG libusbsio HID enumeration[106408806588288]: device #1: MyMouse
23935 DEBUG libusbsio HID enumeration[106408806588288]: device #2: My Keyboard
23935 DEBUG libusbsio HID enumeration[106408806588288]: device #3: My Keyboard
23935 DEBUG libusbsio HID enumeration[106408806588288]: device #4: My Keyboard
23936 DEBUG libusbsio HID enumeration[106408806588288]: device #5: None
23936 INFO libusbsio HID enumeration[106408806588288]: finished, total 6 devices
23960 DEBUG pynitrokey.cli.trussed No Nitrokey 3 device found, continuing
24461 DEBUG pynitrokey.cli.trussed Searching Nitrokey 3 device (try 2 of 60)
24484 INFO libusbsio HID enumeration[106408807761584]: initialized
24484 DEBUG libusbsio HID enumeration[106408807761584]: device #0: MyMouse
24484 DEBUG libusbsio HID enumeration[106408807761584]: device #1: MyMouse
24485 DEBUG libusbsio HID enumeration[106408807761584]: device #2: My Keyboard
24485 DEBUG libusbsio HID enumeration[106408807761584]: device #3: My Keyboard
24485 DEBUG libusbsio HID enumeration[106408807761584]: device #4: My Keyboard
24485 INFO libusbsio HID enumeration[106408807761584]: finished, total 5 devices
24497 DEBUG pynitrokey.cli.trussed No Nitrokey 3 device found, continuing
24997 DEBUG pynitrokey.cli.trussed Searching Nitrokey 3 device (try 3 of 60)
25021 INFO libusbsio HID enumeration[106408797418432]: initialized
25021 DEBUG libusbsio HID enumeration[106408797418432]: device #0: MyMouse
25022 DEBUG libusbsio HID enumeration[106408797418432]: device #1: MyMouse
25022 DEBUG libusbsio HID enumeration[106408797418432]: device #2: My Keyboard
25022 DEBUG libusbsio HID enumeration[106408797418432]: device #3: My Keyboard
25022 DEBUG libusbsio HID enumeration[106408797418432]: device #4: My Keyboard
25022 INFO libusbsio HID enumeration[106408797418432]: finished, total 5 devices
25039 DEBUG pynitrokey.cli.trussed No Nitrokey 3 device found, continuing
25539 DEBUG pynitrokey.cli.trussed Searching Nitrokey 3 device (try 4 of 60)
25545 INFO libusbsio HID enumeration[106408806626784]: initialized
25545 DEBUG libusbsio HID enumeration[106408806626784]: device #0: MyMouse
25545 DEBUG libusbsio HID enumeration[106408806626784]: device #1: MyMouse
25545 DEBUG libusbsio HID enumeration[106408806626784]: device #2: My Keyboard
25545 DEBUG libusbsio HID enumeration[106408806626784]: device #3: My Keyboard
25545 DEBUG libusbsio HID enumeration[106408806626784]: device #4: My Keyboard
25545 DEBUG libusbsio HID enumeration[106408806626784]: device #5: Nitrokey 3
25545 INFO libusbsio HID enumeration[106408806626784]: finished, total 6 devices
25553 WARNING pynitrokey.cli An unhandled exception occurred
Traceback (most recent call last):
File "/usr/lib/python3.11/site-packages/pynitrokey/cli/__init__.py", line 136, in main
nitropy()
File "/home/ThibKey/.local/lib/python3.11/site-packages/click/core.py", line 1130, in __call__
return self.main(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/ThibKey/.local/lib/python3.11/site-packages/click/core.py", line 1055, in main
rv = self.invoke(ctx)
^^^^^^^^^^^^^^^^
File "/home/ThibKey/.local/lib/python3.11/site-packages/click/core.py", line 1657, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/ThibKey/.local/lib/python3.11/site-packages/click/core.py", line 1657, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/ThibKey/.local/lib/python3.11/site-packages/click/core.py", line 1404, in invoke
return ctx.invoke(self.callback, **ctx.params)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/ThibKey/.local/lib/python3.11/site-packages/click/core.py", line 760, in invoke
return __callback(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/ThibKey/.local/lib/python3.11/site-packages/click/decorators.py", line 38, in new_func
return f(get_current_context().obj, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/pynitrokey/cli/nk3/__init__.py", line 121, in update
exec_update(ctx, image, version, ignore_pynitrokey_version)
File "/usr/lib/python3.11/site-packages/pynitrokey/cli/nk3/update.py", line 140, in update
return updater.update(device, image, version, ignore_pynitrokey_version)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/pynitrokey/nk3/updates.py", line 218, in update
with self.await_device(wait_retries, callback) as device:
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/pynitrokey/cli/trussed/__init__.py", line 105, in await_device
return self._await(self.data.name, self.device_type, retries, callback)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/pynitrokey/cli/trussed/__init__.py", line 142, in _await
devices = [device for device in self.list() if isinstance(device, ty)]
^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/pynitrokey/cli/trussed/__init__.py", line 89, in list
return self.list_all()
^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/pynitrokey/cli/nk3/__init__.py", line 52, in list_all
return list()
^^^^^^
File "/usr/lib/python3.11/site-packages/pynitrokey/nk3/__init__.py", line 45, in list
devices.extend(Nitrokey3Device.list())
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/pynitrokey/trussed/device.py", line 120, in list
for device in CtapHidDevice.list_devices():
File "/usr/lib/python3.11/site-packages/fido2/hid/__init__.py", line 261, in list_devices
yield cls(d, open_connection(d))
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/fido2/hid/__init__.py", line 109, in __init__
response = self.call(CTAPHID.INIT, nonce)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/fido2/hid/__init__.py", line 197, in call
raise Exception("Wrong channel")
Exception: Wrong channel
25556 DEBUG root print: Critical error:
25556 DEBUG root print: An unhandled exception occurred
25556 ERROR root Wrong channel
Traceback (most recent call last):
File "/usr/lib/python3.11/site-packages/pynitrokey/cli/__init__.py", line 136, in main
nitropy()
File "/home/ThibKey/.local/lib/python3.11/site-packages/click/core.py", line 1130, in __call__
return self.main(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/ThibKey/.local/lib/python3.11/site-packages/click/core.py", line 1055, in main
rv = self.invoke(ctx)
^^^^^^^^^^^^^^^^
File "/home/ThibKey/.local/lib/python3.11/site-packages/click/core.py", line 1657, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/ThibKey/.local/lib/python3.11/site-packages/click/core.py", line 1657, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/ThibKey/.local/lib/python3.11/site-packages/click/core.py", line 1404, in invoke
return ctx.invoke(self.callback, **ctx.params)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/ThibKey/.local/lib/python3.11/site-packages/click/core.py", line 760, in invoke
return __callback(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/ThibKey/.local/lib/python3.11/site-packages/click/decorators.py", line 38, in new_func
return f(get_current_context().obj, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/pynitrokey/cli/nk3/__init__.py", line 121, in update
exec_update(ctx, image, version, ignore_pynitrokey_version)
File "/usr/lib/python3.11/site-packages/pynitrokey/cli/nk3/update.py", line 140, in update
return updater.update(device, image, version, ignore_pynitrokey_version)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/pynitrokey/nk3/updates.py", line 218, in update
with self.await_device(wait_retries, callback) as device:
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/pynitrokey/cli/trussed/__init__.py", line 105, in await_device
return self._await(self.data.name, self.device_type, retries, callback)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/pynitrokey/cli/trussed/__init__.py", line 142, in _await
devices = [device for device in self.list() if isinstance(device, ty)]
^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/pynitrokey/cli/trussed/__init__.py", line 89, in list
return self.list_all()
^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/pynitrokey/cli/nk3/__init__.py", line 52, in list_all
return list()
^^^^^^
File "/usr/lib/python3.11/site-packages/pynitrokey/nk3/__init__.py", line 45, in list
devices.extend(Nitrokey3Device.list())
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/pynitrokey/trussed/device.py", line 120, in list
for device in CtapHidDevice.list_devices():
File "/usr/lib/python3.11/site-packages/fido2/hid/__init__.py", line 261, in list_devices
yield cls(d, open_connection(d))
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/fido2/hid/__init__.py", line 109, in __init__
response = self.call(CTAPHID.INIT, nonce)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/fido2/hid/__init__.py", line 197, in call
raise Exception("Wrong channel")
Exception: Wrong channel
25558 DEBUG root listing all connected devices:
25565 DEBUG root :: 'Nitrokey FIDO2' keys
25565 DEBUG root :: 'Nitrokey Start' keys:
25577 DEBUG root :: 'Nitrokey 3' keys
25583 INFO libusbsio HID enumeration[106408807389264]: initialize
25583 DEBUG libusbsio HID enumeration[106408807389264]: device #0: MyMouse
25583 DEBUG libusbsio HID enumeration[106408807389264]: device #1: MyMouse
25583 DEBUG libusbsio HID enumeration[106408807389264]: device #2: My Keyboard
25583 DEBUG libusbsio HID enumeration[106408807389264]: device #3: My Keyboard
25583 DEBUG libusbsio HID enumeration[106408807389264]: device #4: My Keyboard
25583 DEBUG libusbsio HID enumeration[106408807389264]: device #5: Nitrokey 3
25583 INFO libusbsio HID enumeration[106408807389264]: finished, total 6 devices
25613 DEBUG root /dev/hidraw10: Nitrokey 3 63B0BA1BC0538453AC98FD5216A01F31
25613 DEBUG root :: 'Nitrokey Passkey' keys
25625 DEBUG root print: --------------------------------------------------------------------------------
25625 DEBUG root print: Critical error occurred, exiting now
25625 DEBUG root print: Unexpected? Is this a bug? Would you like to get support/help?
25625 DEBUG root print: - You can report issues at: https://support.nitrokey.com/
25625 DEBUG root print: - Writing an e-mail to support@nitrokey.com is also possible
25625 DEBUG root print: - Please attach the log: '/tmp/nitropy.log.hy52b9ku' with any support/help request!
25625 DEBUG root print: - Please check if you have udev rules installed: https://docs.nitrokey.com/nitrokey3/linux/firmware-update.html#troubleshooting
But after when I test or execute nitropy nk3 status
, everithing is ok, and Firmware version: v1.6.0
.
Some bug with my usb port ?