Skip to content
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

Error while writing data: -25291: No keychain is available. You may need to restart your computer.<…> #25

Closed
deyong84 opened this issue Jul 5, 2021 · 1 comment

Comments

@deyong84
Copy link

deyong84 commented Jul 5, 2021

This exception when i try to authentication using Face ID on iphone XR,
biometrict_storage : 1.1.0+1

Screen Shot 2021-07-05 at 10 24 50

please help.
thankyou.

@hpoul
Copy link
Collaborator

hpoul commented Jul 5, 2021

I doubt this is a problem with the plugin. You might want to check the device logs. Last time I came across that error message the log files revealed:

AppleKeyStore: operation failed (pid: 92 sel: 43 ret: e007c007 '-536363001')

I inquired with apple support at that time and their response was:

AppleKeyStore (AKS) is a kernel component that wrangles keys, including keys protected by the Secure Enclave (as are all Face ID keys). This error corresponds to “bad device key”, but that doesn’t tell us much. Somehow the device has got itself into a state where AKS is unable to unwrap a key, and it’s not at all clear how.

I’ve seen this problem before. It seems to crop up very rarely on user devices. AFAIK it has nothing to do with your code. Indeed, we have bugs on file for these symptoms that don’t involve any third-party code at all.

There’s two things you can do here:

  • You should file a bug about this, making sure to attached the sysdiagnose log.

https://developer.apple.com/bug-reporting/

It’s possible, although I admit that this possibility is unlikely, that the AKS team will be able to learn more about this problem from this log.

Please send me your bug number so that I can associate it with this incident.

  • On the workaround front, this is something I mentioned to earlier: The problem only seems to affect existing keys, so if you you delete and re-create the key you should be all set.

so if your problem is similar you either try to delete all keys and then set it again.. and if the problem persist contact apple support.

Unless there are more hints that this might be a bug in the plugin, i'll close the issue.

@hpoul hpoul closed this as completed Jul 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants