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

Failed to refresh slot: docker #1337

Open
bwoodlt opened this issue Apr 16, 2021 · 1 comment
Open

Failed to refresh slot: docker #1337

bwoodlt opened this issue Apr 16, 2021 · 1 comment

Comments

@bwoodlt
Copy link

bwoodlt commented Apr 16, 2021

Hi guys,

Wondering if I could get some help.

I'm running a redis bitnami/redis docker container in my EC2 instance. I can connect just fine to new Redis(...options), but when I try to setup the cluster like so using the bitnami/redis-cluster:latest container, I get the Failed to refresh slot error.

 port: 6379,
 password: process.env.REDIS_MASTER_PASSWORD,
 retryStrategy: (times) => Math.min(times * 50, 2000),
};

const cluster = new Redis.Cluster([options], {
 slotsRefreshTimeout: 2000,
 dnsLookup: (address, callback) => callback(null, address),
 redisOptions: { tls: {} },
});```
@drakeba
Copy link

drakeba commented Jun 7, 2021

I'm having the same issue when trying to connect to a cluster from an EC2 instance. Connecting to a single node works just fine. I can connect to the cluster using redis-cli with no problem, but it returns the "fails to refresh slots" error when using ioredis.

This issue, or at least many seemingly similar ones, are all over my search results with very little guidance on what to do. Can anyone provide any information or guidance on how to resolve this?

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

2 participants