Git Product home page Git Product logo

Comments (13)

zmanian avatar zmanian commented on September 27, 2024

Seems related
cosmos/gaia#2756

from ledger-cosmos-go.

tony-iqlusion avatar tony-iqlusion commented on September 27, 2024

I'm getting:

Error: failed to generate ledger key: failed to retrieve device: ledger nano S: no ledger connected

On both Ventura 13.6 and Sonoma 14.0.

Sonoma prompted me if I wanted to allow the Ledger device to connect at the OS level and I explicitly said yes. Perhaps the binary needs to be given explicit permission to use USB now?

from ledger-cosmos-go.

jjangg96 avatar jjangg96 commented on September 27, 2024

I'm in the same situation.

from ledger-cosmos-go.

jleni avatar jleni commented on September 27, 2024

I sounds to me that this is related to this https://support.apple.com/en-us/102282 as Tony was suggesting.
We will investigate

from ledger-cosmos-go.

tony-iqlusion avatar tony-iqlusion commented on September 27, 2024

@jleni curiously I can confirm what @zmanian said where older binaries seem to work

from ledger-cosmos-go.

ftheirs avatar ftheirs commented on September 27, 2024

I'm gettin a slightly different error but on the second time that I ran the command it worked fine.

macOS Sonoma 14.0
Ledger NanoS+
Ledger Cosmos app: v2.34.12 
> gaiad version
v13.0.0
> gaiad keys add ledger1 --ledger

Error: failed to generate ledger key: failed to recover pubkey: hidapi: unknown failure: address rejected for path m/44'/118'/0'/0/0
Usage:
  gaiad keys add <name> [flags]

I just ran the command again and I was able to create the key.

PS:
I was able to reproduce the first error: please, check that you closed LedgerLive or any other app that might be using usb port

> gaiad keys add ledger1 --ledger
override the existing name ledger1 [y/N]: y
Error: failed to generate ledger key: failed to retrieve device: ledger nano S: hidapi: failed to open device

from ledger-cosmos-go.

tony-iqlusion avatar tony-iqlusion commented on September 27, 2024

@ftheirs that seems like a different problem.

I can confirm I have repeatedly tried this and get the exact same error every time.

That includes repeatedly plugging in and unplugging the Ledger, across two different computers, both of which exhibit the same error "ledger nano S: no ledger connected"

from ledger-cosmos-go.

ftheirs avatar ftheirs commented on September 27, 2024

Hey @zmanian, @tony-iqlusion, @jjangg96: there is a new release from ledger-cosmos-go. Can you check if it works on your end? The issue is related to some legacy code for mac os 10.5 and earlier versions.

from ledger-cosmos-go.

tony-iqlusion avatar tony-iqlusion commented on September 27, 2024

Any suggestions where best to try it out?

I tried to use it on Agoric which is our most pressing issue here, however that's currently using v0.11 of ledger-cosmos-go and v0.13 is not a drop-in replacement:

# github.com/cosmos/cosmos-sdk/crypto/ledger
../../../../../go/pkg/mod/github.com/agoric-labs/[email protected]/crypto/ledger/ledger_real.go:18:10: cannot use device (variable of type *ledger_cosmos_go.LedgerCosmos) as SECP256K1 value in return statement: *ledger_cosmos_go.LedgerCosmos does not implement SECP256K1 (wrong type for method SignSECP256K1)
		have SignSECP256K1([]uint32, []byte, byte) ([]byte, error)
		want SignSECP256K1([]uint32, []byte) ([]byte, error)

from ledger-cosmos-go.

ftheirs avatar ftheirs commented on September 27, 2024

hey @tony-iqlusion, have you checked this release? There is another team that didn't want to upgrade to v0.13.x because of the breaking changes from Textual mode.

from ledger-cosmos-go.

tony-iqlusion avatar tony-iqlusion commented on September 27, 2024

Okay, that compiled, and I'm getting a slightly different error (the same one @zmanian was getting):

Error: failed to generate ledger key: failed to retrieve device: ledger nano S: hidapi: failed to open device

from ledger-cosmos-go.

tony-iqlusion avatar tony-iqlusion commented on September 27, 2024

FYI, I was able to get agd to work again using this patch to Agoric from @zmanian: Agoric/agoric-sdk#8462

It bumps hid to v0.9.2

from ledger-cosmos-go.

ftheirs avatar ftheirs commented on September 27, 2024

Yeap, the issue is related to hid module but it's a dependency from ledger-go and ledger-cosmos-go. Great to hear that it's working on your end too 🎉

from ledger-cosmos-go.

Related Issues (19)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.