openresty / openresty/lua-nginx-module
nginx: [error] failed to initialize Lua VM in /xxx/nginx/conf/nginx.conf:126
Nobody has claimed this yet.
- Dominant language
- C
- Stars
- 11.8k
- Forks
- 2.1k
- Avg merge
- 6h 1m
- Merged PRs (30d)
- 6
Description
./configure --prefix=/xxx/nginx --user=xxx --group=xxx
--with-ld-opt="-Wl,-rpath,/xxx/nginx/luajit/lib -Wl,-rpath,/xxxnginx/sregex/lib"
--add-module=../ngx_devel_kit --add-module=../lua-nginx-module --add-module=../ngx_http_gipdb_module
nginx 1.16.1
lua-nginx-module v0.10.14
luajit2 v2.1-20190626
openssl 1.0.2k
[root@QINGHAI_CACHE_MGED001 gslb_soft]# /xxx/nginx/sbin/nginx -c /xxx/nginx/conf/nginx.conf -t
nginx: the configuration file /xxx/nginx/conf/nginx.conf syntax is ok
nginx: configuration file /xxx/nginx/conf/nginx.conf test is successful
[root@QINGHAI_CACHE_MGED001 gslb_soft]# /xxx/nginx/sbin/nginx -c /xxx/nginx/conf/nginx.conf
nginx: [error] failed to initialize Lua VM in /xxx/nginx/conf/nginx.conf:126
-
nginx.conf
http {
include mime.types;
default_type application/octet-stream;sendfile on;
keepalive_timeout 65;
gipdb /root/sample_long_ip_json_2019_09_05.txt;
server {
listen 80;
server_name localhost;location / { gipdb_specifies_addr "2001:250:21C::"; return 200 "raw_info:$gipdb_raw"; root html; index index.html index.htm; }}
}
4.No lua scripts are used in the configuration, except that the gipdb module loads a 30MB ip library at initialization time.
thank you very much for your answer.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the reported build and launch commands with nginx 1.16.1, lua-nginx-module v0.10.14, LuaJIT 2.1-20190626, and the shown nginx.conf. Inspect the Lua VM initialization path around the failure at nginx.conf:126, especially with the gipdb module loading its 30MB IP library. Done means identifying and documenting the cause, with a verified fix or clear reproduction details.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c, nginx
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100