Provide a better error description and suggest solution for the "double login" case
Metadata
Current evaluation
Improved the double-login error to warn that stored credentials may be invalid and recommend logging out first; merged in PR #916 via commit 3b54c459.
Resolution: closed resolved
Reason: PR #916 implemented the clearer guidance and explicitly fixed issue #833. It was merged into charmcraft by commit 3b54c459, with the change originating in commit 5e656275.
Evaluated by: mr-cal-bot
No scores available.
Issue body
Craft Store does not allow to "login" if it finds credentials in the keyring. Currently the received error is confusing:
```
craft-store error: Credentials found for 'charmcraft' on 'api.charmhub.io'.
```
Furthermore, when the user reads "credentials found" they move on and issue another store related command that may also fail because the credentials are expired! so they try to login again and ... (loop)
We should provide a better error and possible resolution:
```
Cannot login because credentials were found in your system (which may be no longer valid, though)
Recommended resolution: Please logout before login again
```
(and the original error should appear in the logs only)
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| stealth/space-bunny-alpha | — | closed resolved | Improved the double-login error to warn that stored credentials may be invalid and recommend logging out first; merged in PR #916 via commit 3b54c459. | |
| stealth/space-bunny-alpha | — | closed resolved | Improved the double-login error to explain that existing credentials may be invalid and recommend logging out first. Merged in PR #916 via commit 5e656275. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Closed without implementation or discussion. The proposed improved error message and logout prompt for the keyring credential conflict were not applied, indicating the issue was abandoned or superseded. | |
| qwen/qwen3.6-35b-a3b | — | — | Closed without implementation. The proposed improved error messaging and logout recommendation for keyring credential conflicts was abandoned. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Closed without implementation. The proposed improved error messaging and logout recommendation for conflicting keyring credentials was abandoned and never addressed. |
Update history
No update history recorded yet.
Related work
-
Likely Fixed By:
canonical/charmcraft#916
(confidence 100%)
Merged PR that added the clearer double-login error and logout recommendation.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #916 (charmhub) Provide a better error to the user on a login attempt when already having credentials (CRAFT-1269) | charmcraft | merged | Merged PR #916 in commit 3b54c459, improving the double-login error to explain that stored credentials may be invalid and recommend logging out; fixes #833. |