-
-
Notifications
You must be signed in to change notification settings - Fork 203
Closed
Description
When IPv6 is disabled on the host, Nginx fails to start with an error: nginx: [emerg] socket() [::]:80 failed (97: Address family not supported by protocol). Full log below.
Entering the container and commenting out listen [::]:443 http2 ssl default_server; and listen [::]:80 default_server; lines in /etc/nginx/sites-enabled/default solves it but the change is obviously mutable.
It would be great if IPv6 could be disabled via a env variable (Nginx Proxy Manager is doing it that way, for example — you just pass DISABLE_IPV6=true to the container).
Thanks!
🐇 Configuring Speedtest Tracker...
✅ Config file exists
⏳ Generating app key...
📦 Linking storage...
💰 Building the cache...
🚛 Migrating the database...
🔑 Fixing permissions...
✅ All set, starting Speedtest Tracker container...
[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] 10-generate-ssl: executing...
🔐 Generating a self-signed SSL certificate because one was not provided...
Generating a RSA private key
......+++++
......+++++
writing new private key to '/etc/ssl/web/ssl.key'
-----
[cont-init.d] 10-generate-ssl: exited 0.
[cont-init.d] 11-msmtp: executing...
[cont-init.d] 11-msmtp: exited 0.
[cont-init.d] 22-debug-nginx: executing...
[cont-init.d] 22-debug-nginx: exited 0.
[cont-init.d] 5-runas-user: executing...
--------------------------------------------------------------------
____ ____ _ _ _ _
/ ___| ___ _ ____ _____ _ __ / ___|(_) __| | ___ | | | |_ __
\___ \ / _ \ __\ \ / / _ \ __| \___ \| |/ _` |/ _ \ | | | | _ \
___) | __/ | \ V / __/ | ___) | | (_| | __/ | |_| | |_) |
|____/ \___|_| \_/ \___|_| |____/|_|\__,_|\___| \___/| .__/
|_|
Brought to you by serversideup.net
--------------------------------------------------------------------
To support Server Side Up projects visit:
https://serversideup.net/sponsor
-------------------------------------
GID/UID
-------------------------------------
User uid: 997
User gid: 997
-------------------------------------
[cont-init.d] 5-runas-user: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.
nginx: [emerg] socket() [::]:80 failed (97: Address family not supported by protocol)
[30-Sep-2022 13:55:11] NOTICE: fpm is running, pid 321
[30-Sep-2022 13:55:11] NOTICE: ready to handle connections
[30-Sep-2022 13:55:11] NOTICE: systemd monitor interval set to 10000ms
nginx: [emerg] socket() [::]:80 failed (97: Address family not supported by protocol)
Metadata
Metadata
Assignees
Labels
No labels