[Pkg-nginx-maintainers] Bug#1000406: nginx-common: Nginx starts before DNS is ready

Jeremy Ouellet jeremy at jouellet.net
Mon Nov 22 17:45:01 GMT 2021


Package: nginx-common
Severity: normal

Dear Maintainer,

I was messing with nginx remote proxy and found that it would crash on 
startup.
I looked into the service file and it depended on network.target. I 
changed it
to network-online.target so that it would work.

I beleive that nginx should wait for the network to be online before 
starting
as this makes it so you can use domain names in proxy_pass. I googled 
for this
issue and most people just give workarounds and I feel like the use 
cases for
using just nework.target are minimal.

-- System Information:
Debian Release: 11.1
APT prefers stable-security
APT policy: (500, 'stable-security'), (500, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.10.0-9-amd64 (SMP w/8 CPU threads)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE,
TAINT_UNSIGNED_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not
set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages nginx-common depends on:
ii debconf [debconf-2.0] 1.5.77
ii lsb-base 11.1.0

nginx-common recommends no packages.

Versions of packages nginx-common suggests:
pn fcgiwrap <none>



More information about the Pkg-nginx-maintainers mailing list