NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
18.06k stars 14.04k forks source link

monero cannot connect to ledger s #73867

Open thedavidmeister opened 4 years ago

thedavidmeister commented 4 years ago

Describe the bug A clear and concise description of what the bug is.

To Reproduce

ledger firmware 1.5.5 monero 1.3.1

plug in ledger nano s, open monero, run monero-wallet-cli and open wallet

this error appears

This is the command line monero wallet. It needs to connect to a monero
daemon to work correctly.
WARNING: Do not reuse your Monero keys on another fork, UNLESS this fork has key reuse mitigations built in. Doing so will harm your privacy.

Monero 'Carbon Chamaeleon' (v0.15.0.0-unknown)
Logging to monero-wallet-cli.log
WARNING: You may not have a high enough lockable memory limit, see ulimit -l
Wallet password: 
Error: failed to load wallet: Wrong Device Status : SW=6930 (EXPECT=9000, MASK=ffff)

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem.

Additional context Add any other context about the problem here.

Metadata Please run nix run nixpkgs.nix-info -c nix-info -m and paste the result.

[thedavidmeister@nixos:~]$ nix run nixpkgs.nix-info -c nix-info -m
 - system: `"x86_64-linux"`
 - host os: `Linux 5.3.11, NixOS, 20.03pre-git (Markhor)`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.3.1`
 - channels(root): `"nixos, 65edeb8633de16792a84195f77a6b4ea408e2608.tar.gz"`
 - channels(thedavidmeister): `"nixos-19.09pre185176.1036dc66416"`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos`

Maintainer information:

# a list of nixpkgs attributes affected by the problem
attribute:
# a list of nixos modules affected by the problem
module:
matthewbauer commented 4 years ago

Is this a regression or the first time you are trying the ledger + monero?

Also have you enabled the ledger module via hardware.ledger.enable? I updated the rules in ff066a107bbaf17808462d7d986ff43234c66535 but didn't think it would break anything.

thedavidmeister commented 4 years ago

it's a regression for me, i've used the ledger with monero several times

i'll try the hardware option thanks

thedavidmeister commented 4 years ago

@matthewbauer ok so... adding hardware.ledger.enable = true made it so ledger live could access it (which is an improvement) but i still get the same error for monero

thedavidmeister commented 4 years ago

@matthewbauer i tested on a few other platforms including windows and mac and it seems the issue is with the version 15 of the cli for monero itself, i rolled back to 472e165b563f87c99275385b1a6979b7f3c01668 with version 14 of monero and it worked for me once more

rnhmjoj commented 4 years ago

with version 14 of monero and it worked for me once more

It has to be something in 0.15 then. Maybe I missed some optional library... I'll look into this.

stale[bot] commented 4 years ago

Thank you for your contributions. This has been automatically marked as stale because it has had no activity for 180 days. If this is still important to you, we ask that you leave a comment below. Your comment can be as simple as "still important to me". This lets people see that at least one person still cares about this. Someone will have to do this at most twice a year if there is no other activity. Here are suggestions that might help resolve this more quickly:

  1. Search for maintainers and people that previously touched the related code and @ mention them in a comment.
  2. Ask on the NixOS Discourse. 3. Ask on the #nixos channel on irc.freenode.net.