php5-fpm reload kills master process without its children
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/
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-
Candidate: 5.5.3+dfsg-
Version table:
*** 5.5.3+dfsg-
500 http://
500 http://
500 http://
500 http://
100 /var/lib/
5.
500 http://
500 http://
tags: | added: php5 |
tags: | added: php5-fpm reload service |
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.