Skip to main content

system keyring did not respond, it may be locked and waiting for a password prompt that cannot be shown

WARN[12:00:00] Failed to read saved session: system keyring did not respond, it may be locked and waiting for a password prompt that cannot be shown; log in with `tuna login --insecure-storage` to keep it in a file

tuna CLI prints this warning when it can't read the saved session. The command keeps running without the session: if there's no other way to sign in, it exits with Not logged in.

On tuna login, the same cause looks like this, and the command exits:

Error: system keyring is unavailable: system keyring did not respond, it may be locked and waiting for a password prompt that cannot be shown; use --insecure-storage to store the session in a file or `tuna login --with-api-key` on servers

Causeโ€‹

tuna stores the session in the system keyring. On Linux, that's Secret Service: GNOME Keyring, KWallet, KeePassXC. A locked keyring asks for the password in a window of the graphical session. If you work over SSH, you can't see that window, and the keyring doesn't respond.

As of tuna-cli 0.43.0, the CLI waits 20 seconds for the keyring and prints this error. Earlier versions hung without any output.

What to doโ€‹

  • Unlock the keyring in the graphical session and run the command again.

  • On a server or over SSH, log in with the --insecure-storage flag. The session is saved to credentials.json next to the config file, and the keyring is no longer needed:

    tuna login --insecure-storage
  • For a server that runs unattended, you can save an API key instead of a session: tuna login --with-api-key.

If the system has no keyring at all, the error is different โ€” system keyring is unavailable. Learn more about the ways to sign in in Sessions and API keys.