You are not logged in.

#1 2013-09-29 07:28:34

TuxLyn
Member
From: United States
Registered: 2011-10-26
Posts: 283

PHP-FPM v5.5.4 Hangs on Start/Restart/Stop

My php-fpm no longer shutsdown with systemctl just hangs. Has something changed in php-fpm ?

EDIT: more info on boot.

BZkhRcP.png

Last edited by TuxLyn (2013-10-02 09:00:32)


::: Using Arch Linux Since October 25, 2011 :::
::: Tutorials: http://distrogeeks.com/ :::

Offline

#2 2013-09-29 08:50:58

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,510
Website

Re: PHP-FPM v5.5.4 Hangs on Start/Restart/Stop

There is a couple of bugs open about this.  It is an issue with systemd-207 if I remember correctly.

Offline

#3 2013-09-29 08:52:41

TuxLyn
Member
From: United States
Registered: 2011-10-26
Posts: 283

Re: PHP-FPM v5.5.4 Hangs on Start/Restart/Stop

This might also explain why my sshd is not starting on the server when I configure sshd_config on custom port/ip and allow only user access and block root.

This is the error I'm getting when I run systemctl status sshd

sshd.service - OpenSSH Daemon
  Loaded: loaded (/usr/lib/systemd/system/sshd.service: enabled)
  Active: failed (Result: start-limit) since ...
  Process: 395 ExecStart=/usr/bin/sshd -D (code=exited, status=255)
  Main PID: 395 (code=exited, status=255)

Any ideas ??

Last edited by TuxLyn (2013-09-29 08:57:15)


::: Using Arch Linux Since October 25, 2011 :::
::: Tutorials: http://distrogeeks.com/ :::

Offline

#4 2013-09-29 09:14:29

TuxLyn
Member
From: United States
Registered: 2011-10-26
Posts: 283

Re: PHP-FPM v5.5.4 Hangs on Start/Restart/Stop

I'm using this config to have multiple ips on the server > http://gotux.net/arch-linux/multiple-dedicated-ips/

then in /root/ips.sh at the end I've simply added this as workaround for now.

sleep 30
systemctl restart sshd


::: Using Arch Linux Since October 25, 2011 :::
::: Tutorials: http://distrogeeks.com/ :::

Offline

#5 2013-09-29 09:15:17

TuxLyn
Member
From: United States
Registered: 2011-10-26
Posts: 283

Re: PHP-FPM v5.5.4 Hangs on Start/Restart/Stop

As for php-fpm it seems to start correctly on boot, but only when I try to stop php-fpm with systemctl when it hangs.


::: Using Arch Linux Since October 25, 2011 :::
::: Tutorials: http://distrogeeks.com/ :::

Offline

#6 2013-10-02 04:41:14

imrehg
Member
From: London, UK
Registered: 2008-04-10
Posts: 108
Website

Re: PHP-FPM v5.5.4 Hangs on Start/Restart/Stop

Experiencing the same thing. Running `systemctl status php-fpm` gives the following info

php-fpm.service - The PHP FastCGI Process Manager
   Loaded: loaded (/usr/lib/systemd/system/php-fpm.service; enabled)
   Active: deactivating (stop-sigkill) (Result: timeout) since Wed 2013-10-02 04:36:59 UTC; 2min 40s ago
 Main PID: 235
   Status: "Processes active: 0, idle: 2, Requests: 2, slow: 0, Traffic: 0req/sec"
   CGroup: /system.slice/php-fpm.service

Oct 02 04:23:06 kuhn systemd[1]: Started The PHP FastCGI Process Manager.
Oct 02 04:36:59 kuhn systemd[1]: Stopping The PHP FastCGI Process Manager...
Oct 02 04:38:29 kuhn systemd[1]: php-fpm.service stopping timed out. Killing.

Edit: Though with this timeout it works correctly (eg. in case of a systemctl restart php-fpm), just have wait longer....

Last edited by imrehg (2013-10-02 04:42:53)

Offline

#7 2013-10-02 08:45:10

TuxLyn
Member
From: United States
Registered: 2011-10-26
Posts: 283

Re: PHP-FPM v5.5.4 Hangs on Start/Restart/Stop

Tiny workaround for now until this bug is fixed.

Use "--no-block" option "Do not wait until operation finished".

systemctl --no-block start php-fpm
systemctl --no-block stop php-fpm


::: Using Arch Linux Since October 25, 2011 :::
::: Tutorials: http://distrogeeks.com/ :::

Offline

#8 2013-10-02 08:54:20

TuxLyn
Member
From: United States
Registered: 2011-10-26
Posts: 283

Re: PHP-FPM v5.5.4 Hangs on Start/Restart/Stop

Actually, its better to downgrade the package instead as suggested here https://bugs.archlinux.org/task/37009

This downgrade worked for me.

sudo pacman -U /var/cache/pacman/pkg/php-fpm-5.5.3-1-x86_64.pkg.tar.xz

This bug seems to exist only in version 5.5.4


EDIT: It seems to hang even with version 5.5.3 and 5.5.2

So it might be something to do with systemd it self O_o

To reproduce this try starting/stoping php-fpm 5+ times in a row.
It will hang for a bit then it seems to recover unlike version 5.5.4
which hangs for a very long time.

Last edited by TuxLyn (2013-10-02 09:02:38)


::: Using Arch Linux Since October 25, 2011 :::
::: Tutorials: http://distrogeeks.com/ :::

Offline

#9 2013-10-02 16:05:36

Pierre
Developer
From: Bonn
Registered: 2004-07-05
Posts: 1,964
Website

Re: PHP-FPM v5.5.4 Hangs on Start/Restart/Stop

It's not a problem of the PHP package, but a bug in systemd. This should be fixed in systemd 208 (currently in testing).

Offline

Board footer

Powered by FluxBB