openresty / openresty/openresty
openresty 1.19.3.1, ngx_lua 0.9.5+ required, ngx_upstream_lua module required
Nobody has claimed this yet.
- Dominant language
- C
- Stars
- 14k
- Forks
- 1.6k
- PR merge metrics
- No merged PRs in 30d
Description
Hello!
I've installed the openresty for centos 7 from the binaries at https://openresty.org/package/centos/7/x86_64/. I need the upstream healthcheck module (resty.upstream.healthcheck). But the following error occurs:
2021/01/20 13:20:35 [error] 18634#18634: init_worker_by_lua error: /usr/local/openresty/lualib/resty/upstream/healthcheck.lua:27: ngx_lua 0.9.5+ required
stack traceback:
[C]: in function 'error'
/usr/local/openresty/lualib/resty/upstream/healthcheck.lua:27: in main chunk
[C]: in function 'require'
init_worker_by_lua:3: in main chunk
which clearly states that there're problems with ngx_lua version.
When I output the version (error(ngx.config.ngx_lua_version)) I'm getting the number "9", that's it. If I comment out the check for the version library at resty/upstream/healthcheck.lua I get another error - ngx_upstream_lua module required.
openresty -V gives me
nginx version: openresty/1.19.3.1
built by gcc 8.3.1 20190311 (Red Hat 8.3.1-3) (GCC)
built with OpenSSL 1.1.1h 22 Sep 2020 (running with OpenSSL 1.1.1i 8 Dec 2020)
TLS SNI support enabled
configure arguments: --prefix=/usr/local/openresty/nginx --with-cc-opt='-O2 -DNGX_LUA_ABORT_AT_PANIC -I/usr/local/openresty/zlib/include -I/usr/local/openresty/pcre/include -I/usr/local/openresty/openssl111/include' --add-module=../ngx_devel_kit-0.3.1 --add-module=../echo-nginx-module-0.62 --add-module=../xss-nginx-module-0.06 --add-module=../ngx_coolkit-0.2 --add-module=../set-misc-nginx-module-0.32 --add-module=../form-input-nginx-module-0.12 --add-module=../encrypted-session-nginx-module-0.08 --add-module=../srcache-nginx-module-0.32 --add-module=../ngx_lua-0.10.19 --add-module=../ngx_lua_upstream-0.07 --add-module=../headers-more-nginx-module-0.33 --add-module=../array-var-nginx-module-0.05 --add-module=../memc-nginx-module-0.19 --add-module=../redis2-nginx-module-0.15 --add-module=../redis-nginx-module-0.3.7 --add-module=../ngx_stream_lua-0.0.9 --with-ld-opt='-Wl,-rpath,/usr/local/openresty/luajit/lib -L/usr/local/openresty/zlib/lib -L/usr/local/openresty/pcre/lib -L/usr/local/openresty/openssl111/lib -Wl,-rpath,/usr/local/openresty/zlib/lib:/usr/local/openresty/pcre/lib:/usr/local/openresty/openssl111/lib' --with-cc='ccache gcc -fdiagnostics-color=always' --with-pcre-jit --with-stream --with-stream_ssl_module --with-stream_ssl_preread_module --with-http_v2_module --without-mail_pop3_module --without-mail_imap_module --without-mail_smtp_module --with-http_stub_status_module --with-http_realip_module --with-http_addition_module --with-http_auth_request_module --with-http_secure_link_module --with-http_random_index_module --with-http_gzip_static_module --with-http_sub_module --with-http_dav_module --with-http_flv_module --with-http_mp4_module --with-http_gunzip_module --with-threads --with-compat --with-stream --with-http_ssl_module
Looks like I'm supposed to have the required modules but for some reasons I don't. Are there any ideas on what I did wrong? Thank you!
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 with the error path in /usr/local/openresty/lualib/resty/upstream/healthcheck.lua at line 27, then compare ngx.config.ngx_lua_version and the modules listed by openresty -V. Trace the init_worker_by_lua require path and verify how ngx_upstream_lua is detected. Done means identifying the binary or module mismatch and documenting a reproducible correction.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- lua, nginx
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100