-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add fix for error 191 on macOS to troubleshooting in README #44
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1012,6 +1012,42 @@ If the Ledger Nano S app crashes when you load it, there are two primary causes: | |
* Out of date firmware: If the Ledger Nano S app doesn't work at all, make sure you are running firmware | ||
version 1.5.5. | ||
|
||
### Error "Unexpected sequence number (expected 0, got 191)" on macOS | ||
|
||
If `tezos-client` on macOS intermittently fails with an error that looks like | ||
|
||
``` | ||
client.signer.ledger: APDU level error: Unexpected sequence number (expected 0, got 191) | ||
``` | ||
|
||
then your installation of `tezos-client` was built with an older version of HIDAPI that doesn't work well with macOS (see [#30](https://github.com/obsidiansystems/ledger-app-tezos/issues/30)). | ||
|
||
To fix this you need to get the yet-unreleased fixes from the [HIDAPI library](https://github.com/signal11/hidapi) and rebuild `tezos-client`. | ||
|
||
If you got HIDAPI from Homebrew, you can update to the `master` branch of HIDAPI like this: | ||
|
||
```shell | ||
$ brew install hidapi --HEAD | ||
``` | ||
|
||
Then start a full rebuild of `tezos-client` with HIDAPI's `master` branch: | ||
|
||
```shell | ||
$ brew unlink hidapi # remove the current one | ||
$ brew install autoconf autmake libtool # Just keep installing stuff until the following command succeeds: | ||
$ brew install hidapi --HEAD | ||
``` | ||
|
||
Finally, rebuild `ocaml-hidapi` with Tezos. In the `tezos` repository: | ||
|
||
```shell | ||
$ opam reinstall hidapi | ||
$ make all build-test | ||
$ ./tezos-client list connected ledgers # should now work consistently | ||
``` | ||
|
||
Note that you may still see warnings similar to `Unexpected sequence number (expected 0, got 191)` even after this update. The reason is that there is a separate, more cosmetic, issue in `tezos-client` itself which has already been fixed but may not be in your branch yet (see the [merge request](https://gitlab.com/tezos/tezos/merge_requests/600)). | ||
|
||
### Contact Us | ||
You can email us at [email protected] and request to join our Slack. | ||
We have several channels about baking and one specifically for our Ledger Nano S apps. | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
*automake