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

500 (Internal Server Error): Redis cluster on Azure Redis enterprise returns 500 when calling queues endpoint #327

Open
dinson opened this issue May 16, 2024 · 1 comment

Comments

@dinson
Copy link

dinson commented May 16, 2024

I tried connecting asynqmon with Azure Redis enterprise cluster. Calling the queues endpoint results in 500 Internal Server Error with the following API response:

Request
curl --location 'http://127.0.0.1:8080/monitoring/api/queues'

API Response
UNKNOWN: redis eval error: ERR Error running script (call to f_0c80fc1868e3aae205155ae2017ce995a3a7cec0): @user_script:19: @user_script: 19: This Redis command is not allowed from scripts

Additional Info
Cluster: Enabled
TLS: Enabled
Redis Go Client version: v9
Azure Redis Cluster version: 6.0.17

PS: The same code works when connecting to Azure Redis cache without cluster enabled (with TLS).

@dinson dinson changed the title 500 (Internal Server Error): Redis cluster on Azure Redis enterprise restrict memory usage command 500 (Internal Server Error): Redis cluster on Azure Redis enterprise returns 500 when calling queues endpoint May 16, 2024
@dinson
Copy link
Author

dinson commented May 16, 2024

Digging in revealed that this line is triggering the error in asynqmon code:

Line github.com/hibiken/asynq/internal/rdb/inspect.go #L340

res, err := memoryUsageCmd.Run(context.Background(), r.client, keys, argv...).Result()

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

1 participant