snapcraft register-key timeout
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Snapcraft |
New
|
Undecided
|
Unassigned |
Bug Description
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:/
Email: email_address@here
Password:
We strongly recommend enabling multi-factor authentication: https:/
Registering key ...
error: cannot sign assertion: cannot sign using GPG: /usr/bin/gpg --personal-
Sorry, an error occurred in Snapcraft:
Command '['snap', 'export-key', '--account=
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/
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/
2024-05-07 16:42:33.401 Raw pre-parsed sysargs: args={'help': False, 'verbose': False, 'quiet': False, 'verbosity': 'trace', 'version': False} filtered=
2024-05-07 16:42:33.401 General parsed sysargs: command=
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(
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
NOTE: This is using a SSH session. I have executed `export GPG_TTY=$(tty)` in the session beforehand.
Running the command directly in a GUI shell shows the key passphrase window and it works.