7 months ago
Hi, I'm trying to connect to the internal Railway Redis at REDIS_URL
from a Dockerfile git repo deployment, but despite being in the same region, it won't connect:
[15:54:49.139] WARN: [system-cache] Error: getaddrinfo
ENOTFOUND redis.railway.internal
err: {
"type": "Error",
"message": "getaddrinfo
ENOTFOUND redis.railway.internal
",
"stack":
Error: getaddrinfo
ENOTFOUND redis.railway.internal
at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:107:26)
"errno": -3007,
"code": "ENOTFOUND",
"syscall": "getaddrinfo",
"hostname": "redis.railway.internal"
}
[ioredis] Unhandled error event: Error: getaddrinfo
ENOTFOUND redis.railway.internal
at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:107:26)
/directus/node_modules/.pnpm/ioredis@5.4.1/node_modules/ioredis/built/redis/event_handler.js:182
self.flushQueue(new errors_1.MaxRetriesPerRequestError(maxRetriesPerRequest));
^
MaxRetriesPerRequestError: Reached the max retries per request limit (which is 20). Refer to "maxRetriesPerRequest" option for details.
at Socket. (/directus/node_modules/.pnpm/ioredis@5.4.1/node_modules/ioredis/built/redis/event_handler.js:182:37)
at Object.onceWrapper (node:events:632:26)
at Socket.emit (node:events:517:28)
at TCP. (node:net:350:12)
Node.js v18.20.5
0 Replies
7 months ago
4cd91811-f5a4-4016-a2de-73084793a77f
7 months ago
deployment ID: 6489d4a9-0545-46a4-b185-3b3ab4837c81
7 months ago
is this error during build?
7 months ago
at runtime
7 months ago
it's trying to ref the Redis based on the env var
7 months ago
which I just set the value to what Railway gave me for the internal URL
7 months ago
i think this docs page may help you -
7 months ago
ah that works, thank you!
7 months ago
awsome!
7 months ago
!s
Status changed to Solved brody • 8 months ago