Hello,
I tried to update my Nitrokey3 but unfortunately it didn’t work, since the first failed attempt I don’t see any version at “current firmware version” anymore.
in troubleshooting I have already read that I should restart the pc, but this brings no improvement.
Nitrokey 3A NFC
Linux Arch
Gnome 43.4
nitropy nk3 update
Command line tool to interact with Nitrokey devices 0.4.36
Do you want to download the firmware version v1.3.1? [Y/n]:
Download v1.3.1: 100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████| 625k/625k [00:00<00:00, 7.16MB/s]
Current firmware version: [unknown]
Updated firmware version: v1.3.1
Please do not remove the Nitrokey 3 or insert any other Nitrokey 3 devices during the update. Doing so may damage the Nitrokey 3.
Do you want to perform the firmware update now? [y/N]: y
Critical error:
An unhandled exception occurred
Exception encountered: McuBootConnectionError()
355 INFO pynitrokey.cli Timestamp: 2023-04-06 22:03:45.442311
355 INFO pynitrokey.cli OS: uname_result(system='Linux', node='tealk-tuxedoaura15gen1', release='6.2.9-arch1-1', version='#1 SMP PREEMPT_DYNAMIC Thu, 30 Mar 2023 14:51:14 +0000', machine='x86_64')
355 INFO pynitrokey.cli Python version: 3.10.10
374 INFO pynitrokey.cli pynitrokey version: 0.4.36
375 INFO pynitrokey.cli cryptography version: 36.0.2
376 INFO pynitrokey.cli ecdsa version: 0.18.0
377 INFO pynitrokey.cli fido2 version: 1.1.0
377 INFO pynitrokey.cli pyusb version: 1.2.1
378 INFO pynitrokey.cli spsdk version: 1.7.1
817 INFO libusbsio Loading SIO library: /home/tealk/.local/pipx/venvs/pynitrokey/lib/python3.10/site-packages/libusbsio/bin/linux_x86_64/libusbsio.so
822 INFO libusbsio HID enumeration[94371136625216]: initialized
822 DEBUG libusbsio HID enumeration[94371136625216]: device #0: MCU HID GENERIC DEVICE
823 DEBUG libusbsio HID enumeration[94371136625216]: device #1: PlaylistControl
823 DEBUG libusbsio HID enumeration[94371136625216]: device #2: Tealk-Magic Trackpad 2
823 DEBUG libusbsio HID enumeration[94371136625216]: device #3: MX Keys
823 INFO libusbsio HID enumeration[94371136625216]: finished, total 4 devices
833 DEBUG fido2.hid.linux Failed opening device /dev/hidraw4
Traceback (most recent call last):
File "/home/tealk/.local/pipx/venvs/pynitrokey/lib/python3.10/site-packages/fido2/hid/linux.py", line 98, in list_descriptors
devices.append(get_descriptor(hidraw))
File "/home/tealk/.local/pipx/venvs/pynitrokey/lib/python3.10/site-packages/fido2/hid/linux.py", line 55, in get_descriptor
with open(path, "rb") as f:
PermissionError: [Errno 13] Permission denied: '/dev/hidraw4'
834 DEBUG fido2.hid.linux Failed opening device /dev/hidraw3
Traceback (most recent call last):
File "/home/tealk/.local/pipx/venvs/pynitrokey/lib/python3.10/site-packages/fido2/hid/linux.py", line 98, in list_descriptors
devices.append(get_descriptor(hidraw))
File "/home/tealk/.local/pipx/venvs/pynitrokey/lib/python3.10/site-packages/fido2/hid/linux.py", line 55, in get_descriptor
with open(path, "rb") as f:
PermissionError: [Errno 13] Permission denied: '/dev/hidraw3'
834 DEBUG fido2.hid.linux Failed opening device /dev/hidraw2
Traceback (most recent call last):
File "/home/tealk/.local/pipx/venvs/pynitrokey/lib/python3.10/site-packages/fido2/hid/linux.py", line 98, in list_descriptors
devices.append(get_descriptor(hidraw))
File "/home/tealk/.local/pipx/venvs/pynitrokey/lib/python3.10/site-packages/fido2/hid/linux.py", line 55, in get_descriptor
with open(path, "rb") as f:
PermissionError: [Errno 13] Permission denied: '/dev/hidraw2'
834 DEBUG fido2.hid.linux Failed opening device /dev/hidraw1
Traceback (most recent call last):
File "/home/tealk/.local/pipx/venvs/pynitrokey/lib/python3.10/site-packages/fido2/hid/linux.py", line 98, in list_descriptors
devices.append(get_descriptor(hidraw))
File "/home/tealk/.local/pipx/venvs/pynitrokey/lib/python3.10/site-packages/fido2/hid/linux.py", line 55, in get_descriptor
with open(path, "rb") as f:
PermissionError: [Errno 13] Permission denied: '/dev/hidraw1'
834 DEBUG fido2.hid.linux Failed opening device /dev/hidraw0
Traceback (most recent call last):
File "/home/tealk/.local/pipx/venvs/pynitrokey/lib/python3.10/site-packages/fido2/hid/linux.py", line 98, in list_descriptors
devices.append(get_descriptor(hidraw))
File "/home/tealk/.local/pipx/venvs/pynitrokey/lib/python3.10/site-packages/fido2/hid/linux.py", line 55, in get_descriptor
with open(path, "rb") as f:
PermissionError: [Errno 13] Permission denied: '/dev/hidraw0'
834 INFO spsdk.mboot.mcuboot Connect: MCU HID GENERIC DEVICE (0x20A0, 0x42DD)
834 DEBUG spsdk.mboot.interfaces.usb Open Interface
834 INFO libusbsio.hidapi.dev Opening HID device at path: 'b'/dev/hidraw1''
834 ERROR libusbsio.hidapi.dev HID device 'b'/dev/hidraw1'' opening failed.
835 INFO pynitrokey.nk3.updates Firmware version before update:
837 DEBUG urllib3.connectionpool Starting new HTTPS connection (1): api.github.com:443
1118 DEBUG urllib3.connectionpool https://api.github.com:443 "GET /repos/Nitrokey/nitrokey-3-firmware/releases/latest HTTP/1.1" 200 2543
1121 INFO pynitrokey.nk3.updates Latest firmware version: v1.3.1
1121 INFO pynitrokey.nk3.updates Current firmware version: None
1121 INFO pynitrokey.nk3.updates Updated firmware version: v1.3.1
1643 INFO pynitrokey.nk3.updates Trying to download firmware update from URL: https://github.com/Nitrokey/nitrokey-3-firmware/releases/download/v1.3.1/firmware-nk3-v1.3.1.zip
1645 DEBUG urllib3.connectionpool Starting new HTTPS connection (1): github.com:443
1975 DEBUG urllib3.connectionpool https://github.com:443 "GET /Nitrokey/nitrokey-3-firmware/releases/download/v1.3.1/firmware-nk3-v1.3.1.zip HTTP/1.1" 302 0
1978 DEBUG urllib3.connectionpool Starting new HTTPS connection (1): objects.githubusercontent.com:443
2175 DEBUG urllib3.connectionpool https://objects.githubusercontent.com:443 "GET /github-production-release-asset-2e65be/366410832/ee226f9f-1277-4227-8ff3-cf63c1d88cf8?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20230406%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20230406T200346Z&X-Amz-Expires=300&X-Amz-Signature=a9752ca5b6a2bc73898b430000a27d66b0f12c3be333428b9444084670c74710&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=366410832&response-content-disposition=attachment%3B%20filename%3Dfirmware-nk3-v1.3.1.zip&response-content-type=application%2Foctet-stream HTTP/1.1" 200 625121
2270 DEBUG root print: Current firmware version: [unknown]
2270 DEBUG root print: Updated firmware version: v1.3.1
2270 DEBUG root print: Please do not remove the Nitrokey 3 or insert any other Nitrokey 3 devices during the update. Doing so may damage the Nitrokey 3.
5826 DEBUG pynitrokey.nk3.updates Starting firmware update
5826 INFO spsdk.mboot.mcuboot CMD: ReceiveSBfile(data_length=316496)
5826 INFO spsdk.mboot.mcuboot CMD: GetProperty('MaxPacketSize', index=0)
5826 DEBUG spsdk.mboot.mcuboot TX-PACKET: Tag=GetProperty, Flags=0x00, P[0]=0x0000000B, P[1]=0x00000000
5826 DEBUG spsdk.mboot.interfaces.usb OUT[16]: 01, 00, 0C, 00, 07, 00, 00, 02, 0B, 00, 00, 00, 00, 00, 00, 00
5826 WARNING spsdk.mboot.mcuboot CMD: Unable to get MAX PACKET SIZE, using: 32
5826 INFO spsdk.mboot.mcuboot CMD: Max Packet Size = 32
5828 DEBUG spsdk.mboot.mcuboot TX-PACKET: Tag=ReceiveSBFile, Flags=0x01, P[0]=0x0004D450
5828 DEBUG spsdk.mboot.interfaces.usb OUT[12]: 01, 00, 08, 00, 08, 01, 00, 01, 50, D4, 04, 00
5828 INFO spsdk.mboot.mcuboot Closing: MCU HID GENERIC DEVICE (0x20A0, 0x42DD)
5828 DEBUG spsdk.mboot.interfaces.usb Close Interface
5829 WARNING pynitrokey.cli An unhandled exception occurred
Traceback (most recent call last):
File "/home/tealk/.local/pipx/venvs/pynitrokey/lib/python3.10/site-packages/spsdk/mboot/interfaces/usb.py", line 214, in write
_bytes_written = self.device.Write(raw_data, timeout_ms=self.timeout)
File "/home/tealk/.local/pipx/venvs/pynitrokey/lib/python3.10/site-packages/libusbsio/libusbsio.py", line 1357, in wrapper
self._check_device_open()
File "/home/tealk/.local/pipx/venvs/pynitrokey/lib/python3.10/site-packages/libusbsio/libusbsio.py", line 1342, in _check_device_open
raise LIBUSBSIO_Exception("HID DEVICE is not open.")
libusbsio.libusbsio.LIBUSBSIO_Exception: LIBUSBSIO: HID DEVICE is not open.
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home/tealk/.local/pipx/venvs/pynitrokey/lib/python3.10/site-packages/pynitrokey/nk3/updates.py", line 362, in _perform_update
device.update(image, callback=callback)
File "/home/tealk/.local/pipx/venvs/pynitrokey/lib/python3.10/site-packages/pynitrokey/nk3/bootloader/lpc55.py", line 106, in update
success = self.device.receive_sb_file(
File "/home/tealk/.local/pipx/venvs/pynitrokey/lib/python3.10/site-packages/spsdk/mboot/mcuboot.py", line 655, in receive_sb_file
cmd_response = self._process_cmd(cmd_packet)
File "/home/tealk/.local/pipx/venvs/pynitrokey/lib/python3.10/site-packages/spsdk/mboot/mcuboot.py", line 117, in _process_cmd
self._device.write(cmd_packet)
File "/home/tealk/.local/pipx/venvs/pynitrokey/lib/python3.10/site-packages/spsdk/mboot/interfaces/usb.py", line 217, in write
raise McuBootConnectionError(str(e)) from e
spsdk.mboot.exceptions.McuBootConnectionError: MBoot: Connection issue -> LIBUSBSIO: HID DEVICE is not open.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/tealk/.local/pipx/venvs/pynitrokey/lib/python3.10/site-packages/pynitrokey/cli/nk3/update.py", line 140, in update
return updater.update(device, image, version, ignore_pynitrokey_version)
File "/home/tealk/.local/pipx/venvs/pynitrokey/lib/python3.10/site-packages/pynitrokey/nk3/updates.py", line 215, in update
self._perform_update(bootloader, container)
File "/home/tealk/.local/pipx/venvs/pynitrokey/lib/python3.10/site-packages/pynitrokey/nk3/updates.py", line 364, in _perform_update
raise self.ui.error("Failed to perform firmware update", e)
pynitrokey.cli.exceptions.CliException: Failed to perform firmware update
MBoot: Connection issue -> LIBUSBSIO: HID DEVICE is not open.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/tealk/.local/pipx/venvs/pynitrokey/lib/python3.10/site-packages/spsdk/mboot/interfaces/usb.py", line 170, in close
self.device.Close()
File "/home/tealk/.local/pipx/venvs/pynitrokey/lib/python3.10/site-packages/libusbsio/libusbsio.py", line 1357, in wrapper
self._check_device_open()
File "/home/tealk/.local/pipx/venvs/pynitrokey/lib/python3.10/site-packages/libusbsio/libusbsio.py", line 1342, in _check_device_open
raise LIBUSBSIO_Exception("HID DEVICE is not open.")
libusbsio.libusbsio.LIBUSBSIO_Exception: LIBUSBSIO: HID DEVICE is not open.
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home/tealk/.local/pipx/venvs/pynitrokey/lib/python3.10/site-packages/pynitrokey/cli/__init__.py", line 129, in main
nitropy()
File "/home/tealk/.local/pipx/venvs/pynitrokey/lib/python3.10/site-packages/click/core.py", line 1130, in __call__
return self.main(*args, **kwargs)
File "/home/tealk/.local/pipx/venvs/pynitrokey/lib/python3.10/site-packages/click/core.py", line 1055, in main
rv = self.invoke(ctx)
File "/home/tealk/.local/pipx/venvs/pynitrokey/lib/python3.10/site-packages/click/core.py", line 1657, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/home/tealk/.local/pipx/venvs/pynitrokey/lib/python3.10/site-packages/click/core.py", line 1657, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/home/tealk/.local/pipx/venvs/pynitrokey/lib/python3.10/site-packages/click/core.py", line 1404, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/home/tealk/.local/pipx/venvs/pynitrokey/lib/python3.10/site-packages/click/core.py", line 760, in invoke
return __callback(*args, **kwargs)
File "/home/tealk/.local/pipx/venvs/pynitrokey/lib/python3.10/site-packages/click/decorators.py", line 38, in new_func
return f(get_current_context().obj, *args, **kwargs)
File "/home/tealk/.local/pipx/venvs/pynitrokey/lib/python3.10/site-packages/pynitrokey/cli/nk3/__init__.py", line 447, in update
exec_update(ctx, image, version, ignore_pynitrokey_version)
File "/home/tealk/.local/pipx/venvs/pynitrokey/lib/python3.10/site-packages/pynitrokey/cli/nk3/update.py", line 138, in update
with ctx.connect() as device:
File "/home/tealk/.local/pipx/venvs/pynitrokey/lib/python3.10/site-packages/pynitrokey/nk3/base.py", line 25, in __exit__
self.close()
File "/home/tealk/.local/pipx/venvs/pynitrokey/lib/python3.10/site-packages/pynitrokey/nk3/bootloader/lpc55.py", line 73, in close
self.device.close()
File "/home/tealk/.local/pipx/venvs/pynitrokey/lib/python3.10/site-packages/spsdk/mboot/mcuboot.py", line 276, in close
self._device.close()
File "/home/tealk/.local/pipx/venvs/pynitrokey/lib/python3.10/site-packages/spsdk/mboot/interfaces/usb.py", line 173, in close
raise McuBootConnectionError(
spsdk.mboot.exceptions.McuBootConnectionError: MBoot: Connection issue -> Unable to close device 'b'/dev/hidraw1'' VID=8352 PID=17117 SN=''
5831 DEBUG root print: Critical error:
5831 DEBUG root print: An unhandled exception occurred
5831 ERROR root MBoot: Connection issue -> Unable to close device 'b'/dev/hidraw1'' VID=8352 PID=17117 SN=''
Traceback (most recent call last):
File "/home/tealk/.local/pipx/venvs/pynitrokey/lib/python3.10/site-packages/spsdk/mboot/interfaces/usb.py", line 214, in write
_bytes_written = self.device.Write(raw_data, timeout_ms=self.timeout)
File "/home/tealk/.local/pipx/venvs/pynitrokey/lib/python3.10/site-packages/libusbsio/libusbsio.py", line 1357, in wrapper
self._check_device_open()
File "/home/tealk/.local/pipx/venvs/pynitrokey/lib/python3.10/site-packages/libusbsio/libusbsio.py", line 1342, in _check_device_open
raise LIBUSBSIO_Exception("HID DEVICE is not open.")
libusbsio.libusbsio.LIBUSBSIO_Exception: LIBUSBSIO: HID DEVICE is not open.
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home/tealk/.local/pipx/venvs/pynitrokey/lib/python3.10/site-packages/pynitrokey/nk3/updates.py", line 362, in _perform_update
device.update(image, callback=callback)
File "/home/tealk/.local/pipx/venvs/pynitrokey/lib/python3.10/site-packages/pynitrokey/nk3/bootloader/lpc55.py", line 106, in update
success = self.device.receive_sb_file(
File "/home/tealk/.local/pipx/venvs/pynitrokey/lib/python3.10/site-packages/spsdk/mboot/mcuboot.py", line 655, in receive_sb_file
cmd_response = self._process_cmd(cmd_packet)
File "/home/tealk/.local/pipx/venvs/pynitrokey/lib/python3.10/site-packages/spsdk/mboot/mcuboot.py", line 117, in _process_cmd
self._device.write(cmd_packet)
File "/home/tealk/.local/pipx/venvs/pynitrokey/lib/python3.10/site-packages/spsdk/mboot/interfaces/usb.py", line 217, in write
raise McuBootConnectionError(str(e)) from e
spsdk.mboot.exceptions.McuBootConnectionError: MBoot: Connection issue -> LIBUSBSIO: HID DEVICE is not open.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/tealk/.local/pipx/venvs/pynitrokey/lib/python3.10/site-packages/pynitrokey/cli/nk3/update.py", line 140, in update
return updater.update(device, image, version, ignore_pynitrokey_version)
File "/home/tealk/.local/pipx/venvs/pynitrokey/lib/python3.10/site-packages/pynitrokey/nk3/updates.py", line 215, in update
self._perform_update(bootloader, container)
File "/home/tealk/.local/pipx/venvs/pynitrokey/lib/python3.10/site-packages/pynitrokey/nk3/updates.py", line 364, in _perform_update
raise self.ui.error("Failed to perform firmware update", e)
pynitrokey.cli.exceptions.CliException: Failed to perform firmware update
MBoot: Connection issue -> LIBUSBSIO: HID DEVICE is not open.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/tealk/.local/pipx/venvs/pynitrokey/lib/python3.10/site-packages/spsdk/mboot/interfaces/usb.py", line 170, in close
self.device.Close()
File "/home/tealk/.local/pipx/venvs/pynitrokey/lib/python3.10/site-packages/libusbsio/libusbsio.py", line 1357, in wrapper
self._check_device_open()
File "/home/tealk/.local/pipx/venvs/pynitrokey/lib/python3.10/site-packages/libusbsio/libusbsio.py", line 1342, in _check_device_open
raise LIBUSBSIO_Exception("HID DEVICE is not open.")
libusbsio.libusbsio.LIBUSBSIO_Exception: LIBUSBSIO: HID DEVICE is not open.
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home/tealk/.local/pipx/venvs/pynitrokey/lib/python3.10/site-packages/pynitrokey/cli/__init__.py", line 129, in main
nitropy()
File "/home/tealk/.local/pipx/venvs/pynitrokey/lib/python3.10/site-packages/click/core.py", line 1130, in __call__
return self.main(*args, **kwargs)
File "/home/tealk/.local/pipx/venvs/pynitrokey/lib/python3.10/site-packages/click/core.py", line 1055, in main
rv = self.invoke(ctx)
File "/home/tealk/.local/pipx/venvs/pynitrokey/lib/python3.10/site-packages/click/core.py", line 1657, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/home/tealk/.local/pipx/venvs/pynitrokey/lib/python3.10/site-packages/click/core.py", line 1657, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/home/tealk/.local/pipx/venvs/pynitrokey/lib/python3.10/site-packages/click/core.py", line 1404, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/home/tealk/.local/pipx/venvs/pynitrokey/lib/python3.10/site-packages/click/core.py", line 760, in invoke
return __callback(*args, **kwargs)
File "/home/tealk/.local/pipx/venvs/pynitrokey/lib/python3.10/site-packages/click/decorators.py", line 38, in new_func
return f(get_current_context().obj, *args, **kwargs)
File "/home/tealk/.local/pipx/venvs/pynitrokey/lib/python3.10/site-packages/pynitrokey/cli/nk3/__init__.py", line 447, in update
exec_update(ctx, image, version, ignore_pynitrokey_version)
File "/home/tealk/.local/pipx/venvs/pynitrokey/lib/python3.10/site-packages/pynitrokey/cli/nk3/update.py", line 138, in update
with ctx.connect() as device:
File "/home/tealk/.local/pipx/venvs/pynitrokey/lib/python3.10/site-packages/pynitrokey/nk3/base.py", line 25, in __exit__
self.close()
File "/home/tealk/.local/pipx/venvs/pynitrokey/lib/python3.10/site-packages/pynitrokey/nk3/bootloader/lpc55.py", line 73, in close
self.device.close()
File "/home/tealk/.local/pipx/venvs/pynitrokey/lib/python3.10/site-packages/spsdk/mboot/mcuboot.py", line 276, in close
self._device.close()
File "/home/tealk/.local/pipx/venvs/pynitrokey/lib/python3.10/site-packages/spsdk/mboot/interfaces/usb.py", line 173, in close
raise McuBootConnectionError(
spsdk.mboot.exceptions.McuBootConnectionError: MBoot: Connection issue -> Unable to close device 'b'/dev/hidraw1'' VID=8352 PID=17117 SN=''
5832 DEBUG root listing all connected devices:
5832 DEBUG root :: 'Nitrokey FIDO2' keys
5832 DEBUG root :: 'Nitrokey Start' keys:
5859 DEBUG root :: 'Nitrokey 3' keys
5863 INFO libusbsio HID enumeration[94371135680384]: initialized
5863 DEBUG libusbsio HID enumeration[94371135680384]: device #0: MCU HID GENERIC DEVICE
5864 DEBUG libusbsio HID enumeration[94371135680384]: device #1: PlaylistControl
5864 DEBUG libusbsio HID enumeration[94371135680384]: device #2: Tealk-Magic Trackpad 2
5864 DEBUG libusbsio HID enumeration[94371135680384]: device #3: MX Keys
5864 INFO libusbsio HID enumeration[94371135680384]: finished, total 4 devices
5873 INFO spsdk.mboot.mcuboot Connect: MCU HID GENERIC DEVICE (0x20A0, 0x42DD)
5873 DEBUG spsdk.mboot.interfaces.usb Open Interface
5873 INFO libusbsio.hidapi.dev Opening HID device at path: 'b'/dev/hidraw1''
5874 ERROR libusbsio.hidapi.dev HID device 'b'/dev/hidraw1'' opening failed.
5874 INFO spsdk.mboot.mcuboot CMD: GetProperty('UniqueDeviceIdent', index=0)
5874 DEBUG spsdk.mboot.mcuboot TX-PACKET: Tag=GetProperty, Flags=0x00, P[0]=0x00000012, P[1]=0x00000000
5874 DEBUG spsdk.mboot.interfaces.usb OUT[16]: 01, 00, 0C, 00, 07, 00, 00, 02, 12, 00, 00, 00, 00, 00, 00, 00
5874 INFO spsdk.mboot.mcuboot Closing: MCU HID GENERIC DEVICE (0x20A0, 0x42DD)
5874 DEBUG spsdk.mboot.interfaces.usb Close Interface
5874 DEBUG root Unable to list devices. See log for the details.
5874 ERROR root Unable to list devices
Traceback (most recent call last):
File "/home/tealk/.local/pipx/venvs/pynitrokey/lib/python3.10/site-packages/spsdk/mboot/interfaces/usb.py", line 214, in write
_bytes_written = self.device.Write(raw_data, timeout_ms=self.timeout)
File "/home/tealk/.local/pipx/venvs/pynitrokey/lib/python3.10/site-packages/libusbsio/libusbsio.py", line 1357, in wrapper
self._check_device_open()
File "/home/tealk/.local/pipx/venvs/pynitrokey/lib/python3.10/site-packages/libusbsio/libusbsio.py", line 1342, in _check_device_open
raise LIBUSBSIO_Exception("HID DEVICE is not open.")
libusbsio.libusbsio.LIBUSBSIO_Exception: LIBUSBSIO: HID DEVICE is not open.
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home/tealk/.local/pipx/venvs/pynitrokey/lib/python3.10/site-packages/pynitrokey/nk3/updates.py", line 362, in _perform_update
device.update(image, callback=callback)
File "/home/tealk/.local/pipx/venvs/pynitrokey/lib/python3.10/site-packages/pynitrokey/nk3/bootloader/lpc55.py", line 106, in update
success = self.device.receive_sb_file(
File "/home/tealk/.local/pipx/venvs/pynitrokey/lib/python3.10/site-packages/spsdk/mboot/mcuboot.py", line 655, in receive_sb_file
cmd_response = self._process_cmd(cmd_packet)
File "/home/tealk/.local/pipx/venvs/pynitrokey/lib/python3.10/site-packages/spsdk/mboot/mcuboot.py", line 117, in _process_cmd
self._device.write(cmd_packet)
File "/home/tealk/.local/pipx/venvs/pynitrokey/lib/python3.10/site-packages/spsdk/mboot/interfaces/usb.py", line 217, in write
raise McuBootConnectionError(str(e)) from e
spsdk.mboot.exceptions.McuBootConnectionError: MBoot: Connection issue -> LIBUSBSIO: HID DEVICE is not open.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/tealk/.local/pipx/venvs/pynitrokey/lib/python3.10/site-packages/pynitrokey/cli/nk3/update.py", line 140, in update
return updater.update(device, image, version, ignore_pynitrokey_version)
File "/home/tealk/.local/pipx/venvs/pynitrokey/lib/python3.10/site-packages/pynitrokey/nk3/updates.py", line 215, in update
self._perform_update(bootloader, container)
File "/home/tealk/.local/pipx/venvs/pynitrokey/lib/python3.10/site-packages/pynitrokey/nk3/updates.py", line 364, in _perform_update
raise self.ui.error("Failed to perform firmware update", e)
pynitrokey.cli.exceptions.CliException: Failed to perform firmware update
MBoot: Connection issue -> LIBUSBSIO: HID DEVICE is not open.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/tealk/.local/pipx/venvs/pynitrokey/lib/python3.10/site-packages/spsdk/mboot/interfaces/usb.py", line 170, in close
self.device.Close()
File "/home/tealk/.local/pipx/venvs/pynitrokey/lib/python3.10/site-packages/libusbsio/libusbsio.py", line 1357, in wrapper
self._check_device_open()
File "/home/tealk/.local/pipx/venvs/pynitrokey/lib/python3.10/site-packages/libusbsio/libusbsio.py", line 1342, in _check_device_open
raise LIBUSBSIO_Exception("HID DEVICE is not open.")
libusbsio.libusbsio.LIBUSBSIO_Exception: LIBUSBSIO: HID DEVICE is not open.
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home/tealk/.local/pipx/venvs/pynitrokey/lib/python3.10/site-packages/pynitrokey/cli/__init__.py", line 129, in main
nitropy()
File "/home/tealk/.local/pipx/venvs/pynitrokey/lib/python3.10/site-packages/click/core.py", line 1130, in __call__
return self.main(*args, **kwargs)
File "/home/tealk/.local/pipx/venvs/pynitrokey/lib/python3.10/site-packages/click/core.py", line 1055, in main
rv = self.invoke(ctx)
File "/home/tealk/.local/pipx/venvs/pynitrokey/lib/python3.10/site-packages/click/core.py", line 1657, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/home/tealk/.local/pipx/venvs/pynitrokey/lib/python3.10/site-packages/click/core.py", line 1657, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/home/tealk/.local/pipx/venvs/pynitrokey/lib/python3.10/site-packages/click/core.py", line 1404, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/home/tealk/.local/pipx/venvs/pynitrokey/lib/python3.10/site-packages/click/core.py", line 760, in invoke
return __callback(*args, **kwargs)
File "/home/tealk/.local/pipx/venvs/pynitrokey/lib/python3.10/site-packages/click/decorators.py", line 38, in new_func
return f(get_current_context().obj, *args, **kwargs)
File "/home/tealk/.local/pipx/venvs/pynitrokey/lib/python3.10/site-packages/pynitrokey/cli/nk3/__init__.py", line 447, in update
exec_update(ctx, image, version, ignore_pynitrokey_version)
File "/home/tealk/.local/pipx/venvs/pynitrokey/lib/python3.10/site-packages/pynitrokey/cli/nk3/update.py", line 138, in update
with ctx.connect() as device:
File "/home/tealk/.local/pipx/venvs/pynitrokey/lib/python3.10/site-packages/pynitrokey/nk3/base.py", line 25, in __exit__
self.close()
File "/home/tealk/.local/pipx/venvs/pynitrokey/lib/python3.10/site-packages/pynitrokey/nk3/bootloader/lpc55.py", line 73, in close
self.device.close()
File "/home/tealk/.local/pipx/venvs/pynitrokey/lib/python3.10/site-packages/spsdk/mboot/mcuboot.py", line 276, in close
self._device.close()
File "/home/tealk/.local/pipx/venvs/pynitrokey/lib/python3.10/site-packages/spsdk/mboot/interfaces/usb.py", line 173, in close
raise McuBootConnectionError(
spsdk.mboot.exceptions.McuBootConnectionError: MBoot: Connection issue -> Unable to close device 'b'/dev/hidraw1'' VID=8352 PID=17117 SN=''
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/tealk/.local/pipx/venvs/pynitrokey/lib/python3.10/site-packages/spsdk/mboot/interfaces/usb.py", line 214, in write
_bytes_written = self.device.Write(raw_data, timeout_ms=self.timeout)
File "/home/tealk/.local/pipx/venvs/pynitrokey/lib/python3.10/site-packages/libusbsio/libusbsio.py", line 1357, in wrapper
self._check_device_open()
File "/home/tealk/.local/pipx/venvs/pynitrokey/lib/python3.10/site-packages/libusbsio/libusbsio.py", line 1342, in _check_device_open
raise LIBUSBSIO_Exception("HID DEVICE is not open.")
libusbsio.libusbsio.LIBUSBSIO_Exception: LIBUSBSIO: HID DEVICE is not open.
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home/tealk/.local/pipx/venvs/pynitrokey/lib/python3.10/site-packages/pynitrokey/cli/nk3/__init__.py", line 140, in list
uuid = device.uuid()
File "/home/tealk/.local/pipx/venvs/pynitrokey/lib/python3.10/site-packages/pynitrokey/nk3/bootloader/lpc55.py", line 85, in uuid
uuid = self.device.get_property(PropertyTag.UNIQUE_DEVICE_IDENT) # type: ignore[arg-type]
File "/home/tealk/.local/pipx/venvs/pynitrokey/lib/python3.10/site-packages/spsdk/mboot/mcuboot.py", line 616, in get_property
cmd_response = self._process_cmd(cmd_packet)
File "/home/tealk/.local/pipx/venvs/pynitrokey/lib/python3.10/site-packages/spsdk/mboot/mcuboot.py", line 117, in _process_cmd
self._device.write(cmd_packet)
File "/home/tealk/.local/pipx/venvs/pynitrokey/lib/python3.10/site-packages/spsdk/mboot/interfaces/usb.py", line 217, in write
raise McuBootConnectionError(str(e)) from e
spsdk.mboot.exceptions.McuBootConnectionError: MBoot: Connection issue -> LIBUSBSIO: HID DEVICE is not open.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/tealk/.local/pipx/venvs/pynitrokey/lib/python3.10/site-packages/spsdk/mboot/interfaces/usb.py", line 170, in close
self.device.Close()
File "/home/tealk/.local/pipx/venvs/pynitrokey/lib/python3.10/site-packages/libusbsio/libusbsio.py", line 1357, in wrapper
self._check_device_open()
File "/home/tealk/.local/pipx/venvs/pynitrokey/lib/python3.10/site-packages/libusbsio/libusbsio.py", line 1342, in _check_device_open
raise LIBUSBSIO_Exception("HID DEVICE is not open.")
libusbsio.libusbsio.LIBUSBSIO_Exception: LIBUSBSIO: HID DEVICE is not open.
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home/tealk/.local/pipx/venvs/pynitrokey/lib/python3.10/site-packages/pynitrokey/helpers.py", line 209, in local_critical
nitropy.commands["list"].callback()
File "/home/tealk/.local/pipx/venvs/pynitrokey/lib/python3.10/site-packages/pynitrokey/cli/__init__.py", line 113, in list
_list()
File "/home/tealk/.local/pipx/venvs/pynitrokey/lib/python3.10/site-packages/pynitrokey/cli/__init__.py", line 106, in _list
nk3.commands["list"].callback()
File "/home/tealk/.local/pipx/venvs/pynitrokey/lib/python3.10/site-packages/pynitrokey/cli/nk3/__init__.py", line 139, in list
with device as device:
File "/home/tealk/.local/pipx/venvs/pynitrokey/lib/python3.10/site-packages/pynitrokey/nk3/base.py", line 25, in __exit__
self.close()
File "/home/tealk/.local/pipx/venvs/pynitrokey/lib/python3.10/site-packages/pynitrokey/nk3/bootloader/lpc55.py", line 73, in close
self.device.close()
File "/home/tealk/.local/pipx/venvs/pynitrokey/lib/python3.10/site-packages/spsdk/mboot/mcuboot.py", line 276, in close
self._device.close()
File "/home/tealk/.local/pipx/venvs/pynitrokey/lib/python3.10/site-packages/spsdk/mboot/interfaces/usb.py", line 173, in close
raise McuBootConnectionError(
spsdk.mboot.exceptions.McuBootConnectionError: MBoot: Connection issue -> Unable to close device 'b'/dev/hidraw1'' VID=8352 PID=17117 SN=''
5875 DEBUG root print: --------------------------------------------------------------------------------
5875 DEBUG root print: Critical error occurred, exiting now
5875 DEBUG root print: Unexpected? Is this a bug? Would you like to get support/help?
5875 DEBUG root print: - You can report issues at: https://support.nitrokey.com/
5875 DEBUG root print: - Writing an e-mail to support@nitrokey.com is also possible
5875 DEBUG root print: - Please attach the log: '/tmp/nitropy.log.p98xobh8' with any support/help request!
5875 DEBUG root print: - Please check if you have udev rules installed: https://docs.nitrokey.com/nitrokey3/linux/firmware-update.html#troubleshooting