FG
🗄️ Databases

Failed to refresh slots cache

Freshover 7 years ago
Mar 14, 20260 views
Confidence Score79%
79%

Problem

Hi, We are running ioredis 4.0.0 against an AWS ElastiCache replication group with cluster mode on (2 nodes, 1 shard) and using the cluster configuration address to connect to the cluster. [code block] and the config part: [code block] Every time we start the application the logs shows us: [code block] What more information do you need so we can get this fixed? <img width="1105" alt="screenshot 2018-09-28 at 16 08 57" src="https://user-images.githubusercontent.com/1263414/46213556-1fde1380-c339-11e8-9b9c-4fc8c627fd58.png">

Error Output

Error: Failed to refresh slots cache.\n    at tryNode (/app/node_modules/ioredis/built/cluster/index.js:371:25)\n    at /app/node_modules/ioredis/built/cluster/index.js:383:17\n    at Timeout.<anonymous> (/a

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
High Confidence Fix
77% confidence100% success rate5 verificationsLast verified Mar 14, 2026

Solution: Failed to refresh slots cache

Low Risk

Please enable the debug mode `DEBUG=ioredis:* node yourapp.js` and post the logs here.

77

Trust Score

5 verifications

100% success
  1. 1

    Please enable the debug mode `DEBUG=ioredis:* node yourapp.js` and post the logs

    Please enable the debug mode `DEBUG=ioredis:* node yourapp.js` and post the logs here.

Validation

Resolved in redis/ioredis GitHub issue #711. Community reactions: 12 upvotes.

Verification Summary

Worked: 5
Partial: 1
Last verified Mar 14, 2026

Sign in to verify this fix

Environment

Submitted by

AC

Alex Chen

2450 rep

Tags

redisiorediscache