← Back to issue list

snapcraft register-key timeout

View original Launchpad issue

Metadata

Project
snapcraft (launchpad)
Number
#2065075
Type
issue
State
open
Author
~elvintech
Labels
craft-2880
Created
Updated
Closed
—

Current evaluation

register-key times out in SSH sessions when GPG cannot present a pinentry prompt; reproduced on Mint/Cinnamon, tracked as CRAFT-2880, with no fix evident in current code

Suggested action: keep open

Reason: The reporter received GPG "signing failed: Timeout", and a maintainer reproduced the problem on Mint/Cinnamon and explicitly tracked it under CRAFT-2880. Current register-key code still delegates directly to `snap export-key` without a pinentry or terminal fallback, and no resolving commit or release is identified.

Evaluated by: mr-cal-bot

Impact: 45 Quick Win: 17 Complexity: 58 Confidence: 93 Actionability: 88

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
stealth/space-bunny-alpha
Impact: 45
Quick Win: 17
Complexity: 58
Confidence: 93
Actionability: 88
keep open register-key times out in SSH sessions when GPG cannot present a pinentry prompt; reproduced on Mint/Cinnamon, tracked as CRAFT-2880, with no fix evident in current code
stealth/space-bunny-alpha
Impact: 52
Quick Win: 15
Complexity: 62
Confidence: 87
Actionability: 76
keep open register-key can hang in SSH sessions while snap export-key waits for GPG input. Maintainers reproduced it on Mint/Cinnamon and track CRAFT-2880; no fix is recorded.
stealth/space-bunny-alpha
Impact: 30
Quick Win: 6
Complexity: 62
Confidence: 83
Actionability: 55
needs triage Snapcraft 8.2.5 register-key fails when snap export-key invokes GPG with “signing failed: Timeout.” The report has no maintainer triage; a later unrelated verbosity parser issue is documented.
qwen3.6-35b-a3b-mtp-q6
Impact: 30
Quick Win: 18
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.

Update history

Date Change
created

Related work

  • Related To: craft#2880 (confidence 100%)

    A maintainer explicitly said the investigation is tracked internally as CRAFT-2880.

  • Related To: snapcraft (launchpad)#1816524 (confidence 85%)

    Another open report has the same register-key and snap export-key GPG pinentry or keyring failure.

Related issues

Issue Project State Summary Similarity
#1816524 snapcraft register-key fails snapcraft (launchpad) open register-key fails on 2.43.1: `snap export-key` dies with GPG 'Operation cancelled' plus a raw CalledProcessError traceback. Peers traced it to ~/.gnupg and pinentry issues; untriaged, no fix.
75%