php5-fpm upgrade broken after deleting sample config

Bug #1334572 reported by Stanislaw Pitucha
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
php5 (Ubuntu)
New
Undecided
Unassigned

Bug Description

If the sample config is not available anymore, php5-fpm cannot be updated automatically and leaves the service down.

Every production deployment will want to remove /etc/php5/fpm/pool.d/www.conf and use its own configuration. But when an automatic security update comes in, this results in:

# apt-get install
....
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up php5-fpm (5.5.3+dfsg-1ubuntu2.5) ...

Configuration file `/etc/php5/fpm/pool.d/www.conf'
 ==> Deleted (by you or by a script) since installation.
 ==> Package distributor has shipped an updated version.
...

This should never break when unattended security updates are running.

Revision history for this message
Marc Deslauriers (mdeslaur) wrote :

www.conf is a conffile. Deleting it should not replace it when the package is upgraded.

If updating manually, the following prompt should appear:

Configuration file `/etc/php5/fpm/pool.d/www.conf'
 ==> 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.
*** www.conf (Y/I/N/O/D/Z) [default=N] ?

Do you perhaps have the following option set up in apt somewhere?

Dpkg::Options {
   "--force-confmiss";
}

Changed in php5 (Ubuntu):
status: New → Incomplete
Revision history for this message
Stanislaw Pitucha (stanislaw-pitucha) wrote :

I'm using the default apt/dpkg config. (apart from turning on auto security updates) Also yes, this is exactly the message I get.

The problem is that the unattended upgrade also gets that question and stop with package not configured.

Revision history for this message
Marc Deslauriers (mdeslaur) wrote :

Could you please attach your /etc/apt/apt.conf.d/50unattended-upgrades file?

Revision history for this message
Stanislaw Pitucha (stanislaw-pitucha) wrote :

Filtering out unneeded stuff:

=====
$ grep -v -e '^$' -e '^//' /etc/apt/apt.conf.d/50unattended-upgrades
Unattended-Upgrade::Allowed-Origins {
 "${distro_id}:${distro_codename}-security";
};
Unattended-Upgrade::Package-Blacklist {
};
=====

/var/log/apt/history.log:
=====
Start-Date: 2014-06-24 06:25:57
Upgrade: libssl1.0.0:amd64 (1.0.1e-3ubuntu1.5, 1.0.1e-3ubuntu1.6), php5-fpm:amd64 (5.5.3+dfsg-1ubuntu2.3, 5.5.3+dfsg-1ubuntu2.4), php5-mysql:amd64 (5.5.3+dfsg-1ubuntu2.3, 5.5.3+dfsg-1ubuntu2.4), php5-common:amd64 (5.5.3+dfsg-1ubuntu2.3, 5.5.3+dfsg-1ubuntu2.4), php5-curl:amd64 (5.5.3+dfsg-1ubuntu2.3, 5.5.3+dfsg-1ubuntu2.4), php5-readline:amd64 (5.5.3+dfsg-1ubuntu2.3, 5.5.3+dfsg-1ubuntu2.4), php5-cli:amd64 (5.5.3+dfsg-1ubuntu2.3, 5.5.3+dfsg-1ubuntu2.4), openssl:amd64 (1.0.1e-3ubuntu1.5, 1.0.1e-3ubuntu1.6), php5-gmp:amd64 (5.5.3+dfsg-1ubuntu2.3, 5.5.3+dfsg-1ubuntu2.4), php5-gd:amd64 (5.5.3+dfsg-1ubuntu2.3, 5.5.3+dfsg-1ubuntu2.4), php5-intl:amd64 (5.5.3+dfsg-1ubuntu2.3, 5.5.3+dfsg-1ubuntu2.4)
Error: Sub-process /usr/bin/dpkg returned an error code (1)
End-Date: 2014-06-24 06:26:23
=====

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

[Expired for php5 (Ubuntu) because there has been no activity for 60 days.]

Changed in php5 (Ubuntu):
status: Incomplete → Expired
Revision history for this message
Stanislaw Pitucha (stanislaw-pitucha) wrote :

I did answer the questions asked. Reverting to "new" rather than "incomplete".

Changed in php5 (Ubuntu):
status: Expired → New
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.