Failed To Connect to the redis container
ntwari-egide
HOBBYOP

a year ago

why is this redis working when I use it locally, but it can not work on my railway deployed the same app :

REDIS_URL="redis://default:*******************"

WORKER_HOST="redis://default:***************/1"

Anyone successfully connect their backend apis on prod with railway redis ?

I am getting this error:

Nov 28 09:48:01

[Nest] 12 - 11/28/2024, 2:47:52 PM ERROR [RedisCachingService] Error: connect ETIMEDOUT

Nov 28 09:48:01

[Nest] 12 - 11/28/2024, 2:47:52 PM WARN [RedisCachingService] Redis connection closed

Nov 28 09:48:01

[Nest] 12 - 11/28/2024, 2:47:52 PM WARN [RedisCachingService] Reconnecting to Redis...

1 Replies

a year ago

Hello,

Please make sure you are using reference variables -

https://docs.railway.com/guides/variables#referencing-another-services-variable


Loading...