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
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"
please use the latest lua-nginx-module and lua-resty-core
lua-resty-core need some api in lua-nginx-module, so it require the specific version of lua-nginx-module