-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
ClusterAllFailedError: Failed to refresh slots cache. with Cluster mode and TLS enabled #1454
Comments
I have a same problem.. tls: {} or dnsLookup does not work. |
This is an extremely annoying issue tbh, is you search under Issues tab for this repo there is at least 15 issues related to the same I had the same problem i was able to work around but not 100% because from time to time it disconnects and timeout.
^ if you see PONG means your computer or EC2 can reach that Redis endpoint. If you're running from your actual computer (LInux, Mac, Windows, etc) you need to be inside the AWS VPN if you are not inside an AWS VPN from your organization you will not reach the Redis Cluster.
^ after connected to redis i did this:
Hopefully this help you both @anax015obs and @jungRoit Also like others mentioned in different Issues use: |
@juanviamonte THIS WORKED! Thank you for documenting those steps |
Thanks, just one note here,
By the way this didnt fixed this issue for my case. I ended up for using node-redis: |
I'm trying to configure an ElastiCache cluster with TLS and Auth configured. I'm getting the following error with trying to connect:
ClusterAllFailedError: Failed to refresh slots cache
Here's my configurations detatils:
ioredis: 4.27.8
ElastiCache: 6.x
Code snippet:
client = new Redis.Cluster([{host: HOST,port:PORT}],{ redisOptions: { password: PASSWORD, tls: {} } });
The text was updated successfully, but these errors were encountered: