LedgerHQ / ledgerjs

⛔️ MOVED to monorepo "ledger-live"
https://github.com/LedgerHQ/ledger-live
Apache License 2.0
574 stars 379 forks source link

Failed to sign with Ledger device: U2F DEVICE_INELIGIBLE #422

Open satb opened 4 years ago

satb commented 4 years ago

Searched far and wide including the issues list in here but couldn't find out what is causing this error. Tried chrome, opera, brave latest versions.

Code:

import VET from '@vechain/hw-app-vet'
import u2f_transport from '@ledgerhq/hw-transport-u2f'

const isSupported = await isHwWalletSupported()
 if(isSupported) {
     const transport = await createTransport()
     transport.setScrambleKey("")
     const thorLedger = new VET(transport)
     const appConfig = await thorLedger.getAppConfiguration() /// ---> FAILS HERE
}
const createTransport = async () => {
    const timeout = 5000
    const transport = await u2f_transport.create(timeout)
    console.log('u2f_transport', transport)
    return transport
}

const isHwWalletSupported = async () => {
    return await u2f_transport.isSupported()
}

The error shown in the browser console is

TransportError {name: "TransportError", message: "Failed to sign with Ledger device: U2F DEVICE_INELIGIBLE", stack: "Error↵    at new TransportError (webpack:///./node…rhq/hw-transport-u2f/lib/TransportU2F.js?:23:402)", id: "U2F_4", originalError: Error: Sign failed
    at makeError (webpack:///./node_modules/u2f-api/lib/u2f-api.js?:102:14)
    …}
id: "U2F_4"
message: "Failed to sign with Ledger device: U2F DEVICE_INELIGIBLE"
name: "TransportError"
pbca26 commented 4 years ago

Same here. Fails after invoking createPaymentTransactionNew. My Nano S remains completely unresponsive until I replug it into a USB port. All this started to happen after I updated the firmware to version 1.6.0. Any idea what's causing such errors?

fletheno1 commented 4 years ago

same happens to me .. can someone review the issue pls ...

mikegogulski commented 4 years ago

"U2F DEVICE_INELIGIBLE" on MyEtherWallet, MyCrypto, and Urbit Bridge.

Windows 10 Pro, all latest updates (Version 1909 (OS Build 18363.778)) Chrome browser, latest main-channel version (81.0.4044.113 (Official Build) (64-bit)) (also tried Brave, Opera, Firefox) Ledger Nano X with latest firmware (1.2.4-1) and latest version of the Ethereum app (1.2.13) Ledger Live 2.2.4 (latest version)

dkliman commented 4 years ago

same error on chrome, metamask, uniswap mac os.

llama commented 4 years ago

FWIW, I switched USB-C cables and it solved this issue for me.

samhefnawy commented 4 years ago

Any solution to this error yet?

Strayceem commented 4 years ago

Same problem here get the same error; Error Failed to sign with Ledger device: U2F DEVICE_INELIGIBLE Bloks.io wallet recognises my account, no problem, but with transfer it gives the error This is when I login with my ledger X with a usb-c cable at bloks.io

mikegogulski commented 4 years ago

I get the same exact failure attempting to use the Cardano app with adalite.io

Trying the Yoroi chrome extension, the behavior is a little different. I get this, as usual:

Annotation 2020-09-03 170632

But then instead of the Windows "U2F DEVICE_INELIGIBLE" message, this Chrome modal from the Yoroi extension freezes the entire browser window and all its tabs:

Annotation 2020-09-03 170925

Ledger support ticket 431787 has more info.

jim50hill commented 3 years ago

Same problem. Cannot access my OCEAN Tokens. Can see them in the MEW but cannot send them anywhere. Any fixes to recover the asset??

hunter0303 commented 3 years ago

failed to sign with ledger device U2F DEVICE_INELIGIBLEMAC 10.15.7,chrome 86.0.4240.183,MetaMask 8.1.3,connect app.dodoex.io mining

alexander-nolan commented 3 years ago

Getting the same thing. Is anyone actually looking into this? It's been open for a year..

heyakyra commented 3 years ago

Hitting this with Firefox 84 on Fedora Silverblue 33 (64bit)

mikegogulski commented 3 years ago

Aw, this issue had its first birthday 2 weeks ago and I missed it :'( Happy birthday, #422!

besiwims commented 3 years ago

I am using ledger nano S and I have the same problem: Failed to sign with ledger device: U2F DEVICE_INELIGIBLE, why has this not been solved since 2019? What is wrong with ledger nano s?

glaksmono commented 3 years ago

Any updates on this issue?

ivanrs79 commented 3 years ago

I had the same issue with my Ledger Nano X and Cardano, then I realised I have to leave Cardano app open in the Ledger before authenticating.

I hope that helps

konzy commented 3 years ago

The solution I found is to open the App for the chain you are trying to use on your Nano or X. You will need to confirm the transaction on your device.

I found out that the manager page of Ledger Live was kicking me out of the Eth app on my Nano. So I change to another tab. I also disabled my bluetooth for my phone as it could have been connecting to the Ledger Live app on my phone.

mikegogulski commented 3 years ago

The solution I found is to open the App for the chain you are trying to use on your Nano or X. You will need to confirm the transaction on your device.

Just tried this with MyEtherWallet on a Nano X and got the same failure, had to force-kill the browser. Unfortunately. Maybe your result helps point toward a solution, though.

antonioribeiro commented 3 years ago

Emptying the cache and hard reloading the page fixed it for me.

Screenshot 2021-01-09 at 00 55 21
mikegogulski commented 3 years ago

I've gone so far as to install Brave browser, which I've never used before, and try that. Same failure.

torncheesecake commented 3 years ago

I just had this issue with my Nano X and Brave. I found a few things I had issues with originally. I had to be in the Eth app on the ledger for metamask to connect and find my wallet. Then I had to turn on and off the contract option in the Eth settings on my ledger and then turn off bluetooth. Once all that was done the transaction would go through to the ledger and it asked for payment confirmation like normal.

oviis commented 3 years ago

what exactly is the fix here?, the issue is over 1year old!?! Is really Ledger Nano X and S so buggy, that you can not send any ETHEREUM Tokens from Ledger anymore. This so bad!!! I try to send Theta tokens from the Theta cold wallet https://wallet.thetatoken.org/wallet/tokens/theta, see the tokens there, but can not send them because of this Error: Failed to sign with Ledger device: U2F DEVICE_INELIGIBLE

Bought the Ledger Nano X 2 weeks ago and have the latest firmware 1.2.4-5 and Ethereum app 1.6.4

dkliman commented 3 years ago

what exactly is the fix here?, the issue have over 1year old!?! Is really Ledger Nano X and S so buggy, that you can not send any ETHEREUM Tokens from Ledger anymore. This so bad!!! I try to send Theta tokens from the Theta cold wallet https://wallet.thetatoken.org/wallet/tokens/theta, see the tokens there, but can not send them because of this Error: Failed to sign with Ledger device: U2F DEVICE_INELIGIBLE

Bought the Ledger Nano X 2 weeks ago and have the latest firmware 1.2.4-5 and Ethereum app 1.6.4

Have you tried turning on contract data in the eth app on the nano in its options?

alexander-nolan commented 3 years ago

Why isn't this being looked into?

oviis commented 3 years ago

what exactly is the fix here?, the issue have over 1year old!?! Is really Ledger Nano X and S so buggy, that you can not send any ETHEREUM Tokens from Ledger anymore. This so bad!!! I try to send Theta tokens from the Theta cold wallet https://wallet.thetatoken.org/wallet/tokens/theta, see the tokens there, but can not send them because of this Error: Failed to sign with Ledger device: U2F DEVICE_INELIGIBLE Bought the Ledger Nano X 2 weeks ago and have the latest firmware 1.2.4-5 and Ethereum app 1.6.4

Have you tried turning on contract data in the eth app on the nano in its options?

Yes, sure, the Contract Data selection is before, the error is popping up, for this you see exact the Information from the Theta Wallet that is not activated. Try as follows:

alexander-nolan commented 3 years ago

I initially got this to work on my laptop after struggling for days trying to get it to work on my desktop. It now has stopped working on my laptop and my tokens are now trapped because they're in a governance pool.

How can this have been allowed to go on for so long? How do I get my tokens back? Are any devs actually reading this thread?

oviis commented 3 years ago

open up a support Ticket on Ledger page, hopefully they come back to me Thanks for reaching out! Your ticket ID is: 742830

timjrobinson commented 3 years ago

I was getting this issue when trying to sign up to Oasis and DeFiSaver using my Ledger Nano X. I'm on Ubuntu 20.04 with the latest Ledger Live and Firmware/Versions

I had to do the following to fix this:

udevadm trigger
udevadm control --reload-rules

I often have to do this before my Ledger connects with Ubuntu 20.

I think opening the Ethereum app and having ledger detect it correctly, then leaving it open when visiting DefiSaver is what really mattered. If you can get to your Ethereum in ledger live then leave the Ethereum app open on your Ledger Nano then it should work on the website.

rawals1974 commented 3 years ago

I found a solution - and it's nuts. I was trying to no avail to stake $WHITE tokens and couldn't even move them to my Metamask. I followed all the contract data, suggestions, etc, but noticed something weird on the hardware wallet itself when I tried to make a Metamask transaction. I was viewing the Ethereum app on the tiny screen of my Ledger Nano X and it appeared I had to cycle thru a few commands to approve the transaction - manually, on the device itself.

When I initiated on Metamask and just waited, transactions were rejected. But When I initiated and then went into the Ethereum app, a "REVIEW TRANSACTION" screen appeared on the device itself (and nowhere else). I had to scroll right several times til I got an approve screen and had to hit both hardware buttons to select. And it worked.

Nuts. Even Ledger X support couldn't give me this solution.

kmb40 commented 3 years ago

I found a solution - and it's nuts. I was trying to no avail to stake $WHITE tokens and couldn't even move them to my Metamask. I followed all the contract data, suggestions, etc, but noticed something weird on the hardware wallet itself when I tried to make a Metamask transaction. I was viewing the Ethereum app on the tiny screen of my Ledger Nano X and it appeared I had to cycle thru a few commands to approve the transaction - manually, on the device itself.

When I initiated on Metamask and just waited, transactions were rejected. But When I initiated and then went into the Ethereum app, a "REVIEW TRANSACTION" screen appeared on the device itself (and nowhere else). I had to scroll right several times til I got an approve screen and had to hit both hardware buttons to select. And it worked.

Nuts. Even Ledger X support couldn't give me this solution.

+1 Had to actually enter and press with two thumbs on "Application Ready" screen before the transaction details would allow me to proceed and complete.

Update 4.23 - Open a separate tab in Chrome. Disconnect and reconnect the ledger to metamask. Then attempt transaction. Works every time but obviously tedious.

odyslam commented 3 years ago

Encountered the same, solution was to allow transactions from the settings of the ETH app.

alex-gee-77 commented 3 years ago

I was trying for 2h to complete a transaction with my Ledger Nano S with the same error messages than you. I tried it with Chrome and MS Edge and Metamask, 2 Computers, ...

The transaction I was trying was on BSC (Binance Smart Chain) and I could not imagine that I go into the ETH app on my Ledger to be succesful... but I was wrong... Finally I was able to complete the BSC transaction by going into the ETH app on the ledger.

Ledger needs to fix it - it's insane that it has not been fixed yet.

antonioribeiro commented 3 years ago

I'm now getting U2F DEVICE_INELIGIBLE everywhere.

Ledger Nano X Firmware 1.2.4-5

Note that, inside Ledger Live, buy/sell function works fine, but prices are exorbitant (a difference of 3,7% from the SDEX) because it's going through a partner (Coinify), it should use the Stellar DEX (my use case). Sorry in advance for the conspiracy theory, but could this be Ledger (the Company) forcing us to buy via their trading/money partners? I hope not, because this would be outrageous. This is a 2019 issue and it's real, keeps coming back and hurting a lot of users, will this never be really fixed?

Any other thoughts / fixes / hacks?

EDIT:

One of the websites works on Firefox. Also works fine on the Account Viewer on Chrome, as noted on this issue, which I'm unsure if can or cannot relate to it.

alexander-nolan commented 3 years ago

I got this to work by booting into Ubuntu. Pretty sure this is predominately a problem for Windows devices.

I don't think they have any intention of fixing this. I'm just going to boot into a live Ubuntu image when I want to make any transfers now.

SpacemanTrojan commented 3 years ago

Encountering the same issue with a brand new Nano X running latest firmware when trying to access any Stellar sites (Stellar.org, Stellarterm, Interstellar, etc). Tried both Windows and Mac, multiple browsers, multiple cords, reinstalling the Stellar app, wiping and resetting up the entire device...all to no luck.

I notice on Ledger Live that no matter how many times I install the latest Stellar app (3.1.1), I'm always prompted with an "Update Available" to 3.1.1 again. Suspect it's an issue with the app but honestly no idea. Any and all help welcome. I've submitted a ticket with Ledger; response pending.

harrydevarajah commented 3 years ago

On Nano S, you have to press both buttons once reviewed to confirm a send otherwise you'll get the error!

kiastorm commented 3 years ago

Getting this error on my Mac when trying to connect my Ledger Nano X to Brave Crypto Wallets

joselvelez commented 3 years ago

Failed to sign with Ledger device: U2F DEVICE_INELIGIBLE

I am constantly getting this error as well. Using Window 10 Pro on Brave with MetaMask. 50/50 chance it works. Unbelievable that this is still an going issue.

GvernonAug commented 3 years ago

lol what a piece of shit this is - still open after year

markovicd1020 commented 3 years ago

I was able to solve this issue buy selecting an app on my leger for the token I wanted to send, navigating to the settings and changing the "allow contract data in transactions" option from NOT ALLOWED to ALLOWED.

Hope this helps.

yannickvidal commented 3 years ago

This makes no sense but I managed to go past the issue by

DanielBeckDK commented 3 years ago

For windows users:

No matter what I did, I could not fix this issue on windows. So I followed this tutorial to create a bootable Ubuntu USB.

I booted a laptop from the ubuntu USB and I had no troubles using my ledger nano S in ubuntu. I spent days trying to get to some coins I had on there. It cost me a pretty penny not to be able to get to my coins when I needed to so I'll never use any Ledger device again, but this is a way to get to your coins.

AntoineMkr commented 3 years ago

The solution I found is to open the App for the chain you are trying to use on your Nano or X. You will need to confirm the transaction on your device.

I found out that the manager page of Ledger Live was kicking me out of the Eth app on my Nano. So I change to another tab. I also disabled my bluetooth for my phone as it could have been connecting to the Ledger Live app on my phone.

This worked for me !

mastyf commented 3 years ago

Worked for me on Firefox (Mac OS)

Chrome is broken

swaylock commented 3 years ago

Same problem as @antonioribeiro

I'm on Brave, all firmware and Ethereum to latest updates. I can't even send Eth peer to peer using metamask.

What's weird is that things worked fine up to a couple days ago -- now bam, all bricked.

Come on Ledger!! You got this! Are you able to reproduce? Contact me of you want me to walk you through the error sequence.

dvcrn commented 3 years ago

Same issue here since very recently. Use firefox as a workaround, seems to be an issue with chromium based browsers

Alexinko91 commented 3 years ago

I also temporarily solved it using firefox, as already written it must be a problem of chromium-based browsers.

maurodollinger commented 3 years ago

same problem here. I tried: update firmware, re-install apps, update ledger live, clean browser cache, added ledger live on privacy tab. All on Brave, not working I tried to install metamask on Firefox and I got an internal JSON-RCP error.

This is annoying really.

GOLDIAMOND83 commented 3 years ago

Same problem. POSSIBLE SOLUTION: https://support.ledger.com/hc/en-us/articles/360020871157-Connection-issues-with-MetaMask- It worked for me

swaylock commented 3 years ago

Honestly, opening a bridge b/w MetaMask and ledger live feels kind of icky.

Think I'll stick with using Firefox for now.