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

"solo key verify" causes NonUniqueDeviceError exception when Yubikey also installed #89

Open
JohnVillalovos opened this issue Jul 9, 2020 · 2 comments

Comments

@JohnVillalovos
Copy link

JohnVillalovos commented Jul 9, 2020

I have a Solo key and Yubikey 5 plugged in at the same time:

$ solo key verify
Please press the button on your Solo key
Traceback (most recent call last):
  File "/home/solo-user/.local/bin/solo", line 8, in <module>
    sys.exit(solo_cli())
  File "/home/solo-user/.local/lib/python3.8/site-packages/click/core.py", line 829, in __call__
    return self.main(*args, **kwargs)
  File "/home/solo-user/.local/lib/python3.8/site-packages/click/core.py", line 782, in main
    rv = self.invoke(ctx)
  File "/home/solo-user/.local/lib/python3.8/site-packages/click/core.py", line 1259, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/home/solo-user/.local/lib/python3.8/site-packages/click/core.py", line 1259, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/home/solo-user/.local/lib/python3.8/site-packages/click/core.py", line 1066, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/home/solo-user/.local/lib/python3.8/site-packages/click/core.py", line 610, in invoke
    return callback(*args, **kwargs)
  File "/home/solo-user/.local/lib/python3.8/site-packages/solo/cli/key.py", line 323, in verify
    cert = solo.client.find(serial, udp=udp).make_credential(pin=pin)
  File "/home/solo-user/.local/lib/python3.8/site-packages/solo/client.py", line 46, in find
    p.find_device(dev=raw_device, solo_serial=solo_serial)
  File "/home/solo-user/.local/lib/python3.8/site-packages/solo/client.py", line 104, in find_device
    raise solo.exceptions.NonUniqueDeviceError
solo.exceptions.NonUniqueDeviceError

When I removed the Yubikey the error went away.

@Vash63
Copy link

Vash63 commented Feb 16, 2022

Just ran into this myself on the latest solo-python, didn't realize it was the Yubi causing the issue until I found this issue report.

@nickray
Copy link
Member

nickray commented Mar 6, 2022

The stack traces aren't pretty... Maybe you can solo ls first and then select which device to verify via flag.

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

No branches or pull requests

3 participants