← Back to issue list

Headless login fails in Snapcraft 7.0.7

View original Launchpad issue

Metadata

Project
snapcraft (launchpad)
Number
#1979068
Type
issue
State
closed
Author
~mbeierl
Labels
craft-1127
Created
Updated
Closed

Current evaluation

Fixed by snapcraft#3805, which added support for configparser-based legacy credentials.

Resolution: closed resolved

Reason: Merged PR snapcraft#3805 resolved the regression in commit 515461e1f by adding support for configparser credentials; follow-up PR #3808 refined login handling.

Evaluated by: mr-cal-bot

No scores available.

Issue body

Using snapcraft in a headless environment requires the use of snapcraft login. Since upgrading to 7.0.7 the following message is displayed when attempting login: Traceback (most recent call last): File "/snap/snapcraft/7717/bin/snapcraft", line 8, in <module> sys.exit(run()) File "/snap/snapcraft/7717/lib/python3.8/site-packages/snapcraft/cli.py", line 188, in run dispatcher.run() File "/snap/snapcraft/7717/lib/python3.8/site-packages/craft_cli/dispatcher.py", line 406, in run return self._loaded_command.run(self._parsed_command_args) File "/snap/snapcraft/7717/lib/python3.8/site-packages/snapcraft/commands/account.py", line 115, in run store.StoreClientCLI().login() File "/snap/snapcraft/7717/lib/python3.8/site-packages/snapcraft/commands/store/client.py", line 187, in login credentials = self.store_client.login( File "/snap/snapcraft/7717/lib/python3.8/site-packages/snapcraft/commands/store/_legacy_account.py", line 149, in login raise NotImplementedError("Cannot login with legacy") NotImplementedError: Cannot login with legacy

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha — closed resolved Fixed by snapcraft#3805, which added support for configparser-based legacy credentials.
stealth/space-bunny-alpha — closed resolved Headless login was fixed by canonical/snapcraft#3794 (commit 7194ef18d), restoring legacy-login support through craft-store authorization and existing Snapcraft credentials.
qwen/qwen3.6-35b-a3b — — Closed without resolution or fix details. Reported a NotImplementedError during headless login in Snapcraft 7.0.7 caused by legacy authentication handling.
qwen/qwen3.6-35b-a3b — — Closed without resolution. The headless login failure in Snapcraft 7.0.7 raising NotImplementedError was abandoned due to prolonged inactivity.

Update history

Date Change
created

Related work

  • Likely Fixed By: snapcraft#3805 (confidence 96%)

    Commit 515461e1f added support for the legacy configparser credential format.

  • Related To: snapcraft#3808 (confidence 85%)

    Follow-up commit 7e6ef4514 refined login behavior for exported credentials.

Related issues

Issue Project State Summary Similarity
#1980534 Legacy credentials in Snapcraft 7 give a confusing error message snapcraft (launchpad) closed Fixed legacy-credential logout handling in snapcore/snapcraft#3921 (commit c3d4c8999), allowing stale credentials to be cleared and login retried.
78%
#1995488 Cannot generate new credentials (snapcraft 7.2.2->4) snapcraft (launchpad) open Snapcraft 7.2 headless CI exports credentials successfully, then login rejects the documented environment-variable workflow; with no keyring or maintainer response, it needs triage.
72%