-
Notifications
You must be signed in to change notification settings - Fork 2k
nginx: [error] lua_load_resty_core failed to load the resty.core module #1533
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
Comments
my system is CentOS7:Linux localhost.localdomain 3.10.0-514.el7.x86_64 #1 SMP Tue Nov 22 16:42:41 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux |
See #1501 (comment). |
thank you ,i try |
How do you actually do this? I am having same problem. |
I am using the official docker container, isn't that supposed to be in the path already? |
Example: sudo nano /etc/nginx/nginx.conf
|
my question exactly |
see openresty/lua-nginx-module#1533 Signed-off-by: Forest Eckhardt <[email protected]>
Where is |
Any fixes available for this please? I have a similar issue on MAC M1, while running on docker. nginx shows as starting up successfully but the logs show PANIC! How to include in package.path for docker? Any way to add in nginx config file ? |
Did you add the path to your nginx config? |
Indeed I have, but I get this error consistently when nginx starts up. PANIC: unprotected error in call to Lua API (bad light userdata pointer), am using LuaJIT Version 2.1.0-beta3 and openresty-lua-nginx-module of version 0.10.15. Ngnix alpine version of 1.14.2. Badly stuck on this, tried all kinds of workarounds, like adding lua package path and upgrading libraries, but nothing works :( Please can anyone help resolve. :( :( |
Please clarify if you are using the latest openresty version of LuaJIT v2.1-20210510? If you are using openresty-lua-nginx-module then you need to use the openresty version of lua jit |
I've spent a whole day looking for a solution. and setup nginx.conf file regarding the documentation. |
I am now having the same problem. I will try clone current project from lua-resty-core |
you should add the detail info about how you build your openresty/nginx |
Turns out I was using an older version of the code and by cloning the current project I was able to build fine on Ubuntu 20. Sorry for the confusion. |
I'v solved it by add it to the path's last:
|
amazing solution!! |
Is there a way to custom the path, I have install openresty in |
Maybe you should check out the errors,Is different from the before. |
Thanks for your help!
base info:
configure command for nginx:
./configure --prefix=/opt/nginx-1.10.1 --with-ld-opt='-ljemalloc' --with-ld-opt="-Wl,-rpath,/usr/local/luajit/lib" --add-module=/usr/local/src/freeapis-nginx/lua-nginx-module-0.10.2 --add-module=/usr/local/src/freeapis-nginx/ngx_devel_kit-0.2.19
error messages in nginx startup:
nginx: [error] lua_load_resty_core failed to load the resty.core module from https://github.com/openresty/lua-resty-core; ensure you are using an OpenResty release from https://openresty.org/en/download.html (rc: 2, reason: module 'resty.core' not found:
no field package.preload['resty.core']
no file './resty/core.lua'
no file '/usr/local/luajit/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 '/usr/local/luajit/share/lua/5.1/resty/core.lua'
no file '/usr/local/luajit/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 '/usr/local/luajit/lib/lua/5.1/resty/core.so'
no file '/usr/local/lib/lua/5.1/loadall.so'
no file './resty.so'
no file '/usr/local/lib/lua/5.1/resty.so'
no file '/usr/local/luajit/lib/lua/5.1/resty.so'
no file '/usr/local/lib/lua/5.1/loadall.so')
The text was updated successfully, but these errors were encountered: