redis / redis/node-redis

Connecting to Cluster not working in Private Network

Open
#2,822 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
17.6k
Forks
2k
Avg merge
2d 3h
Merged PRs (30d)
40

Description

I have two VPS in same Private Network

Service running on 10.0.0.1
Redis Server running on 10.0.0.3 (bind 0.0.0.0 in redis.conf)

  1. Try connect using createClient to one Master then connect to be successful
  2. Try connect using Redis Insight use SSH Tunnel or direct with firewall disabled then connect to be successful
  3. Try connect using createCluster to one Master or three Master or all Master and Slave then return error
    Redis Client Error ECONNREFUSED: Failed to connect errno: 24 syscall: "connect"

Tested on two version 4.6.15 and 4.7.0

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the failure with createCluster against the private-network Redis setup, comparing it with the working createClient path and the redis.conf bind setting. Trace the ECONNREFUSED connection attempt and verify whether the cluster connection succeeds or the limitation is clearly established and documented.

Written by the indexing model from the issue text.

Assessment

Tech stack
node.js, redis, typescript
Domain
backend, databases, networking
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.