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

[BUG] failed to reach redis: got 4 elements in cluster #255

Closed
313177606 opened this issue Oct 29, 2022 · 4 comments
Closed

[BUG] failed to reach redis: got 4 elements in cluster #255

313177606 opened this issue Oct 29, 2022 · 4 comments
Labels

Comments

@313177606
Copy link

use redis cluster config address [ "172.18.239.134:6379","172.18.239.133:6379", "172.18.239.132:6379"]
main.go:55: error while applying config: failed to reach redis: got 4 elements in cluster info address, expected 2 or 3

image

@mga-chka
Copy link
Collaborator

are you sure the IPs are part of the same redis cluster?

@mga-chka
Copy link
Collaborator

mga-chka commented Oct 29, 2022

FYI we're relying on the go-redis lib to connect with redis and someone got the same issue as you.
It seems that the lib we're using is not compatible with redis 7 in cluster mode. Is it the version of redis you're using?
I let you read the thread for more details but the issue is on the current version of go-redis (8.x). The new version (9) should solve the issue but it's still under development redis/go-redis#2085

@mga-chka mga-chka added the bug label Oct 29, 2022
@313177606
Copy link
Author

hi bro ,, checked my redis version is 7.0 thkx

@mga-chka
Copy link
Collaborator

mga-chka commented Feb 2, 2023

FYI the new version of go-redis that should fix the problem is available
When we use this version (soon) and I'll close this issue.

@mga-chka mga-chka closed this as completed Feb 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

2 participants