Difficulty connecting to Redis from server

brenthooverPRO

9 months ago

I'm sure this is probably a mistake on my part but my server seems unable to connect to the Railway redis. The error I see is:

Starting Container

Sep 03 11:15:17

Initializing server...

Sep 03 11:15:18

2024-09-03T03:15:17.941Z [server] info: Connected to MongoDB

Sep 03 11:15:18

2024-09-03T03:15:17.942Z [redis-ws-adapter] info: RedisWSServerAdapter: Initializing

Sep 03 11:15:18

2024-09-03T03:15:17.943Z [redis-ws-adapter] info: Attempting to connect to Redis with URI: redis://<CREDENTIALS REDACTED>@redis.railway.internal:6379

Sep 03 11:15:18

2024-09-03T03:15:17.948Z [server] info: Repo initialized

Sep 03 11:15:18

2024-09-03T03:15:17.952Z [server] info: Monaco editor sync server listening on port 8080

Sep 03 11:15:18

2024-09-03T03:15:17.984Z [redis-ws-adapter] error: Redis client error: Error: getaddrinfo ENOTFOUND redis.railway.internal

Sep 03 11:15:18

2024-09-03T03:15:17.985Z [redis-ws-adapter] error: Redis subscriber error: Error: getaddrinfo ENOTFOUND redis.railway.internal

I've tried a bunch of different permutations but the error seems to revolve around not being able to resolve redis.railway.internal?

I am passing the provided URI via the REDIS_URI env var and the server seems to be picking that up properly (as noted in the logging). So not sure what's happening. Since I can't ssh into the container I can't determine if it's a DNS issue or something else.

Solved

2 Replies

9 months ago


Status changed to Awaiting User Response railway[bot] 9 months ago


brenthooverPRO

9 months ago

Yeah, that did it. Thanks so much


Status changed to Awaiting Railway Response railway[bot] 9 months ago


Status changed to Solved chandrika 9 months ago


Difficulty connecting to Redis from server - Railway Help Station