# Failed to store token in OS password management system

**URL:** <https://community.amazondeveloper.com/t/failed-to-store-token-in-os-password-management-system/29201>\
**Category:** Q&A\
**Tags:** vega-sdk\
**Created:** [September 22, 2026, 12:50am UTC](https://community.amazondeveloper.com/t/failed-to-store-token-in-os-password-management-system/29201 "2026-09-22T00:50:28Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![antics](https://avatars.discourse-cdn.com/v4/letter/a/e99b99/32.png) [@antics](https://community.amazondeveloper.com/u/antics)\
**Post date:** [September 22, 2026, 12:50am UTC](https://community.amazondeveloper.com/t/failed-to-store-token-in-os-password-management-system/29201/1 "2026-09-22T00:50:28Z")

</div>

Active SDK Version: 0.24.12112  
Vega CLI Version: 1.3.4

Attempting to authenticate using **vega devmode login.** The browser automatically opens with the code to complete authentication but after selecting allow I get the following message:

Error: Failed to save authentication token: failed to save access token data: failed to unlock correct collection ‘/org/freedesktop/secrets/aliases/default’: failed to store token in OS password management system

![vega](https://d3mq594dkmpl37.cloudfront.net/original/2X/a/ac6690050633e555c1c97a639c8b3687474fa799.png)

---

<div class="post-metadata">

**Author:** ![Amz\_Rsk](https://dhm3gbtzu79o6.cloudfront.net/user_avatar/community.amazondeveloper.com/amz_rsk/32/499_2.png) [@Amz\_Rsk](https://community.amazondeveloper.com/u/Amz_Rsk)\
**Post date:** [September 22, 2026, 3:05pm UTC](https://community.amazondeveloper.com/t/failed-to-store-token-in-os-password-management-system/29201/3 "2026-09-22T15:05:13Z")

</div>

Hello @antics ,

Our team is check on this issue.  
We will provide an update soon.

Thanks,  
Rohit

---

<div class="post-metadata">

**Author:** ![Efren\_Aguilar](https://avatars.discourse-cdn.com/v4/letter/e/bc79bd/32.png) [@Efren\_Aguilar](https://community.amazondeveloper.com/u/Efren_Aguilar)\
**Post date:** [September 22, 2026, 5:46pm UTC](https://community.amazondeveloper.com/t/failed-to-store-token-in-os-password-management-system/29201/4 "2026-09-22T17:46:49Z")

</div>

Hi @antics,

Thanks for the report and the screenshot. The key part of your error is:

> failed to unlock correct collection ‘/org/freedesktop/secrets/aliases/default’

This tells us the login itself succeeded — the browser flow and token exchange worked — but the CLI could not save the token because your machine’s OS credential store (the freedesktop Secret Service, e.g. GNOME Keyring / KWallet on Linux) could not be unlocked. The CLI stores credentials only in the OS keyring (never on disk), so when the keyring is unavailable or locked, login can’t finish.

This is almost always an environment setup issue on the Linux side rather than a problem with the credentials themselves. A few things to try:

1. Make sure a Secret Service provider is installed and running

- Debian/Ubuntu: `sudo apt install gnome-keyring`
- Fedora/RHEL: `sudo dnf install gnome-keyring`
- KDE users can use `kwalletmanager` instead.

Then confirm the daemon is running for your session (for GNOME Keyring, gnome-keyring-daemon should be active).

1. Ensure your default keyring exists and is unlocked

- Open Passwords and Keys and check that you have a default keyring (often named Login).
- If its password differs from your account password, it won’t auto-unlock at login. Right-click the keyring → Change Password and set it to match your login password so it unlocks automatically.

1. If you’re on a SSH / WSL / container session - These environments often have no D-Bus session or unlocked keyring available. You’ll need to start a D-Bus session and unlock your default keyring before running vega devmode login.

To help us pin down the exact cause and give you precise steps, could you share:

- Your Linux distribution and version
- Desktop environment (GNOME, KDE, etc.) or whether this is SSH/WSL/container
- Whether a keyring provider (gnome-keyring / kwallet) is installed

Thanks, Efren

---

<div class="post-metadata">

**Author:** ![amen](https://avatars.discourse-cdn.com/v4/letter/a/ee7513/32.png) [@amen](https://community.amazondeveloper.com/u/amen)\
**Post date:** [October 6, 2026, 4:05am UTC](https://community.amazondeveloper.com/t/failed-to-store-token-in-os-password-management-system/29201/6 "2026-10-06T04:05:23Z")

</div>

Hi @antics,

Following up on this - just checking whether you had a chance to try the keyring setup steps above, and whether you’re still blocked.

If you’re still seeing the error, could you share the details Efren asked about so we can pin down the exact cause and give you precise steps:

1. Your Linux distribution and version
2. Your desktop environment (GNOME, KDE, etc.) - or whether this is an SSH / WSL / container session
3. Whether a keyring provider (gnome-keyring / kwallet) is installed and running

Thanks,  
Aishwarya

---

<div class="post-metadata">

**Author:** ![amen](https://avatars.discourse-cdn.com/v4/letter/a/ee7513/32.png) [@amen](https://community.amazondeveloper.com/u/amen)\
**Post date:** [October 30, 2026, 5:59am UTC](https://community.amazondeveloper.com/t/failed-to-store-token-in-os-password-management-system/29201/7 "2026-10-30T05:59:39Z")

</div>

Hi @antics,

We haven’t received any updates on this thread for 24 days. We’re assuming the provided solution has resolved your issue, so we’ll be closing this post.

If you continue to experience this issue, please either:

- Reopen this post within 14 days, including your Linux distribution and version, your desktop environment (or whether this is an SSH / WSL / container session), and whether a keyring provider (gnome-keyring / kwallet) is installed and running
- Create a new bug report with all relevant details

Regards,  
Aishwarya

---

<div class="post-metadata">

**Author:** ![system](https://dhm3gbtzu79o6.cloudfront.net/user_avatar/community.amazondeveloper.com/system/32/5065_2.png) [@system](https://community.amazondeveloper.com/u/system)\
**Post date:** [November 13, 2026, 6:00am UTC](https://community.amazondeveloper.com/t/failed-to-store-token-in-os-password-management-system/29201/8 "2026-11-13T06:00:20Z")

</div>

Closed on November 13, 2026, 6:00am UTC

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
