2ami icon indicating copy to clipboard operation
2ami copied to clipboard

cannot open keyring: Specified keyring backend not available

Open rabin-io opened this issue 3 years ago • 2 comments

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.

rabin-io avatar Sep 21 '22 06:09 rabin-io

Hello @rabin-io , not sure why I never saw this issue before :scream: 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 https://github.com/endorama/2ami/blob/27825ffb2fec2482696072de21d02a7aecbf2251/keyring.go#L12-L16

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?

endorama avatar May 13 '24 08:05 endorama

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.

rabin-io avatar May 14 '24 00:05 rabin-io