Skip to content

No IPV6 nginx install/service fail #633

@DennisT1

Description

@DennisT1

On debian 10.13 with IPV6 disabled the nginx area fails.
Changes made to the fresh Debian install:
IPV6 disabled via GRUB_CMDLINE_LINUX="ipv6.disable=1"
ssh service installed & configured
static IP set
timesyncd.conf modified to point to the LAN time server.
luser added
systemctl set-default multi-user.target
ulimit -n 65535
apt install nfs-common -y

/etc/nginx/sites-available/default has the line:
listen [::]:80 default_server;
which causes the startup of the service to fail.
Commenting out that line allows the service to start and the install to continue.
journalctl -u nginx:
Apr 10 10:44:06 FTSX systemd[1]: Starting A high performance web server and a reverse proxy server...
Apr 10 10:44:06 FTSX nginx[26692]: nginx: [emerg] socket() [::]:80 failed (97: Address family not supported by protocol)
Apr 10 10:44:06 FTSX nginx[26692]: nginx: configuration file /etc/nginx/nginx.conf test failed
Apr 10 10:44:06 FTSX systemd[1]: nginx.service: Control process exited, code=exited, status=1/FAILURE
Apr 10 10:44:06 FTSX systemd[1]: nginx.service: Failed with result 'exit-code'.
Apr 10 10:44:06 FTSX systemd[1]: Failed to start A high performance web server and a reverse proxy server.

From the log:
Updating package lists
Setting up nginx-full (1.14.2-2+deb10u5) ...
Job for nginx.service failed because the control process exited with error code.
See "systemctl status nginx.service" and "journalctl -xe" for details.
invoke-rc.d: initscript nginx, action "start" failed.
ESC[0;1;31mâ—�ESC[0m nginx.service - A high performance web server and a reverse proxy server
Loaded: loaded (ESC]8;;file://FTSX/lib/systemd/system/nginx.service^G/lib/systemd/system/nginx.serviceESC]8;;^G; enabled; vendor preset: enabled)
Active: ESC[0;1;31mfailedESC[0m (Result: exit-code) since Thu 2025-04-10 10:40:17 PDT; 3ms ago
Docs: ESC]8;;man:nginx(8)^Gman:nginx(8)ESC]8;;^G
Process: 25536 ExecStartPre=/usr/sbin/nginx -t -q -g daemon on; master_process on; ESC[0;1;31m(code=exited, status=1/FAILURE)ESC[0m

Apr 10 10:40:17 FTSX systemd[1]: Starting A high performance web server and a reverse proxy server...
Apr 10 10:40:17 FTSX nginx[25536]: nginx: [emerg] socket() [::]:80 failed (97: Address family not supported by protocol)
Apr 10 10:40:17 FTSX nginx[25536]: nginx: configuration file /etc/nginx/nginx.conf test failed
Apr 10 10:40:17 FTSX systemd[1]: ESC[0;1;39mESC[0;1;31mESC[0;1;39mnginx.service: Control process exited, code=exited, status=1/FAILUREESC[0m
Apr 10 10:40:17 FTSX systemd[1]: ESC[0;1;39mESC[0;1;31mESC[0;1;39mnginx.service: Failed with result 'exit-code'.ESC[0m
Apr 10 10:40:17 FTSX systemd[1]: ESC[0;1;31mESC[0;1;39mESC[0;1;31mFailed to start A high performance web server and a reverse proxy server.ESC[0m
dpkg: error processing package nginx-full (--configure):
installed nginx-full package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
nginx-full
E: Sub-process /usr/bin/dpkg returned an error code (1)
Upgrading packages
The following partially installed packages will be configured:
nginx-full

After the install and reboot in /etc/nginx/sites-available/default I had to comment out
listen [::]:80;
listen [::]:443 ssl http2 default_server;
and then nginx server would start.

rtinst.log

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions