Nginx lua upstream in 3.13 breaks nginx
Installing package nginx-mod-http-lua-upstream
version 1.18.0-r13
, which is the latest in Alpine 3.13 results in the following error and crash of nginx:
nginx: [emerg] dlopen() "/var/lib/nginx/modules/ngx_http_lua_upstream_module.so" failed (Error relocating /var/lib/nginx/modules/ngx_http_lua_upstream_module.so: lua_concat: symbol not found) in /etc/nginx/modules/20_http_lua_upstream.conf:1
Here's a basic test:
~$ docker run --rm -it alpine:3.13 /bin/sh -c 'apk add --no-cache nginx-mod-http-lua-upstream && nginx'
fetch https://dl-cdn.alpinelinux.org/alpine/v3.13/main/x86_64/APKINDEX.tar.gz
fetch https://dl-cdn.alpinelinux.org/alpine/v3.13/community/x86_64/APKINDEX.tar.gz
(1/9) Installing pcre (8.44-r0)
(2/9) Installing nginx (1.18.0-r13)
Executing nginx-1.18.0-r13.pre-install
Executing nginx-1.18.0-r13.post-install
(3/9) Installing nginx-mod-devel-kit (1.18.0-r13)
(4/9) Installing libgcc (10.2.1_pre1-r3)
(5/9) Installing luajit (2.2.0-r3)
(6/9) Installing lua-resty-lrucache (0.09-r1)
(7/9) Installing lua-resty-core (0.1.21-r0)
(8/9) Installing nginx-mod-http-lua (1.18.0-r13)
(9/9) Installing nginx-mod-http-lua-upstream (1.18.0-r13)
Executing busybox-1.32.1-r2.trigger
OK: 9 MiB in 23 packages
nginx: [emerg] dlopen() "/var/lib/nginx/modules/ngx_http_lua_upstream_module.so" failed (Error relocating /var/lib/nginx/modules/ngx_http_lua_upstream_module.so: lua_concat: symbol not found) in /etc/nginx/modules/20_http_lua_upstream.conf:1
Edited by aptalca