openresty / lua-nginx-module

Embed the Power of Lua into NGINX HTTP servers
https://openresty.org/
11.3k stars 2.03k forks source link

ngx_http_lua_module.so throws error #1885

Open ajiv opened 3 years ago

ajiv commented 3 years ago

Hi Team, we are getting below error on Nginx Prod server; We have disabled the ngx_http_lua_module.so for now and Nginx started working; Also let us know why this error started all of a sudden and how to fix it

“ 2021/05/27 06:34:02 [emerg] 42165#42165: dlopen() "/usr/share/nginx/modules/ngx_http_lua_module.so" failed (/usr/share/nginx/modules/ngx_http_lua_module.so: undefined symbol: ndk_set_var_value) in /usr/share/nginx/modules-available/mod-http-lua.conf:1”

zhuizhuhaomeng commented 3 years ago

It's better to build ngx_http_lua_module into nginx statically but not build as so. ndk_set_var_value in a function from set-misc-nginx-module.

It's better to use the tarball below to build openresty/nginx, because it has applied many patches. https://github.com/openresty/openresty/tags