[systemd-devel] Cannot start service due to 'systemd-tty-ask-password-agent --watch' not answering

Yeela Kaplan ykaplan at redhat.com
Tue Sep 8 07:47:13 PDT 2015



----- Original Message -----
> From: "Lennart Poettering" <lennart at poettering.net>
> To: "Yeela Kaplan" <ykaplan at redhat.com>
> Cc: systemd-devel at lists.freedesktop.org, "Oved Ourfali" <ovedo at redhat.com>, "Dan Kenigsberg" <danken at redhat.com>
> Sent: Tuesday, September 8, 2015 4:48:31 PM
> Subject: Re: [systemd-devel] Cannot start service due to 'systemd-tty-ask-password-agent --watch' not answering
> 
> On Tue, 08.09.15 07:56, Yeela Kaplan (ykaplan at redhat.com) wrote:
> 
> > > > Thank you for your response.
> > > > I have tried running:  strace -f systemctl --no-ask-password start
> > > > supervdsmd.service
> > > > and it still reproduces.
> > > > but now intead of:
> > > > bash(3448)─┬─pstree(3625)
> > > >            └─strace(3618)───systemctl(3623)───systemd-tty-ask(3624)
> > > > 
> > > > I get:
> > > > bash(3448)─┬─pstree(3586)
> > > >            └─strace(3564)───systemctl(3569)
> > > > 
> > > > Do you know what systemctl is waiting for then?
> > > 
> > > Most likely that supervdsmd.service finishes start-up. Maybe there's a
> > > bug in the unit file regarding notification when it finished start-up?
> > > 
> > > (You can also tell systemctl to just enqueue a start job, but not wait
> > > for it to complete. Use --no-block for that).
> > 
> > This is the unit file:
> > [Unit]
> > Description="Auxiliary vdsm service for running helper functions as root"
> > Requires=libvirtd.service
> > 
> > [Service]
> > Type=simple
> > LimitCORE=infinity
> > EnvironmentFile=-/etc/sysconfig/supervdsmd
> > ExecStart=/usr/share/vdsm/daemonAdapter "/usr/share/vdsm/supervdsmServer"
> > --sockfile "/var/run/vdsm/svdsm.sock"
> > Restart=always
> > 
> > 
> > The service works fine on other machines... this is the first time we see
> > it..
> > and the service is able to start without systemd.. by just running:
> > /usr/share/vdsm/daemonAdapter "/usr/share/vdsm/supervdsmServer" --sockfile
> > "/var/run/vdsm/svdsm.sock"
> > but hangs for a long time without starting even when using --no-block..
> 
> Ah, you are saying that even with --no-block it will block? If so,
> that indicates a D-Bus problem of some kind. Could you paste the
> strace output of "systemctl --no-block --no-ask-password start ..."
> somewhere please? What distro is this?

It's not blocking, but it also does not start the service so it is not a notification issue.. 

That's the strace:
https://paste.fedoraproject.org/264808/72290914/

It's RHEV-H 7.1. 
It is based on el7 with systemd-208-20.el7_1.5.x86_64.


Thank you!


> 
> Lennart
> 
> --
> Lennart Poettering, Red Hat
> 


More information about the systemd-devel mailing list