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
When using screen on OSX keyring fails. keyring.backends._OS_X_API.Error: (-25308, "Can't fetch password from system") #302
Comments
|
Thanks for the report. I’m not sure what we can do if the screen context simulates a state in which keyring access is disallowed. Does the macOS built-in command-line client work in that context? |
|
No, it fails both direct in OSX Terminal (when running screen) and also through ssh (when running screen), if that is what you mean. |
|
I mean |
|
Sorry I misunderstood. Using screen and trying If I ask for a key I know is not there, it tells me that ok: |
|
It sounds to me like even the macOS security command can’t access the keychain under screen... which means it’s probably by design. You may wish to work with the developers of screen. If they can allow security to access the credentials, then we should be able to get key ring to do the same. |
|
I am unable to reproduce using:
As an aside, a lot of my users do see the error message you mentioned from time to time. They're not using screen. Once they see the error message, it comes up on all subsequent keyring calls, whether attempting to read from the system keychain or write to it. Rebooting fixes it. |
|
One thing that stands out to me from your error logs is this line: This reminds me of this old chestnut: #219 (comment) where the solution involved running |
|
@micahculpepper Thanks for attempting to replicate the issue. It does indeed sound like there's nothing that keyring can do to assist. But if someone does indeed discover more detail, don't hesitate to post here and we can re-open if appropriate. |
When uning screen, keyring fails password gets with:
keyring.backends._OS_X_API.Error: (-25308, "Can't fetch password from system")
The corresponding system log is:
The same code works when not attached to a screen with the system log:
The text was updated successfully, but these errors were encountered: