-
Notifications
You must be signed in to change notification settings - Fork 27
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
Improve error message for provisioner test #323
Comments
As you noticed, it is a bit tricky to get this test to work (and requires additional dependencies). This makes it hard to show concise and instructive error message. And this is the reason why it is disabled by default. Also, the test is only relevant during production and not for devices in the field. We should add that to the documentation for the If you still want to get this to work, make sure that |
Thanks, that helped me along and all five tests succeed. On Arch the package containing the ccid database is called
The test also finally succeeded:
As you can see, this test is enabled by default. The only additional test that is run with
Does that mean that the wrong test gets excluded by default? |
@robin-nitrokey What's the status of this ticket? |
This patch adds the provisioner test to the default excludes for the nitropy nk3 test command. The reason for this is that it the test is not relevant outside of production and is likely to fail if gnupg/scdaemon is running or if there is an issue with pcscd. It also changes the test setup so that the provisioner test case is always listed, even if pyscard is not installed. In this case, it is marked as skipped. Fixes #323
After quite a while I was playing around with my Nitrokey 3A NFC again and ran the test suite
nitropy nk3 test --all
and it failed.One error message was particularly unhelpful:
[4/5] provisioner Firmware mode FAILURE Failed to establish context: Service not available. (0x8010001D)
The only way I happened to stumble upon a possible solution is because the competitor Yubikey used to throw a very similar error message that is just as bad and I could find a solution for that Yubico/yubioath-flutter#78.
After issuing a
systemctl start pcscd.service
(pcsc stuff was already installed, perhaps I ran into this before and forgot) I still get a test failure but with a different message and I still do not know whether this is to be expected.[4/5] provisioner Firmware mode FAILURE No smartcard with UUID <UUID> found
Please improve the error messages to avoid this kind of confusion.
The text was updated successfully, but these errors were encountered: