Bug 1522594

Summary: Handoff [dbus-daemon // gnome-keyring-daemon] is delayed by _DBUS_DEFAULT_TIMEOUT_VALUE (25 seconds) prior to pinentry
Product: [Fedora] Fedora Reporter: Peter Blomgren <blomgren.peter>
Component: gnome-keyringAssignee: Matthias Clasen <mclasen>
Status: CLOSED EOL QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 27CC: alexl, caillon+fedoraproject, debarshir, gnome-sig, john.j5live, mclasen, rstrode, sandmann, stefw, walters
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-11-30 18:39:15 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Peter Blomgren 2017-12-06 04:23:57 UTC
Description of problem:

This is a long-standing annoyance (fedora 25?), and I decided to try to chase it down...

When decrypting a file [any size] using gpg2 from the command line, it takes 25 seconds (aka _DBUS_DEFAULT_TIMEOUT_VALUE) before the pinentry [of any flavor] launches.  

Looking at /var/log/messages is seems like the issue is with the handoff between gnome-keyring-daemon // dbus-daemon...

Version-Release number of selected component (if applicable):
gnome-keyring-3.20.1-3.fc27.x86_64

Additional components in play:
dbus-1.12.0-1.fc27.x86_64
pinentry-0.9.7-4.fc27.x86_64
gnupg2-2.2.3-1.fc27.x86_64

How reproducible:
ALWAYS

Steps to Reproduce:
1. gpg2 -d ~/small_file_to_decrypt.asc

Actual results:
1. 25 second delay
2. pinentry
3. [successful decryption]

Expected results:
1. pinentry
2. [successful decryption]

Additional info:
------------------------------------------------------------------
([FILE] /var/log/messages)

Dec  4 21:18:01 MyComputer dbus-daemon[2832]: [session uid=1000 pid=2830] Activating service name='org.freedesktop.secrets' requested by ':1.14' (uid=1000 pid=4965 comm="/usr/bin/pinentry-gnome3 --display :0 " label="unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023")

Dec  4 21:18:01 MyComputer gnome-keyring-daemon[1845]: The Secret Service was already initialized

Dec  4 21:18:01 MyComputer org.freedesktop.secrets[2832]: SSH_AUTH_SOCK=/run/user/1000/keyring/ssh

[[[ NOTICE 25 SECOND DELAY ]]]

Dec  4 21:18:26 MyComputer dbus-daemon[2832]: [session uid=1000 pid=2830] Activating service name='org.gnome.keyring.SystemPrompter' requested by ':1.14' (uid=1000 pid=4965 comm="/usr/bin/pinentry-gnome3 --display :0 " label="unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023")

Dec  4 21:18:26 MyComputer dbus-daemon[2832]: [session uid=1000 pid=2830] Successfully activated service 'org.gnome.keyring.SystemPrompter'

Dec  4 21:18:26 MyComputer gcr-prompter[4981]: GtkDialog mapped without a transient parent. This is discouraged.

------------------------------------------------------------------

([EXCERPT FILE] dbus/dbus-connection-internal.h)
/** default timeout value when waiting for a message reply, 25 seconds */
#define _DBUS_DEFAULT_TIMEOUT_VALUE (25 * 1000)

------------------------------------------------------------------
Keywords:
   25 second delay, gpg2, pinentry, dbus-daemon,
   gnome-keyring-daemon, org.gnome.keyring.SystemPrompter

Alternative description:
   gnome-keyring-daemon SLOW TO HAND OVER TO
   dbus-daemon (org.gnome.keyring.SystemPrompter)

------------------------------------------------------------------

Potentially related bug(s):
   https://bugzilla.redhat.com/show_bug.cgi?id=1320125

------------------------------------------------------------------

Problem reported here:

"gpg-agent prompt slow to show up"
  https://lists.gnupg.org/pipermail/gnupg-users/2015-November/054727.html
    https://lists.gnupg.org/pipermail/gnupg-users/2015-November/054733.html
      https://lists.gnupg.org/pipermail/gnupg-users/2015-November/054738.html
    https://lists.gnupg.org/pipermail/gnupg-users/2015-November/054736.html
      https://lists.gnupg.org/pipermail/gnupg-users/2015-November/054741.html

------------------------------------------------------------------

Comment 1 Ben Cotton 2018-11-27 17:54:06 UTC
This message is a reminder that Fedora 27 is nearing its end of life.
On 2018-Nov-30  Fedora will stop maintaining and issuing updates for
Fedora 27. It is Fedora's policy to close all bug reports from releases
that are no longer maintained. At that time this bug will be closed as
EOL if it remains open with a Fedora  'version' of '27'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora 27 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora, you are encouraged  change the 'version' to a later Fedora 
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

Comment 2 Ben Cotton 2018-11-30 18:39:15 UTC
Fedora 27 changed to end-of-life (EOL) status on 2018-11-30. Fedora 27 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
bug.

Thank you for reporting this bug and we are sorry it could not be fixed.