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.
Solution:
the private network is not available during build
Jump to solution
16 Replies
Percy
Percy4w ago
Project ID: 36a56ab7-eca3-4135-8f57-9a160a1b01b4
Ellery
ElleryOP4w ago
36a56ab7-eca3-4135-8f57-9a160a1b01b4 that's staging. also happening in prod: 36a56ab7-eca3-4135-8f57-9a160a1b01b4
Solution
Brody
Brody4w ago
the private network is not available during build
Ellery
ElleryOP4w ago
I enabled the builder environment.. I also had other builds work fine before
Brody
Brody4w ago
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
Ellery
ElleryOP4w ago
Understood. I'll figure out why connecting to redis is needed during built. That really shouldn't be happening. Thanks for the help
Brody
Brody4w ago
no problem!
Ellery
ElleryOP4w ago
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
Brody
Brody4w ago
are you still trying to connect during build?
Ellery
ElleryOP4w ago
Not anymore. Just runtime I even rebuilt redis image but still can’t connect
Brody
Brody4w ago
error please
Ellery
ElleryOP4w ago
Error: getaddrinfo ENOTFOUND redis.railway.internal That’s on the web app trying to connect
ThallesComH
ThallesComH4w ago
ioredis?
ThallesComH
ThallesComH4w ago
Railway Docs
Private Networking | Railway Docs
Documentation for Railway
Ellery
ElleryOP4w ago
I can also switch. Didn’t realize that’d cause an issue
ThallesComH
ThallesComH4w ago
there's no need to do that, just follow the guide it's a one line fix
Want results from more Discord servers?
Add your server