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

Intermittently not detecting yubikey #111

Open
solomon-b opened this issue Jan 17, 2023 · 4 comments
Open

Intermittently not detecting yubikey #111

solomon-b opened this issue Jan 17, 2023 · 4 comments

Comments

@solomon-b
Copy link

Environment

  • OS: Linux
  • age-plugin-yubikey version: 0.3.0

What were you trying to do

Print identities from my yubikey

What happened

It stopped detecting my yubikey 5c nano.

➜ age-plugin-yubikey --identity

➜ age-plugin-yubikey           
✨ Let's get your YubiKey set up for age! ✨

...

⏳ Please insert the YubiKey you want to set up.

If I insert another yubikey into my laptop then it detects that other yubikey. The yubikey 5c nano is detected by ykman-gui and is working for fido2 in firefox. If I remove the nano key and reinsert it then it is detected again.

@str4d
Copy link
Owner

str4d commented Feb 11, 2023

Could you try running with RUST_LOG=trace (e.g. RUST_LOG=trace age-plugin-yubikey --list) and report what it prints out?

@supermarin
Copy link

supermarin commented Feb 11, 2023

@str4d observing the same thing on linux (nixos).

$ RUST_LOG=trace age-plugin-yubikey --list
[INFO  i18n_embed::requester] Current Locale: [LanguageIdentifier { language: Language(Some("en")), script: None, region: Some(Region("US")), variants: None }]
[DEBUG i18n_embed] Selecting translations for domain "age_plugin_yubikey"
[DEBUG i18n_embed] Searching for available languages, found language file: "en-US/age_plugin_yubikey.ftl"
[DEBUG i18n_embed] Requested Languages: [LanguageIdentifier { language: Language(Some("en")), script: None, region: Some(Region("US")), variants: None }]
[DEBUG i18n_embed] Available Languages: [LanguageIdentifier { language: Language(Some("en")), script: None, region: Some(Region("US")), variants: None }]
[DEBUG i18n_embed] Supported Languages: [LanguageIdentifier { language: Language(Some("en")), script: None, region: Some(Region("US")), variants: None }]
[DEBUG i18n_embed] Attempting to load language file: "en-US/age_plugin_yubikey.ftl"
[DEBUG i18n_embed::fluent] Loaded language file: "en-US/age_plugin_yubikey.ftl" for language: "en-US"

EDIT: If I want to decrypt something with age, it gets stuck in this loop (pressing 1):

$ age -i ~/.age/recipients.txt -d whatever.age
Please insert YubiKey with serial xxxxxxxx (press [1] for "YubCould not open YubiKey. 
Please insert YubiKey with serial xxxxxxxx (press [1] for "YubiKey is plugged in" or [2] for "Skip tCould not open YubiKey. 
Please insert YubiKey with serial xxxxxxxx (press [1] for "YubiKey is plugged in" or [2] for "Skip tCould not open YubiKey. 
Please insert YubiKey with serial xxxxxxxx (press [1] for "YubiKey is plugged in" or [2] for "Skip tCould not open YubiKey. 
Please insert YubiKey with serial xxxxxxxx (press [1] for "YubiKey is plugged in" or [2] for "Skip tCould not open YubiKey. 
Please insert YubiKey with serial xxxxxxxx (press [1] for "YubiKey is plugged in" or [2] for "Skip tCould not open YubiKey. 
Please insert YubiKey with serial xxxxxxxx (press [1] for "YubiKey is plugged in" or [2] for "Skip tCould not open YubiKey. 
Please insert YubiKey with serial xxxxxxxx (press [1] for "YubiKey is plugged in" or [2] for "Skip tCould not open YubiKey. 
Please insert YubiKey with serial xxxxxxxx (press [1] for "YubiKey is plugged in" or [2] for "Skip tCould not open YubiKey. 
Please insert YubiKey with serial xxxxxxxx (press [1] for "YubiKey is plugged in" or [2] for "Skip tCould not open YubiKey. 
Please insert YubiKey with serial xxxxxxxx (press [1] for "YubiKey is plugged in" or [2] for "Skip tCould not open YubiKey. 
Please insert YubiKey with serial xxxxxxxx (press [1] for "YubiKey is plugged in" or [2] for "Skip tCould not open YubiKey. 
Please insert YubiKey with serial xxxxxxxx (press [1] for "YubiKey is plugged in" or [2] for "Skip tCould not open YubiKey. 
Please insert YubiKey with serial xxxxxxxx (press [1] for "YubiKey is plugged in" or [2] for "Skip tCould not open YubiKey. 
Please insert YubiKey with serial xxxxxxxx (press [1] for "YubiKey is plugged in" or [2] for "Skip this YubiKey")

@RapidPencil
Copy link

Same thing is happening for me (Ubuntu and age-plugin-yubikey from nixpkgs).

@RapidPencil
Copy link

Running pkill -TERM scdaemon resolves it temporarily for me (found that command here)

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

4 participants