[Bug 1279819] [NEW] php5-fpm reload kills master process without its children

2014-02-13 Thread Oliver Mueller
Public bug reported:

php-fpm uses a master process to control its children. the problem is,
that a service reload is going to kill this master process without
recovering it or killing its children.

here is an example:

# ps aux|grep fpm
root 20590  1.3  0.0 190264 22380 ?Ss   14:54   0:00 php-fpm: 
master process (/etc/php5/fpm/php-fpm.conf)
www-data 20592  0.0  0.0 190264 14456 ?S14:54   0:00 php-fpm: pool 
www
www-data 20593  0.0  0.0 190264 14456 ?S14:54   0:00 php-fpm: pool 
www
www-data 20594  0.0  0.0 190264 14456 ?S14:54   0:00 php-fpm: pool 
www
www-data 20595  0.0  0.0 190264 14456 ?S14:54   0:00 php-fpm: pool 
www
root 20597  0.0  0.0 118224   948 pts/2S+   14:54   0:00 grep 
--color=auto fpm

FPM is running, but if I do a reload now, the master will disappear

# service php5-fpm reload
# ps aux|grep fpm
www-data 22316  0.0  0.0 190264 14456 ?S14:57   0:00 php-fpm: pool 
www
www-data 22317  0.0  0.0 190264 14456 ?S14:57   0:00 php-fpm: pool 
www
www-data 22318  0.0  0.0 190264 14456 ?S14:57   0:00 php-fpm: pool 
www
www-data 22319  0.0  0.0 190264 14456 ?S14:57   0:00 php-fpm: pool 
www
root 22418  0.0  0.0 118224   948 pts/2S+   14:59   0:00 grep 
--color=auto fpm


when this happens, there is basically no easy way of reloading or restarting or 
stopping this service again, because even a restart cannot find them anymore:

# service php5-fpm restart
stop: Unknown instance:
php5-fpm start/running, process 23494
root@davy ~ # ps aux|grep fpm
www-data 22316  0.0  0.0 190264 14456 ?S14:57   0:00 php-fpm: pool 
www
www-data 22317  0.0  0.0 190264 14456 ?S14:57   0:00 php-fpm: pool 
www
www-data 22318  0.0  0.0 190264 14456 ?S14:57   0:00 php-fpm: pool 
www
www-data 22319  0.0  0.0 190264 14456 ?S14:57   0:00 php-fpm: pool 
www
root 23949  0.0  0.0 118224   948 pts/2S+   15:00   0:00 grep 
--color=auto fpm


the master service is still gone.

if i use a restart or stop/start only, everything seems to work find.
The bug seems to be in reload functionality only.


# lsb_release -rd
Description:Ubuntu 13.10
Release:13.10

# apt-cache policy php5-fpm
php5-fpm:
  Installed: 5.5.3+dfsg-1ubuntu2.1
  Candidate: 5.5.3+dfsg-1ubuntu2.1
  Version table:
 *** 5.5.3+dfsg-1ubuntu2.1 0
500 http://mirror.hetzner.de/ubuntu/packages/ saucy-updates/universe 
amd64 Packages
500 http://mirror.hetzner.de/ubuntu/security/ saucy-security/universe 
amd64 Packages
500 http://de.archive.ubuntu.com/ubuntu/ saucy-updates/universe amd64 
Packages
500 http://security.ubuntu.com/ubuntu/ saucy-security/universe amd64 
Packages
100 /var/lib/dpkg/status
 5.5.3+dfsg-1ubuntu2 0
500 http://mirror.hetzner.de/ubuntu/packages/ saucy/universe amd64 
Packages
500 http://de.archive.ubuntu.com/ubuntu/ saucy/universe amd64 Packages

** Affects: php5 (Ubuntu)
 Importance: Undecided
 Status: New


** Tags: php5 php5-fpm reload service

** Tags added: php5

** Tags added: php5-fpm reload service

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to php5 in Ubuntu.
https://bugs.launchpad.net/bugs/1279819

Title:
  php5-fpm reload kills master process without its children

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/php5/+bug/1279819/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1279819] [NEW] php5-fpm reload kills master process without its children

2014-02-13 Thread Oliver Mueller
Public bug reported:

php-fpm uses a master process to control its children. the problem is,
that a service reload is going to kill this master process without
recovering it or killing its children.

here is an example:

# ps aux|grep fpm
root 20590  1.3  0.0 190264 22380 ?Ss   14:54   0:00 php-fpm: 
master process (/etc/php5/fpm/php-fpm.conf)
www-data 20592  0.0  0.0 190264 14456 ?S14:54   0:00 php-fpm: pool 
www
www-data 20593  0.0  0.0 190264 14456 ?S14:54   0:00 php-fpm: pool 
www
www-data 20594  0.0  0.0 190264 14456 ?S14:54   0:00 php-fpm: pool 
www
www-data 20595  0.0  0.0 190264 14456 ?S14:54   0:00 php-fpm: pool 
www
root 20597  0.0  0.0 118224   948 pts/2S+   14:54   0:00 grep 
--color=auto fpm

FPM is running, but if I do a reload now, the master will disappear

# service php5-fpm reload
# ps aux|grep fpm
www-data 22316  0.0  0.0 190264 14456 ?S14:57   0:00 php-fpm: pool 
www
www-data 22317  0.0  0.0 190264 14456 ?S14:57   0:00 php-fpm: pool 
www
www-data 22318  0.0  0.0 190264 14456 ?S14:57   0:00 php-fpm: pool 
www
www-data 22319  0.0  0.0 190264 14456 ?S14:57   0:00 php-fpm: pool 
www
root 22418  0.0  0.0 118224   948 pts/2S+   14:59   0:00 grep 
--color=auto fpm


when this happens, there is basically no easy way of reloading or restarting or 
stopping this service again, because even a restart cannot find them anymore:

# service php5-fpm restart
stop: Unknown instance:
php5-fpm start/running, process 23494
root@davy ~ # ps aux|grep fpm
www-data 22316  0.0  0.0 190264 14456 ?S14:57   0:00 php-fpm: pool 
www
www-data 22317  0.0  0.0 190264 14456 ?S14:57   0:00 php-fpm: pool 
www
www-data 22318  0.0  0.0 190264 14456 ?S14:57   0:00 php-fpm: pool 
www
www-data 22319  0.0  0.0 190264 14456 ?S14:57   0:00 php-fpm: pool 
www
root 23949  0.0  0.0 118224   948 pts/2S+   15:00   0:00 grep 
--color=auto fpm


the master service is still gone.

if i use a restart or stop/start only, everything seems to work find.
The bug seems to be in reload functionality only.


# lsb_release -rd
Description:Ubuntu 13.10
Release:13.10

# apt-cache policy php5-fpm
php5-fpm:
  Installed: 5.5.3+dfsg-1ubuntu2.1
  Candidate: 5.5.3+dfsg-1ubuntu2.1
  Version table:
 *** 5.5.3+dfsg-1ubuntu2.1 0
500 http://mirror.hetzner.de/ubuntu/packages/ saucy-updates/universe 
amd64 Packages
500 http://mirror.hetzner.de/ubuntu/security/ saucy-security/universe 
amd64 Packages
500 http://de.archive.ubuntu.com/ubuntu/ saucy-updates/universe amd64 
Packages
500 http://security.ubuntu.com/ubuntu/ saucy-security/universe amd64 
Packages
100 /var/lib/dpkg/status
 5.5.3+dfsg-1ubuntu2 0
500 http://mirror.hetzner.de/ubuntu/packages/ saucy/universe amd64 
Packages
500 http://de.archive.ubuntu.com/ubuntu/ saucy/universe amd64 Packages

** Affects: php5 (Ubuntu)
 Importance: Undecided
 Status: New


** Tags: php5 php5-fpm reload service

** Tags added: php5

** Tags added: php5-fpm reload service

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1279819

Title:
  php5-fpm reload kills master process without its children

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/php5/+bug/1279819/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs