openresty / openresty/headers-more-nginx-module
[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:
Nobody has claimed this yet.
- Dominant language
- C
- Stars
- 1.8k
- Forks
- 236
- Avg merge
- 1h 34m
- Merged PRs (30d)
- 2
Description
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
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 at nginx.conf line 151 and review how the headers-more dynamic module is built and loaded alongside the listed NGINX, LuaJIT, njs, and headers-more versions. Check the module-loading configuration and the reported Lua search paths; done means NGINX starts without the resty.core loading error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c, lua, nginx
- Domain
- backend, devops
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100