My build is broken (next.js) because it can't connect to redis... why is that?
elleryfamilia
PROOP

2 years ago

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.

Closed

19 Replies

elleryfamilia
PROOP

2 years ago

36a56ab7-eca3-4135-8f57-9a160a1b01b4


elleryfamilia
PROOP

2 years ago

that's staging. also happening in prod:

36a56ab7-eca3-4135-8f57-9a160a1b01b4


2 years ago

the private network is not available during build


elleryfamilia
PROOP

2 years ago

I enabled the builder environment.. I also had other builds work fine before


2 years 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


elleryfamilia
PROOP

2 years ago

Understood. I'll figure out why connecting to redis is needed during built. That really shouldn't be happening. Thanks for the help


2 years ago

no problem!


elleryfamilia
PROOP

2 years 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


2 years ago

are you still trying to connect during build?


elleryfamilia
PROOP

2 years ago

Not anymore. Just runtime


elleryfamilia
PROOP

2 years ago

I even rebuilt redis image but still can’t connect


2 years ago

error please


elleryfamilia
PROOP

2 years ago

Error: getaddrinfo ENOTFOUND redis.railway.internal


elleryfamilia
PROOP

2 years ago

That’s on the web app trying to connect


2 years ago

ioredis?



elleryfamilia
PROOP

2 years ago

I can also switch. Didn’t realize that’d cause an issue


2 years ago

there's no need to do that, just follow the guide


2 years ago

it's a one line fix


Welcome!

Sign in to your Railway account to join the conversation.

Loading...