cosmos / cosmos-sdk

:chains: A Framework for Building High Value Public Blockchains :sparkles:
https://cosmos.network/
Apache License 2.0
6.22k stars 3.59k forks source link

How to add Ledger nano X as key throw CLI Terrad? #15149

Closed PRIDE-AFZ closed 1 year ago

PRIDE-AFZ commented 1 year ago

Hi, recently I wanted to add my Ledger nano X as a key for sending transactions and so on, but I didn't succeed, every time I always got this error:

I ran this command: terrad keys add wallet _name --ledger --keyring-backend file

in response , I received this: Error: failed to generate ledger key: failed to retrieve device: ledger nano S: no ledger connected

What did I do it all on and did it beforehand:

I used a regular Ubuntu 22.04 LTC as a full-fledged system I downloaded and installed Ledger Live to make sure that the connected Ledger works, yes, it worked. I also checked the functionality in Google Chrome Browser via Terra Station extension and everything worked I also tried with developer mode enabled and disabled on Ledger I also tried different versions of GO and terrad (including the last one from the L1 team and the last one from Terra Money) I am 100% sure that this is more or less possible, because I was able to activate ReStake on the Allnodes website using my Ledger nano X through the Terra and Cosmos application on it. If it wasn't possible, then they wouldn't have been able to do it either

julienrbrt commented 1 year ago

Could you tell us which version of terrad are you using?

PRIDE-AFZ commented 1 year ago

i used terrad v1.0.5 from L1 team, here repo:

git clone https://github.com/classic-terra/core.git $ cd core $ git checkout v1.0.5 $ make install

But, i also tried anather chain, and tryed this instruction

https://hub.cosmos.network/main/resources/ledger.html#gaia-cli-ledger-nano

i installed gaia, but get same error

Could you tell us which version of terrad are you using?

PRIDE-AFZ commented 1 year ago

Maybe I need to restore some library or something? I searched a lot of places, but I never found it

facundomedica commented 1 year ago

Can you try closing everything that might make use of the Ledger and try again? Or even better, restart and don't open anything, just go straight to the command line and try again. Something similar happens to me when using the ledger from the browser and trying to use it in the CLI.

PRIDE-AFZ commented 1 year ago

Can you try closing everything that might make use of the Ledger and try again? Or even better, restart and don't open anything, just go straight to the command line and try again. Something similar happens to me when using the ledger from the browser and trying to use it in the CLI.

still dont work. Do u have nanp X or S? and which chain CLI do u use?

facundomedica commented 1 year ago

Both X and S, I mostly use simd. If both terrad and gaiad aren't working it must be something related to your machine, I would start by checking if from the command line you can see your usb devices connected. Maybe even try running as super user?

PRIDE-AFZ commented 1 year ago

Both X and S, I mostly use simd. If both terrad and gaiad aren't working it must be something related to your machine, I would start by checking if from the command line you can see your usb devices connected. Maybe even try running as super user?

I don't know Linux well. Can u send me instructions how to check it for sure, how can i check my ledger connection?

PRIDE-AFZ commented 1 year ago

Mb i need use some drivers or libraries or something like this for connection?

tac0turtle commented 1 year ago

hey i think the terra team may be able to provide better insight. They forked the sdk so we are unsure if they changed things.

Id try to to connect with simd of gaia to see if your connection works there, If it does then the terrad app is causing issues.

Closing this issue now, if you have more questions, please let us know and we can comment back.