[pkg-gnupg-maint] Bug#833596: Bug#833596: systemd user service {gpg-agent, dirmngr} breaks GNOME session startup

Daniel Kahn Gillmor dkg at fifthhorseman.net
Wed Aug 10 04:12:27 UTC 2016


Control: tags 833596 + moreinfo unreproducible

Hi Zack--

On Sat 2016-08-06 13:58:18 -0400, Stefano Zacchiroli wrote:
>> > On Fri, Aug 05, 2016 at 12:41:18PM -0400, Daniel Kahn Gillmor wrote:
>> >> On desktop systems (where i'd expect the majority of secret key access
>> >> happens), for folks who are running systemd, i recommend enabling the
>> >> systemd user services, as documented in
>> >> /usr/share/doc/{gnupg-agent,dirmngr}/README.Debian :
>> >> 
>> >>   systemctl --user enable gpg-agent
>> >>   systemctl --user enable dirmngr
>
> OTOH, doing this inhibited a proper start of my GNOME session at next
> login: only Nautilus started (I can tell because I've it handle my
> desktop icons) and I could use it to browse the filesystem, but GNOME
> Shell didn't see to be running.  Reverting the above with "disable" [*]
> fixed the issue, and at next login GNOME session started properly,
> including GNOME Shell.
>
> [...] my package mix is kinda unusual at present: Debian testing +
> hand-picked gpg from experimental.

i've now tried to replicate this and failed :(

My replication steps were:

 * new, fairly minimal debian testing installation (kvm guest, using
   -graphics sdl)

 * apt install gnome-core xserver-xorg xserver-xorg-video-qxl 

 * apt install -t experimental gnupg dirmngr gnupg-l10n

 * reboot for clean machine state and see that the gdm login screen
   appears automatically

 * graphical login as a non-privileged user

 * open Gnome Terminal

 * systemctl --user enable dirmngr
   systemctl --user enable gpg-agent

 * log out

 * wait a minute or two for user-1000.slice to complete (it appears that
   i'm waiting for "/usr/bin/pulseaudio --start --log-target=syslog" to terminate)

 * log back in

 * reboot

 * log in


all of the above worked without a problem :/

Then i tried to get tricky to see if i could force the issue:

 * log in

 * systemctl --user stop gpg-agent

 * gpgconf --launch gpg-agent

 * log out

 * observe that the session does not terminate because gpg-agent is
   holding it open (even after pulse quits)

 * log in


and it all still works fine.

So i'm not able to reproduce this behavior.

Zack, can you help me narrow down how this is happening for you?

do you have logs of the failed login session someplace, or other details
that might help diagnose?

   --dkg
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 930 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-gnupg-maint/attachments/20160810/b46c3fb8/attachment-0001.sig>


More information about the pkg-gnupg-maint mailing list