Legacy credentials in Snapcraft 7 give a confusing error message
Metadata
Current evaluation
Fixed legacy-credential logout handling in snapcore/snapcraft#3921 (commit c3d4c8999), allowing stale credentials to be cleared and login retried.
Resolution: closed resolved
Reason: Merged PR #3921 corrected logout behavior when legacy credentials were invalid, resolving the credential state that caused `snapcraft login` to fail.
Evaluated by: mr-cal-bot
No scores available.
Issue body
snapcraft
installed: 7.0.8 (7779)
Trying to resolve 'login' not working and figure out how to refresh the credential (as reported on bug #1980533)
$ snapcraft login
Cannot login with 'SNAPCRAFT_STORE_CREDENTIALS' set.
Recommended resolution: Unset 'SNAPCRAFT_STORE_CREDENTIALS' and try again.
but
$ echo $SNAPCRAFT_STORE_CREDENTIALS
$
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| stealth/space-bunny-alpha | — | closed resolved | Fixed legacy-credential logout handling in snapcore/snapcraft#3921 (commit c3d4c8999), allowing stale credentials to be cleared and login retried. | |
| stealth/space-bunny-alpha | — | closed resolved | Fixed legacy credential handling in merged snapcore/snapcraft PR #3921 (c3d4c8999), allowing logout to clear invalid credentials and users to refresh login. | |
| stealth/space-bunny-alpha | — | closed resolved | Fixed legacy credential handling in merged PR #3921 (c3d4c8999), allowing logout to clear invalid credentials so users can refresh login. | |
| stealth/space-bunny-alpha | — | closed resolved | Merged PR #6098 reworded the misleading SNAPCRAFT_STORE_CREDENTIALS login error, clarifying that the variable prevents login (commit ee69b79b1). | |
| qwen/qwen3.6-35b-a3b | — | — | Closed without comments or explicit resolution. The confusing error message regarding the empty SNAPCRAFT_STORE_CREDENTIALS variable was not addressed. | |
| qwen/qwen3.6-35b-a3b | — | — | Closed without resolution or comments, the report was likely abandoned or superseded by newer Snapcraft versions. No fix was implemented. |
Update history
| Date | Change |
|---|---|
| created |
Related work
-
Likely Fixed By:
snapcore/snapcraft#3921
(confidence 100%)
The merged PR fixed logout for invalid legacy credentials and was linked from the issue.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #1979068 Headless login fails in Snapcraft 7.0.7 | snapcraft (launchpad) | closed | Fixed by snapcraft#3805, which added support for configparser-based legacy credentials. | |
| #1856502 Obscure error message from snapcraft release when not logged in correctly | snapcraft (launchpad) | open | Snapcraft exposed a raw 401 macaroon error from release; commit 8a854a8de (#3907) now gives invalid legacy credentials an actionable login or export-login resolution. | |
| #3921 store: correctly logout when credentials are invalid for legacy | snapcraft | merged | Merged #3921 at da1766c, fixing logout by loading legacy credentials from the environment only when they are valid. |