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

Error : failed to run balancer_by_lua*: /usr/local/lib/lua/resty/core/base.lua:24: ngx_http_lua_module 0.10.19 or 0.10.20 required #359

Open
buithevuong opened this issue Sep 12, 2021 · 2 comments

Comments

@buithevuong
Copy link

buithevuong commented Sep 12, 2021

Why curl localhost always return "500 Internal Server Error".
I followed the example of ngx.balancer :
https://github.com/openresty/lua-resty-core/blob/master/lib/ngx/balancer.md

Error : failed to run balancer_by_lua*: /usr/local/lib/lua/resty/core/base.lua:24: ngx_http_lua_module 0.10.19 or 0.10.20 required
stack traceback:
[C]: in function 'error'
/usr/local/lib/lua/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
/usr/local/lib/lua/ngx/balancer.lua:4: in main chunk
[C]: in function 'require'
balancer_by_lua:2: in main chunk while connecting to upstream, client: 127.0.0.1, server: , request: "GET / HTTP/1.1", host: "localhost"

@buithevuong buithevuong changed the title Error : failed to run balancer_by_lua*: balancer_by_lua:2: loop or previous error loading module 'ngx.balancer' Error : failed to run balancer_by_lua*: /usr/local/lib/lua/resty/core/base.lua:24: ngx_http_lua_module 0.10.19 or 0.10.20 required Sep 13, 2021
@zhuizhuhaomeng
Copy link
Contributor

please use the latest lua-nginx-module and lua-resty-core

@zhuizhuhaomeng
Copy link
Contributor

lua-resty-core need some api in lua-nginx-module, so it require the specific version of lua-nginx-module

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

2 participants