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

v.1.2-beta.4 not cooperating with VM/Virtualbox (Windows'es 7/10 do not detect the device) #300

Closed
szszszsz opened this issue Dec 11, 2017 · 7 comments
Labels
Milestone

Comments

@szszszsz
Copy link
Member

on Win7, Win10 and Ubuntu 17.10 App 1.1 is working fine on Virtualbox, but not 1.2-beta.4 What I also realized is that using App 1.1 on Ubuntu 17.10, closing it, installing App 1.2, starting without ejecting the Nitrokey works fine until you disconnect once.

@techge
Copy link

techge commented Dec 14, 2017

It seems like it has something to do with scdaemon. At least on Ubuntu 17.10 it is working now after installing scdaemon. If this is true, it is probably a good idea to make scdaemon a dependency of nitrokey-app.
Although it is mentioned as needed for GnuPG on website, it is not marked as needed for App to work.

@szszszsz
Copy link
Member Author

szszszsz commented Jan 8, 2018

Issue with Windows is resolved now (pending fix being added to repository).
About Ubuntu 17.10 I got confused - is this still occurring? App is not using scdaemon - it communicates directly with libhidapi and libusb. Could you try to run the App with it (scdaemon) removed (and its dependencies)?

@techge
Copy link

techge commented Jan 8, 2018

GnuPG needs scdaemon to work with OpenPGP Card. After removing scdaemon, App recognizes the Nitrokey only if it was recognized before when scdaemon was yet installed. When I disconnect the Nitrokey and try again, it will not get recognized anymore.

Tried with Pro and OPC2 and Storage with OPC3.

The App may not need scdaemon directly, but as it make use of GnuPG functions (or not?) it may depend on it?

This may is not a VM/Virtualbox issue at all 🤔 Will try on "real" Ubuntu 17.10 (really 😉).

@szszszsz
Copy link
Member Author

szszszsz commented Jan 8, 2018

I see. Could you briefly list scdaemon dependencies on 17.10?
Perhaps some of them should be included in App's deps too.
Edit: 17.04 shows:

$ apt-cache show scdaemon | grep Depends
Depends: gnupg-agent (= 2.1.15-1ubuntu7), libassuan0 (>= 2.2.0), libc6 (>= 2.15), libgcrypt20 (>= 1.7.0), libgpg-error0 (>= 1.14), libksba8 (>= 1.3.4), libnpth0 (>= 0.90), libusb-1.0-0 (>= 2:1.0.9)

App is not connected to GnuPG in any way; uses libhidapi/libusb only.

@techge
Copy link

techge commented Jan 8, 2018

I will look at it later. But I can confirm: "real" Ubuntu 17.10 is the same behavior -> uninstalling scdaemon only removes ability to detect Nitrokey if not detected earlier.

@szszszsz
Copy link
Member Author

szszszsz commented Jan 8, 2018

Moving scdaemon-related issue to #310

@szszszsz szszszsz added the bug label Jan 8, 2018
@szszszsz
Copy link
Member Author

szszszsz commented Jan 8, 2018

This will be closed on merging Windows-related fix.

@szszszsz szszszsz added this to the 1.3 milestone Jan 8, 2018
@szszszsz szszszsz changed the title v.1.2-beta.4 not cooperating with VM/Virtualbox v.1.2-beta.4 not cooperating with VM/Virtualbox (Windows'es 7/10 do not detect the device) Jan 10, 2018
szszszsz added a commit that referenced this issue Jan 17, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants