[GH-ISSUE #442] [BUG] got error when use aliyun redis cluster #2226

Open
opened 2026-03-15 19:45:36 +03:00 by kerem · 5 comments
Owner

Originally created by @zuiwanting on GitHub (Apr 29, 2022).
Original GitHub issue: https://github.com/hibiken/asynq/issues/442

Originally assigned to: @hibiken on GitHub.

aliyun redis cluster has limit in use lua script

err message as follow:

bad lua script for redis cluster, all the keys that the script uses should be passed using the KEYS array, and KEYS should not be in expression

the reference doc link may is :

https://help.aliyun.com/document_detail/145968.htm?spm=a2c4g.11186623.0.0.43c23732F5QAva#concept-2353537

Originally created by @zuiwanting on GitHub (Apr 29, 2022). Original GitHub issue: https://github.com/hibiken/asynq/issues/442 Originally assigned to: @hibiken on GitHub. aliyun redis cluster has limit in use lua script err message as follow: bad lua script for redis cluster, all the keys that the script uses should be passed using the KEYS array, and KEYS should not be in expression the reference doc link may is : https://help.aliyun.com/document_detail/145968.htm?spm=a2c4g.11186623.0.0.43c23732F5QAva#concept-2353537
Author
Owner

@hibiken commented on GitHub (May 10, 2022):

@zuiwanting Thank you for opening an issue (sorry for the delay in response).

Is this redis-cluster implementation different from the Open-Source version?

<!-- gh-comment-id:1122364095 --> @hibiken commented on GitHub (May 10, 2022): @zuiwanting Thank you for opening an issue (sorry for the delay in response). Is this redis-cluster implementation different from the Open-Source version?
Author
Owner

@Danny5487401 commented on GitHub (May 30, 2022):

@hibiken

asynq: pid=1 2022/05/31 14:23:00.740391 ERROR: Failed to write server state data: UNKNOWN: redis command error: SADD failed: MOVED 15197 172.16.71.100:6379

so how to fix this when i use aliyun redis cluster? redis cluster version is 6.0 from ali

<!-- gh-comment-id:1140976424 --> @Danny5487401 commented on GitHub (May 30, 2022): @hibiken > asynq: pid=1 2022/05/31 14:23:00.740391 ERROR: Failed to write server state data: UNKNOWN: redis command error: SADD failed: MOVED 15197 172.16.71.100:6379 so how to fix this when i use aliyun redis cluster? redis cluster version is 6.0 from ali
Author
Owner

@zuiwanting commented on GitHub (Sep 28, 2022):

image
need modify lua script

<!-- gh-comment-id:1260365212 --> @zuiwanting commented on GitHub (Sep 28, 2022): ![image](https://user-images.githubusercontent.com/2741280/192686318-c9b36c3d-0b4d-4c2c-93d1-5cd24b533243.png) need modify lua script
Author
Owner

@lisiru commented on GitHub (Aug 21, 2023):

how to fix this problem

<!-- gh-comment-id:1685525383 --> @lisiru commented on GitHub (Aug 21, 2023): how to fix this problem
Author
Owner

@duckjiangwei commented on GitHub (Aug 23, 2024):

I have also encountered this problem and look forward to resolving it

<!-- gh-comment-id:2306751325 --> @duckjiangwei commented on GitHub (Aug 23, 2024): I have also encountered this problem and look forward to resolving it >
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/asynq#2226
No description provided.