Internal Redis URL
The private / internal Redis URL does not seem to work. Anyone else experience this issue?
27 Replies
Project ID:
N/A
can you be more specific when you say doesn't seem to work
I get a not found error
Error: getaddrinfo ENOTFOUND redis.railway.internal
can you add a delay in your code just before you attempt to connect to the database
I'll have a look if I can manage to do that
Slightly off-topic, but I just transfered regions of my Postgres and Redis instance. But on the main nodejs server I cannot switch the region, is it somehow possible to move it?
are they all in the same project?
Yes
Project Id: e65a5601-ad12-45d4-9441-11f7ac860fce
what's preventing you from selecting a different region in its service settings
The UI, it shows a disabled cursor and cannot open the dropdown
Strangely the postgres internal url does work and is actually loaded before the redis connection.
can you try clearing your cache for railway.app?
It does not seem to make a difference, using a different browser also not
and you're double sure this project resides in the team plan?
Yes
I did transfer it from a personal account after I created a team account
Same problem
Can't move one of my nextjs deployments from US West to US East
dropdown just doesn't work
Thread has been flagged to Railway team by @Brody.
Same problem as well. Region change list isn't active. Projects are in a team plan.
this issue should fixed now, according to the team
@sameaston @tizhproger @pepijn_vanvlaanderen
Yeah it worked, tnx
where you able to solve the original problem that this thread was opened for?
Hi @Brody, not yet unfortunately. I will check the solutions mentioned here https://discord.com/channels/713503345364697088/1172738489515786300
I have indeed a similar issue to the thread mentioned above. The ioredis connection was easily fixed by setting the redis connection url to
${{Redis.PRIVATE_REDIS_URL}}/?family=6
Only thing is that the MedusaJs project I have also has a Node Redis client setup, I am figuring out wether I can fix this or Medusa needs to expose options.I have a redis instance, and within Node connecting to it using redis client. And when I try the internal private url, it triggers the error of
Error: getaddrinfo ENOTFOUND redis.railway.internal
.
I wonder what the solution could be in this case.
UPDATE: Sorry, going to try first the things they mention on the shared thread above.
Same issue here: {"errno":-3007,"code":"ENOTFOUND","syscall":"getaddrinfo","hostname":"redis.railway.internal"},"total_retry_time":0,"times_connected":0}
I have a connection retry mechanism in place and it is given that all the time, even appending the /?family=6
. But I also think the problem is with the tool within Node that I use, the redis driver using is pretty old.have you added a 3 second sleep to the beginning of your start command?
@Nacho Codoñer Node Redis does not take the URL parameter like ioredis, you need to add the socket configuration when you create the client, also see their docs for your version.
Thanks @Pepijn for the family=6 tip, saved me a ton of time! 🙂
we need to get ioredis to set family=0 by default haha
aka both ipv6 and ipv4