Public bug reported:
Ubuntu release: 24.04 LTS (Noble), amd64
Affected nginx versions:
- 1.24.0-2ubuntu7.20
- 1.24.0-2ubuntu7.21
Working nginx version:
- 1.24.0-2ubuntu7
External modules:
- libnginx-mod-http-lua 1:0.10.26-2
- libnginx-mod-http-ndk from Noble
Summary
=======
After unattended-upgrade changed nginx from 1.24.0-2ubuntu7 to
1.24.0-2ubuntu7.20, requests executing set_by_lua_file stopped working.
nginx -t succeeded and nginx.service remained active, but workers failed
while processing requests. This caused a production VOD playback outage.
Rolling nginx and its version-coupled modules back to 1.24.0-2ubuntu7
immediately restored service without any configuration or Lua-module
changes.
The issue remains reproducible with the current candidate
1.24.0-2ubuntu7.21.
The Lua package depends on nginx-abi-1.24.0-1, which is provided by all
three nginx builds, so APT considers the combinations compatible.
Minimal reproducer
==================
test.lua:
return "lua-ok:" .. (ngx.arg[1] or "missing")
test.conf:
load_module /usr/lib/nginx/modules/ndk_http_module.so;
load_module /usr/lib/nginx/modules/ngx_http_lua_module.so;
pid /tmp/nginx-lab/nginx.pid;
error_log /tmp/nginx-lab/error.log notice;
events {}
http {
access_log off;
server {
listen 127.0.0.1:18081;
location / {
set $input "argument-ok";
set $result "";
set_by_lua_file $result /tmp/nginx-lab/test.lua $input;
return 200 "$result\n";
}
}
}
The directory and Lua file are readable by the nginx worker.
A/B result
==========
Using the same host, configuration, Lua file, permissions, and installed
Lua/NDK modules:
nginx 1.24.0-2ubuntu7:
HTTP/1.1 200 OK
lua-ok:argument-ok
curl exit code 0
nginx 1.24.0-2ubuntu7.21:
curl: (52) Empty reply from server
curl exit code 52
[alert] worker process exited on signal 11 (core dumped)
Both binaries report nginx/1.24.0 (Ubuntu) and both pass nginx -t
successfully.
Production symptoms
===================
With 1.24.0-2ubuntu7.20, the error log repeatedly reported:
failed to load external Lua file "/usr/share/nginx/":
cannot read /usr/share/nginx/: Is a directory
The effective configuration contained a valid absolute path:
set_by_lua_file $hexdatetime /etc/nginx/check-time.lua ...
This suggests runtime corruption or an ABI incompatibility between the
security-update nginx binary and the Noble Lua dynamic module.
Expected result
===============
nginx security updates providing nginx-abi-1.24.0-1 should remain
runtime-compatible with libnginx-mod-http-lua, or the ABI/package
dependency should change so APT upgrades/rebuilds affected external
modules together.
Additional notes
================
- HTTP/2 was not enabled in the affected production virtual host.
- nginx -t does not detect the failure.
- The master remains active and starts another worker after the crash, which
can hide the outage from service-level health checks.
- nginx is currently held at 1.24.0-2ubuntu7 as a temporary rollback.
ProblemType: Bug
DistroRelease: Ubuntu 24.04
Package: nginx 1.24.0-2ubuntu7
ProcVersionSignature: Ubuntu 6.8.0-138.138-generic 6.8.12
Uname: Linux 6.8.0-138-generic x86_64
ApportVersion: 2.28.1-0ubuntu3.8
Architecture: amd64
CasperMD5CheckResult: unknown
CloudBuildName: server
CloudSerial: 20250805
Date: Fri Nov 20 16:15:32 2026
ProcEnviron:
LANG=C.UTF-8
PATH=(custom, no user)
SHELL=/bin/bash
TERM=xterm-256color
XDG_RUNTIME_DIR=<set>
RebootRequiredPkgs: Error: path contained symlinks.
SourcePackage: nginx
UpgradeStatus: No upgrade log present (probably fresh install)
** Affects: nginx (Ubuntu)
Importance: Undecided
Status: New
** Tags: amd64 apport-bug cloud-image noble
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2175404
Title:
nginx 1.24.0-2ubuntu7.20/.21 crashes worker on set_by_lua_file with
libnginx-mod-http-lua
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/nginx/+bug/2175404/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs