4 months ago
prj_id: 6db5b642-1bc1-47d9-a39d-9f6b9c87f4f0
M tying to use a REDIS_URL among 2 services, using shared variables, however m facing this issue:
ERROR:app.redis.consumer:❌ Redis connection failed: Error -2 connecting to redis.railway.internal:6379. Name or service not known.
well if i use the REDIS_PUBLIC_URL it works without a prob, what cud i be doing wrong?
13 Replies
4 months ago
Go to your Redis service, networking tab, and set the URL to redis instead of Redis.
Redeploy after.
you mean in settings right? Redis->Settings->private networking>
its already in in lower case
4 months ago
I assume the services are in the same project.
Are you able ping redis.railway.internal from one of your containers? (Via Railway SSH)
4 months ago
Can you rephrase that?
Are the services in the same project?
4 months ago
Are you able ping redis.railway.internal from one of your containers? (Via Railway SSH)
i get this error:
Error -2 connecting to redis.railway.internal:6379. Name or service not known.
4 months ago
Redis is not in the same environment.
4 months ago
-# Ref! He's cheating! (jk)
4 months ago
Well what Brody said. You need services to be in the same environment in order to communicate over the internal network.
Status changed to Solved brody • 4 months ago