Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 536316

Summary: gkeys-gen: Failed to get a password
Product: Gentoo Hosted Projects Reporter: Johann Schmitz (ercpe) (RETIRED) <ercpe>
Component: gentoo-keysAssignee: Gentoo-keys project <gkeys>
Status: RESOLVED OBSOLETE    
Severity: normal CC: rhill, rich0, voyageur
Priority: Normal Keywords: InVCS
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Johann Schmitz (ercpe) (RETIRED) gentoo-dev 2015-01-11 15:04:36 UTC
Probably related to bug #536312:

after

    * Give the password for the key. (Pick a strong one)
        Please surf the internet, type on your keyboard, etc. 
        This helps the random number generator work effectively

pinentry pops up and i entered the passphrase twice, nothing happens. After a while the application stops with

 Gkey task results:
    
    Aborting... Failed to get a password.


Log with -D DEBUG: 

2015-01-11 15:59:04,534 gkeys-gen    DEBUG    Loggers initialized
2015-01-11 15:59:04,534 gkeys-gen    DEBUG    Main: run; Found action: gen-key
2015-01-11 15:59:04,534 gkeys-gen    DEBUG    MAIN: _action_genkey; setting gpghome destination: ~/gkeys-user/gpghome
2015-01-11 15:59:04,534 gkeys-gen    DEBUG    MAIN: _action_genkey; args= Namespace(action='gen-key', config=None, debug='DEBUG', destination=None, spec=None)
2015-01-11 15:59:11,084 gkeys-gen    INFO     MAIN: _action_genkey; create custom gpg directory: /home/johann/~/gkeys-user/gpghome
2015-01-11 15:59:11,322 gkeys-gen    INFO     MAIN: _action_genkey: Generating GPG key...
2015-01-11 16:00:54,778 gkeys-gen    DEBUG    MAIN: _action_genkey: GpgmeError: (7, 1, u'General error')
2015-01-11 16:00:54,778 gkeys-gen    DEBUG    MAIN: _action_genkey: Aborting... Failed to get a password.


Reproducible: Always
Comment 1 Richard Freeman gentoo-dev 2015-01-12 16:18:45 UTC
I was able to obtain this behavior by creating a fresh stage3 chroot, installing gkeys-gen, and running it.
Comment 2 Bernard Cafarelli gentoo-dev 2015-03-17 21:21:06 UTC
Most probably related to #536312 indeed, as setting the directory manually worked (with -d /home/voyageur/a here)
Comment 3 Brian Dolbec (RETIRED) gentoo-dev 2015-03-17 21:32:43 UTC
I have the directory setting properly working in git now.  But I have a few more things to fix/improve before the next release.

http://gitweb.gentoo.org/proj/gentoo-keys.git/commit/?id=dfe6fd48a50d5753127a3720259f10312822a39b
Comment 4 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2018-09-13 16:24:02 UTC
Package removed per last-rites.