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

Stefano Zacchiroli zack at debian.org
Wed Aug 17 07:20:21 UTC 2016


On Wed, Aug 10, 2016 at 11:46:55AM -0400, Daniel Kahn Gillmor wrote:
> That's the exact same stack i used for my test, and i didn't see the
> error.  so yeah, i'd like to try to track it down.

So I've tried again. I've good and bad news.

Good news: I can no longer reproduce the session startup failure. GNOME
starts just fine, and this is how the two services in question look:

-----------
  $ systemctl status --user dirmngr.service
  ● dirmngr.service - GnuPG network certificate management daemon
     Loaded: loaded (/usr/lib/systemd/user/dirmngr.service; enabled; vendor preset: enabled)
        Active: active (running) since mer 2016-08-17 09:09:06 CEST; 5min ago
             Docs: man:dirmngr(8)
  	     Process: 21506 ExecStart=/usr/bin/dirmngr --daemon --homedir %h/.gnupg (code=exited, status=0/SUCCESS)
  	      Main PID: 21509 (dirmngr)
  	         CGroup: /user.slice/user-1000.slice/user at 1000.service/dirmngr.service
  		            └─21509 /usr/bin/dirmngr --daemon --homedir /home/zack/.gnupg

  ago 17 09:09:06 timira systemd[21502]: Starting GnuPG network certificate management daemon...
  ago 17 09:09:06 timira dirmngr[21506]: dirmngr[21506.0]: WARNING: ***************************************
  ago 17 09:09:06 timira systemd[21502]: Started GnuPG network certificate management daemon.

  $ systemctl status --user gpg-agent.service
  ● gpg-agent.service - GnuPG secret key agent and passphrase cache
     Loaded: loaded (/usr/lib/systemd/user/gpg-agent.service; enabled; vendor preset: enabled)
        Active: active (running) since mer 2016-08-17 09:09:06 CEST; 5min ago
             Docs: man:gpg-agent(1)
  	     Process: 21507 ExecStart=/usr/bin/gpg-agent --daemon --homedir %h/.gnupg (code=exited, status=0/SUCCESS)
  	      Main PID: 21508 (gpg-agent)
  	         CGroup: /user.slice/user-1000.slice/user at 1000.service/gpg-agent.service
  		            └─21508 /usr/bin/gpg-agent --daemon --homedir /home/zack/.gnupg

  ago 17 09:09:06 timira systemd[21502]: Starting GnuPG secret key agent and passphrase cache...
  ago 17 09:09:06 timira systemd[21502]: Started GnuPG secret key agent and passphrase cache.
-----------

Bad news: I checked where the services belong in the service tree (as
you suggested on debian-devel [1]) and they are still not part of the
session scope:

-----------
  └─user.slice
    └─user-1000.slice
      ├─user at 1000.service
      │ ├─gpg-agent.service
      │ │ └─21508 /usr/bin/gpg-agent --daemon --homedir /home/zack/.gnupg
      │ ├─dirmngr.service
      │ │ └─21509 /usr/bin/dirmngr --daemon --homedir /home/zack/.gnupg
      │ └─init.scope
      │   ├─21502 /lib/systemd/systemd --user
      │   └─21503 (sd-pam)         
      └─session-1209.scope
-----------

[1]: https://lists.debian.org/debian-devel/2016/08/msg00085.html

FWIW I've checked and there are no other dirmngr or gpg-agent services
running in the whole tree.

Is this the expected behavior? In your test where did the two services
ended up being located in the service tree?

Hope this helps,
Cheers
-- 
Stefano Zacchiroli . zack at upsilon.cc . upsilon.cc/zack . . o . . . o . o
Computer Science Professor . CTO Software Heritage . . . . . o . . . o o
Former Debian Project Leader . OSI Board Director  . . . o o o . . . o .
« the first rule of tautology club is the first rule of tautology club »
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-gnupg-maint/attachments/20160817/ab77d577/attachment.sig>


More information about the pkg-gnupg-maint mailing list