charmcraft login produces an error
Metadata
Current evaluation
Closed as superseded by issue #833. The duplicate login error will be improved with clearer guidance and suggested fixes. No code changes applied in this report.
Suggested action: —
No scores available.
Issue body
I was trying to login to charmstore
$ charmcraft login
/snap/charmcraft/904/lib/secretstorage/util.py:46: UserWarning: Passing unwrap= to .send_and_get_reply() is deprecated and will break in a future version of Jeepney.
return self._connection.send_and_get_reply(msg, unwrap=True)
craft-store error: Credentials found for 'charmcraft' on 'api.charmhub.io'.
Full execution log: '/home/erik/snap/charmcraft/common/cache/charmcraft/log/charmcraft-20220428-215907.462845.log'
That didn't work great....
$ cat /home/erik/snap/charmcraft/common/cache/charmcraft/log/charmcraft-20220428-220016.311075.log
2022-04-28 22:00:16.311 Starting charmcraft version 1.6.0
2022-04-28 22:00:16.311 Raw pre-parsed sysargs: args={'help': False, 'verbose': False, 'quiet': False, 'trace': False, 'project_dir': None} filtered=['login']
2022-04-28 22:00:16.311 General parsed sysargs: command='login' args=[]
2022-04-28 22:00:16.314 Command parsed sysargs: Namespace(bundle=None, channel=None, charm=None, export=None, permission=None, ttl=None)
2022-04-28 22:00:16.314 System details: OSPlatform(system='ubuntu', release='20.04', machine='x86_64'); Environment: DESKTOP_SESSION='gnome', XDG_CURRENT_DESKTOP='GNOME'
2022-04-28 22:00:16.472 craft-store error: Credentials found for 'charmcraft' on 'api.charmhub.io'.
2022-04-28 22:00:16.472 Full execution log: '/home/erik/snap/charmcraft/common/cache/charmcraft/log/charmcraft-20220428-220016.311075.log'
But
$ charmcraft names
.... threw me login browser.
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| qwen3.6-35b-a3b-mtp-q6 | — | — | Closed as superseded by issue #833. The duplicate login error will be improved with clearer guidance and suggested fixes. No code changes applied in this report. | |
| qwen/qwen3.6-35b-a3b | — | — | Closed as superseded. The charmcraft login credential conflict is tracked in issue #833, which will improve the error message and recommend running charmcraft logout to resolve the double-login state. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Closed in favor of issue #833 to track improvements for handling duplicate login credentials. Error messaging and resolution guidance for existing tokens will be addressed separately. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Closed as superseded. Issue #833 tracks improving the error message and suggesting a fix for the duplicate credential login case. Existing credentials blocked re-authentication, causing a cryptic failure. |
Update history
No update history recorded yet.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #810 Confusing output from `charmcraft login` | charmcraft | closed | Reported confusing charmcraft login error when credentials already exist. Team agreed to improve messaging to prompt users to logout first. Issue closed and superseded by tracking issue #833 to implement the fix. | |
| #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. |