Public bug reported:
Hi,
in our regular tests one does install a whole bunch of server programs to check
various things like space, ports, ... - In that test I've started to see since
21st December a fail.
When installing in plucky nginx fails to start.
After digging through many red herrings (e.g. the collision with apache
on port 80) I think this still is a real issue, yet I haven't found the
lowest level of root cause.
The following will reproduce the issue:
$ lxc launch ubuntu-daily:p p-metric --ephemeral
$ lxc exec p-metric --env=DEBIAN_FRONTEND=noninteractive -- apt-get update -y
$ lxc exec p-metric --env=DEBIAN_FRONTEND=noninteractive -- apt-get -y install
postgresql-all mysql-server libvirt-daemon-system containerd runc
nfs-kernel-server samba slapd krb5-kdc sssd haproxy pacemaker memcached chrony
nginx apache2 squid python3-django dovecot-imapd dovecot-pop3d postfix openvpn
strongswan
The issue we can see in the log then is
06:05:04 Setting up nginx (1.26.0-3ubuntu1) ...
06:05:04 [0;1;31mJob for nginx.service failed because the control process
exited with error code.[0m
06:05:04
06:05:04 [0;1;31mSee "systemctl status nginx.service" and "journalctl -xeu
nginx.service" for details.[0m
06:05:04
06:05:04 invoke-rc.d: initscript nginx, action "start" failed.
06:05:04 [0;1;31m×[0m nginx.service - A high performance web server and a
reverse proxy server
06:05:04 Loaded: loaded
(]8;;file://metric-server-simple-plucky-vm-c1-m1/usr/lib/systemd/system/nginx.service\/usr/lib/systemd/system/nginx.service]8;;\;
[0;1;32menabled[0m; preset: [0;1;32menabled[0m)
06:05:04 Active: [0;1;31mfailed[0m (Result: exit-code) since Wed
2025-01-01 05:05:04 UTC; 11ms ago
06:05:04 Invocation: 7ccc5da4a95940d28cc0189485a6b4ec
06:05:04 Docs: ]8;;man:nginx(8)\man:nginx(8)]8;;\
06:05:04 Process: 11158 ExecStartPre=/usr/sbin/nginx -t -q -g daemon on;
master_process on; [0;1;31m(code=exited, status=127)[0m
06:05:04 Mem peak: 260K
06:05:04 CPU: 830us
06:05:04
06:05:04 Jan 01 05:05:04 metric-server-simple-plucky-vm-c1-m1 systemd[1]:
Starting nginx.service - A high performance web server and a reverse proxy
server...
06:05:04 Jan 01 05:05:04 metric-server-simple-plucky-vm-c1-m1 systemd[1]:
[0;1;39m[0;1;31m[0;1;39mnginx.service: Control process exited, code=exited,
status=127/n/a[0m
06:05:04 Jan 01 05:05:04 metric-server-simple-plucky-vm-c1-m1 systemd[1]:
[0;1;38:5:185m[0;1;39m[0;1;38:5:185mnginx.service: Failed with result
'exit-code'.[0m
06:05:04 Jan 01 05:05:04 metric-server-simple-plucky-vm-c1-m1 systemd[1]:
[0;1;31m[0;1;39m[0;1;31mFailed to start nginx.service - A high performance
web server and a reverse proxy server.[0m
06:05:04 dpkg: error processing package nginx (--configure):
06:05:04 installed nginx package post-installation script subprocess returned
error exit status 1
So we see the config pre-check failing "/usr/sbin/nginx -t -q -g daemon
on; master_process on" but it isn't telling us how or why.
A simple "install apache2 + nginx" works fine.
I hope I'm rid of many red herrings that tried to lead me the wrong way
and this really is us and will try to simplify the install command to
less programs as it might help to understand why it happens.
** Affects: nginx (Ubuntu)
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2093081
Title:
Installing many packages at once lets the nginx service fail to start
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/nginx/+bug/2093081/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs