Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[NOT ABLE TO ADD HEADERS_MORE NGINX MODULE][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: #155

Open
pranav26397 opened this issue Dec 21, 2023 · 0 comments

Comments

@pranav26397
Copy link

I am trying to add header-more nginx module,
added below line in nginx.conf
load_module /etc/nginx/modules/ngx_http_headers_more_filter_module.so;

and

--add-dynamic-module=""

using below versions.
NGINX_LUA = "lua-nginx-module-0.10.21.tar.gz"
LUAJIT = "luajit2-2.1-20220411.tar.gz"
NGINX_NJS="njs-0.7.7.tar.gz"
HEADER_MORE="v0.33.tar.gz"

tried with headers-more v0.34 and 0.35 as well

getting below error.

2023/12/21 11:47:44 [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.0-beta3/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 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.0-beta3/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 in /etc/nginx/nginx.conf:151

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant