Solved nginx-1.22.1_1,3 lua support, failed to load the 'resty.core' module

Hello.
I`a updated nginx up to version nginx-1.22.1_1,3.
nginx with lua support.
Code:
# nginx -t
nginx: the configuration file /usr/local/etc/nginx/nginx.conf syntax is ok
nginx: configuration file /usr/local/etc/nginx/nginx.conf test is successful
Code:
# service nginx start
Performing sanity check on nginx configuration:
nginx: the configuration file /usr/local/etc/nginx/nginx.conf syntax is ok
nginx: configuration file /usr/local/etc/nginx/nginx.conf test is successful
Starting nginx.
nginx: [alert] failed to load the 'resty.core' module ([URL]https://github.com/openresty/lua-resty-core);[/URL] ensure you are using an OpenResty release from [URL]https://openresty.org/en/download.html[/URL] (reason: /usr/local/share/lua/5.1/resty/core/base.lua:23: ngx_http_lua_module 0.10.22 required) in /usr/local/etc/nginx/nginx.conf:76
/usr/local/etc/rc.d/nginx: WARNING: failed to start nginx
Installed programs.
Code:
# pkg version -v | egrep "lua|nginx"
lua-resty-core-0.1.24              =   up-to-date with index
lua-resty-lrucache-0.13            =   up-to-date with index
lua53-5.3.6                        =   up-to-date with index
luajit-openresty-2.1.20220915      =   up-to-date with index
nginx-1.22.1_1,3                   =   up-to-date with index
Code:
# nginx -V
nginx version: nginx/1.22.1
built with OpenSSL 1.1.1o-freebsd  3 May 2022
TLS SNI support enabled
configure arguments: --prefix=/usr/local/etc/nginx --with-cc-opt='-I /usr/local/include' --with-ld-opt='-L /usr/local/lib' --conf-path=/usr/local/etc/nginx/nginx.conf --sbin-path=/usr/local/sbin/nginx --pid-path=/var/run/nginx.pid --error-log-path=/var/log/nginx/error.log --user=www --group=www --with-compat --with-pcre --modules-path=/usr/local/libexec/nginx --with-file-aio --http-client-body-temp-path=/var/tmp/nginx/client_body_temp --http-fastcgi-temp-path=/var/tmp/nginx/fastcgi_temp --http-proxy-temp-path=/var/tmp/nginx/proxy_temp --http-scgi-temp-path=/var/tmp/nginx/scgi_temp --http-uwsgi-temp-path=/var/tmp/nginx/uwsgi_temp --http-log-path=/var/log/nginx/access.log --with-http_v2_module --with-http_addition_module --with-http_auth_request_module --with-http_gunzip_module --with-http_gzip_static_module --with-http_random_index_module --with-http_realip_module --with-http_secure_link_module --with-http_slice_module --with-http_ssl_module --with-http_stub_status_module --with-http_sub_module --with-cc-opt='-DNGX_HAVE_INET6=0 -I /usr/local/include' --without-mail_imap_module --without-mail_pop3_module --without-mail_smtp_module --without-pcre2 --with-stream_ssl_module --with-stream_ssl_preread_module --with-threads --with-stream=dynamic --add-dynamic-module=/usr/ports/www/nginx/work/ngx_devel_kit-0.3.1 --add-dynamic-module=/usr/ports/www/nginx/work/lua-nginx-module-0.10.21

How to fix?
Rollback to old version of nginx-1.22.0_9,3?
To return the version lua-resty-core-0.1.23.
This version lua-resty-core-0.1.23|nginx-1.22.0_9,3 works without errors.
 
Last edited by a moderator:
Back
Top