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

Arthur Gautier arthur at ows.fr
Mon Mar 28 09:01:34 UTC 2011


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





More information about the pkg-php-maint mailing list