> Markdown version of https://tuna.am/en/docs/troubleshooting/errors/system-keyring-did-not-respond/. Documentation index: [llms.txt](https://tuna.am/en/llms.txt), full text in one file: [llms-full.txt](https://tuna.am/en/llms-full.txt). Any page is available as Markdown: append `.md` to its URL without the trailing slash.

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

```text
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](https://tuna.am/en/docs/troubleshooting/errors/not-logged-in.md).

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

```text
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](https://tuna.am/en/docs/guides/config-file.md), and the keyring is no longer needed:

  ```shell
  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](https://tuna.am/en/docs/troubleshooting/errors/system-keyring-is-unavailable.md). Learn more about the ways to sign in in [Sessions and API keys](https://tuna.am/en/docs/guides/sessions-and-api-keys.md).
