← Back to issue list

Cannot generate new credentials (snapcraft 7.2.2->4)

View original Launchpad issue

Metadata

Project
snapcraft (launchpad)
Number
#1995488
Type
issue
State
open
Author
~sfljami
Labels
—
Created
Updated
Closed
—

Current evaluation

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.

Suggested action: needs triage

Reason: The transcript confirms export-login completed successfully; the following login command is expected to fail while SNAPCRAFT_STORE_CREDENTIALS is set, while unsetting it fails because no keyring is available. LP #1978518 was self-closed as working as designed, but this report has no labels or maintainer assessment and needs confirmation against the 7.2 implementation.

Evaluated by: mr-cal-bot

Impact: 28 Quick Win: 16 Complexity: 25 Confidence: 84 Actionability: 74

Issue body

OS: Ubuntu 20.04 Snapcraft: 7.2.4 (tested with 7.2.2, 7.2.3) Following: https://snapcraft.io/docs/snapcraft-authentication ``` jenkins@jenkins:~$ snapcraft export-login creds Enter your Ubuntu One e-mail address and password. If you do not have an Ubuntu One account, you can create one at https://snapcraft.io/account Email: foo@bar Password: Exported login credentials to 'creds' These credentials must be used on Snapcraft 7.2 or greater. jenkins@jenkins:~$ export SNAPCRAFT_STORE_CREDENTIALS=$(cat creds) jenkins@jenkins:~$ snapcraft login Cannot login with 'SNAPCRAFT_STORE_CREDENTIALS' set. Recommended resolution: Unset 'SNAPCRAFT_STORE_CREDENTIALS' and try again. Full execution log: '/var/lib/jenkins/.cache/snapcraft/log/snapcraft-20221102-091756.378016.log' ``` Log: ``` jenkins@jenkins:~$ cat /var/lib/jenkins/.cache/snapcraft/log/snapcraft-20221102-091756.378016.log 2022-11-02 09:17:56.378 Starting Snapcraft 7.2.4 2022-11-02 09:17:56.380 Storing credentials for 'snapcraft' on 'dashboard.snapcraft.io' in keyring 'auth MemoryKeyring'. 2022-11-02 09:17:56.380 Cannot login with 'SNAPCRAFT_STORE_CREDENTIALS' set. 2022-11-02 09:17:56.380 Recommended resolution: Unset 'SNAPCRAFT_STORE_CREDENTIALS' and try again. 2022-11-02 09:17:56.380 Full execution log: '/var/lib/jenkins/.cache/snapcraft/log/snapcraft-20221102-091756.378016.log' ``` Note: unsetting SNAPCRAFT_STORE_CREDENTIALS doesn't change anything. It's a build machine without gnome-keyring

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha
Impact: 28
Quick Win: 16
Complexity: 25
Confidence: 84
Actionability: 74
needs triage 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.
stealth/space-bunny-alpha
Impact: 45
Quick Win: 15
Complexity: 58
Confidence: 89
Actionability: 78
needs triage Headless Snapcraft 7.2.2–7.2.4 rejects login after export-login; the exact Ubuntu/Jenkins repro is untriaged, and unsetting SNAPCRAFT_STORE_CREDENTIALS reportedly does not help without gnome-keyring.
qwen3.6-35b-a3b-mtp-q6
Impact: 50
Quick Win: 30
Staleness: 85
Complexity: 40
Confidence: 60
Support Request: 20
needs triage Bug: snapcraft login fails when SNAPCRAFT_STORE_CREDENTIALS is set; never triaged, 1401 days old
qwen/qwen3.6-35b-a3b
Staleness: 98
Complexity: 25
Confidence: 90
Support Request: 15
close stale User reports snapcraft login failing with SNAPCRAFT_STORE_CREDENTIALS error on v7.2.4. Issue is 3.7 years old with no maintainer response or activity.
qwen/qwen3.6-35b-a3b
Staleness: 95
Complexity: 20
Confidence: 85
Support Request: 15
close stale Snapcraft 7.2.x fails to login using SNAPCRAFT_STORE_CREDENTIALS on systems without gnome-keyring. Issue is 3.7 years old with no maintainer response.
qwen3.6-35b-a3b-mtp-q6
Staleness: 95
Complexity: 20
Confidence: 85
Support Request: 15
close stale Login fails with SNAPCRAFT_STORE_CREDENTIALS set on Snapcraft 7.2.x. Reported over three years ago with zero maintainer interaction and no reproduction steps for modern versions.

Update history

Date Change
created

Related work

  • Related To: canonical/snapcraft#6098 (confidence 96%)

    Merged PR ee69b79b1 clarified that login is unnecessary and rejected when SNAPCRAFT_STORE_CREDENTIALS is set.

  • Related To: snapcraft (launchpad)#1978518 (confidence 90%)

    Reports the same login interaction with SNAPCRAFT_STORE_CREDENTIALS and was self-closed as working as designed.

Related issues

Issue Project State Summary Similarity
#1979068 Headless login fails in Snapcraft 7.0.7 snapcraft (launchpad) closed Fixed by snapcraft#3805, which added support for configparser-based legacy credentials.
72%