vechain / sync2

The next-generation VeChain wallet for all platforms
GNU Lesser General Public License v3.0
40 stars 32 forks source link

Sync2 + Ledger on Linux: "Wrong device" #240

Open sudoforge opened 2 years ago

sudoforge commented 2 years ago

I'm unable to sign (or even initiate) transactions due to the application failing to interact with the Ledger app. With the VeChain app open on my Ledger wallet, I'm getting a "Wrong Device" error, as can be seen from the screenshot below:

20220131T205834609

System information

➜ uname -srvm
Linux 5.16.4-arch1-1 #1 SMP PREEMPT Sat, 29 Jan 2022 19:08:13 +0000 x86_64

➜ pacman -Qi vechain-sync2-bin | head -5
Name            : vechain-sync2-bin
Version         : 2.0.3-1
Description     : Vechain Sync - Desktop
Architecture    : x86_64
URL             : https://github.com/vechain/sync2

Ledger information

Firmware version: 2.0.2
VeChain application version: 1.0.7

I'm not sure how to debug this further. No error messages are printed to the console when the application is started from the command line, and there isn't any sort of error message displayed in any of the Developer Tools tabs -- until I close the modal, of course, and then a JS error about the transaction being canceled is printed out:

Error: cancelled
    at app.js:1
    at vendor.js:15
    at Array.forEach (<anonymous>)
    at hide (vendor.js:15)
    at ne (vendor.js:15)
    at o.i (vendor.js:15)
    at ne (vendor.js:15)
    at o.Ti.t.$emit (vendor.js:15)
    at hide (app.js:1)
    at ne (vendor.js:15)
qianbin commented 2 years ago

Do you have another ledger? This error is reported when a non-matched(not previously imported) device connected.

sudoforge commented 2 years ago

Is there something specific about the physical device that would matter? I have several ledger devices, but the one I am attempting to use with this application is provisioned with the same seed (and thus, keys) that has previously been used with the application.

qianbin commented 2 years ago

the error message indicates the address(or say pub key) is not the one the app knows. you may re-link the device with sync app.

sudoforge commented 2 years ago

that... doesn't make sense.

i open the app, connect with my wallet, see my funds, and attempt to move them -- then get the error.

qianbin commented 2 years ago

The xpub is already stored in the sync app. That's to say, you can see the wallet and funds without connected to ledger device.