← Back to issue list

Cannot use charmcraft login

View original Github issue

Metadata

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

Current evaluation

Login failed over SSH ('Prompt dismissed'). Maintainer closed it pointing to Charmhub discourse instructions for authenticating in remote environments; no code change.

Resolution: closed not a bug

Reason: facundobatista closed the issue with a single comment linking the 'How to authenticate charmcraft in remote environments' Discourse guide, indicating the interactive browser-less login flow simply does not apply to headless SSH sessions rather than a charmcraft defect. No fixing PR or commit was referenced.

Evaluated by: mr-cal-bot

No scores available.

Issue body

I connect to this sytem over ssh. When running charmcraft login I get the following output: ``` /home/useranme>charmcraft login charmcraft internal error: InitError('Failed to create the collection: Prompt dismissed..') Full execution log: '/home/username/snap/charmcraft/common/cache/charmcraft/log/charmcraft-20220823-182646.727404.log' [useranme@nuc01]22-08-23 6:26PM: /home/username>charmcraft login --verbose Starting charmcraft version 2.0.0 Logging execution to '/home/username/snap/charmcraft/common/cache/charmcraft/log/charmcraft-20220823-182651.647128.log' charmcraft internal error: InitError('Failed to create the collection: Prompt dismissed..') Full execution log: '/home/username/snap/charmcraft/common/cache/charmcraft/log/charmcraft-20220823-182651.647128.log' [useranme@nuc01]22-08-23 6:26PM: /home/username/ > ``` Charmcraft Info: ``` [username@nuc01]22-08-23 6:31PM: /home/username>charmcraft version 2.0.0 [username@nuc01]22-08-23 6:31PM: /home/username>snap info charmcraft name: charmcraft summary: The charming tool publisher: Canonical✓ store-url: https://snapcraft.io/charmcraft license: Apache-2.0 description: | Charmcraft enables charm creators to build, publish, and manage charmed operators for Kubernetes, metal and virtual machines. commands: - charmcraft snap-id: gcqfpVCOUvmDuYT0Dh5PjdeGypSEzNdV tracking: latest/stable refresh-date: 14 days ago, at 22:56 UTC channels: latest/stable: 2.0.0 2022-08-01 (1033) 59MB classic latest/candidate: 2.0.0 2022-07-18 (1033) 59MB classic latest/beta: 2.0.0 2022-07-12 (1033) 59MB classic latest/edge: 2.0.0+23.g6418a58 2022-08-18 (1068) 59MB classic 2.x/stable: 2.0.0 2022-08-01 (1033) 59MB classic 2.x/candidate: 2.0.0 2022-07-18 (1033) 59MB classic 2.x/beta: 2.0.0 2022-07-12 (1033) 59MB classic 2.x/edge: ↑ 2.0/stable: 2.0.0 2022-08-01 (1033) 59MB classic 2.0/candidate: 2.0.0 2022-07-18 (1033) 59MB classic 2.0/beta: 2.0.0 2022-07-12 (1033) 59MB classic 2.0/edge: ↑ 1.x/stable: 1.7.1 2022-06-09 (978) 59MB classic 1.x/candidate: 1.7.1 2022-06-08 (978) 59MB classic 1.x/beta: ↑ 1.x/edge: ↑ 1.7/stable: 1.7.1 2022-06-09 (978) 59MB classic 1.7/candidate: 1.7.1 2022-06-08 (978) 59MB classic 1.7/beta: ↑ 1.7/edge: ↑ 1.6/stable: 1.6.0 2022-04-20 (904) 59MB classic 1.6/candidate: 1.6.0 2022-04-13 (904) 59MB classic 1.6/beta: ↑ 1.6/edge: ↑ 1.5/stable: 1.5.0 2022-04-13 (834) 59MB classic 1.5/candidate: ↑ 1.5/beta: ↑ 1.5/edge: ↑ installed: 2.0.0 (1033) 59MB classic ```

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha — closed not a bug Login failed over SSH ('Prompt dismissed'). Maintainer closed it pointing to Charmhub discourse instructions for authenticating in remote environments; no code change.
stealth/space-bunny-alpha — closed not a bug Login failed over SSH with "Prompt dismissed"; maintainer closed it pointing to Charmhub discourse instructions for remote-environment authentication — no code fix.
stealth/space-bunny-alpha — closed not a bug Closed as an authentication-workflow issue: the maintainer linked remote-environment login instructions for SSH users; no code fix was cited.
qwen3.6-35b-a3b-mtp-q6 — — Closed as a support request. The SSH login failure was resolved by directing the user to official documentation for remote authentication. No code changes were required.
qwen/qwen3.6-35b-a3b — — charmcraft login failures over SSH were closed. Maintainers directed the user to official documentation for remote authentication, confirming the prompt dismissal error stems from standard SSH session limitations rather than a code defect.
qwen3.6-35b-a3b-mtp-q6 — — Closed as a usage issue. Maintainer directed the author to official documentation for authenticating charmcraft in remote SSH environments, resolving the prompt dismissal error.

Update history

No update history recorded yet.

Related work

  • Related To: canonical/charmcraft#672 (confidence 80%)

    Prior report of login failing on a host with no usable keyring; workaround there was exported CHARMCRAFT_AUTH credentials, the same remote/headless authentication scenario.

  • Related To: canonical/charmcraft#192 (confidence 45%)

    Discusses the design of the `charmcraft login` command, whose interactive-only behaviour makes it unusable over SSH.

Related issues

Issue Project State Summary Similarity
#672 charmcraft 1.4.0: impossible to login to charmhub charmcraft closed Closed as intended behavior: the headless remote host had no local keyring, so Charmcraft could not persist credentials; exporting credentials was the supported workaround.
83%
#759 charmcraft login produces an error charmcraft closed Closed as superseded by #833, which improved the double-login error and recommended `charmcraft logout`; the follow-up was resolved by merged PR #916.
76%
#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%
#668 `charmcraft status` should work without needing to log in charmcraft closed Closed by facundobatista (2022-02-16) as out of Charmcraft's hands: `status` is backed by Charmhub APIs, which require authentication. No code change made; login remains mandatory.
74%
#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.
72%
#719 [1.5.0] Charmcraft login not finding keyring charmcraft closed Closed as a headless keyring/session configuration issue; running Charmcraft in dbus-run-session with gnome-keyring unlocked made login succeed. No code fix was recorded.
71%
#810 Confusing output from `charmcraft login` charmcraft closed Superseded by #833 and resolved by merged PR #916, which clarified that stored credentials may be invalid and advised users to log out before logging in again.
71%