Skip to content

Upgrade lua-nginx-module to 0.10.15

Anton Tolchanov requested to merge knyar/nginx:lua into master

As tracked in the following bug, the version of lua-nginx-module module currently shipped in Debian 11 (0.10.13) is not compatible with the packaged nginx version (1.18), which results in nginx process segfaulting if a trivial feature of the module is used (the init_worker_by_lua_block parameter): https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=994178

This merge request upgrades the packaged version of the lua module to 0.10.15. I've used the following commands to prepare the upgrade commmit:

wget -O ../libnginx-mod-http-lua-0.10.15.tar.gz https://github.com/openresty/lua-nginx-module/archive/refs/tags/v0.10.15.tar.gz
python3 ngxmod update --upstream-version 0.10.15 http-lua

Note that the latest version of lua-nginx-module is 0.10.19, however upgrading to it is more tricky than upgrading to 0.10.15. Beginning with version 0.10.16, lua-nginx-module requires the lua-resty-core library (https://github.com/openresty/lua-resty-core) to be available, and I have not been able to find it packaged in Debian. There are several options on how to package that lua library (either as a separate Ubuntu package, or together with libnginx-mod-http-lua), which is probably something that Ubuntu nginx maintainers should decide.

While lua-nginx-module v0.10.15 expects the lua-resty-core library to be present by default, it is the last version of the library that works without it. The second commit of this merge request makes the library not use lua-resty-core by default.

A few references to provide more context:

Merge request reports

Loading