question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ClusterAllFailedError: Failed to refresh slots cache.

See original GitHub issue

Hi All. i have following error can You help me ? [ioredis] Unhandled error event: ClusterAllFailedError: Failed to refresh slots cache.

code is following. `“use strict”; require(‘./config/config’); const Redis = require(‘ioredis’);

(async()=> {

const startupNodes = [
    {host: process.env.REDIS_HOST_1, port: process.env.REDIS_PORT },
    {host: process.env.REDIS_HOST_2, port: process.env.REDIS_PORT}
    ];
const options = {
    slotsRefreshTimeout: 2000,
    dnsLookup: (address, callback) => callback(null, address),
    redisOptions: {
        tls: {},
        password: process.env.REDIS_PASS,
    },
};
const cluster = new Redis.Cluster(startupNodes, options);
console.log(cluster);

})();`

Issue Analytics

  • State:open
  • Created 4 years ago
  • Comments:20

github_iconTop GitHub Comments

10reactions
Dartvcommented, Dec 26, 2019

Same issue here

9reactions
iocentoscommented, Dec 17, 2019

Have the same issue. Using an AWS elasticache redis (cluster mode enabled with multiple shards). I get the issue when using in-transit encryption and trying to access behind a NAT instance.

Read more comments on GitHub >

github_iconTop Results From Across the Web

ioredis - ClusterAllFailedError: Failed to refresh slots cache
I'm dealing with a ClusterAllFailedError: Failed to refresh slots cache. issue from ioredis and Elasticache. This is my clustering config
Read more >
luin/ioredis - Gitter
... using a node.js application .. however, i am getting this error "ioredis unhandled error event clusterallfailederror failed to refresh slots cache".
Read more >
clusterallfailederror: failed to refresh slots cache.
The FTX headquarters is now unoccupied, with furniture pushed against some windows. Its signage has been removed. The plot of land, which cost...
Read more >
redis cluster[使用redis 集群过程中查到的资料] - CNode技术社区
Failed to refresh slots cache https://github.com/luin/ioredis/issues/220. 如果本地没有配置集群, 不要使用new ioredis.Cluster()方法去创建redisClient, ...
Read more >
ClusterAllFailedError: Failed to refresh slots cache -
this code run error : ClusterAllFailedError: Failed to refresh slots cache const clusterOptions = { enableReadyCheck: false, ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found