Package Details: nginx-mainline-mod-lua 1:0.10.27-1

Git Clone URL: https://aur.archlinux.org/nginx-mainline-mod-lua.git (read-only, click to copy)
Package Base: nginx-mainline-mod-lua
Description: Lua script engine module for mainline nginx
Upstream URL: https://github.com/openresty/lua-nginx-module
Licenses: BSD
Submitter: mtorromeo
Maintainer: ahmubashshir
Last Packager: ahmubashshir
Votes: 7
Popularity: 0.000000
First Submitted: 2017-04-06 09:53 (UTC)
Last Updated: 2024-10-22 07:30 (UTC)

Latest Comments

1 2 Next › Last »

FirstAirBender commented on 2023-04-18 17:56 (UTC) (edited on 2023-04-18 17:58 (UTC) by FirstAirBender)

The latest build is causing failures when starting nginx:

2023/04/18 11:47:46 [emerg] 205360#205360: dlopen() "/usr/lib/nginx/modules/ngx_http_lua_module.so" failed (/usr/lib/nginx/modules/ngx_http_lua_module.so: undefined symbol: pcre_dfa_exec) in /etc/nginx/nginx.conf:4

Reverting to https://aur.archlinux.org/cgit/aur.git/commit/?h=nginx-mainline-mod-lua&id=2402b82cdd1b008e38294aca00ac84202a54efe5 fixes the issue.

I think it's just missing the with-ld-opt=-lpcre option

ahmubashshir commented on 2023-04-18 16:45 (UTC)

@FirstAirBender, please create a pr with fix @ https://github.com/ahmubashshir/pkgbuilds

FirstAirBender commented on 2023-04-18 16:42 (UTC) (edited on 2023-04-18 17:46 (UTC) by FirstAirBender)

This package should be using the same configure flags used to build nginx-mainline. With the current configuration, it does not support ssl directives such as lua_ssl_trusted_certificate.

Issue was initially raised at https://github.com/openresty/lua-nginx-module/issues/2180, but after the build flags were updated and tested, we can see that the issue is resolved by adding the flags used to build nginx itself, which can retrieved using nginx -V

At the very least, it needs the --with-http_ssl_module flag.

ahmubashshir commented on 2023-03-13 16:54 (UTC)

@brauliobo, you need to rebuild all nginx modules each time you update nginx.

brauliobo commented on 2023-03-12 19:46 (UTC) (edited on 2023-03-12 19:48 (UTC) by brauliobo)

$ nginx  sudo nginx -t              
2023/03/12 16:44:49 [emerg] 416729#416729: module "/usr/lib/nginx/modules/ngx_http_lua_module.so" version 1023002 instead of 1023003 in /etc/nginx/nginx.conf:3
nginx: configuration file /etc/nginx/nginx.conf test failed

Stargateur commented on 2021-03-27 12:17 (UTC)

This doesn't to work at all

leuko commented on 2021-03-14 08:32 (UTC)

I installed luajit-openresty but get the following error:

...
configuring additional dynamic modules
adding module in ../lua-nginx-module-0.10.19
checking for LuaJIT library in /usr/lib and /usr/include/luajit-2.0 (specified by the LUAJIT_LIB and LUAJIT_INC env, with -ldl) ... found
checking for LuaJIT 2.x ... not found
    /usr/src/nginx/configure: error: unsupported LuaJIT version; ngx_http_lua_module requires LuaJIT 2.x.

installing luajit package solves the error, but luajit 2.0 is not recommended by openresty.

ahmubashshir commented on 2020-10-07 13:43 (UTC)

I have to apply this patch to keep nginx working...

--- src/lua-nginx-module-0.10.17/src/ngx_http_lua_util.c
+++ src/lua-nginx-module-0.10.17/src/ngx_http_lua_util.c
@@ -3926,9 +3926,24 @@

         lua_pop(L, 2);
     }
-
     *new_vm = L;

+    int setLuaPath( lua_State* L, const char* path )
+    {
+        lua_getglobal( L, "package" );
+        lua_getfield( L, -1, "path" ); // get field "path" from table at top of stack (-1)
+        char cur_path[1024];
+        strcpy(cur_path, lua_tostring( L, -1 )); // grab path string from top of stack
+        strcpy(cur_path, ";");
+        strcpy(cur_path, path);
+        lua_pop( L, 1 ); // get rid of the string on the stack we just pushed on line 5
+        lua_pushstring( L, cur_path ); // push the new one
+        lua_setfield( L, -2, "path" ); // set the field "path" in table at -2 with value at top of stack
+        lua_pop( L, 1 ); // get rid of package table from top of stack
+        return 0; // all done!
+    }
+    setLuaPath(L, "./?.lua;/usr/share/lua/5.1/?.lua;/usr/share/lua/5.1/?/init.lua;/usr/lib/lua/5.1/?.lua;/usr/lib/lua/5.1/?/init.lua");
+
     lua_getglobal(L, "require");
     lua_pushstring(L, "resty.core");

l1n commented on 2020-07-28 15:21 (UTC)

It's possibly that resty.core will need to be packaged as well, see https://github.com/openresty/lua-nginx-module/issues/1641 (the lua-resty-core library is required since ngx_lua v0.10.16).

ahmubashshir commented on 2020-07-22 15:37 (UTC)

nginx-mainline fails to start throwing error.

Jul 22 21:33:41 mubashshir-pc nginx[894599]:         no file './resty/core.so'
Jul 22 21:33:41 mubashshir-pc nginx[894599]:         no file '/usr/local/lib/lua/5.1/resty/core.so'
Jul 22 21:33:41 mubashshir-pc nginx[894599]:         no file '/usr/lib/lua/5.1/resty/core.so'
Jul 22 21:33:41 mubashshir-pc nginx[894599]:         no file '/usr/local/lib/lua/5.1/loadall.so'
Jul 22 21:33:41 mubashshir-pc nginx[894599]:         no file './resty.so'
Jul 22 21:33:41 mubashshir-pc nginx[894599]:         no file '/usr/local/lib/lua/5.1/resty.so'
Jul 22 21:33:41 mubashshir-pc nginx[894599]:         no file '/usr/lib/lua/5.1/resty.so'
Jul 22 21:33:41 mubashshir-pc nginx[894599]:         no file '/usr/local/lib/lua/5.1/loadall.so') in /etc/nginx/nginx.conf:242