openresty / openresty/lua-nginx-module
Nginx+lua-nginx-module+luajit2-2.1 nginx启动报错
Nobody has claimed this yet.
- Dominant language
- C
- Stars
- 11.8k
- Forks
- 2.1k
- Avg merge
- 6h 1m
- Merged PRs (30d)
- 6
Description
/usr/local/nginx-1.16.1/sbin/nginx
nginx: [error] failed to run the Lua code for coroutine.wrap(): 2: coroutine.wrap:2: module 'thread.exdata' not found:
no field package.preload['thread.exdata']
no file './thread/exdata.lua'
no file '/usr/local/share/luajit-2.0.4/thread/exdata.lua'
no file '/usr/local/share/lua/5.1/thread/exdata.lua'
no file '/usr/local/share/lua/5.1/thread/exdata/init.lua'
no file './thread/exdata.so'
no file '/usr/local/lib/lua/5.1/thread/exdata.so'
no file '/usr/local/lib/lua/5.1/loadall.so'
no file './thread.so'
no file '/usr/local/lib/lua/5.1/thread.so'
no file '/usr/local/lib/lua/5.1/loadall.so'
yum -y install zlib zlib-devel openssl openssl--devel pcre pcre-devel
下载LuaJIT wget https://luajit.org/download/luajit2-2.1.tar.gz
下载ngx_devel_kit wget https://github.com/vision5/ngx_devel_kit/archive/v0.3.1.tar.gz
下载ngx_lua https://github.com/openresty/lua-nginx-module/archivev/0.10.14.tar.gz
下载nginx wget https://nginx.org/download/nginx-1.16.1.tar.gz
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 by reproducing the startup command /usr/local/nginx-1.16.1/sbin/nginx with the listed Nginx, ngx_devel_kit, lua-nginx-module, and LuaJIT versions. Inspect the Lua module search paths in the error and the build/install commands to determine why thread.exdata is unavailable; done means identifying a confirmed compatibility or installation cause and documenting the required configuration.
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
- 20/100