logrotate /var/log/nginx/*.log included in every nginx-* package: not removed/fixed on upgrade

Bug #1014506 reported by Andjelko Horvat
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
nginx (Ubuntu)
Fix Released
Low
Michael Lustfield

Bug Description

logrotate for /var/log/nginx/*.log is included in every nginx package (e.g. nginx-full, nginx-light, nginx-extras, nginx-naxsi) but it should be included only in nginx-common. Because of that logrotate reports errors like:

error: nginx-common:1 duplicate log entry for /var/log/nginx/access.log
error: found error in /var/log/nginx/*.log , skipping
error: nginx-full:1 duplicate log entry for /var/log/nginx/access.log
error: found error in /var/log/nginx/*.log , skipping

ProblemType: Bug
ApportVersion: 2.0.1-0ubuntu8
Architecture: amd64
Date: Mon Jun 18 09:23:22 2012
Dependencies:
 coreutils 8.13-3ubuntu3
 debconf 1.5.42ubuntu1
 dpkg 1.16.1.2ubuntu7
 gcc-4.6-base 4.6.3-1ubuntu5
 libacl1 2.2.51-5ubuntu1
 libattr1 1:2.4.46-5ubuntu1
 libbz2-1.0 1.0.6-1
 libc-bin 2.15-0ubuntu10
 libc6 2.15-0ubuntu10
 libexpat1 2.0.1-7.2ubuntu1
 libgcc1 1:4.6.3-1ubuntu5
 libgcrypt11 1.5.0-3ubuntu0.1
 libgeoip1 1.4.8+dfsg-2
 libgpg-error0 1.10-2ubuntu1
 liblzma5 5.1.1alpha+20110809-3
 libpam0g 1.1.3-7ubuntu2
 libpcre3 8.12-4
 libselinux1 2.1.0-4.1ubuntu1
 libssl1.0.0 1.0.1-4ubuntu5.2
 libtinfo5 5.9-4
 libxml2 2.7.8.dfsg-5.1ubuntu4.1
 libxslt1.1 1.1.26-8ubuntu1
 lsb-base 4.0-0ubuntu20
 multiarch-support 2.15-0ubuntu10
 ncurses-bin 5.9-4
 nginx-common 1.1.19-1
 perl-base 5.14.2-6ubuntu2
 sed 4.2.1-9
 tar 1.26-4ubuntu1
 tzdata 2012b-1
 xz-utils 5.1.1alpha+20110809-3
 zlib1g 1:1.2.3.4.dfsg-3ubuntu4
DistroRelease: Ubuntu 12.04
InstallationMedia: Ubuntu 9.10 "Karmic Koala" - Release amd64 (20091027)
NonfreeKernelModules: nvidia
Package: nginx-full 1.1.19-1
PackageArchitecture: amd64
ProcEnviron:
 LANGUAGE=en_US:en
 TERM=screen
 PATH=(custom, user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 3.2.0-24.39-generic 3.2.16
SourcePackage: nginx
Tags: precise
Uname: Linux 3.2.0-24-generic x86_64
UpgradeStatus: No upgrade log present (probably fresh install)

Related branches

Revision history for this message
Thomas Ward (teward) wrote :

Importance Changed to: Low

Reasoning (obtained from parts of https://wiki.ubuntu.com/Bugs/Importance ):
* Bugs that affect a non-essential aspect and limited scope of the application
* Cosmetic/usability issues that does not limit the functionality of a non-core application

Changed in nginx (Ubuntu):
importance: Undecided → Low
Revision history for this message
Daniel Hahler (blueyed) wrote :

Is it correct that you have upgraded Ubuntu (from/through 9.10)?

There is an issue with the nginx package, where it had nginx-* logrotate scripts for each package, but that is not the case anymore.

They get removed in the pre-install script, but only when installing the package, not during upgrade:
  install)
      # If we are doing a fresh install, then these files are no longer needed.
      # They were around for a very short time and are best simply removed.
      rm -f /etc/logrotate.d/nginx-full
      rm -f /etc/logrotate.d/nginx-light
      rm -f /etc/logrotate.d/nginx-extras
      rm -f /etc/logrotate.d/nginx-common
      ;;

Changed in nginx (Ubuntu):
status: New → Incomplete
Revision history for this message
Andjelko Horvat (comel) wrote :

Yes, I've initially installed 9.10, and upgraded to 10.04, 10.10, 11.10 and now to 12.04. I've noticed this warning a while ago, but haven't reported until now. Unfortunately I missed "Conffiles: /etc/logrotate.d/nginx-full ... obsolete" in dpkg -s nginx-full. Sorry for the false alarm.

Revision history for this message
Daniel Hahler (blueyed) wrote :

I think the obsolete conffiles should get removed during upgrade, too - not just on "install".

Changed in nginx (Ubuntu):
status: Incomplete → Triaged
summary: - logrotate /var/log/nginx/*.log included in every nginx-* package
+ logrotate /var/log/nginx/*.log included in every nginx-* package: not
+ removed/fixed on upgrade
Changed in nginx (Ubuntu):
assignee: nobody → Michael Lustfield (michaellustfield)
Revision history for this message
Michael Lustfield (michaellustfield) wrote :

This has been changed in Debian.

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

This bug was fixed in the package nginx - 1.2.1-2

---------------
nginx (1.2.1-2) unstable; urgency=medium

  [Cyril Lavier]
  * Urgency set to medium, security bug in naxsi module, fix via upstream.
  * debian/modules/naxsi:
    + Updated naxsi module to version 0.46-1 fixing the following security
      issue : potential file disclosure in nx_extract.

 -- Cyril Lavier <email address hidden> Wed, 27 Jun 2012 13:52:03 +0200

Changed in nginx (Ubuntu):
status: Triaged → Fix Released
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.