On Wed, Jan 5, 2011 at 12:27 PM, Debian Bug Tracking System <ow...@bugs.debian.org> wrote: > This is an automatic notification regarding your Bug report > which was filed against the nginx package: > > #607491: nginx: broken config makes dpkg unhappy on upgrade > > It has been closed by Michael Lustfield <mich...@profarius.com>. > > Their explanation is attached below along with your original report. > If this explanation is unsatisfactory and you have not received a > better one in a separate message then please contact Michael Lustfield > <mich...@profarius.com> by > replying to this email. > > > -- > 607491: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=607491 > Debian Bug Tracking System > Contact ow...@bugs.debian.org with problems > > > ---------- Forwarded message ---------- > From: Michael Lustfield <mich...@profarius.com> > To: 607491-cl...@bugs.debian.org > Date: Wed, 5 Jan 2011 03:24:23 -0600 > Subject: Invalid > I'm marking this invalid bug as closed because, as stated by Rafael, it's the > fault of an incorrect configuration file, not Nginx. Well, I didn't receive copy of Rafael's message, so answering here:
As you quoted, policy says that local changes must be preserved, which is adhered in this case, but as you can see, package configure fails when calling init script: invoke-rc.d: initscript nginx, action "start" failed. dpkg: error processing nginx (--configure): subprocess post-installation script returned error exit status 1 Errors were encountered while processing: nginx E: Sub-process /usr/bin/dpkg returned an error code (1) That time it failed on my definataly broken config, but let's assume one has apache already installed and listening port 80, which is nginx should listen by default too. Failing package installation on such cases has no meaning. What is more interesting, postinstall script should exit okay even in case of restart failure: r...@gamma2:~# head -n 38 /var/lib/dpkg/info/nginx.postinst |tail -n 4 echo "Nginx 'soft' update failed, doing restart" kill -s KILL $NGX_PID invoke-rc.d nginx start exit 0 but line 3 (set -e) may prevent this: r...@gamma2:~# head -n 3 /var/lib/dpkg/info/nginx.postinst #!/bin/sh set -e So i suggest to change: - invoke-rc.d nginx start + invoke-rc.d nginx start || true to keep original logic and bring common sense behavior. > > > > ---------- Forwarded message ---------- > From: Roman Ovchinnikov <coolthec...@gmail.com> > To: Debian Bug Tracking System <sub...@bugs.debian.org> > Date: Sun, 19 Dec 2010 03:54:55 +0300 > Subject: nginx: broken config makes dpkg unhappy on upgrade > Package: nginx > Version: 0.7.67-3~bpo50+1 > Severity: normal > > I had broken configuration files and tryed to upgrade nginx: > > Installing new version of config file /etc/nginx/mime.types ... > Installing new version of config file /etc/init.d/nginx ... > Trying a soft restart > PID IS RIGHT > WAITING > WAITING > WAITING > WAITING > WAITING > WAITING > WAITING > WAITING > WAITING > WAITING > WAITING > Nginx 'soft' update failed, doing restart > Starting nginx: [warn]: low address bits of 193.194.153.0/23 are meaningless > in /etc/nginx/rugeo.conf:3442 > [warn]: low address bits of 194.149.65.0/23 are meaningless in > /etc/nginx/rugeo.conf:4452 > [emerg]: invalid parameter "weight=1" in > /etc/nginx/sites-enabled/000-academics-proxy.conf:3 > configuration file /etc/nginx/nginx.conf test failed > invoke-rc.d: initscript nginx, action "start" failed. > dpkg: error processing nginx (--configure): > subprocess post-installation script returned error exit status 1 > Errors were encountered while processing: > nginx > E: Sub-process /usr/bin/dpkg returned an error code (1) > > I think package upgrade should stop on wrong config. > > -- System Information: > Debian Release: 5.0 > APT prefers stable > APT policy: (500, 'stable') > Architecture: i386 (i686) > > Kernel: Linux 2.6.18-prep-beta (SMP w/4 CPU cores) > Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968) > Shell: /bin/sh linked to /bin/bash > > Versions of packages nginx depends on: > ii libc6 2.7-18 GNU C Library: Shared libraries > ii libgeoip1 1.4.7~beta6+dfsg-1~bpo50+1 A non-DNS IP-to-country resolver > l > ii libpcre3 7.6-2.1 Perl 5 Compatible Regular > Expressi > ii libssl0.9.8 0.9.8g-15 SSL shared libraries > ii lsb-base 3.2-20 Linux Standard Base 3.2 init > scrip > ii zlib1g 1:1.2.3.3.dfsg-12 compression library - runtime > > nginx recommends no packages. > > nginx suggests no packages. > > -- no debconf information > > > > -- Best regards, [COOLCOLD-RIPN] -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org