Better User facing message when credentials not found
Metadata
Current evaluation
Closed as superseded. The credential error originates from the Craft Store library's keyring handling, not charmcraft. Tracking moved to canonical/craft-store#58 for upstream resolution.
Suggested action: —
No scores available.
Issue body
Example:
`charmcraft upload-resource my-charm resource --filepath=/blah`
outputs
`charmcraft internal error: InitError('Failed to create the collection: Prompt dismissed..')
Full execution log: /home/<username>/snap/charmcraft/common/cache/charmcraft/log/charmcraft-<datetime>.log`
We need to use --verbose to see the login problem. It would be nice to have the output surface the core issue to the front.
Example of verbose output:
`charmcraft upload-resource my-charm resource --filepath=/blah --verbose
Starting charmcraft version 2.0.0
Logging execution to '/home/<username>/snap/charmcraft/common/cache/charmcraft/log/charmcraft-<datetime>.log
Uploading resource directly from file '/blah'.
Starting to push '/blah'
Uploading... (--->)
Uploading... (<---)
Credentials not found. Trying to log in...
charmcraft internal error: InitError('Failed to create the collection: Prompt dismissed..')
Full execution log: '/home/<username>/snap/charmcraft/common/cache/charmcraft/log/charmcraft-<datetime>.log'`
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| qwen3.6-35b-a3b-mtp-q6 | — | — | Closed as superseded. The credential error originates from the Craft Store library's keyring handling, not charmcraft. Tracking moved to canonical/craft-store#58 for upstream resolution. | |
| qwen/qwen3.6-35b-a3b | — | — | Closed as superseded. The error originates from a crash in the Craft Store library's keyring system rather than a missing message. Tracking redirected to canonical/craft-store#58 for resolution. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Closed as superseded. The error originates from a crash in the underlying Craft Store keyring library, not charmcraft. Tracking moved to canonical/craft-store#58 for proper handling. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Closed as superseded. The credential prompt crash originates from the underlying Craft Store library's keyring system, not charmcraft. Redirected to canonical/craft-store#58 for tracking. |
Update history
No update history recorded yet.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #725 craft-store error when using `charmcraft login` command | charmcraft | closed | Closed as superseded by #833. The error triggers when charmhub credentials already exist. Maintainers acknowledged the confusing UX and planned a craft-store fix, but redirected tracking to the dedicated ticket. |