question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Lua script attempted to access a non local key in a cluster node

See original GitHub issue

Using AWS ElasticCache:

StackExchange.Redis.RedisServerException: ERR Error running script (call to f_d3a858ae047422548b35753d09e9d2fe57ec91c0): @user_script:2: @user_script: 2: Lua script attempted to access a non local key in a cluster node
   at StackExchange.Redis.ConnectionMultiplexer.ExecuteSyncImpl[T](Message message, ResultProcessor`1 processor, ServerEndPoint server, T defaultValue) in /_/src/StackExchange.Redis/ConnectionMultiplexer.cs:line 1909
   at StackExchange.Redis.RedisDatabase.ScriptEvaluate(String script, RedisKey[] keys, RedisValue[] values, CommandFlags flags) in /_/src/StackExchange.Redis/RedisDatabase.cs:line 1501
   at StackExchange.Redis.RedisDatabase.ScriptEvaluate(LuaScript script, Object parameters, CommandFlags flags) in /_/src/StackExchange.Redis/RedisDatabase.cs:line 1536
   at RedisRateLimiting.Concurrency.RedisFixedWindowManager.TryAcquireLease()
   at RedisRateLimiting.RedisFixedWindowRateLimiter`1.AttemptAcquireCore(Int32 permitCount)

Issue Analytics

  • State:closed
  • Created 9 months ago
  • Comments:14 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
adomasscommented, Dec 20, 2022

Ok thanks i was in process of creating dll. @cristipufu you should ad version to your package assembly // Assembly RedisRateLimiting, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null Its always 1.0.0.0

0reactions
adomasscommented, Dec 23, 2022

@cristipufu now it works with fixed window as well. Thanks for fixing it so quickly. I would have had to use different library otherwise, but I wanted to use this out of the box .net 7 feature with redis so its great that now it works on AWS as well. Well done! 👍

Read more comments on GitHub >

github_iconTop Results From Across the Web

Lua script attempted to access a non local key in a cluster ...
Lua script runs on only one redis instance and its internal queries are not redirected by the cluster, So, it cannot query two...
Read more >
Script execution on redis-cluster reports "Lua ...
Script execution on redis-cluster reports "Lua script attempted to access a non local key in a cluster node" #305.
Read more >
Lua script attempted to access a non local key
Hello! I have configured redis cluster and have following use case to implement using LUA script: 1. Get list of keys which starts...
Read more >
Lua script attempted to access a non local key in a cluster ...
最近在生产上使用Redis cluster时出现Lua script attempted to access a non local key in a cluster node 异常,本文就针对此问题做一个整理的记录和解决思路。
Read more >
Pre Loading Lua Scripts into Clustered Redis with Lettuce
This resulted in an error because that script was not loaded onto that node. If we picked a node where the key's hash...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found