You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
I can't connect to redis
I using ioredis 4.17.1
when i install chart log return
NOTES:
** Please be patient while the chart is being deployed **
Redis can be accessed via port 6379 on the following DNS name from within your cluster:
redis.redis.svc.cluster.local for read only operations
For read/write operations, first access the Redis Sentinel cluster, which is available in port 26379 using the same domain name above.
To connect to your Redis server:
1. Run a Redis pod that you can use as a client:
kubectl run --namespace redis redis-client --rm --tty -i --restart='Never' \
--labels="redis-client=true" \
--image docker.io/bitnami/redis:6.0.3-debian-10-r2 -- bash
2. Connect using the Redis CLI:
redis-cli -h redis -p 6379 # Read only operations
redis-cli -h redis -p 26379 # Sentinel access
Note: Since NetworkPolicy is enabled, only pods with label
redis-client=true"
will be able to connect to redis.
[ioredis] Unhandled error event: ClusterAllFailedError: Failed to refresh slots cache.
at tryNode (/app/node_modules/ioredis/built/cluster/index.js:359:31)
at /app/node_modules/ioredis/built/cluster/index.js:376:21
at /app/node_modules/ioredis/built/cluster/index.js:624:24
at run (/app/node_modules/ioredis/built/utils/index.js:156:22)
at tryCatcher (/app/node_modules/standard-as-callback/built/utils.js:11:23)
at /app/node_modules/standard-as-callback/built/index.js:30:51
at runMicrotasks (<anonymous>)
The text was updated successfully, but these errors were encountered:
There're pretty many reasons that can cause the error. I'd say it seems to be related to network settings. You can enable the debug mode "DEBUG=ioredis:* node yourapp.js" to see if there's any error.
i have the same error, in my case it is because redis is not in cluster mode. ioredis will disconnect itself if the master is not in cluster mode
on the latest bitnami helm to deploy a Sentinel cluster, the redis nodes are not in cluster mode.
turned out I had the same issue as the user above because of my code. I also used somehow new Redis.Cluster instead of new Cluster and it caused this error. I think the user might be in the same situation
Which chart:
bitnami/redis 6.0.3
Describe the bug
I can't connect to redis
I using ioredis 4.17.1
when i install chart log return
My config ios redis
output log
The text was updated successfully, but these errors were encountered: