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
Initializing server...
2024-09-03T03:15:17.941Z [server] info: Connected to MongoDB
2024-09-03T03:15:17.942Z [redis-ws-adapter] info: RedisWSServerAdapter: Initializing
2024-09-03T03:15:17.943Z [redis-ws-adapter] info: Attempting to connect to Redis with URI: redis://<CREDENTIALS REDACTED>@redis.railway.internal:6379
2024-09-03T03:15:17.948Z [server] info: Repo initialized
2024-09-03T03:15:17.952Z [server] info: Monaco editor sync server listening on port 8080
2024-09-03T03:15:17.984Z [redis-ws-adapter] error: Redis client error: Error: getaddrinfo ENOTFOUND redis.railway.internal
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.
2 Replies
9 months ago
If you are using ioredis, please see this docs section -
https://docs.railway.app/guides/private-networking#known-configuration-requirements-for-ipv6
Status changed to Awaiting User Response railway[bot] • 9 months ago
Status changed to Awaiting Railway Response railway[bot] • 9 months ago
Status changed to Solved chandrika • 9 months ago