Debian Bug report logs - #619546
php5-fpm init script failing with error code 1 regardless of failure

version graph

Package: php5-fpm; Maintainer for php5-fpm is (unknown);

Reported by: ovrlrdq@thedarkcitadel.com

Date: Thu, 24 Mar 2011 22:57:01 UTC

Severity: important

Found in version php5/5.3.6-4

Fixed in versions php5/5.3.6-6, 5.3.6-6

Done: Ondřej Surý <ondrej@sury.org>

Bug is archived. No further changes may be made.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>:
Bug#619546; Package php5-fpm. (Thu, 24 Mar 2011 22:57:04 GMT) (full text, mbox, link).


Acknowledgement sent to ovrlrdq@thedarkcitadel.com:
New Bug report received and forwarded. Copy sent to Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>. (Thu, 24 Mar 2011 22:57:04 GMT) (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: ovrlrdq@thedarkcitadel.com
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: php5-fpm init script failing with error code 1 regardless of failure
Date: Thu, 24 Mar 2011 22:46:42 +0000
Package: php5-fpm
Version: 5.3.6-4
Severity: important

When trying to install the package you recieve this message:
--
cthulhu:/var/lib/dpkg/info# aptitude install php5-fpm
The following NEW packages will be installed:
  php5-fpm
0 packages upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 2,928 kB of archives. After unpacking 7,746 kB will be used.
Get:1 http://mirrors2.kernel.org/debian/ unstable/main php5-fpm i386 5.3.6-4 [2,928 kB]
Fetched 2,928 kB in 0s (20.1 MB/s)
Selecting previously deselected package php5-fpm.
(Reading database ... 27837 files and directories currently installed.)
Unpacking php5-fpm (from .../php5-fpm_5.3.6-4_i386.deb) ...
Processing triggers for man-db ...
Setting up php5-fpm (5.3.6-4) ...
update-rc.d: warning: php5-fpm stop runlevel arguments (0 1 6) do not match LSB Default-Stop values (none)
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) ...
update-rc.d: warning: php5-fpm stop runlevel arguments (0 1 6) do not match LSB Default-Stop values (none)
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
---

If you then try to remove it, you get nearly the same thing

---
cthulhu:/home/ovrlrdq# aptitude purge php5-fpm
The following packages will be REMOVED:
  php5-fpm{p}
0 packages upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
Need to get 0 B of archives. After unpacking 7,746 kB will be freed.
Do you want to continue? [Y/n/?] y
(Reading database ... 27890 files and directories currently installed.)
Removing php5-fpm ...
invoke-rc.d: initscript php5-fpm, action "stop" failed.
dpkg: error processing php5-fpm (--purge):
 subprocess installed pre-removal script returned error exit status 1
configured to not write apport reports
                                      update-rc.d: warning: php5-fpm stop runlevel arguments (0 1 6) do not match LSB Default-Stop values (none)
invoke-rc.d: initscript php5-fpm, action "start" failed.
dpkg: error while cleaning up:
 subprocess installed post-installation script returned error exit status 1
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:
---



-- System Information:
Debian Release: wheezy/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)

Kernel: Linux 2.6.32.16-linode28 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages php5-fpm depends on:
ii  dpkg                    1.15.8.10        Debian package management system
ii  libbz2-1.0              1.0.5-6          high-quality block-sorting file co
ii  libc6                   2.11.2-11        Embedded GNU C Library: Shared lib
ii  libcomerr2              1.41.12-2        common error description library
ii  libdb4.8                4.8.30-5         Berkeley v4.8 Database Libraries [
ii  libgssapi-krb5-2        1.9+dfsg-1       MIT Kerberos runtime libraries - k
ii  libk5crypto3            1.9+dfsg-1       MIT Kerberos runtime libraries - C
ii  libkrb5-3               1.9+dfsg-1       MIT Kerberos runtime libraries
ii  libmagic1               5.04-5           File type determination library us
ii  libonig2                5.9.1-1          Oniguruma regular expressions libr
ii  libpcre3                8.12-3           Perl 5 Compatible Regular Expressi
ii  libqdbm14               1.8.77-4         QDBM Database Libraries [runtime]
ii  libssl0.9.8             0.9.8o-5         SSL shared libraries
ii  libxml2                 2.7.8.dfsg-2     GNOME XML library
ii  mime-support            3.51-1           MIME files 'mime.types' & 'mailcap
ii  php5-common             5.3.6-4          Common files for packages built fr
ii  tzdata                  2011d-1          time zone and daylight-saving time
ii  ucf                     3.0025+nmu1      Update Configuration File: preserv
ii  zlib1g                  1:1.2.3.4.dfsg-3 compression library - runtime

php5-fpm recommends no packages.

Versions of packages php5-fpm suggests:
pn  php-pear                      <none>     (no description available)

-- no debconf information




Information forwarded to debian-bugs-dist@lists.debian.org, Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>:
Bug#619546; Package php5-fpm. (Sun, 27 Mar 2011 14:39:02 GMT) (full text, mbox, link).


Acknowledgement sent to Ondřej Surý <ondrej@debian.org>:
Extra info received and forwarded to list. Copy sent to Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>. (Sun, 27 Mar 2011 14:39:03 GMT) (full text, mbox, link).


Message #10 received at 619546@bugs.debian.org (full text, mbox, reply):

From: Ondřej Surý <ondrej@debian.org>
To: ovrlrdq@thedarkcitadel.com, 619546@bugs.debian.org
Subject: Re: [php-maint] Bug#619546: php5-fpm init script failing with error code 1 regardless of failure
Date: Sun, 27 Mar 2011 16:36:26 +0200
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.

Ondrej

On Thu, Mar 24, 2011 at 23:46,  <ovrlrdq@thedarkcitadel.com> wrote:
> Package: php5-fpm
> Version: 5.3.6-4
> Severity: important
>
> When trying to install the package you recieve this message:
> --
> cthulhu:/var/lib/dpkg/info# aptitude install php5-fpm
> The following NEW packages will be installed:
>  php5-fpm
> 0 packages upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
> Need to get 2,928 kB of archives. After unpacking 7,746 kB will be used.
> Get:1 http://mirrors2.kernel.org/debian/ unstable/main php5-fpm i386 5.3.6-4 [2,928 kB]
> Fetched 2,928 kB in 0s (20.1 MB/s)
> Selecting previously deselected package php5-fpm.
> (Reading database ... 27837 files and directories currently installed.)
> Unpacking php5-fpm (from .../php5-fpm_5.3.6-4_i386.deb) ...
> Processing triggers for man-db ...
> Setting up php5-fpm (5.3.6-4) ...
> update-rc.d: warning: php5-fpm stop runlevel arguments (0 1 6) do not match LSB Default-Stop values (none)
> 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) ...
> update-rc.d: warning: php5-fpm stop runlevel arguments (0 1 6) do not match LSB Default-Stop values (none)
> 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
> ---
>
> If you then try to remove it, you get nearly the same thing
>
> ---
> cthulhu:/home/ovrlrdq# aptitude purge php5-fpm
> The following packages will be REMOVED:
>  php5-fpm{p}
> 0 packages upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
> Need to get 0 B of archives. After unpacking 7,746 kB will be freed.
> Do you want to continue? [Y/n/?] y
> (Reading database ... 27890 files and directories currently installed.)
> Removing php5-fpm ...
> invoke-rc.d: initscript php5-fpm, action "stop" failed.
> dpkg: error processing php5-fpm (--purge):
>  subprocess installed pre-removal script returned error exit status 1
> configured to not write apport reports
>                                      update-rc.d: warning: php5-fpm stop runlevel arguments (0 1 6) do not match LSB Default-Stop values (none)
> invoke-rc.d: initscript php5-fpm, action "start" failed.
> dpkg: error while cleaning up:
>  subprocess installed post-installation script returned error exit status 1
> 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:
> ---
>
>
>
> -- System Information:
> Debian Release: wheezy/sid
>  APT prefers unstable
>  APT policy: (500, 'unstable')
> Architecture: i386 (i686)
>
> Kernel: Linux 2.6.32.16-linode28 (SMP w/4 CPU cores)
> Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
> Shell: /bin/sh linked to /bin/dash
>
> Versions of packages php5-fpm depends on:
> ii  dpkg                    1.15.8.10        Debian package management system
> ii  libbz2-1.0              1.0.5-6          high-quality block-sorting file co
> ii  libc6                   2.11.2-11        Embedded GNU C Library: Shared lib
> ii  libcomerr2              1.41.12-2        common error description library
> ii  libdb4.8                4.8.30-5         Berkeley v4.8 Database Libraries [
> ii  libgssapi-krb5-2        1.9+dfsg-1       MIT Kerberos runtime libraries - k
> ii  libk5crypto3            1.9+dfsg-1       MIT Kerberos runtime libraries - C
> ii  libkrb5-3               1.9+dfsg-1       MIT Kerberos runtime libraries
> ii  libmagic1               5.04-5           File type determination library us
> ii  libonig2                5.9.1-1          Oniguruma regular expressions libr
> ii  libpcre3                8.12-3           Perl 5 Compatible Regular Expressi
> ii  libqdbm14               1.8.77-4         QDBM Database Libraries [runtime]
> ii  libssl0.9.8             0.9.8o-5         SSL shared libraries
> ii  libxml2                 2.7.8.dfsg-2     GNOME XML library
> ii  mime-support            3.51-1           MIME files 'mime.types' & 'mailcap
> ii  php5-common             5.3.6-4          Common files for packages built fr
> ii  tzdata                  2011d-1          time zone and daylight-saving time
> ii  ucf                     3.0025+nmu1      Update Configuration File: preserv
> ii  zlib1g                  1:1.2.3.4.dfsg-3 compression library - runtime
>
> php5-fpm recommends no packages.
>
> Versions of packages php5-fpm suggests:
> pn  php-pear                      <none>     (no description available)
>
> -- no debconf information
>
>
>
> _______________________________________________
> pkg-php-maint mailing list
> pkg-php-maint@lists.alioth.debian.org
> http://lists.alioth.debian.org/mailman/listinfo/pkg-php-maint
>



-- 
Ondřej Surý <ondrej@sury.org>
http://blog.rfc1925.org/




Information forwarded to debian-bugs-dist@lists.debian.org, Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>:
Bug#619546; Package php5-fpm. (Sun, 27 Mar 2011 22:18:03 GMT) (full text, mbox, link).


Acknowledgement sent to OverlordQ <ovrlrdq@thedarkcitadel.com>:
Extra info received and forwarded to list. Copy sent to Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>. (Sun, 27 Mar 2011 22:18:03 GMT) (full text, mbox, link).


Message #15 received at 619546@bugs.debian.org (full text, mbox, reply):

From: OverlordQ <ovrlrdq@thedarkcitadel.com>
To: Ondřej Surý <ondrej@debian.org>
Cc: 619546@bugs.debian.org
Subject: Re: [php-maint] Bug#619546: php5-fpm init script failing with error code 1 regardless of failure
Date: Sun, 27 Mar 2011 17:06:48 -0500
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
--





Information forwarded to debian-bugs-dist@lists.debian.org, Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>:
Bug#619546; Package php5-fpm. (Mon, 28 Mar 2011 07:57:19 GMT) (full text, mbox, link).


Acknowledgement sent to Arthur Gautier <arthur@ows.fr>:
Extra info received and forwarded to list. Copy sent to Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>. (Mon, 28 Mar 2011 07:57:20 GMT) (full text, mbox, link).


Message #20 received at 619546@bugs.debian.org (full text, mbox, reply):

From: Arthur Gautier <arthur@ows.fr>
To: 619546@bugs.debian.org
Subject: Re: [php-maint] Bug#619546: Bug#619546: php5-fpm init script failing with error code 1 regardless of failure
Date: Mon, 28 Mar 2011 09:44:16 +0200
On 03/28/2011 12:06 AM, OverlordQ wrote:
> 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
> --
>
Hi ! :)
Got the exact same issue, this occurs if you upgrade from 
php5-fpm_5.3.6-2_i386.deb

Here is the log to reproduce:

# dpkg -i --force-depends /var/cache/apt/archives/php5-fpm_5.3.6-2_i386.deb
(Reading database ... 228735 files and directories currently installed.)
Preparing to replace php5-fpm 5.3.6-2 (using 
.../php5-fpm_5.3.6-2_i386.deb) ...
Unpacking replacement php5-fpm ...
dpkg: php5-fpm: dependency problems, but configuring anyway as you 
requested:
 php5-fpm depends on php5-common (= 5.3.6-2); however:
  Version of php5-common on system is 5.3.6-4.
Setting up php5-fpm (5.3.6-2) ...
Installing new version of config file /etc/php5/fpm/pool.d/www.conf ...

Configuration file `/etc/init.d/php5-fpm'
 ==> Deleted (by you or by a script) since installation.
 ==> Package distributor has shipped an updated version.
   What would you like to do about it ?  Your options are:
    Y or I  : install the package maintainer's version
    N or O  : keep your currently-installed version
      D     : show the differences between the versions
      Z     : start a shell to examine the situation
 The default action is to keep your current version.
*** php5-fpm (Y/I/N/O/D/Z) [default=N] ? Y
Installing new version of config file /etc/init.d/php5-fpm ...
update-rc.d: warning: php5-fpm stop runlevel arguments (0 1 6) do not 
match LSB Default-Stop values (none)
[28-Mar-2011 09:30:55] WARNING: [pool www] pm.start_servers is not set. 
It's been set to 20.
[28-Mar-2011 09:30:55] WARNING: [pool superbaloo] pm.start_servers is 
not set. It's been set to 3.
[28-Mar-2011 09:30:55] NOTICE: configuration file 
/etc/php5/fpm/php-fpm.conf test is successful

Starting PHP5 FPM....
Processing triggers for man-db ...
# dpkg -i --force-depends /var/cache/apt/archives/php5-fpm_5.3.6-4_i386.deb
(Reading database ... 228735 files and directories currently installed.)
Preparing to replace php5-fpm 5.3.6-2 (using 
.../php5-fpm_5.3.6-4_i386.deb) ...
[28-Mar-2011 09:31:11] WARNING: [pool www] pm.start_servers is not set. 
It's been set to 20.
[28-Mar-2011 09:31:11] WARNING: [pool superbaloo] pm.start_servers is 
not set. It's been set to 3.
[28-Mar-2011 09:31:11] NOTICE: configuration file 
/etc/php5/fpm/php-fpm.conf test is successful

Stopping PHP5 FPM....
Unpacking replacement php5-fpm ...
Setting up php5-fpm (5.3.6-4) ...
Installing new version of config file /etc/init.d/php5-fpm ...
Installing new version of config file /etc/php5/fpm/pool.d/www.conf ...
update-rc.d: warning: php5-fpm stop runlevel arguments (0 1 6) do not 
match LSB Default-Stop values (none)
[28-Mar-2011 09:31:12] WARNING: [pool superbaloo] pm.start_servers is 
not set. It's been set to 3.
invoke-rc.d: initscript php5-fpm, action "start" failed.
dpkg: error processing php5-fpm (--install):
 subprocess installed post-installation script returned error exit status 1
Processing triggers for man-db ...
Errors were encountered while processing:
 php5-fpm


The problem is that /etc/init.d/php5-fpm is returning 1.

# bash -x /etc/init.d/php5-fpm start
+ PATH=/sbin:/usr/sbin:/bin:/usr/bin
+ DESC='PHP5 FastCGI Process Manager'
+ NAME=php5-fpm
+ DAEMON=/usr/sbin/php5-fpm
+ DAEMON_ARGS='--fpm-config /etc/php5/fpm/php-fpm.conf'
+ PIDFILE=/var/run/php5-fpm.pid
+ TIMEOUT=30
+ SCRIPTNAME=/etc/init.d/php5-fpm
+ '[' -x /usr/sbin/php5-fpm ']'
+ '[' -r /etc/default/php5-fpm ']'
+ . /lib/init/vars.sh
++ '[' -f /etc/default/rcS ']'
++ . /etc/default/rcS
+++ TMPTIME=0
+++ SULOGIN=no
+++ DELAYLOGIN=no
+++ UTC=yes
+++ VERBOSE=no
+++ FSCKFIX=no
+++ RAMRUN=no
+++ RAMLOCK=no
++ '[' -r /proc/cmdline ']'
+++ cat /proc/cmdline
++ for ARG in '$(cat /proc/cmdline)'
++ case $ARG in
++ for ARG in '$(cat /proc/cmdline)'
++ case $ARG in
++ for ARG in '$(cat /proc/cmdline)'
++ case $ARG in
++ '[' '' ']'
+ . /lib/lsb/init-functions
++ FANCYTTY=
++ '[' -e /etc/lsb-base-logging.sh ']'
++ true
+ case "$1" in
+ '[' no '!=' no ']'
+ do_check
++ /usr/sbin/php5-fpm --fpm-config /etc/php5/fpm/php-fpm.conf -t
++ grep '\[ERROR\]'
+ FPM_ERROR=
+ '[' -n '' ']'
+ return 0
+ case "$?" in
+ do_start
+ start-stop-daemon --start --quiet --pidfile /var/run/php5-fpm.pid 
--exec /usr/sbin/php5-fpm --test
+ start-stop-daemon --start --quiet --pidfile /var/run/php5-fpm.pid 
--exec /usr/sbin/php5-fpm -- --fpm-config /etc/php5/fpm/php-fpm.conf
[28-Mar-2011 09:36:03] WARNING: [pool superbaloo] pm.start_servers is 
not set. It's been set to 3.
+ case "$?" in
+ '[' no '!=' no ']'
# echo $?
1

The thing i don't get is: While i get a warning on my php-fpm 
configuration. The start-stop-daemon still returns 0 :

# start-stop-daemon --start --quiet --pidfile /var/run/php5-fpm.pid 
--exec /usr/sbin/php5-fpm -- --fpm-config /etc/php5/fpm/php-fpm.conf
[28-Mar-2011 09:40:31] WARNING: [pool superbaloo] pm.start_servers is 
not set. It's been set to 3.
# echo $?
0

Hope this may helps :)


By the way, rm /etc/init.d/php5-fpm && aptitude reinstall php5-fpm fixed 
the problem for me :)

-- 
Arthur Gautier




Information forwarded to debian-bugs-dist@lists.debian.org, Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>:
Bug#619546; Package php5-fpm. (Mon, 28 Mar 2011 08:51:09 GMT) (full text, mbox, link).


Acknowledgement sent to Ondřej Surý <ondrej@debian.org>:
Extra info received and forwarded to list. Copy sent to Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>. (Mon, 28 Mar 2011 08:51:09 GMT) (full text, mbox, link).


Message #25 received at 619546@bugs.debian.org (full text, mbox, reply):

From: Ondřej Surý <ondrej@debian.org>
To: Arthur Gautier <arthur@ows.fr>, 619546@bugs.debian.org
Subject: Re: [php-maint] Bug#619546: Bug#619546: Bug#619546: php5-fpm init script failing with error code 1 regardless of failure
Date: Mon, 28 Mar 2011 10:47:20 +0200
Hi,

I think it does help a lot.

Does this patch:

diff --git a/debian/php5-fpm.init b/debian/php5-fpm.init
index 25badb3..4e0fdee 100644
--- a/debian/php5-fpm.init
+++ b/debian/php5-fpm.init
@@ -163,3 +163,5 @@ case "$1" in
        exit 1
     ;;
 esac
+
+:

help?

Ondrej
-- 
Ondřej Surý <ondrej@sury.org>
http://blog.rfc1925.org/




Information forwarded to debian-bugs-dist@lists.debian.org, Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>:
Bug#619546; Package php5-fpm. (Mon, 28 Mar 2011 09:03:03 GMT) (full text, mbox, link).


Acknowledgement sent to Arthur Gautier <arthur@ows.fr>:
Extra info received and forwarded to list. Copy sent to Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>. (Mon, 28 Mar 2011 09:03:03 GMT) (full text, mbox, link).


Message #30 received at 619546@bugs.debian.org (full text, mbox, reply):

From: Arthur Gautier <arthur@ows.fr>
Cc: 619546@bugs.debian.org
Subject: Re: [php-maint] Bug#619546: Bug#619546: Bug#619546: php5-fpm init script failing with error code 1 regardless of failure
Date: Mon, 28 Mar 2011 11:01:34 +0200
On 03/28/2011 10:47 AM, Ondřej Surý wrote:
> Hi,
>
> I think it does help a lot.
>
> Does this patch:
>
> diff --git a/debian/php5-fpm.init b/debian/php5-fpm.init
> index 25badb3..4e0fdee 100644
> --- a/debian/php5-fpm.init
> +++ b/debian/php5-fpm.init
> @@ -163,3 +163,5 @@ case "$1" in
>          exit 1
>       ;;
>   esac
> +
> +:
>
> help?
>
> Ondrej
That's it :)

# dpkg -i --force-depends /var/cache/apt/archives/php5-fpm_5.3.6-2_i386.deb
dpkg: warning: downgrading php5-fpm from 5.3.6-4 to 5.3.6-2.
(Reading database ... 229931 files and directories currently installed.)
Preparing to replace php5-fpm 5.3.6-4 (using 
.../php5-fpm_5.3.6-2_i386.deb) ...
Unpacking replacement php5-fpm ...
dpkg: php5-fpm: dependency problems, but configuring anyway as you 
requested:
 php5-fpm depends on php5-common (= 5.3.6-2); however:
  Version of php5-common on system is 5.3.6-4.
Setting up php5-fpm (5.3.6-2) ...
Installing new version of config file /etc/php5/fpm/pool.d/www.conf ...

Configuration file `/etc/init.d/php5-fpm'
 ==> Modified (by you or by a script) since installation.
 ==> Package distributor has shipped an updated version.
   What would you like to do about it ?  Your options are:
    Y or I  : install the package maintainer's version
    N or O  : keep your currently-installed version
      D     : show the differences between the versions
      Z     : start a shell to examine the situation
 The default action is to keep your current version.
*** php5-fpm (Y/I/N/O/D/Z) [default=N] ? Y
Installing new version of config file /etc/init.d/php5-fpm ...
update-rc.d: warning: php5-fpm stop runlevel arguments (0 1 6) do not 
match LSB Default-Stop values (none)
[28-Mar-2011 10:56:16] WARNING: [pool www] pm.start_servers is not set. 
It's been set to 20.
[28-Mar-2011 10:56:16] WARNING: [pool superbaloo] pm.start_servers is 
not set. It's been set to 3.
[28-Mar-2011 10:56:16] NOTICE: configuration file 
/etc/php5/fpm/php-fpm.conf test is successful

Starting PHP5 FPM...[28-Mar-2011 10:56:16] WARNING: [pool www] 
pm.start_servers is not set. It's been set to 20.
[28-Mar-2011 10:56:16] WARNING: [pool superbaloo] pm.start_servers is 
not set. It's been set to 3.
.
Processing triggers for man-db ...
# dpkg -i /var/cache/apt/archives/php5-fpm_5.3.6-4_i386.deb
(Reading database ... 229931 files and directories currently installed.)
Preparing to replace php5-fpm 5.3.6-2 (using 
.../php5-fpm_5.3.6-4_i386.deb) ...
[28-Mar-2011 10:56:23] WARNING: [pool www] pm.start_servers is not set. 
It's been set to 20.
[28-Mar-2011 10:56:23] WARNING: [pool superbaloo] pm.start_servers is 
not set. It's been set to 3.
[28-Mar-2011 10:56:23] NOTICE: configuration file 
/etc/php5/fpm/php-fpm.conf test is successful

Stopping PHP5 FPM....
Unpacking replacement php5-fpm ...
Setting up php5-fpm (5.3.6-4) ...
Installing new version of config file /etc/init.d/php5-fpm ...
Installing new version of config file /etc/php5/fpm/pool.d/www.conf ...
update-rc.d: warning: php5-fpm stop runlevel arguments (0 1 6) do not 
match LSB Default-Stop values (none)
[28-Mar-2011 10:56:23] WARNING: [pool superbaloo] pm.start_servers is 
not set. It's been set to 3.
invoke-rc.d: initscript php5-fpm, action "start" failed.
dpkg: error processing php5-fpm (--install):
 subprocess installed post-installation script returned error exit status 1
Processing triggers for man-db ...
Errors were encountered while processing:
 php5-fpm
# cat - |tee /tmp/php-fpm.patch
--- a/debian/php5-fpm.init
+++ b/debian/php5-fpm.init
@@ -163,3 +163,5 @@ case "$1" in
        exit 1
     ;;
 esac
+
+:
--- a/debian/php5-fpm.init
+++ b/debian/php5-fpm.init
@@ -163,3 +163,5 @@ case "$1" in
        exit 1
     ;;
 esac
+
+:
^C
# cat /tmp/php-fpm.patch |patch -p2 /etc/init.d/php5-fpm
patching file /etc/init.d/php5-fpm
Hunk #1 succeeded at 163 with fuzz 1.
# apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up php5-fpm (5.3.6-4) ...
update-rc.d: warning: php5-fpm stop runlevel arguments (0 1 6) do not 
match LSB Default-Stop values (none)




i don't understand the colon. Do you have any pointers on it ?

Thanks :)

-- 
Arthur Gautier




Information forwarded to debian-bugs-dist@lists.debian.org, Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>:
Bug#619546; Package php5-fpm. (Mon, 28 Mar 2011 09:30:03 GMT) (full text, mbox, link).


Acknowledgement sent to Ondřej Surý <ondrej@sury.org>:
Extra info received and forwarded to list. Copy sent to Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>. (Mon, 28 Mar 2011 09:30:04 GMT) (full text, mbox, link).


Message #35 received at 619546@bugs.debian.org (full text, mbox, reply):

From: Ondřej Surý <ondrej@sury.org>
To: Arthur Gautier <arthur@ows.fr>, "619546@bugs.debian.org" <619546@bugs.debian.org>
Cc: "619546@bugs.debian.org" <619546@bugs.debian.org>
Subject: Re: [php-maint] Bug#619546: Bug#619546: Bug#619546: Bug#619546: php5-fpm init script failing with error code 1 regardless of failure
Date: Mon, 28 Mar 2011 11:26:36 +0200
> i don't understand the colon. Do you have any pointers on it ?

That's easy. When I saw your output I have realized that the script never goes to log_msg_end statement because of VERBOSE=no and whole script returns with last exit value (which is 1). The ':' is an empty command (aka set the retval to 0). It was my oversight when copying the init.d from /etc/init.d/skeleton, sorry for that and thanks for the testing. I'll try to silence the set-to-default warnings and upload -5 version.

O.



Information forwarded to debian-bugs-dist@lists.debian.org, Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>:
Bug#619546; Package php5-fpm. (Wed, 30 Mar 2011 22:09:06 GMT) (full text, mbox, link).


Acknowledgement sent to Eusebi Giampaolo <giampaolo.eusebi@yahoo.it>:
Extra info received and forwarded to list. Copy sent to Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>. (Wed, 30 Mar 2011 22:09:07 GMT) (full text, mbox, link).


Message #40 received at 619546@bugs.debian.org (full text, mbox, reply):

From: Eusebi Giampaolo <giampaolo.eusebi@yahoo.it>
To: 619546@bugs.debian.org
Subject: php5-fpm init script failing with error code 1 regardless of failure
Date: Thu, 31 Mar 2011 00:06:20 +0200
I haven't read all the thread but /etc/init.d/php5-fpm doesn't start
php5-fpm on boot (while it start it if called from the shell)..

I resolved the problem swapping the first two lines of the "start" case
in /etc/init.d/php5-fpm.. something like:

[patch]
*** php5-fpm	2011-03-30 23:57:31.989484928 +0200
--- /etc/init.d/php5-fpm	2011-03-30 23:58:21.073525751 +0200
***************
*** 109,116 ****
  
  case "$1" in
      start)
- 	do_check $VERBOSE
  	[ "$VERBOSE" != no ] && log_daemon_msg "Starting $DESC" "$NAME"
  	case "$?" in
  	    0)
  		do_start
--- 109,116 ----
  
  case "$1" in
      start)
  	[ "$VERBOSE" != no ] && log_daemon_msg "Starting $DESC" "$NAME"
+ 	do_check $VERBOSE
  	case "$?" in
  	    0)
  		do_start
[/patch]

I think php5-fpm isn't starting because you're testing the return value
of the wrong line..

Am i right?

Sorry for my english,
by the way thanks for your work.

Eusebi Giampaolo





Information forwarded to debian-bugs-dist@lists.debian.org, Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>:
Bug#619546; Package php5-fpm. (Thu, 31 Mar 2011 09:51:03 GMT) (full text, mbox, link).


Acknowledgement sent to Ondřej Surý <ondrej@debian.org>:
Extra info received and forwarded to list. Copy sent to Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>. (Thu, 31 Mar 2011 09:51:03 GMT) (full text, mbox, link).


Message #45 received at 619546@bugs.debian.org (full text, mbox, reply):

From: Ondřej Surý <ondrej@debian.org>
To: Eusebi Giampaolo <giampaolo.eusebi@yahoo.it>, 619546@bugs.debian.org
Subject: Re: [php-maint] Bug#619546: php5-fpm init script failing with error code 1 regardless of failure
Date: Thu, 31 Mar 2011 11:46:39 +0200
Hi Eusebi,

thanks for the patch. You are absolutelly right. I really had a bad
luck with this php5-fpm.init script :-(.

5.3.6-6 with the fix is on it's way to unstable.

Ondrej

On Thu, Mar 31, 2011 at 00:06, Eusebi Giampaolo
<giampaolo.eusebi@yahoo.it> wrote:
> I haven't read all the thread but /etc/init.d/php5-fpm doesn't start
> php5-fpm on boot (while it start it if called from the shell)..
>
> I resolved the problem swapping the first two lines of the "start" case
> in /etc/init.d/php5-fpm.. something like:
>
> [patch]
> *** php5-fpm    2011-03-30 23:57:31.989484928 +0200
> --- /etc/init.d/php5-fpm        2011-03-30 23:58:21.073525751 +0200
> ***************
> *** 109,116 ****
>
>  case "$1" in
>      start)
> -       do_check $VERBOSE
>        [ "$VERBOSE" != no ] && log_daemon_msg "Starting $DESC" "$NAME"
>        case "$?" in
>            0)
>                do_start
> --- 109,116 ----
>
>  case "$1" in
>      start)
>        [ "$VERBOSE" != no ] && log_daemon_msg "Starting $DESC" "$NAME"
> +       do_check $VERBOSE
>        case "$?" in
>            0)
>                do_start
> [/patch]
>
> I think php5-fpm isn't starting because you're testing the return value
> of the wrong line..
>
> Am i right?
>
> Sorry for my english,
> by the way thanks for your work.
>
> Eusebi Giampaolo
>
>
>
>
> _______________________________________________
> pkg-php-maint mailing list
> pkg-php-maint@lists.alioth.debian.org
> http://lists.alioth.debian.org/mailman/listinfo/pkg-php-maint
>



-- 
Ondřej Surý <ondrej@sury.org>
http://blog.rfc1925.org/




Bug Marked as fixed in versions php5/5.3.6-6. Request was from Ondřej Surý <ondrej@sury.org> to control@bugs.debian.org. (Sun, 10 Apr 2011 21:39:56 GMT) (full text, mbox, link).


Reply sent to Ondřej Surý <ondrej@sury.org>:
You have taken responsibility. (Wed, 27 Apr 2011 06:57:03 GMT) (full text, mbox, link).


Notification sent to ovrlrdq@thedarkcitadel.com:
Bug acknowledged by developer. (Wed, 27 Apr 2011 06:57:03 GMT) (full text, mbox, link).


Message #52 received at 619546-done@bugs.debian.org (full text, mbox, reply):

From: Ondřej Surý <ondrej@sury.org>
To: 619546-done@bugs.debian.org
Subject: Marking as fixed in 5.3.6-6
Date: Wed, 27 Apr 2011 08:55:45 +0200
Version: 5.3.6-6

-- 
Ondřej Surý <ondrej@sury.org>




Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Wed, 25 May 2011 07:36:52 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Sun Jul 2 01:13:19 2023; Machine Name: bembo

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.