linear-cli icon indicating copy to clipboard operation
linear-cli copied to clipboard

keyring not working on ubuntu 22.04

Open mcschempp opened this issue 5 months ago • 11 comments

Bug

> $ bunx linear auth login                                                                                                                                                                                                               
? Enter your Linear API key › ************************************************
✗ Failed to login: No system keyring found. Use `--plaintext` to store credentials in the config file, or set `LINEAR_API_KEY`.

What should happen?

Should login without any error messages after pasting linear key.

What actually happens?

terminates login and shows error message shown above.

mcschempp avatar Jun 15 '26 08:06 mcschempp

Same here on 24.04

mezuzza avatar Jul 15 '26 04:07 mezuzza

thanks for the report. sorry this was botched. i don't currently have an headed ubuntu machine to figure it out on, but i would welcome a PR for this if anyone has the appetite to figure it out.

schpet avatar Jul 15 '26 04:07 schpet

also in case it's not clear, using an env var or the --plaintext flag should be a viable workaround until this gets fixed

schpet avatar Jul 15 '26 04:07 schpet

I was playing with this a bit. It looks like it's an issue with querying secret-tool. I suspect that it'd be sufficient to look for secret-tool on the path to determine availability. It's a small surface, so I'll see if I can get it done quickly.

The env var is reasonable and the plaintext thing does work, but I don't love storing passwords in plaintext even on my own computer.

mezuzza avatar Jul 15 '26 06:07 mezuzza

PR is up. Looking into it more, this was broken on Linux generally and it should be fixed. Let me know what you think of the PR. I did use AI for it, but it's pretty easy to verify and I was prompting the exact solution, not just asking for an arbitrary fix.

mezuzza avatar Jul 15 '26 22:07 mezuzza

@mezuzza awesome, thanks so much. will cut a release with this right now. note though that the npm based releases will not come out until i roll some credentials, so maybe grab a release 2.1.1 from https://github.com/schpet/linear-cli/releases once that's out (a few minutes hopefully) and if there's any issues here reopen or lmk

schpet avatar Jul 15 '26 23:07 schpet

I have a hacky thing pointing to my local fork installed right now. I'm waiting for the rollout to hit homebrew and then I can delete my local repo

mezuzza avatar Jul 15 '26 23:07 mezuzza

FYI i did a big rewrite, if any of you all run into issues with 3.0.0 on linux, please let me know so i can get a patch out

schpet avatar Oct 06 '26 16:10 schpet

Experiencing this bug on Ubuntu 22.04 on first time setup with 3.0.0

linear auth login
✗ Failed to login: No system keyring found
  Pass --plaintext to store the key in the credentials file, or set LINEAR_API_KEY.

Also noting that setting the key via env variable did not seem to solve the issue. Only workaround was by passing --plaintext

bitnahian avatar Oct 17 '26 04:10 bitnahian

@bitnahian my bad :(

i'll try and spin up a headed vm and sort this out when i get time. PRs welcome of course if you have the means to sort it out.

schpet avatar Oct 22 '26 14:10 schpet

All good. I'll see if i can repro and patch. Ty for all your efforts

bitnahian avatar Oct 24 '26 00:10 bitnahian