← Back to issue list

Suggests regenerating credential without telling you how

View original Launchpad issue

Metadata

Project
snapcraft (launchpad)
Number
#1980533
Type
issue
State
open
Author
~seb128
Labels
craft-1181
Created
Updated
Closed
—

Current evaluation

Credential-error message lacked regeneration instructions; now Snapcraft's 401/candid errors tell users to run 'snapcraft login'/'export-login' (fixed in commit 8a854a8de, PR #3907).

Suggested action: close resolved

Reason: Pickaxe search confirms the original text 'Regenerate them and try again' (added in 1c4f5ed72) was replaced by commit 8a854a8de 'store: improve error message for 401 error (#3907)', whose message references this exact bug number. Current snapcraft/store/client.py now emits actionable resolutions: 'Run snapcraft login or export-login to obtain new credentials.' for legacy 401s (line ~328), 'Run export-login and update SNAPCRAFT_STORE_CREDENTIALS.' for exported credentials (line ~319), and 'Run \'snapcraft logout\' and \'snapcraft login\' to generate new credentials.' for candid credentials (line ~153) — precisely the 'which parameter/command to use' hint the reporter asked for. These are covered by unit tests in tests/unit/store/test_client.py:918 and :955, and documented in docs/how-to/publishing/authenticate.rst.

Evaluated by: mr-cal-bot

Impact: 25 Quick Win: 17 Complexity: 20 Confidence: 88 Actionability: 85

Issue body

snapcraft installed: 7.0.8 (7779) $ snapcraft release gnome-3-28-1804 160 stable/ubuntu-22.10 Provided credentials are no longer valid for the Snap Store. Recommended resolution: Regenerate them and try again. But I've no idea how to regenerate credentials, maybe the suggestion could include a more specific hit? (parameter to use for snapcraft, web documentation)

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha
Impact: 25
Quick Win: 17
Complexity: 20
Confidence: 88
Actionability: 85
close resolved Credential-error message lacked regeneration instructions; now Snapcraft's 401/candid errors tell users to run 'snapcraft login'/'export-login' (fixed in commit 8a854a8de, PR #3907).
stealth/space-bunny-alpha
Impact: 28
Quick Win: 22
Complexity: 10
Confidence: 93
Actionability: 88
close resolved Error for invalid Snap Store credentials suggested "Regenerate them and try again" with no instructions; now the resolution says "Run snapcraft login or export-login to obtain new credentials." Still open in Launchpad.
stealth/space-bunny-alpha
Impact: 30
Quick Win: 23
Complexity: 12
Confidence: 97
Actionability: 88
close resolved Credential-expiry error lacked regeneration steps; current Snapcraft explicitly recommends login or export-login.
stealth/space-bunny-alpha
Impact: 30
Quick Win: 22
Complexity: 15
Confidence: 99
Actionability: 88
close resolved Credential-expiry guidance now names export-login and SNAPCRAFT_STORE_CREDENTIALS; the unclear Snapcraft 7.0.8 message was fixed by PR #3907.
qwen/qwen3.8-27b
Impact: 15
Quick Win: 13
Staleness: 85
Complexity: 15
Confidence: 55
Support Request: 25
needs triage Request to improve the 'Provided credentials are no longer valid for the Snap Store' error from snapcraft release to explain how to regenerate credentials (e.g. snapcraft login or docs link). No maintainer response; inactive for ~4 years.
qwen/qwen3.6-35b-a3b
Staleness: 95
Complexity: 10
Confidence: 85
Support Request: 15
close stale Request to improve error messaging when Snap Store credentials expire. The suggestion lacks implementation details or documentation links. No maintainer response or activity in over 3 years.
qwen/qwen3.6-35b-a3b
Staleness: 92
Complexity: 15
Confidence: 85
Support Request: 10
close stale Request to improve the invalid credential error message by adding regeneration instructions or documentation links. Unaddressed for over four years with zero maintainer interaction.
qwen/qwen3.6-35b-a3b
Staleness: 75
Complexity: 20
Confidence: 85
Support Request: 60
needs triage User reports unclear error message when credentials expire, requesting specific regeneration instructions in the CLI output.
qwen3.6-35b-a3b-mtp-q6
Staleness: 90
Complexity: 15
Confidence: 85
Support Request: 10
needs triage Unassessed feature request to improve snapcraft error messaging when credentials expire. Suggests adding regeneration instructions to the error output. No maintainer response in over four years.

Update history

Date Change
created

Related work

  • Related To: snapcraft (launchpad)#1980534 (confidence 90%)

    Maintainer sergiusens redirected mvo's follow-up ('Cannot login with SNAPCRAFT_STORE_CREDENTIALS set') to LP: #1980534, which was the underlying legacy-credential bug and was fixed separately (PR #3921, c3d4c8999).

  • Likely Fixed By: snapcraft#3907 (confidence 82%)

    Commit 8a854a8de ('store: improve error message for 401 error (#3907)') references LP #1980533 and replaced the vague 'Regenerate them and try again' resolution with concrete login/export-login commands.

Related issues

Issue Project State Summary Similarity
#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.
70%