snapcraft register-key timeout
Metadata
Current evaluation
snapcraft register-key fails with GPG timeout error; issue is 849 days old with no maintainer engagement
Suggested action: close stale
Reason: The issue is 849 days old with zero maintainer engagement or comments. The GPG signing timeout error is likely a user-specific configuration issue (GPG agent not responding, network problems, or keyring issues) rather than a snapcraft bug. After 2+ years with no follow-up, there is no evidence the problem persists or is reproducible.
Impact:
30
Quick Win:
18.0
Staleness:
85
Complexity:
40
Confidence:
60
Support Request:
60
Issue body
I'm trying to follow the instructions for creating an Ubuntu Core model assertion but the register-key command doesn't work:
$ snapcraft register-key kiosk-model-key
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: email_address@here
Password:
We strongly recommend enabling multi-factor authentication: https://help.ubuntu.com/community/SSO/FAQs/2FA
Registering key ...
error: cannot sign assertion: cannot sign using GPG: /usr/bin/gpg --personal-digest-preferences SHA512 --default-key 0x9CE93AE8F32535693B6E7B6D20A8BBC6BD028FCA --detach-sign failed: exit status 2 ("gpg: signing failed: Timeout\ngpg: signing failed: Timeout\n")
Sorry, an error occurred in Snapcraft:
Command '['snap', 'export-key', '--account=EyLgeiBk4chQJ40ljhXjJvmlfdmRnw0C', 'kiosk-model-key']' returned non-zero exit status 1.
We would appreciate it if you anonymously reported this issue.
No other data than the traceback and the version of snapcraft in use will be sent.
Would you like to send this error data? (Yes/No/Always/View) [no]:
Additionally trying to get more verbose output both turns up the verbosity and exits saying no such option:
$ snapcraft register-key --verbosity=trace kiosk-model-key
2024-05-07 16:42:33.400 Starting snapcraft, version 8.2.5
2024-05-07 16:42:33.400 Logging execution to '/home/rob/.local/state/snapcraft/log/snapcraft-20240507-164233.400089.log'
2024-05-07 16:42:33.401 Raw pre-parsed sysargs: args={'help': False, 'verbose': False, 'quiet': False, 'verbosity': 'trace', 'version': False} filtered=['register-key', 'kiosk-model-key']
2024-05-07 16:42:33.401 General parsed sysargs: command='register-key' args=['kiosk-model-key']
2024-05-07 16:42:33.401 Configuring application...
2024-05-07 16:42:33.401 Preparing application...
2024-05-07 16:42:33.402 Command parsed sysargs: Namespace(key_name='kiosk-model-key')
2024-05-07 16:42:33.402 Build plan: platform=None, build_for=None
2024-05-07 16:42:33.402 Running snapcraft register-key on host
Usage: snapcraft register-key [OPTIONS] <key-name>
Try 'snapcraft register-key -h' for help.
Error: No such option: --verbosity
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| qwen3.6-35b-a3b-mtp-q6 |
Impact:
30
Quick Win:
18.0
Staleness:
85
Complexity:
40
Confidence:
60
Support Request:
60
|
close stale | snapcraft register-key fails with GPG timeout error; issue is 849 days old with no maintainer engagement | |
| qwen/qwen3.6-35b-a3b |
Staleness:
95
Complexity:
45
Confidence:
85
Support Request:
75
|
needs triage | Report of snapcraft register-key failing with a GPG timeout and unrecognized --verbosity flag. Open for over two years with zero maintainer interaction or labels, awaiting initial assessment. | |
| qwen/qwen3.6-35b-a3b |
Staleness:
95
Complexity:
40
Confidence:
75
Support Request:
20
|
close stale | Report of GPG timeout during snapcraft register-key and missing --verbosity flag. Issue is over 2 years old with no maintainer interaction or reproduction details. | |
| qwen3.6-35b-a3b-mtp-q6 |
Staleness:
95
Complexity:
45
Confidence:
85
Support Request:
20
|
close stale | GPG signing timeout and unhandled verbosity flag when running snapcraft register-key. No maintainer response in over two years. | |
| qwen3.6-35b-a3b-mtp-q6 |
Staleness:
95
Complexity:
30
Confidence:
85
Support Request:
40
|
close stale | GPG signing timeout during snapcraft register-key command. No maintainer response or follow-up details in over two years. |
Update history
No update history recorded yet.
Related work
-
Related To:
snapcraft#1816524
(confidence 50%)
Launchpad issue about snapcraft register-key failures
-
Related To:
snapcraft#1634803
(confidence 50%)
Launchpad issue about snapcraft register-key not using U1 SSO credentials
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #1816524 snapcraft register-key fails | snapcraft (launchpad) | open | snapcraft 2.43.1 register-key fails with GPG 'Operation cancelled' during snap export-key; 7.5 years old, no labels, zero comments, no maintainer activity; affected 2.x version is long deprecated. | |
| #1634803 snapcraft register-key doesn't use U1 SSO login credentials | snapcraft (launchpad) | open | register-key re-prompts for U1 SSO credentials even after a successful snapcraft login, tested on snapcraft 2.19. ~10 years old, unlabelled, 0 comments, no maintainer activity; a near-identical Launchpad bug is also open. |