I am trying out this plugin in Kong pongo but getting below error -
Error: /usr/local/share/lua/5.1/kong/cmd/start.lua:64: nginx: [error] init_by_lua error: /usr/local/share/lua/5.1/kong/tools/utils.lua:710: error loading module 'kong.plugins.scalable-rate-limiter.handler':
...ng/plugins/scalable-rate-limiter/policies/connection.lua:2: module 'resty.rediscluster' not found:No LuaRocks module found for resty.rediscluster
no field package.preload['resty.rediscluster']
no file './resty/rediscluster.lua'
no file './resty/rediscluster/init.lua'
no file '/usr/local/openresty/site/lualib/resty/rediscluster.ljbc'
no file '/usr/local/openresty/site/lualib/resty/rediscluster/init.ljbc'
no file '/usr/local/openresty/lualib/resty/rediscluster.ljbc'
no file '/usr/local/openresty/lualib/resty/rediscluster/init.ljbc'
no file '/usr/local/openresty/site/lualib/resty/rediscluster.lua'
no file '/usr/local/openresty/site/lualib/resty/rediscluster/init.lua'
no file '/usr/local/openresty/lualib/resty/rediscluster.lua'
no file '/usr/local/openresty/lualib/resty/rediscluster/init.lua'
no file '/kong-plugin/resty/rediscluster.lua'
no file '/kong-plugin/resty/rediscluster/init.lua'
no file '/usr/local/openresty/luajit/share/luajit-2.1.0-beta3/resty/rediscluster.lua'
no file '/usr/local/share/lua/5.1/resty/rediscluster.lua'
no file '/usr/local/share/lua/5.1/resty/rediscluster/init.lua'
no file '/usr/local/openresty/luajit/share/lua/5.1/resty/rediscluster.lua'
no file '/usr/local/openresty/luajit/share/lua/5.1/resty/rediscluster/init.lua'
no file '/root/.luarocks/share/lua/5.1/resty/rediscluster.lua'
no file '/root/.luarocks/share/lua/5.1/resty/rediscluster/init.lua'
no file '/usr/local/openresty/site/lualib/resty/rediscluster.so'
no file '/usr/local/openresty/lualib/resty/rediscluster.so'
no file './resty/rediscluster.so'
no file '/usr/local/lib/lua/5.1/resty/rediscluster.so'
no file '/usr/local/openresty/luajit/lib/lua/5.1/resty/rediscluster.so'
no file '/usr/local/lib/lua/5.1/loadall.so'
no file '/root/.luarocks/lib/lua/5.1/resty/rediscluster.so'
no file '/usr/local/openresty/site/lualib/resty.so'
no file '/usr/local/openresty/lualib/resty.so'
no file './resty.so'
no file '/usr/local/lib/lua/5.1/resty.so'
no file '/usr/local/openresty/luajit/lib/lua/5.1/resty.so'
no file '/usr/local/lib/lua/5.1/loadall.so'
no file '/root/.luarocks/lib/lua/5.1/resty.so'
stack traceback:
[C]: in function 'require'
...ng/plugins/scalable-rate-limiter/policies/connection.lua:2: in main chunk
[C]: in function 'require'
...gin/kong/plugins/scalable-rate-limiter/policies/init.lua:2: in main chunk
[C]: in function 'require'
/kong-plugin/kong/plugins/scalable-rate-limiter/handler.lua:1: in main chunk
[C]: at 0x7f8bda842660
[C]: in function 'xpcall'
/usr/local/share/lua/5.1/kong/tools/utils.lua:701: in function 'load_module_if_exists'
/usr/local/share/lua/5.1/kong/db/dao/plugins.lua:134: in function 'load_plugin_handler'
/usr/local/share/lua/5.1/kong/db/dao/plugins.lua:221: in function 'load_plugin'
/usr/local/share/lua/5.1/kong/db/dao/plugins.lua:273: in function 'load_plugin_schemas'
/usr/local/share/lua/5.1/kong/init.lua:543: in function 'init'
init_by_lua:3: in main chunk
stack traceback:
[C]: in function 'error'
/usr/local/share/lua/5.1/kong/tools/utils.lua:710: in function 'load_module_if_exists'
/usr/local/share/lua/5.1/kong/db/dao/plugins.lua:134: in function 'load_plugin_handler'
/usr/local/share/lua/5.1/kong/db/dao/plugins.lua:221: in function 'load_plugin'
/usr/local/share/lua/5.1/kong/db/dao/plugins.lua:273: in function 'load_plugin_schemas'
/usr/local/share/lua/5.1/kong/init.lua:543: in function 'init'
init_by_lua:3: in main chunk
Run with --v (verbose) or --vv (debug) for more details
Summary
I am trying out this plugin in Kong pongo but getting below error -
How can we fix this error?
Steps To Reproduce
Additional Details & Logs