Package: nginx Version: 1.10.3-1+deb9u1 Severity: normal Dear Maintainer,
every time there is a security update, nginx is not running and has to be started manually, probably hours later, because the automatic restart failed. example logs below - it seems systemctl stop does not stop nginx, which means that scripts that stop and start nginx will always leave nginx in failed state. this is probably related to 821111, which has been reported over two years ago, which is a rather long time to not have fixed such an essential bug, which is why I am not sure whether it is caused by the same issue or is a new bug. Jul 29 12:22:32 nwah3 systemd[1]: Stopping A high performance web server and a reverse proxy server... Jul 29 12:22:33 nwah3 systemd[1]: Stopped A high performance web server and a reverse proxy server. Jul 29 12:22:38 nwah3 systemd[1]: Starting A high performance web server and a reverse proxy server... Jul 29 12:22:38 nwah3 nginx[32123]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use) Jul 29 12:22:38 nwah3 nginx[32123]: nginx: [emerg] bind() to 0.0.0.0:443 failed (98: Address already in use) Jul 29 12:22:39 nwah3 nginx[32123]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use) Jul 29 12:22:39 nwah3 nginx[32123]: nginx: [emerg] bind() to 0.0.0.0:443 failed (98: Address already in use) Jul 29 12:22:39 nwah3 nginx[32123]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use) Jul 29 12:22:39 nwah3 nginx[32123]: nginx: [emerg] bind() to 0.0.0.0:443 failed (98: Address already in use) Jul 29 12:22:40 nwah3 nginx[32123]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use) Jul 29 12:22:40 nwah3 nginx[32123]: nginx: [emerg] bind() to 0.0.0.0:443 failed (98: Address already in use) Jul 29 12:22:41 nwah3 nginx[32123]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use) Jul 29 12:22:41 nwah3 nginx[32123]: nginx: [emerg] bind() to 0.0.0.0:443 failed (98: Address already in use) Jul 29 12:22:41 nwah3 nginx[32123]: nginx: [emerg] still could not bind() Jul 29 12:22:41 nwah3 systemd[1]: nginx.service: Control process exited, code=exited status=1 Jul 29 12:22:41 nwah3 systemd[1]: Failed to start A high performance web server and a reverse proxy server. Jul 29 12:22:41 nwah3 systemd[1]: nginx.service: Unit entered failed state. Jul 29 12:22:41 nwah3 systemd[1]: nginx.service: Failed with result 'exit-code'. Jul 30 00:40:45 nwah3 systemd[1]: Starting A high performance web server and a reverse proxy server... Jul 30 00:40:45 nwah3 nginx[29448]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use) Jul 30 00:40:45 nwah3 nginx[29448]: nginx: [emerg] bind() to 0.0.0.0:443 failed (98: Address already in use) Jul 30 00:40:45 nwah3 nginx[29448]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use) Jul 30 00:40:45 nwah3 nginx[29448]: nginx: [emerg] bind() to 0.0.0.0:443 failed (98: Address already in use) Jul 30 00:40:46 nwah3 nginx[29448]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use) Jul 30 00:40:46 nwah3 nginx[29448]: nginx: [emerg] bind() to 0.0.0.0:443 failed (98: Address already in use) Jul 30 00:40:46 nwah3 nginx[29448]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use) Jul 30 00:40:46 nwah3 nginx[29448]: nginx: [emerg] bind() to 0.0.0.0:443 failed (98: Address already in use) Jul 30 00:40:47 nwah3 nginx[29448]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use) Jul 30 00:40:47 nwah3 nginx[29448]: nginx: [emerg] bind() to 0.0.0.0:443 failed (98: Address already in use) Jul 30 00:40:47 nwah3 nginx[29448]: nginx: [emerg] still could not bind() Jul 30 00:40:47 nwah3 systemd[1]: nginx.service: Control process exited, code=exited status=1 Jul 30 00:40:47 nwah3 systemd[1]: Failed to start A high performance web server and a reverse proxy server. Jul 30 00:40:47 nwah3 systemd[1]: nginx.service: Unit entered failed state. Jul 30 00:40:47 nwah3 systemd[1]: nginx.service: Failed with result 'exit-code'. Jul 31 09:27:35 nwah3 systemd[1]: Starting A high performance web server and a reverse proxy server... Jul 31 09:27:35 nwah3 systemd[1]: Started A high performance web server and a reverse proxy server. -- System Information: Debian Release: 9.4 APT prefers stable APT policy: (990, 'stable'), (500, 'stable-updates'), (500, 'unstable'), (500, 'testing'), (1, 'experimental') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 4.14.58-041458-generic (SMP w/8 CPU cores) Locale: LANG=C, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=C (charmap=UTF-8) Shell: /bin/sh linked to /usr/bin/bash Init: systemd (via /run/systemd/system) Versions of packages nginx depends on: ii nginx-full 1.10.3-1+deb9u1 nginx recommends no packages. nginx suggests no packages. -- no debconf information