php5-fpm reload kills master process without its children

Bug #1279819 reported by Oliver Mueller
This bug report is a duplicate of:  Bug #1242376: "reload php5-fpm" crashes. Edit Remove
28
This bug affects 5 people
Affects Status Importance Assigned to Milestone
php5 (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

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 ? S 14:54 0:00 php-fpm: pool www
www-data 20593 0.0 0.0 190264 14456 ? S 14:54 0:00 php-fpm: pool www
www-data 20594 0.0 0.0 190264 14456 ? S 14:54 0:00 php-fpm: pool www
www-data 20595 0.0 0.0 190264 14456 ? S 14:54 0:00 php-fpm: pool www
root 20597 0.0 0.0 118224 948 pts/2 S+ 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 ? S 14:57 0:00 php-fpm: pool www
www-data 22317 0.0 0.0 190264 14456 ? S 14:57 0:00 php-fpm: pool www
www-data 22318 0.0 0.0 190264 14456 ? S 14:57 0:00 php-fpm: pool www
www-data 22319 0.0 0.0 190264 14456 ? S 14:57 0:00 php-fpm: pool www
root 22418 0.0 0.0 118224 948 pts/2 S+ 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 ? S 14:57 0:00 php-fpm: pool www
www-data 22317 0.0 0.0 190264 14456 ? S 14:57 0:00 php-fpm: pool www
www-data 22318 0.0 0.0 190264 14456 ? S 14:57 0:00 php-fpm: pool www
www-data 22319 0.0 0.0 190264 14456 ? S 14:57 0:00 php-fpm: pool www
root 23949 0.0 0.0 118224 948 pts/2 S+ 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

tags: added: php5
tags: added: php5-fpm reload service
Revision history for this message
Robie Basak (racb) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better.

This sounds like bug 1242376 to me, so I'm marking it as a duplicate. Please comment if this is wrong.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in php5 (Ubuntu):
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.