Skip to content

Flare Stake Tool Bug Report #27

@thyguy

Description

@thyguy

Flare Stake Tool Bug Report
Environment Details

Operating System: Pop!_OS
Node.js Versions Tested: v18.x, v16.x
Flare Stake Tool Versions Tested: 3.5.2, 3.4.0, 3.3.0
Hardware: Ledger Nano X
Error Code: 28160

Error Message
CopyError: Can not get address from ledger: Unknown Status Code: 28160, code 28160
Ledger Configuration

Ethereum app opened (not Flare app)
Blind signing enabled
Contract data allowed
Debug data allowed
Main screen of Ethereum app active during connection attempts

Troubleshooting Steps Attempted

USB/Device Permissions:

Created various udev rules for Ledger device
Added user to plugdev, dialout, and uucp groups
Verified device detection with lsusb
Device shows up correctly in system

System Dependencies:
bashCopysudo apt install build-essential libudev-dev libusb-1.0-0-dev
sudo apt install python3-dev python3-pip python3-venv

Node.js Environment:

Tested with Node.js v18.x
Downgraded to Node.js v16.x
Installed node-hid globally
Tested different versions of flare-stake-tool (3.5.2, 3.4.0, 3.3.0)

USB Connection:

Created specific udev rules for Nano X
Implemented WebUSB rules
Tested different USB ports
Verified correct permissions on /dev/hidraw* devices
Confirmed device is recognized by system

Ledger Live:

Installed latest version
Verified Ledger connectivity through Ledger Live works
Confirmed Ethereum app functionality in Ledger Live

Different Connection Methods:

Tried both BIP44 (Default) and Ledger Live derivation paths
Attempted Public Key method as alternative
Tested with different USB connection protocols

Current Status
The error persists across all attempted configurations and versions. The device is properly recognized by the system (lsusb shows the Ledger), but the flare-stake-tool consistently fails with error code 28160 when attempting to fetch addresses.
Files and Configurations Created

Ledger udev rules (/etc/udev/rules.d/20-ledger.rules):

Copy# Ledger Nano S/X
SUBSYSTEMS=="usb", ATTRS{idVendor}=="2c97", ATTRS{idProduct}=="0001|0004|0005|0015|0081|1011|1015|4011|4015|0011", TAG+="uaccess", TAG+="udev-acl", MODE="0666"

Nano X specific rules (/etc/udev/rules.d/91-nanoX.rules):

Copy# Ledger Nano X
SUBSYSTEMS=="usb", ATTRS{idVendor}=="2c97", ATTRS{idProduct}=="0004", TAG+="uaccess", MODE="0666"
SUBSYSTEMS=="usb", ATTRS{idVendor}=="2c97", ATTRS{idProduct}=="4011", TAG+="uaccess", MODE="0666"
System Groups
User is properly added to required groups: plugdev, dialout, uucp
Impact
Unable to use the flare-stake-tool with Ledger hardware wallet due to persistent connection errors, preventing access to staking and delegation functions through the CLI tool.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions