R
Railway13mo ago
Pepijn

Internal Redis URL

The private / internal Redis URL does not seem to work. Anyone else experience this issue?
27 Replies
Percy
Percy13mo ago
Project ID: N/A
Brody
Brody13mo ago
can you be more specific when you say doesn't seem to work
Pepijn
PepijnOP13mo ago
I get a not found error Error: getaddrinfo ENOTFOUND redis.railway.internal
Brody
Brody13mo ago
can you add a delay in your code just before you attempt to connect to the database
Pepijn
PepijnOP13mo ago
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?
Brody
Brody13mo ago
are they all in the same project?
Pepijn
PepijnOP13mo ago
Yes Project Id: e65a5601-ad12-45d4-9441-11f7ac860fce
Brody
Brody13mo ago
what's preventing you from selecting a different region in its service settings
Pepijn
PepijnOP13mo ago
The UI, it shows a disabled cursor and cannot open the dropdown
Pepijn
PepijnOP13mo ago
Pepijn
PepijnOP13mo ago
Strangely the postgres internal url does work and is actually loaded before the redis connection.
Brody
Brody13mo ago
can you try clearing your cache for railway.app?
Pepijn
PepijnOP13mo ago
It does not seem to make a difference, using a different browser also not
Brody
Brody13mo ago
and you're double sure this project resides in the team plan?
Pepijn
PepijnOP13mo ago
Yes I did transfer it from a personal account after I created a team account
sam
sam13mo ago
Same problem Can't move one of my nextjs deployments from US West to US East dropdown just doesn't work
Duchess
Duchess13mo ago
Thread has been flagged to Railway team by @Brody.
tizhproger
tizhproger13mo ago
Same problem as well. Region change list isn't active. Projects are in a team plan.
Adam
Adam13mo ago
this issue should fixed now, according to the team @sameaston @tizhproger @pepijn_vanvlaanderen
Pepijn
PepijnOP13mo ago
Yeah it worked, tnx
Brody
Brody13mo ago
where you able to solve the original problem that this thread was opened for?
Pepijn
PepijnOP13mo ago
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.
Nacho Codoñer
Nacho Codoñer13mo ago
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.
Brody
Brody13mo ago
have you added a 3 second sleep to the beginning of your start command?
Pepijn
PepijnOP13mo ago
@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.
rgmvisser
rgmvisser13mo ago
Thanks @Pepijn for the family=6 tip, saved me a ton of time! 🙂
Brody
Brody13mo ago
we need to get ioredis to set family=0 by default haha aka both ipv6 and ipv4
Want results from more Discord servers?
Add your server