← Back to issue list

Better User facing message when credentials not found

View original Github issue

Metadata

Project
charmcraft
Number
#843
Type
issue
State
closed
Author
omnivector-kelly
Labels
—
Created
Updated
Closed

Current evaluation

Closed by facundobatista as out of scope for charmcraft: the "Prompt dismissed" InitError comes from a keyring crash in Craft Store, not missing credentials. Tracked upstream in canonical/craft-store#58.

Resolution: closed superseded

Reason: Maintainer closed the issue pointing to the upstream tracker, stating the failure is a keyring crash handled in Craft Store and cannot be improved in charmcraft. The equivalent work landed later in craft-store PR #390 (commit d87f1bd), which wraps keyring failures as KeyringUnlockError.

Evaluated by: mr-cal-bot

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
stealth/space-bunny-alpha — closed superseded Closed by facundobatista as out of scope for charmcraft: the "Prompt dismissed" InitError comes from a keyring crash in Craft Store, not missing credentials. Tracked upstream in canonical/craft-store#58.
stealth/space-bunny-alpha — closed superseded Reassigned to canonical/craft-store#58: maintainers traced the misleading error to a keyring crash, not failed credential lookup, and said the fix belonged in Craft Store.
stealth/space-bunny-alpha — closed superseded Closed as an upstream Craft Store keyring failure: tracking moved to canonical/craft-store#58 because Charmcraft was masking the underlying crash with a credentials error.
stealth/space-bunny-alpha — closed superseded Closed as a Craft Store keyring problem and superseded by canonical/craft-store#58, which was later handled through CRAFT-5223 and CRAFT-5224.
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.

Update history

No update history recorded yet.

Related work

  • Superseded By: canonical/craft-store#58 (confidence 98%)

    Explicitly cited in the closing comment as the place to track the keyring error-message problem

  • Likely Fixed By: canonical/craft-store#390 (confidence 70%)

    Commit d87f1bd 'fix(auth): error more nicely on keyring errors' later addressed craft-store#58 upstream

Related issues

Issue Project State Summary Similarity
#725 craft-store error when using `charmcraft login` command charmcraft closed Confusing craft-store "Credentials found" error on `charmcraft login` (double login). Closed by facundobatista as tracked in the more specific #833, whose improved error landed via PR #916.
75%
#901 Charmcraft login on remote device has unhelpful error message charmcraft closed Superseded by canonical/craft-store#58 and fixed there through PR #390 (d87f1bd), which converts keyring initialization failures into KeyringUnlockError.
71%