NK3C Update Probleme

Ich habe 2 Nitrokey3C und ich habe einen von der Alpha auf die reguläre Firmware aktualisiert, und dann beide auf die aktuelle Test-Firmware. Alles mit nitropy in der aktuellen Version

$ nitropy version
Command line tool to interact with Nitrokey devices 0.4.36
0.4.36

Und es zeigte sich immer das selbe Muster. Beim ersten Mal update gibts einen Fehler, beim zweiten Mal läuft es durch und die Firmware wird aktualisiert:

$ nitropy nk3 update --version v1.3.1-test.20230417
Command line tool to interact with Nitrokey devices 0.4.36
Do you want to download the firmware version v1.3.1-test.20230417? [Y/n]: y
Download v1.3.1-test.20230417: 100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████| 918k/918k [00:00<00:00, 2.12MB/s]
Current firmware version:  v1.3.0-alpha.20230320
Updated firmware version:  v1.3.1-test.20230417

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

Please press the touch button to reboot the device into bootloader mode ...

Critical error:
An unhandled exception occurred
	Exception encountered: RuntimeError("generator didn't stop after throw()")

--------------------------------------------------------------------------------
Critical error occurred, exiting now
Unexpected? Is this a bug? Would you like to get support/help?
- You can report issues at: https://support.nitrokey.com/
- Writing an e-mail to support@nitrokey.com is also possible
- Please attach the log: '/tmp/user/2000/nitropy.log.4jel724t' with any support/help request!
- Please check if you have udev rules installed: https://docs.nitrokey.com/nitrokey3/linux/firmware-update.html#troubleshooting

$ nitropy nk3 update --version v1.3.1-test.20230417
Command line tool to interact with Nitrokey devices 0.4.36
Do you want to download the firmware version v1.3.1-test.20230417? [Y/n]: y
Download v1.3.1-test.20230417: 100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████| 918k/918k [00:00<00:00, 2.73MB/s]
Current firmware version:  [unknown]
Updated firmware version:  v1.3.1-test.20230417

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
Perform firmware update: 100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 463k/463k [00:09<00:00, 48.4kB/s]
Finalize upgrade: 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 100/100 [00:01<00:00, 59.83%/s]

And… my existing gpg-Keys are reset. On both devices. The Nitrokey is blank as new.

Ich habe nun auf einem Key neue gpg-Keys erzeugt. Aber mein Android mit Openkeychain registriert zwar dass ein Schlüssel hingehalten wird, aber es kann den Key nicht mehr lesen. Der Key leuchtet nur rot.

Mit der alten Alpha funktionierte das aber schon erfolgreich.

I’m having the exact same issue. I’m unable to update the firmware

Can you please share the full log for the failed update? The displayed error is most likely occurs while handling a different error.

You can try to work around this problem by manually booting into bootloader mode before updating the device:

$ nitropy nk3 reboot --bootloader
$ nitropy nk3 list
# output should include Nitrokey 3 Bootloader (LPC55) followed by the UUID
$ nitropy nk3 update

This IS the full log…

I updated again to release and back to testing

$ nitropy nk3 update --version v1.3.1-test.20230417
Command line tool to interact with Nitrokey devices 0.4.36
Do you want to download the firmware version v1.3.1-test.20230417? [Y/n]: y
Download v1.3.1-test.20230417: 100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 918k/918k [00:00<00:00, 2.57MB/s]
Current firmware version:  v1.3.1
Updated firmware version:  v1.3.1-test.20230417

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

Please press the touch button to reboot the device into bootloader mode ...

Critical error:
An unhandled exception occurred
	Exception encountered: RuntimeError("generator didn't stop after throw()")

--------------------------------------------------------------------------------
Critical error occurred, exiting now
Unexpected? Is this a bug? Would you like to get support/help?
- You can report issues at: https://support.nitrokey.com/
- Writing an e-mail to support@nitrokey.com is also possible
- Please attach the log: '/tmp/user/2000/nitropy.log.05w4uq_o' with any support/help request!
- Please check if you have udev rules installed: https://docs.nitrokey.com/nitrokey3/linux/firmware-update.html#troubleshooting

$ nitropy nk3 reboot --bootloader
Command line tool to interact with Nitrokey devices 0.4.36
Critical error:
A Nitrokey 3 device in bootloader mode can only reboot into firmware mode.
( 1 ✗ ) jakobus.schuerz@tag-331 (12:24)
~: $ nitropy nk3 list
Command line tool to interact with Nitrokey devices 0.4.36
:: 'Nitrokey 3' keys
/dev/hidraw3: Nitrokey 3 Bootloader (LPC55) 2D5CE4590E36EB5D88611E48B5D162D0
( 0 ✓) jakobus.schuerz@tag-331 (12:24)
~: $ nitropy nk3 update --version v1.3.1-test.20230417
Command line tool to interact with Nitrokey devices 0.4.36
Do you want to download the firmware version v1.3.1-test.20230417? [Y/n]: y
Download v1.3.1-test.20230417: 100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 918k/918k [00:00<00:00, 2.60MB/s]
Current firmware version:  [unknown]
Updated firmware version:  v1.3.1-test.20230417

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
Perform firmware update: 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 463k/463k [00:05<00:00, 78.2kB/s]
Finalize upgrade:  98%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████▉   | 98/100 [00:29<00:00,  3.27%/s]
Critical error:
No Nitrokey 3 device found

--------------------------------------------------------------------------------
Critical error occurred, exiting now
Unexpected? Is this a bug? Would you like to get support/help?
- You can report issues at: https://support.nitrokey.com/
- Writing an e-mail to support@nitrokey.com is also possible
- Please attach the log: '/tmp/user/2000/nitropy.log.ap61feiq' with any support/help request!
- Please check if you have udev rules installed: https://docs.nitrokey.com/nitrokey3/linux/firmware-update.html#troubleshooting


Sorry… new users are not allowed to upload files…

i can not send you the logfile.

This workaround did the trick for me. Had the exact same problem as described.

I need to add, that I had the exact same issue now, when updating to v1.4. Again I had to manually reboot into bootloader before I could perform the update. I also tried using the Nitrokey App 2 before, which also did not work.
Do I need to be worried about my Nk3?

with the nitrokeyapp 2 the update to 1.5.0 worked perfectly