[php-maint] Bug#619546: Bug#619546: php5-fpm init script failing with error code 1 regardless of failure

OverlordQ ovrlrdq at thedarkcitadel.com
Sun Mar 27 22:06:48 UTC 2011


On 3/27/2011 9:36 AM, Ondřej Surý wrote:
> tags 619546 +moreinfo
> thank you
> 
> Could you please set VERBOSE=yes in /etc/default/rcS and try to
> reproduce the problem? The installation is OK on my test system.
> 

Strange. I ran it once first:
---
thedarkcitadel:/home/ovrlrdq# aptitude full-upgrade
The following partially installed packages will be configured:
  php5-fpm
No packages will be installed, upgraded, or removed.
0 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B of archives. After unpacking 0 B will be used.
Setting up php5-fpm (5.3.6-4) ...
invoke-rc.d: initscript php5-fpm, action "start" failed.
dpkg: error processing php5-fpm (--configure):
 subprocess installed post-installation script returned error exit status 1
configured to not write apport reports
                                      Errors were encountered while
processing:
 php5-fpm
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install.  Trying to recover:
Setting up php5-fpm (5.3.6-4) ...
invoke-rc.d: initscript php5-fpm, action "start" failed.
dpkg: error processing php5-fpm (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 php5-fpm
--

Decidedly broken, modified rcS to set verbose:

--
thedarkcitadel:/home/ovrlrdq# nano /etc/default/rcS
--

then ran it again

--
thedarkcitadel:/home/ovrlrdq# aptitude full-upgrade
The following partially installed packages will be configured:
  php5-fpm
No packages will be installed, upgraded, or removed.
0 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B of archives. After unpacking 0 B will be used.
Setting up php5-fpm (5.3.6-4) ...
Starting PHP5 FastCGI Process Manager: php5-fpm.

thedarkcitadel:/home/ovrlrdq#
--

And that worked.

With verbose off and php5-fpm running:

--
thedarkcitadel:/home/ovrlrdq# /etc/init.d/php5-fpm stop
thedarkcitadel:/home/ovrlrdq# echo $?
1
--

With verbose on and php5-fpm running:

--
thedarkcitadel:/home/ovrlrdq# /etc/init.d/php5-fpm stop
Stopping PHP5 FastCGI Process Manager: php5-fpm.
thedarkcitadel:/home/ovrlrdq# echo $?
0
--






More information about the pkg-php-maint mailing list