Redis Connection refused
Anonymous
TRIALOP

2 years ago

I keep getting ECONNREFUSED: Failed to connect when using private Redis URL to connect.

[console.info](console.info)("REDIS URL", process.env.REDIS_URL) const redisClient = redis.createClient({ url: process.env.REDIS_URL, });
Any ideas ?

11 Replies

Anonymous
TRIALOP

2 years ago

53850635-7515-4418-a0d9-f57560f8c9d3


Anonymous
TRIALOP

2 years ago

FYI: Variable is named REDIS_URL but it indeed point to the private Redis URL


Anonymous
TRIALOP

2 years ago

I got the issue fixed once by deleting and recreating the redis instance but now on every redeploy It will stop working again.


Anonymous
TRIALOP

2 years ago

Is it possible that there dangling container somewhere ? I noticed DB connection also go much slower


brody
EMPLOYEE

2 years ago

is this ioredis?


Anonymous
TRIALOP

2 years ago

No just redis official client


brody
EMPLOYEE

2 years ago

can you connect to redis locally from it's public url?


Anonymous
TRIALOP

2 years ago

I will try that


Anonymous
TRIALOP

2 years ago

Now connection seems better since I've switched to public URL


Anonymous
TRIALOP

2 years ago

Private URL was always getting rejected


brody
EMPLOYEE

2 years ago

go back to using the private url and then try adding a 3 second sleep to your start script


Loading...