命令行客户端无法访问 MacOS Sonoma 上的 Ledger 设备

问题描述 投票:0回答:1

我正疯狂地尝试从 MacOS 的终端访问我的 Ledger Nano X(Sonoma 14.2.1,M2 芯片)。在我的旧机器(Ventura 13.2.1,英特尔芯片)上一切正常。在两台机器上访问 Ledger Live 都可以正常工作。但我需要命令行界面访问(基于 COSMOS SDK 的区块链)。这是我得到的错误:

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

在我的多通道虚拟机(Ubuntu 22.04.3 LTS)上,我得到的是:

Error: failed to generate ledger key: failed to retrieve device: ledger nano S: LedgerHID device (idx 0) not found. Ledger LOCKED OR Other Program/Web Browser may have control of device.

我遵循这条道路已经有一段时间了,阅读了很多有关 HID 问题的文章,在系统首选项中向终端授予了完整的完整磁盘访问权限和输入监控权限,就像官方 Ledger 支持网站上的建议以及其他遇到问题的人所建议的那样MacOS 上的一些 HID 设备。我什至用brew安装了hidapi。

hidtest 工具(brew 包附带)告诉我,我的 Ledger 已被检测到:

  Report Descriptor: (34 bytes)
0x06, 0x00, 0xff, 0x09, 0x0b, 0xa1, 0x01, 0x06, 0x00, 0xff, 
0x09, 0x0b, 0x15, 0x00, 0x26, 0xff, 0x00, 0x75, 0x08, 0x96, 
0x04, 0x00, 0x85, 0xe0, 0x81, 0x22, 0x76, 0x00, 0x40, 0x95, 
0x02, 0xb1, 0x01, 0xc0, 
Device Found
  type: 2c97 4011
  path: DevSrvsID:4294971231
  serial_number: 0001
  Manufacturer: Ledger
  Product:      Nano X
  Release:      201
  Interface:    0
  Usage (page): 0x1 (0xffa0)
  Bus type: 1 (USB)

毕竟……没有任何帮助。那么也许这里有人也遇到了这个具体问题并解决了?感谢每一个提示!

问候,库尔特

macos command-line-interface hid cosmos-sdk ledger-nano-s
1个回答
0
投票

我们已经看到了这个问题的发生,我们通过自己构建二进制文件并用旧版本替换

cosmos-ledger-go
依赖项来修复它。

尝试将其包含在

go.mod
文件中,无论您在何处构建二进制文件:

replace github.com/cosmos/ledger-cosmos-go => github.com/cosmos/ledger-cosmos-go v0.12.4

© www.soinside.com 2019 - 2024. All rights reserved.