7 months ago
Project ID: 847be373-2849-40c9-a794-19f0ebe16d41
Service ID: cbcb8572-cd10-4cb7-b47a-f07d22e9ece7
I configured DB the environment variable to use the internal URL but I am seeing this error in the build logs.
Error: getaddrinfo ENOTFOUND postgres.railway.internal
at GetAddrInfoReqWrap.onlookupall [as oncomplete] (node:dns:120:26) {
errno: -3008,
code: 'ENOTFOUND',
syscall: 'getaddrinfo',
hostname: 'postgres.railway.internal'
}Here I'm just trying to migrate the DB during the build phase. Do the build machines don't get access to the internal DB service I have?
10 Replies
For now I had to use the public URL to get the build working and move on. But I would need to set up private networking please.
7 months ago
is your code using ipv4? ipv6 is needed for internal communication.
is your reference correct ? if you had previously deployed 2 DB so url might be different
Attachments
7 months ago
I am just trying to use TypeORM Postgres DB migration. TypeORM must be using pg drvier under-the-hood. Do you know you guys have a tip for this?
7 months ago
ssl, is it true?
7 months ago
SSL is it true? What do you mean?
7 months ago
I am trying to use environment variable linking. This worked in other projects.
Attachments
7 months ago
The private network is not available during build; please use a pre-deploy command instead.
7 months ago
Could you help me how to set that up? Can I do that in the railway.toml file?
7 months ago
Ok I solved it by just running the migration as first step during startCommand.
7 months ago
It would be best to use a pre-deploy command.