lua-resty-redis-cluster
lua-resty-redis-cluster copied to clipboard
attempt to index local 'slots' (a nil value)
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'
遇到了同样的问题 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'
遇到了同样的问题 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!
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
遇到同样的问题,原因是我写了个lua脚本就直接在Windows下的单机redis来测,而这个只能用redis集群来测试,我重新在Linux上搭建了redis集群再来测试,就不会报错了