Package: nginx
Version: 1.4.1-1
Severity: important

A fresh installation of nginx 1.4.1-1 on Debian sid fails to start,
despite numerous "/etc/init.d/nginx start" attempts,
with no error message on the console.

Confused, I eventually found these lines in /var/log/nginx/error.log:

    2013/05/10 16:58:11 [emerg] 24439#0: invalid parameter "ipv6_only=on" in 
/etc/nginx/sites-enabled/default:22
    2013/05/10 17:01:01 [emerg] 26257#0: invalid parameter "ipv6_only=on" in 
/etc/nginx/sites-enabled/default:22
    2013/05/10 17:09:43 [emerg] 31262#0: invalid parameter "ipv6_only=on" in 
/etc/nginx/sites-enabled/default:22

I then did a Google search, and came across these bugs reports on Launchpad.
It turns out that "ipv6_only=on" contains an erroneous underscore:

    nginx-light: invalid parameter "ipv6_only=on"
    https://bugs.launchpad.net/ubuntu/+source/nginx/+bug/1162177

    Nginx - typo in default config file (13.04)
    https://bugs.launchpad.net/ubuntu/+source/nginx/+bug/1164966

Affected version: 1.2.6-1ubuntu1, fixed in 1.2.6-1ubuntu2

   nginx (1.2.6-1ubuntu2) raring; urgency=low
  
    * debian/conf/sites-available/default:
      * Modify default site configuration file to correct a typo
        that prevented out-of-the-box usability (LP: #1162177)
   -- Thomas Ward <email address hidden> Fri, 05 Apr 2013 20:22:38 +0100


I then changed "ipv6_only=on" to "ipv6only=on" on my Debian machine,
and voila!  nginx starts up nicely.

Note that nginx 1.2.1-2.2 in Debian wheezy (7.0) has the correct
"ipv6only=on" and thus unaffected by this bug report.
It would appear that this bug currently affects the version in
Debian sid/unstable only.

Thanks for your help!

Anthony Fok

-- System Information:
Debian Release: jessie/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 3.8-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=zh_HK.utf8, LC_CTYPE=zh_HK.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages nginx depends on:
ii  nginx-full  1.4.1-1

nginx recommends no packages.

nginx suggests no packages.

-- no debconf information


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to