Keybase GUI Version: 4.1.0-20190612165948+952fee6c59
When trying to sign into a new Keybase profile on the Mac desktop client, I'm getting this error:

THERE WAS AN ERROR PROVISIONING
Secret store not functional: error while retrieving secret: Secret store error: No secret found for test_ss_tg45obsu Error code 218: GENERIC in method keybase.1.login.login
Each time, the 8 symbols after "test_ss_" are different. There is one account my computer remembers, which is unrecoverable, and I seemingly can't add my new account, so I'm unable to use the desktop client at all. I have tried deleting the app and reinstalling a few times.
Could you send a log please?
keybase log send
from the terminal.
I think I just sent a log. I'm just a keybase user, I don't know how to figure out what my log ID was...
Hm, I don't see anything...did you provide any feedback? It should have told you the Log ID after you submitted it. Something like
$ keybase log send
...
------------
Success! Your log ID is:
73aadc7107e3096bb010a71c
...
Ok there it goes: a33993265a5e4a8305ef3c1c
Thanks!
Thanks, we'll take a look.
FYI, I just updated mac OS from 10.10 to 10.14 and it solved this problem, so I'm now good.
I'm on 10.10, with no option to upgrade on my current hardware, and seeing an error that I think is equivalent. I'm hitting it on a new install when I try to run keybase login.
Should I start a new issue, or is it ok to repurpose this one? :)
I'll send the logs, just in case. EDIT: log id: 1eb1aa3f5cce188466ca361c
Going to suggest this be the canonical issue for this problem described as:
keybase login (after typing username for either), some version of this error:Secret store not functional: error while retrieving secret: Secret store error: No secret found for test_ss_** Error code 218: GENERIC in method keybase.1.login.login
- affects keybase desktop client on Mac OSX 10.10 (https://github.com/keybase/client/issues/19423#issue-491766326) and likely below this as well, and likely up to 10.13.x (https://github.com/keybase/client/issues/19469#issue-492075683), but resolved on 10.14+ (https://github.com/keybase/client/issues/18257#issuecomment-513491060)
- first reported on OSX Apr 27, 2019 (v3.2.2, apr 12, release notes) https://github.com/keybase/client/issues/17201 (seemingly related android edge-case issue on same day, occurring on linux terminal emulator app https://github.com/keybase/client/issues/17203)
If this applied to you, please react with :+1: to origin message above 馃檪 Thanks!
Great news! @Nock-zz found a solution in https://github.com/keybase/client/issues/19233#issuecomment-527363158! 馃帀
To restate:
KEYBASE_SECRET_STORE_FILE=1 keybase service (to run a headless service with the fix)keybase login from another terminal (i.e. leave the other process running in the first terminal, or background it if you know how)There might be a better way to have this perma-fixed, as you'll need to ensure your fixed keybase service is running in advance each time you restart.
Some changes related to secret were introduced right before this release was cut, including some logic related to isIOS and IsMobileAppType
go/libkb/secret_store_darwin.gov3.2.1...v3.2.2 diffhttps://github.com/keybase/client/compare/v3.2.1..v3.2.2#diff-6660f87d48194f1cd4f146f862423586
go/engine/scankeys.gov3.2.1...v3.2.2 diffhttps://github.com/keybase/client/compare/v3.2.1..v3.2.2#diff-3d7fa26459fc2d7c00d0b9b0845f2db1
To anyone with insight into this area of codebase (and the apparent workaround fix), do these look like candidates for something interesting?
Thanks for any attention anyone can give this! 馃檶
Hm. I thought I found a lead for a more permanent fix by editing the launchd file to tell it to run with an envvar like so from terminal:
$ defaults write ~/Library/LaunchAgents/keybase.service.plist EnvironmentVariables -dict-add KEYBASE_SECRET_STORE_FILE 1
But turns out that keybase app generates plist files each run and cleans them up during shutdown :/
BUT turns out we can set a global envvar for all services by running:
$ launchctl setenv KEYBASE_SECRET_STORE_FILE 1
This only works until a restart, but to get it working perpetually, use this instruction to create something like ~/Library/LaunchAgents/keybase.bugfix.plist that will set the envvar for all services on each reboot
https://support.shotgunsoftware.com/hc/en-us/articles/219042108-Setting-global-environment-variables-on-OS-X
(with this no need for anything in ~/.bashrc or any other terminal loading spots)
I found another way to set the environment variable (because I couldn't get the .plist to work):
Most helpful comment
I found another way to set the environment variable (because I couldn't get the .plist to work):
This will set the environment variable when you log in.