If you are indeed binding to an actual IPv6 address, then you need to do
additional changes to your system and provide a specific SystemD
override for the NGINX service.

Run the following commands to quickly provide the necessary overrides.
This should then alleviate the issue you're running into:

sudo mkdir /etc/systemd/system/nginx.service.d
printf "[Unit]\nAfter=network-online.target\nWants=network-online.target\n" | 
sudo tee /etc/systemd/system/nginx.service.d/override.conf
sudo systemctl daemon-reload


This will help to resolve the problem currently being seen by you, and require 
that IPv6 networking be completed successfully and be 'online' before binding.

------

However, this is not a bug in this package and not fixable at the
moment, as when you intend to bind to a specific IP address you must
also provide the relevant overrides to SystemD.

** Changed in: nginx (Ubuntu)
       Status: New => Won't Fix

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1786974

Title:
  Nginx is starting before IPv6 address is ready

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/nginx/+bug/1786974/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to