My build is broken (next.js) because it can't connect to redis... why is that?
I'm using the "Builder" feature but still can't connect to redis. It initially worked and then it stopped working. The code builds perfectly fine locally.
16 Replies
Project ID:
36a56ab7-eca3-4135-8f57-9a160a1b01b4
36a56ab7-eca3-4135-8f57-9a160a1b01b4
that's staging. also happening in prod:
36a56ab7-eca3-4135-8f57-9a160a1b01b4
Solution
the private network is not available during build
I enabled the builder environment.. I also had other builds work fine before
you are on metal right now and the new builder is not supported on metal, also we dont even really recommend you use the new builder, it is not being actively maintained
Understood. I'll figure out why connecting to redis is needed during built. That really shouldn't be happening. Thanks for the help
no problem!
Hi, I'm still experiencing issues connecting to Redis. Wondering if you can help me understand why as I don't see it: 36a56ab7-eca3-4135-8f57-9a160a1b01b4
are you still trying to connect during build?
Not anymore. Just runtime
I even rebuilt redis image but still can’t connect
error please
Error: getaddrinfo ENOTFOUND redis.railway.internal
That’s on the web app trying to connect
ioredis?
if you're using ioredis, try this
https://docs.railway.app/guides/private-networking#ioredis
I can also switch. Didn’t realize that’d cause an issue
there's no need to do that, just follow the guide
it's a one line fix