-
Notifications
You must be signed in to change notification settings - Fork 279
Description
we are trying to update our nginx from 1.20 to 1.24 or 1.25 with latest lua nginx. but facing issue in doing so .
Using the latest stable version
https://github.com/openresty/lua-nginx-module/archive/refs/tags/v0.10.26rc1.tar.gz
I am using nginx :
Nginx:
https://nginx.org/packages/mainline/rhel/8/SRPMS/nginx-1.25.3-1.el8.ngx.src.rpm
Luajit:
wget https://github.com/openresty/luajit2/archive/refs/tags/v2.1-20231117.tar.gz
Lua-nginx:
https://github.com/openresty/lua-nginx-module/archive/refs/tags/v0.10.25.tar.gz
njs version:
https://github.com/nginx/njs/archive/refs/tags/0.8.2.tar.gz
I am getting error
nginx: [warn] lua_load_resty_core is deprecated (the lua-resty-core library is required since ngx_lua v0.10.16) in /etc/nginx/nginx.conf:58 2023/12/18 09:08:27 [warn] 1#1: the "listen ... http2" directive is deprecated, use the "http2" directive instead in /etc/nginx/conf.d/infra.conf:43 nginx: [warn] the "listen ... http2" directive is deprecated, use the "http2" directive instead in /etc/nginx/conf.d/infra.conf:43 2023/12/18 09:08:27 [warn] 1#1: the "listen ... http2" directive is deprecated, use the "http2" directive instead in /etc/nginx/conf.d/infra.conf:44 nginx: [warn] the "listen ... http2" directive is deprecated, use the "http2" directive instead in /etc/nginx/conf.d/infra.conf:44 2023/12/18 09:08:27 [warn] 1#1: the "listen ... http2" directive is deprecated, use the "http2" directive instead in /etc/nginx/conf.d/infra.conf:836 nginx: [warn] the "listen ... http2" directive is deprecated, use the "http2" directive instead in /etc/nginx/conf.d/infra.conf:836 2023/12/18 09:08:27 [warn] 1#1: the "listen ... http2" directive is deprecated, use the "http2" directive instead in /etc/nginx/conf.d/infra.conf:837 nginx: [warn] the "listen ... http2" directive is deprecated, use the "http2" directive instead in /etc/nginx/conf.d/infra.conf:837 2023/12/18 09:08:27 [warn] 1#1: the "listen ... http2" directive is deprecated, use the "http2" directive instead in /etc/nginx/conf.d/infra.conf:1009 nginx: [warn] the "listen ... http2" directive is deprecated, use the "http2" directive instead in /etc/nginx/conf.d/infra.conf:1009 2023/12/18 09:08:27 [warn] 1#1: the "listen ... http2" directive is deprecated, use the "http2" directive instead in /etc/nginx/conf.d/infra.conf:1010 nginx: [warn] the "listen ... http2" directive is deprecated, use the "http2" directive instead in /etc/nginx/conf.d/infra.conf:1010 2023/12/18 09:08:27 [warn] 1#1: the "listen ... http2" directive is deprecated, use the "http2" directive instead in /etc/nginx/conf.d/infra.conf:1562 nginx: [warn] the "listen ... http2" directive is deprecated, use the "http2" directive instead in /etc/nginx/conf.d/infra.conf:1562 2023/12/18 09:08:27 [warn] 1#1: the "listen ... http2" directive is deprecated, use the "http2" directive instead in /etc/nginx/conf.d/infra.conf:1563 nginx: [warn] the "listen ... http2" directive is deprecated, use the "http2" directive instead in /etc/nginx/conf.d/infra.conf:1563 2023/12/18 09:08:27 [alert] 1#1: failed to load the 'resty.core' module (https://github.com/openresty/lua-resty-core); ensure you are using an OpenResty release from https://openresty.org/en/download.html (reason: module 'resty.core' not found: no field package.preload['resty.core'] no file '/etc/nginx/webui/lua/callhome/resty/core.lua' no file '/etc/nginx/webui/lua/hostadmin-mfa/resty/core.lua' no file '/etc/nginx/webui/lua/common/resty/core.lua' no file '/etc/nginx/webui/lua/eca/resty/core.lua' no file '/etc/nginx/webui/lua/fips-compliance-check/resty/core.lua' no file '/etc/nginx/webui/lua/smtp/resty/core.lua' no file '/etc/nginx/webui/lua/smart-card/resty/core.lua' no file './resty/core.lua' no file '//share/luajit-2.1/resty/core.lua' no file '/usr/local/share/lua/5.1/resty/core.lua' no file '/usr/local/share/lua/5.1/resty/core/init.lua' no file '//share/lua/5.1/resty/core.lua' no file '//share/lua/5.1/resty/core/init.lua' no file './resty/core.so' no file '/usr/local/lib/lua/5.1/resty/core.so' no file '//lib/lua/5.1/res in /etc/nginx/nginx.conf:151 nginx: [alert] failed to load the 'resty.core' module (https://github.com/openresty/lua-resty-core); ensure you are using an OpenResty release from https://openresty.org/en/download.html (reason: module 'resty.core' not found: no field package.preload['resty.core'] no file '/etc/nginx/webui/lua/callhome/resty/core.lua' no file '/etc/nginx/webui/lua/hostadmin-mfa/resty/core.lua' no file '/etc/nginx/webui/lua/common/resty/core.lua' no file '/etc/nginx/webui/lua/eca/resty/core.lua' no file '/etc/nginx/webui/lua/fips-compliance-check/resty/core.lua' no file '/etc/nginx/webui/lua/smtp/resty/core.lua' no file '/etc/nginx/webui/lua/smart-card/resty/core.lua' no file './resty/core.lua' no file '//share/luajit-2.1/resty/core.lua' no file '/usr/local/share/lua/5.1/resty/core.lua' no file '/usr/local/share/lua/5.1/resty/core/init.lua' no file '//share/lua/5.1/resty/core.lua' no file '//share/lua/5.1/resty/core/init.lua' no file './resty/core.so' no file '/usr/local/lib/lua/5.1/resty/core.so' no file '//lib/lua/5.1/res in /etc/nginx/nginx.conf:151
From lines from error "nginx: [alert] failed to load the 'resty.core' module (https://github.com/openresty/lua-resty-core); ensure you are using an OpenResty release from https://openresty.org/en/download.html (reason: module 'resty.core' not found:"
It is suggesting to use complete openresty package from https://openresty.org/en/download.html
Can we just use resty.core module insted of whole package? If yes which version should i pick?