Bug 90294 - "systemctl start php5-fpm.service" failes due to timeout of systemd-tty-ask-password-agent
Summary: "systemctl start php5-fpm.service" failes due to timeout of systemd-tty-ask-p...
Status: RESOLVED NOTOURBUG
Alias: None
Product: systemd
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
Hardware: x86-64 (AMD64) Linux (All)
: medium major
Assignee: systemd-bugs
QA Contact: systemd-bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-05-04 07:37 UTC by Alexander Löhner
Modified: 2015-05-04 12:41 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description Alexander Löhner 2015-05-04 07:37:39 UTC
I've recently upgraded my Ubuntu box from 14.04 to 15.04 where systemd is now used as the default.

Unfortunatly starting or restarting of service php5-fpm doesn't work. It hangs 3 minutes and then it gets a timeout.

This seems to be caused by a process "/bin/systemd-tty-ask-password-agent --watch" which was called by "systemctl start php5-fpm.service".

It seems to wait for user input, but there is nothing to submit such an input.

Following the outputs of various things in cronological order:


~ $ ps auxwww --forest
   -> http://pastebin.com/LkbmNtKi

~ $ systemctl list-jobs
~ $ systemctl show
   -> http://pastebin.com/WaUGmnMV

~ $ systemctl start php5-fpm.service
Job for php5-fpm.service failed. See "systemctl status php5-fpm.service" and "journalctl -xe" for details.
~ $ 

during the command above runs, I've also created some output:
~ $ ps auxwww --forest
~ $ systemctl list-jobs
~ $ systemctl show
   -> http://pastebin.com/kxzhNTLT

After 3 minutes the start failed with a timeout and then:

~ $ systemctl status php5-fpm.service
~ $ systemctl list-jobs
~ $ systemctl show
~ $ lsb_release -a
~ $ dpkg -l | grep ii | grep systemd
~ $ ps aux | grep -i systemd
  -> http://pastebin.com/eCgb4Y0W


If you need further information, please let me know.
Comment 1 Zbigniew Jedrzejewski-Szmek 2015-05-04 12:41:38 UTC
Hi,

based on the logs, systemd (PID 1) is already starting the service:

Mai 04 08:40:47 alex-laptop systemd[1]: Starting The PHP FastCGI Process Manager...

1931 php5-fpm.service start running

This means that the authentication phase is already done, and the job is running.

/bin/systemd-tty-ask-password-agent and /usr/bin/pkttyagent are left over from the authorization phase and aren't really important.

So the fact that php5-fpm.service is not starting has something to do with the way this service is written. Please file a bug against your distribution (Ubuntu), and the package that contains that service.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.