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

cannot open keyring: Specified keyring backend not available #43

Open
rabin-io opened this issue Sep 21, 2022 · 2 comments
Open

cannot open keyring: Specified keyring backend not available #43

rabin-io opened this issue Sep 21, 2022 · 2 comments

Comments

@rabin-io
Copy link

I get this message

An unexpected error occurred. Use DEBUG=true to show logs.
2022/09/21 09:25:55 cannot open keyring: cannot open keyring: Specified keyring backend not available
❯ export 2AMI_RING="Network Management"
export: not an identifier: 2AMI_RING

Running on Fedora 36 with KDE DE.

@endorama
Copy link
Owner

Hello @rabin-io , not sure why I never saw this issue before 😱 1 year and half is a long wait, are you still experiencing this issue?

It looks like there are 2 errors in your snippet.

This error

2022/09/21 09:25:55 cannot open keyring: cannot open keyring: Specified keyring backend not available

suggests that KDE is using a keyring backend that is not currently enabled. I suspect is because KDE uses KWallet and it is not enabled

2ami/keyring.go

Lines 12 to 16 in 27825ff

AllowedBackends: []keyring.BackendType{
keyring.SecretServiceBackend,
keyring.KeychainBackend,
keyring.WinCredBackend,
},

I'll add support for KWallet.

This error

❯ export 2AMI_RING="Network Management"
export: not an identifier: 2AMI_RING

looks like a problem in your shell, as you get a "not an identifier" error and that does not look related to this tool.

Could you share:

  • the shell you're running the command in
  • which 2ami version are you using?

@rabin-io
Copy link
Author

Thanks for looking into it, I tried again with Fedora 40 which runs KDE 6, and it seems to work out of the box, but it still I can't set an environment variable starting with a number.

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