← Back to issue list

ugly error when failed to sign because of wrong password

View original Launchpad issue

Metadata

Project
snapcraft (launchpad)
Number
#1631407
Type
issue
State
open
Author
~elopio
Labels
store
Created
Updated
Closed

Current evaluation

Verbose GPG error shown when snapcraft sign-build fails after 3 wrong passphrases. The command was migrated in #6228 and now raises a cleaner SignBuildAssertionError, but the issue remains open with no maintainer response.

Suggested action: needs triage

Reason: The issue is 10 years old with zero comments and no labels, so it has never been triaged. However, the sign-build command was migrated in #6228 and now raises a cleaner SignBuildAssertionError (snapcraft/store/errors.py:220) instead of the raw GPG output, so a maintainer should verify whether the original ugly error is still reproducible before closing.

Impact: 20 Quick Win: 16.0 Staleness: 80 Complexity: 20 Confidence: 55 Support Request: 10

Issue body

If I try to sign a snap, but fail the password three times, I get back this error: error: cannot sign assertion: cannot sign assertion: cannot sign using GPG: /usr/bin/gpg --personal-digest-preferences SHA512 --default-key 0x993DD0E6F134F4FC5EC9498E212D9EBF5179F05F --detach-sign failed: exit status 2 ("gpg: Invalid passphrase; please try again ...\ngpg: Invalid passphrase; please try again ...\ngpg: no default secret key: bad passphrase\ngpg: signing failed: bad passphrase\n") Failed to sign build assertion for u1test20161006_0.1_all.snap. To reproduce: snapcraft sign-build test.snap, and enter the wrong password three times.

Evaluation history

Date Model Scores Action Summary
qwen/qwen3.8-27b
Impact: 20
Quick Win: 16.0
Staleness: 80
Complexity: 20
Confidence: 55
Support Request: 10
needs triage Verbose GPG error shown when snapcraft sign-build fails after 3 wrong passphrases. The command was migrated in #6228 and now raises a cleaner SignBuildAssertionError, but the issue remains open with no maintainer response.
qwen/qwen3.6-35b-a3b
Staleness: 95
Complexity: 20
Confidence: 85
Support Request: 10
needs triage Reports a verbose GPG error when entering a wrong password three times during snap signing. The issue is nearly 10 years old with no maintainer response or comments.
qwen/qwen3.6-35b-a3b
Staleness: 98
Complexity: 25
Confidence: 85
Support Request: 10
close stale Request for cleaner GPG error messages when snap signing fails due to an incorrect password. The issue is nearly 10 years old with zero maintainer engagement or comments.
qwen3.6-35b-a3b-mtp-q6
Staleness: 95
Complexity: 25
Confidence: 75
Support Request: 15
needs triage Snapcraft sign-build displays verbose GPG error messages when a wrong passphrase is entered multiple times. The issue is unlabelled, has no maintainer comments, and has been inactive for nearly three years.
qwen3.6-35b-a3b-mtp-q6
Staleness: 98
Complexity: 20
Confidence: 85
Support Request: 5
close stale snapcraft sign-build shows a verbose, confusing GPG error after three incorrect password attempts. The issue remains open with zero comments and over two years of inactivity, requiring triage to improve error messaging.

Update history

No update history recorded yet.

Related work

  • Likely Fixed By: snapcraft (launchpad)#6228 (confidence 60%)

    Migrated sign-build command to raise SignBuildAssertionError on CalledProcessError, replacing the raw GPG error output reported in the issue.

Related issues

No related issues found above the similarity threshold.