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

attempt to index local 'slots' (a nil value) #13

Open
liukelin opened this issue May 28, 2018 · 4 comments
Open

attempt to index local 'slots' (a nil value) #13

liukelin opened this issue May 28, 2018 · 4 comments

Comments

@liukelin
Copy link

2018/05/28 15:38:40 [error] 5783#504883: *29 lua entry thread aborted: runtime error: ...xt_virus_openresty-code//lua/libs/resty/rediscluster.lua:207: attempt to index local 'slots' (a nil value)
stack traceback:
coroutine 0:
...xt_virus_openresty-code//lua/libs/resty/rediscluster.lua: in function 'get'

@chapgpt
Copy link

chapgpt commented Apr 1, 2019

遇到了同样的问题 lz解决了吗
rediscluster.lua:207: attempt to index local 'slots' (a nil value)
stack traceback:
coroutine 0:
...nx/lua/lua-resty-redis-master/lib/resty/rediscluster.lua: in function 'auth'

@nitsshukla-zz
Copy link

遇到了同样的问题 lz解决了吗
rediscluster.lua:207: attempt to index local 'slots' (a nil value)
stack traceback:
coroutine 0:
...nx/lua/lua-resty-redis-master/lib/resty/rediscluster.lua: in function 'auth'

Any success? I'm facing same issue!

@nitsshukla-zz
Copy link

Could fix it after updating nginx.conf with entry:

lua_shared_dict redis_cluster_slot_locks 100k;

Kong users need to change here:

/usr/local/share/lua/5.1/kong/templates/nginx_kong.lua

@onlinner
Copy link

遇到同样的问题,原因是我写了个lua脚本就直接在Windows下的单机redis来测,而这个只能用redis集群来测试,我重新在Linux上搭建了redis集群再来测试,就不会报错了

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

4 participants