[Pkg-nginx-maintainers] Bug#869799: nginx-common: broken service if ipv6 turned off

Vasiliy Kobzar vko at exante.eu
Wed Jul 26 14:22:19 UTC 2017


Package: nginx-common
Version: 1.10.3-1+deb9u1
Severity: important
Tags: ipv6

WONTFIX in upstream https://trac.nginx.org/nginx/ticket/1320

nginx does not start with default configs if ipv6 is turned off in the kernel commandline.
This is a serious bug as it breaks dpkg and harms automated configuration.

2017/07/13 12:50:29 [info] 10825#10825: Using 32768KiB of shared memory for nchan in /etc/nginx/nginx.conf:31
2017/07/13 12:50:29 [emerg] 10825#10825: socket() [::]:80 failed (97: Address family not supported by protocol)

# Default server configuration
#
server {
        listen 80 default_server;
        listen [::]:80 default_server;

$ cat /proc/cmdline
root=/dev/xvda1 ro ipv6.disable=1 net.ifnames=0

The upstream solution (just edit your config) is a bit naive, because there are plenty of cases when
this is simply not feasible or at least extremely inconvenient. The package should avoid breaking the whole apt/dpkg
with default configs in any case.


-- System Information:
Debian Release: 9.1
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: i386 (i686)

Kernel: Linux 4.9.0-3-686-pae (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) (ignored: LC_ALL set to en_US.UTF-8), LANGUAGE=en_US.UTF-8 (charmap=UTF-8) (ignored: LC_ALL set to en_US.UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: sysvinit (via /sbin/init)

Versions of packages nginx-common depends on:
ii  debconf [debconf-2.0]  1.5.61
ii  init-system-helpers    1.48
ii  lsb-base               9.20161125

nginx-common recommends no packages.

Versions of packages nginx-common suggests:
pn  fcgiwrap   <none>
pn  nginx-doc  <none>
ii  ssl-cert   1.0.39

-- debconf information:
  nginx/log-symlinks:



More information about the Pkg-nginx-maintainers mailing list